public class Rule
extends java.lang.Object
implements java.io.Serializable
Information about a rule.
| Constructor and Description |
|---|
Rule() |
| Modifier and Type | Method and Description |
|---|---|
Rule |
addTagsEntry(java.lang.String key,
java.lang.String value)
The tags used to organize, track, or control access for this resource.
|
Rule |
clearTagsEntries()
Removes all the entries added into Tags.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<RuleAction> |
getActions()
A list of actions to be run when the rule is triggered.
|
java.util.Date |
getCreatedTime()
The timestamp for when the rule was created.
|
java.lang.String |
getFunction()
The conditions of the rule.
|
java.lang.String |
getLastUpdatedBy()
The Amazon Resource Name (ARN) of the user who last updated the rule.
|
java.util.Date |
getLastUpdatedTime()
The timestamp for the when the rule was last updated.
|
java.lang.String |
getName()
The name of the rule.
|
java.lang.String |
getPublishStatus()
The publish status of the rule.
|
java.lang.String |
getRuleArn()
The Amazon Resource Name (ARN) of the rule.
|
java.lang.String |
getRuleId()
A unique identifier for the rule.
|
java.util.Map<java.lang.String,java.lang.String> |
getTags()
The tags used to organize, track, or control access for this resource.
|
RuleTriggerEventSource |
getTriggerEventSource()
The event source to trigger the rule.
|
int |
hashCode() |
void |
setActions(java.util.Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
|
void |
setCreatedTime(java.util.Date createdTime)
The timestamp for when the rule was created.
|
void |
setFunction(java.lang.String function)
The conditions of the rule.
|
void |
setLastUpdatedBy(java.lang.String lastUpdatedBy)
The Amazon Resource Name (ARN) of the user who last updated the rule.
|
void |
setLastUpdatedTime(java.util.Date lastUpdatedTime)
The timestamp for the when the rule was last updated.
|
void |
setName(java.lang.String name)
The name of the rule.
|
void |
setPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
|
void |
setPublishStatus(java.lang.String publishStatus)
The publish status of the rule.
|
void |
setRuleArn(java.lang.String ruleArn)
The Amazon Resource Name (ARN) of the rule.
|
void |
setRuleId(java.lang.String ruleId)
A unique identifier for the rule.
|
void |
setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource.
|
void |
setTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Rule |
withActions(java.util.Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
|
Rule |
withActions(RuleAction... actions)
A list of actions to be run when the rule is triggered.
|
Rule |
withCreatedTime(java.util.Date createdTime)
The timestamp for when the rule was created.
|
Rule |
withFunction(java.lang.String function)
The conditions of the rule.
|
Rule |
withLastUpdatedBy(java.lang.String lastUpdatedBy)
The Amazon Resource Name (ARN) of the user who last updated the rule.
|
Rule |
withLastUpdatedTime(java.util.Date lastUpdatedTime)
The timestamp for the when the rule was last updated.
|
Rule |
withName(java.lang.String name)
The name of the rule.
|
Rule |
withPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
|
Rule |
withPublishStatus(java.lang.String publishStatus)
The publish status of the rule.
|
Rule |
withRuleArn(java.lang.String ruleArn)
The Amazon Resource Name (ARN) of the rule.
|
Rule |
withRuleId(java.lang.String ruleId)
A unique identifier for the rule.
|
Rule |
withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource.
|
Rule |
withTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
|
public java.lang.String getName()
The name of the rule.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
The name of the rule.
public void setName(java.lang.String name)
The name of the rule.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
name - The name of the rule.
public Rule withName(java.lang.String name)
The name of the rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
name - The name of the rule.
public java.lang.String getRuleId()
A unique identifier for the rule.
Constraints:
Length: 1 - 256
A unique identifier for the rule.
public void setRuleId(java.lang.String ruleId)
A unique identifier for the rule.
Constraints:
Length: 1 - 256
ruleId - A unique identifier for the rule.
public Rule withRuleId(java.lang.String ruleId)
A unique identifier for the rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
ruleId - A unique identifier for the rule.
public java.lang.String getRuleArn()
The Amazon Resource Name (ARN) of the rule.
The Amazon Resource Name (ARN) of the rule.
public void setRuleArn(java.lang.String ruleArn)
The Amazon Resource Name (ARN) of the rule.
ruleArn - The Amazon Resource Name (ARN) of the rule.
public Rule withRuleArn(java.lang.String ruleArn)
The Amazon Resource Name (ARN) of the rule.
Returns a reference to this object so that method calls can be chained together.
ruleArn - The Amazon Resource Name (ARN) of the rule.
public RuleTriggerEventSource getTriggerEventSource()
The event source to trigger the rule.
The event source to trigger the rule.
public void setTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
triggerEventSource - The event source to trigger the rule.
public Rule withTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
Returns a reference to this object so that method calls can be chained together.
triggerEventSource - The event source to trigger the rule.
public java.lang.String getFunction()
The conditions of the rule.
The conditions of the rule.
public void setFunction(java.lang.String function)
The conditions of the rule.
function - The conditions of the rule.
public Rule withFunction(java.lang.String function)
The conditions of the rule.
Returns a reference to this object so that method calls can be chained together.
function - The conditions of the rule.
public java.util.List<RuleAction> getActions()
A list of actions to be run when the rule is triggered.
A list of actions to be run when the rule is triggered.
public void setActions(java.util.Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
actions - A list of actions to be run when the rule is triggered.
public Rule withActions(RuleAction... actions)
A list of actions to be run when the rule is triggered.
Returns a reference to this object so that method calls can be chained together.
actions - A list of actions to be run when the rule is triggered.
public Rule withActions(java.util.Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
Returns a reference to this object so that method calls can be chained together.
actions - A list of actions to be run when the rule is triggered.
public java.lang.String getPublishStatus()
The publish status of the rule.
Constraints:
Allowed Values: DRAFT, PUBLISHED
The publish status of the rule.
RulePublishStatuspublic void setPublishStatus(java.lang.String publishStatus)
The publish status of the rule.
Constraints:
Allowed Values: DRAFT, PUBLISHED
publishStatus - The publish status of the rule.
RulePublishStatuspublic Rule withPublishStatus(java.lang.String publishStatus)
The publish status of the rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DRAFT, PUBLISHED
publishStatus - The publish status of the rule.
RulePublishStatuspublic void setPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
Constraints:
Allowed Values: DRAFT, PUBLISHED
publishStatus - The publish status of the rule.
RulePublishStatuspublic Rule withPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DRAFT, PUBLISHED
publishStatus - The publish status of the rule.
RulePublishStatuspublic java.util.Date getCreatedTime()
The timestamp for when the rule was created.
The timestamp for when the rule was created.
public void setCreatedTime(java.util.Date createdTime)
The timestamp for when the rule was created.
createdTime - The timestamp for when the rule was created.
public Rule withCreatedTime(java.util.Date createdTime)
The timestamp for when the rule was created.
Returns a reference to this object so that method calls can be chained together.
createdTime - The timestamp for when the rule was created.
public java.util.Date getLastUpdatedTime()
The timestamp for the when the rule was last updated.
The timestamp for the when the rule was last updated.
public void setLastUpdatedTime(java.util.Date lastUpdatedTime)
The timestamp for the when the rule was last updated.
lastUpdatedTime - The timestamp for the when the rule was last updated.
public Rule withLastUpdatedTime(java.util.Date lastUpdatedTime)
The timestamp for the when the rule was last updated.
Returns a reference to this object so that method calls can be chained together.
lastUpdatedTime - The timestamp for the when the rule was last updated.
public java.lang.String getLastUpdatedBy()
The Amazon Resource Name (ARN) of the user who last updated the rule.
The Amazon Resource Name (ARN) of the user who last updated the rule.
public void setLastUpdatedBy(java.lang.String lastUpdatedBy)
The Amazon Resource Name (ARN) of the user who last updated the rule.
lastUpdatedBy - The Amazon Resource Name (ARN) of the user who last updated the rule.
public Rule withLastUpdatedBy(java.lang.String lastUpdatedBy)
The Amazon Resource Name (ARN) of the user who last updated the rule.
Returns a reference to this object so that method calls can be chained together.
lastUpdatedBy - The Amazon Resource Name (ARN) of the user who last updated the rule.
public java.util.Map<java.lang.String,java.lang.String> getTags()
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public void setTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public Rule withTags(java.util.Map<java.lang.String,java.lang.String> tags)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Returns a reference to this object so that method calls can be chained together.
tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
public Rule addTagsEntry(java.lang.String key, java.lang.String value)
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
The method adds a new key-value pair into Tags parameter, and returns a reference to this object so that method calls can be chained together.
key - The key of the entry to be added into Tags.value - The corresponding value of the entry to be added into Tags.public Rule clearTagsEntries()
Returns a reference to this object so that method calls can be chained together.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object