@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() |
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.
|
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.
|
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.
|
addHandlerContext, copyBaseTo, 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, withSdkRequestTimeoutpublic 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.Languagepublic String getLanguage()
The language of the rule.
Languagepublic CreateRuleRequest withLanguage(String language)
The language of the rule.
language - The language of the rule.Languagepublic CreateRuleRequest withLanguage(Language language)
The language of the rule.
language - The language of the rule.Languagepublic 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 String toString()
toString in class ObjectObject.toString()public CreateRuleRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2020. All rights reserved.