@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateSafetyRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
The request body that you include when you create a safety rule.
NOOP| Constructor and Description |
|---|
CreateSafetyRuleRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateSafetyRuleRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateSafetyRuleRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateSafetyRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
NewAssertionRule |
getAssertionRule()
The assertion rule requested.
|
String |
getClientToken()
A unique, case-sensitive string of up to 64 ASCII characters.
|
NewGatingRule |
getGatingRule()
The gating rule requested.
|
Map<String,String> |
getTags()
The tags associated with the safety rule.
|
int |
hashCode() |
void |
setAssertionRule(NewAssertionRule assertionRule)
The assertion rule requested.
|
void |
setClientToken(String clientToken)
A unique, case-sensitive string of up to 64 ASCII characters.
|
void |
setGatingRule(NewGatingRule gatingRule)
The gating rule requested.
|
void |
setTags(Map<String,String> tags)
The tags associated with the safety rule.
|
String |
toString()
Returns a string representation of this object.
|
CreateSafetyRuleRequest |
withAssertionRule(NewAssertionRule assertionRule)
The assertion rule requested.
|
CreateSafetyRuleRequest |
withClientToken(String clientToken)
A unique, case-sensitive string of up to 64 ASCII characters.
|
CreateSafetyRuleRequest |
withGatingRule(NewGatingRule gatingRule)
The gating rule requested.
|
CreateSafetyRuleRequest |
withTags(Map<String,String> tags)
The tags associated with the safety rule.
|
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, withSdkRequestTimeoutpublic void setAssertionRule(NewAssertionRule assertionRule)
The assertion rule requested.
assertionRule - The assertion rule requested.public NewAssertionRule getAssertionRule()
The assertion rule requested.
public CreateSafetyRuleRequest withAssertionRule(NewAssertionRule assertionRule)
The assertion rule requested.
assertionRule - The assertion rule requested.public void setClientToken(String clientToken)
A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.
clientToken - A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an
action, specify a client token in the request.public String getClientToken()
A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.
public CreateSafetyRuleRequest withClientToken(String clientToken)
A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.
clientToken - A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an
action, specify a client token in the request.public void setGatingRule(NewGatingRule gatingRule)
The gating rule requested.
gatingRule - The gating rule requested.public NewGatingRule getGatingRule()
The gating rule requested.
public CreateSafetyRuleRequest withGatingRule(NewGatingRule gatingRule)
The gating rule requested.
gatingRule - The gating rule requested.public Map<String,String> getTags()
The tags associated with the safety rule.
public void setTags(Map<String,String> tags)
The tags associated with the safety rule.
tags - The tags associated with the safety rule.public CreateSafetyRuleRequest withTags(Map<String,String> tags)
The tags associated with the safety rule.
tags - The tags associated with the safety rule.public CreateSafetyRuleRequest addTagsEntry(String key, String value)
public CreateSafetyRuleRequest clearTagsEntries()
public String toString()
toString in class ObjectObject.toString()public CreateSafetyRuleRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()