@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateRuleRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
The rule description.
|
String |
getDetectorId()
The detector ID for the rule's parent detector.
|
String |
getExpression()
The rule expression.
|
String |
getLanguage()
The language of the rule.
|
List<String> |
getOutcomes()
The outcome or outcomes returned when the rule expression matches.
|
String |
getRuleId()
The rule ID.
|
List<Tag> |
getTags()
A collection of key and value pairs.
|
int |
hashCode() |
void |
setDescription(String description)
The rule description.
|
void |
setDetectorId(String detectorId)
The detector ID for the rule's parent detector.
|
void |
setExpression(String expression)
The rule expression.
|
void |
setLanguage(String language)
The language of the rule.
|
void |
setOutcomes(Collection<String> outcomes)
The outcome or outcomes returned when the rule expression matches.
|
void |
setRuleId(String ruleId)
The rule ID.
|
void |
setTags(Collection<Tag> tags)
A collection of key and value pairs.
|
String |
toString()
Returns a string representation of this object.
|
CreateRuleRequest |
withDescription(String description)
The rule description.
|
CreateRuleRequest |
withDetectorId(String detectorId)
The detector ID for the rule's parent detector.
|
CreateRuleRequest |
withExpression(String expression)
The rule expression.
|
CreateRuleRequest |
withLanguage(Language language)
The language of the rule.
|
CreateRuleRequest |
withLanguage(String language)
The language of the rule.
|
CreateRuleRequest |
withOutcomes(Collection<String> outcomes)
The outcome or outcomes returned when the rule expression matches.
|
CreateRuleRequest |
withOutcomes(String... outcomes)
The outcome or outcomes returned when the rule expression matches.
|
CreateRuleRequest |
withRuleId(String ruleId)
The rule ID.
|
CreateRuleRequest |
withTags(Collection<Tag> tags)
A collection of key and value pairs.
|
CreateRuleRequest |
withTags(Tag... tags)
A collection of key and value pairs.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRuleId(String ruleId)
The rule ID.
ruleId
- The rule ID.public String getRuleId()
The rule ID.
public CreateRuleRequest withRuleId(String ruleId)
The rule ID.
ruleId
- The rule ID.public void setDetectorId(String detectorId)
The detector ID for the rule's parent detector.
detectorId
- The detector ID for the rule's parent detector.public String getDetectorId()
The detector ID for the rule's parent detector.
public CreateRuleRequest withDetectorId(String detectorId)
The detector ID for the rule's parent detector.
detectorId
- The detector ID for the rule's parent detector.public void setDescription(String description)
The rule description.
description
- The rule description.public String getDescription()
The rule description.
public CreateRuleRequest withDescription(String description)
The rule description.
description
- The rule description.public void setExpression(String expression)
The rule expression.
expression
- The rule expression.public String getExpression()
The rule expression.
public CreateRuleRequest withExpression(String expression)
The rule expression.
expression
- The rule expression.public void setLanguage(String language)
The language of the rule.
language
- The language of the rule.Language
public String getLanguage()
The language of the rule.
Language
public CreateRuleRequest withLanguage(String language)
The language of the rule.
language
- The language of the rule.Language
public CreateRuleRequest withLanguage(Language language)
The language of the rule.
language
- The language of the rule.Language
public List<String> getOutcomes()
The outcome or outcomes returned when the rule expression matches.
public void setOutcomes(Collection<String> outcomes)
The outcome or outcomes returned when the rule expression matches.
outcomes
- The outcome or outcomes returned when the rule expression matches.public CreateRuleRequest withOutcomes(String... outcomes)
The outcome or outcomes returned when the rule expression matches.
NOTE: This method appends the values to the existing list (if any). Use
setOutcomes(java.util.Collection)
or withOutcomes(java.util.Collection)
if you want to override
the existing values.
outcomes
- The outcome or outcomes returned when the rule expression matches.public CreateRuleRequest withOutcomes(Collection<String> outcomes)
The outcome or outcomes returned when the rule expression matches.
outcomes
- The outcome or outcomes returned when the rule expression matches.public List<Tag> getTags()
A collection of key and value pairs.
public void setTags(Collection<Tag> tags)
A collection of key and value pairs.
tags
- A collection of key and value pairs.public CreateRuleRequest withTags(Tag... tags)
A collection of key and value pairs.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- A collection of key and value pairs.public CreateRuleRequest withTags(Collection<Tag> tags)
A collection of key and value pairs.
tags
- A collection of key and value pairs.public String toString()
toString
in class Object
Object.toString()
public CreateRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()