@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutInsightRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutInsightRuleRequest() |
Modifier and Type | Method and Description |
---|---|
PutInsightRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getRuleDefinition()
The definition of the rule, as a JSON object.
|
String |
getRuleName()
A unique name for the rule.
|
String |
getRuleState()
The state of the rule.
|
List<Tag> |
getTags()
A list of key-value pairs to associate with the Contributor Insights rule.
|
int |
hashCode() |
void |
setRuleDefinition(String ruleDefinition)
The definition of the rule, as a JSON object.
|
void |
setRuleName(String ruleName)
A unique name for the rule.
|
void |
setRuleState(String ruleState)
The state of the rule.
|
void |
setTags(Collection<Tag> tags)
A list of key-value pairs to associate with the Contributor Insights rule.
|
String |
toString()
Returns a string representation of this object.
|
PutInsightRuleRequest |
withRuleDefinition(String ruleDefinition)
The definition of the rule, as a JSON object.
|
PutInsightRuleRequest |
withRuleName(String ruleName)
A unique name for the rule.
|
PutInsightRuleRequest |
withRuleState(String ruleState)
The state of the rule.
|
PutInsightRuleRequest |
withTags(Collection<Tag> tags)
A list of key-value pairs to associate with the Contributor Insights rule.
|
PutInsightRuleRequest |
withTags(Tag... tags)
A list of key-value pairs to associate with the Contributor Insights 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, withSdkRequestTimeout
public void setRuleName(String ruleName)
A unique name for the rule.
ruleName
- A unique name for the rule.public String getRuleName()
A unique name for the rule.
public PutInsightRuleRequest withRuleName(String ruleName)
A unique name for the rule.
ruleName
- A unique name for the rule.public void setRuleState(String ruleState)
The state of the rule. Valid values are ENABLED and DISABLED.
ruleState
- The state of the rule. Valid values are ENABLED and DISABLED.public String getRuleState()
The state of the rule. Valid values are ENABLED and DISABLED.
public PutInsightRuleRequest withRuleState(String ruleState)
The state of the rule. Valid values are ENABLED and DISABLED.
ruleState
- The state of the rule. Valid values are ENABLED and DISABLED.public void setRuleDefinition(String ruleDefinition)
The definition of the rule, as a JSON object. For details on the valid syntax, see Contributor Insights Rule Syntax.
ruleDefinition
- The definition of the rule, as a JSON object. For details on the valid syntax, see Contributor Insights Rule Syntax.public String getRuleDefinition()
The definition of the rule, as a JSON object. For details on the valid syntax, see Contributor Insights Rule Syntax.
public PutInsightRuleRequest withRuleDefinition(String ruleDefinition)
The definition of the rule, as a JSON object. For details on the valid syntax, see Contributor Insights Rule Syntax.
ruleDefinition
- The definition of the rule, as a JSON object. For details on the valid syntax, see Contributor Insights Rule Syntax.public List<Tag> getTags()
A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.
To be able to associate tags with a rule, you must have the cloudwatch:TagResource
permission in
addition to the cloudwatch:PutInsightRule
permission.
If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.
To be able to associate tags with a rule, you must have the cloudwatch:TagResource
permission in addition to the cloudwatch:PutInsightRule
permission.
If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.
public void setTags(Collection<Tag> tags)
A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.
To be able to associate tags with a rule, you must have the cloudwatch:TagResource
permission in
addition to the cloudwatch:PutInsightRule
permission.
If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.
tags
- A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50
tags with a rule.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.
To be able to associate tags with a rule, you must have the cloudwatch:TagResource
permission
in addition to the cloudwatch:PutInsightRule
permission.
If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.
public PutInsightRuleRequest withTags(Tag... tags)
A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.
To be able to associate tags with a rule, you must have the cloudwatch:TagResource
permission in
addition to the cloudwatch:PutInsightRule
permission.
If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.
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 list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50
tags with a rule.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.
To be able to associate tags with a rule, you must have the cloudwatch:TagResource
permission
in addition to the cloudwatch:PutInsightRule
permission.
If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.
public PutInsightRuleRequest withTags(Collection<Tag> tags)
A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50 tags with a rule.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.
To be able to associate tags with a rule, you must have the cloudwatch:TagResource
permission in
addition to the cloudwatch:PutInsightRule
permission.
If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.
tags
- A list of key-value pairs to associate with the Contributor Insights rule. You can associate as many as 50
tags with a rule.
Tags can help you organize and categorize your resources. You can also use them to scope user permissions, by granting a user permission to access or change only the resources that have certain tag values.
To be able to associate tags with a rule, you must have the cloudwatch:TagResource
permission
in addition to the cloudwatch:PutInsightRule
permission.
If you are using this operation to update an existing Contributor Insights rule, any tags you specify in this parameter are ignored. To change the tags of an existing rule, use TagResource.
public String toString()
toString
in class Object
Object.toString()
public PutInsightRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()