@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-12T23:33:57.654989Z[Etc/UTC]") public class CreateInboxRulesetOptions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CreateInboxRulesetOptions.ActionEnum
Action to be taken when the ruleset matches an email for the given scope.
|
static class |
CreateInboxRulesetOptions.CustomTypeAdapterFactory |
static class |
CreateInboxRulesetOptions.ScopeEnum
What type of emails actions to apply ruleset to.
|
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_ACTION |
static String |
SERIALIZED_NAME_SCOPE |
static String |
SERIALIZED_NAME_TARGET |
Constructor and Description |
---|
CreateInboxRulesetOptions() |
Modifier and Type | Method and Description |
---|---|
CreateInboxRulesetOptions |
action(CreateInboxRulesetOptions.ActionEnum action) |
boolean |
equals(Object o) |
static CreateInboxRulesetOptions |
fromJson(String jsonString)
Create an instance of CreateInboxRulesetOptions given an JSON string
|
CreateInboxRulesetOptions.ActionEnum |
getAction()
Action to be taken when the ruleset matches an email for the given scope.
|
CreateInboxRulesetOptions.ScopeEnum |
getScope()
What type of emails actions to apply ruleset to.
|
String |
getTarget()
Target to match emails with.
|
int |
hashCode() |
CreateInboxRulesetOptions |
scope(CreateInboxRulesetOptions.ScopeEnum scope) |
void |
setAction(CreateInboxRulesetOptions.ActionEnum action) |
void |
setScope(CreateInboxRulesetOptions.ScopeEnum scope) |
void |
setTarget(String target) |
CreateInboxRulesetOptions |
target(String target) |
String |
toJson()
Convert an instance of CreateInboxRulesetOptions to an JSON string
|
String |
toString() |
static void |
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
|
public static final String SERIALIZED_NAME_SCOPE
public static final String SERIALIZED_NAME_ACTION
public static final String SERIALIZED_NAME_TARGET
public CreateInboxRulesetOptions scope(CreateInboxRulesetOptions.ScopeEnum scope)
@Nonnull public CreateInboxRulesetOptions.ScopeEnum getScope()
public void setScope(CreateInboxRulesetOptions.ScopeEnum scope)
public CreateInboxRulesetOptions action(CreateInboxRulesetOptions.ActionEnum action)
@Nonnull public CreateInboxRulesetOptions.ActionEnum getAction()
public void setAction(CreateInboxRulesetOptions.ActionEnum action)
public CreateInboxRulesetOptions target(String target)
@Nonnull public String getTarget()
public void setTarget(String target)
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
jsonObj
- JSON ObjectIOException
- if the JSON Object is invalid with respect to CreateInboxRulesetOptionspublic static CreateInboxRulesetOptions fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to CreateInboxRulesetOptionspublic String toJson()
Copyright © 2023. All rights reserved.