@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Rule extends Object implements Serializable, Cloneable, StructuredPojo
Information about a rule.
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
Rule |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
Rule |
clearTagsEntries()
Removes all the entries added into Tags.
|
Rule |
clone() |
boolean |
equals(Object obj) |
List<RuleAction> |
getActions()
A list of actions to be run when the rule is triggered.
|
Date |
getCreatedTime()
The timestamp for when the rule was created.
|
String |
getFunction()
The conditions of the rule.
|
String |
getLastUpdatedBy()
The Amazon Resource Name (ARN) of the user who last updated the rule.
|
Date |
getLastUpdatedTime()
The timestamp for the when the rule was last updated.
|
String |
getName()
The name of the rule.
|
String |
getPublishStatus()
The publish status of the rule.
|
String |
getRuleArn()
The Amazon Resource Name (ARN) of the rule.
|
String |
getRuleId()
A unique identifier for the rule.
|
Map<String,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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActions(Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
|
void |
setCreatedTime(Date createdTime)
The timestamp for when the rule was created.
|
void |
setFunction(String function)
The conditions of the rule.
|
void |
setLastUpdatedBy(String lastUpdatedBy)
The Amazon Resource Name (ARN) of the user who last updated the rule.
|
void |
setLastUpdatedTime(Date lastUpdatedTime)
The timestamp for the when the rule was last updated.
|
void |
setName(String name)
The name of the rule.
|
void |
setPublishStatus(String publishStatus)
The publish status of the rule.
|
void |
setRuleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
|
void |
setRuleId(String ruleId)
A unique identifier for the rule.
|
void |
setTags(Map<String,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.
|
String |
toString()
Returns a string representation of this object.
|
Rule |
withActions(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(Date createdTime)
The timestamp for when the rule was created.
|
Rule |
withFunction(String function)
The conditions of the rule.
|
Rule |
withLastUpdatedBy(String lastUpdatedBy)
The Amazon Resource Name (ARN) of the user who last updated the rule.
|
Rule |
withLastUpdatedTime(Date lastUpdatedTime)
The timestamp for the when the rule was last updated.
|
Rule |
withName(String name)
The name of the rule.
|
Rule |
withPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
|
Rule |
withPublishStatus(String publishStatus)
The publish status of the rule.
|
Rule |
withRuleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
|
Rule |
withRuleId(String ruleId)
A unique identifier for the rule.
|
Rule |
withTags(Map<String,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 void setName(String name)
The name of the rule.
name
- The name of the rule.public String getName()
The name of the rule.
public Rule withName(String name)
The name of the rule.
name
- The name of the rule.public void setRuleId(String ruleId)
A unique identifier for the rule.
ruleId
- A unique identifier for the rule.public String getRuleId()
A unique identifier for the rule.
public Rule withRuleId(String ruleId)
A unique identifier for the rule.
ruleId
- A unique identifier for the rule.public void setRuleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
ruleArn
- The Amazon Resource Name (ARN) of the rule.public String getRuleArn()
The Amazon Resource Name (ARN) of the rule.
public Rule withRuleArn(String ruleArn)
The Amazon Resource Name (ARN) of the rule.
ruleArn
- The Amazon Resource Name (ARN) of the rule.public void setTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
triggerEventSource
- The event source to trigger the rule.public RuleTriggerEventSource getTriggerEventSource()
The event source to trigger the rule.
public Rule withTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
triggerEventSource
- The event source to trigger the rule.public void setFunction(String function)
The conditions of the rule.
function
- The conditions of the rule.public String getFunction()
The conditions of the rule.
public Rule withFunction(String function)
The conditions of the rule.
function
- The conditions of the rule.public List<RuleAction> getActions()
A list of actions to be run when the rule is triggered.
public void setActions(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.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection)
or withActions(java.util.Collection)
if you want to override
the existing values.
actions
- A list of actions to be run when the rule is triggered.public Rule withActions(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 void setPublishStatus(String publishStatus)
The publish status of the rule.
publishStatus
- The publish status of the rule.RulePublishStatus
public String getPublishStatus()
The publish status of the rule.
RulePublishStatus
public Rule withPublishStatus(String publishStatus)
The publish status of the rule.
publishStatus
- The publish status of the rule.RulePublishStatus
public Rule withPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
publishStatus
- The publish status of the rule.RulePublishStatus
public void setCreatedTime(Date createdTime)
The timestamp for when the rule was created.
createdTime
- The timestamp for when the rule was created.public Date getCreatedTime()
The timestamp for when the rule was created.
public Rule withCreatedTime(Date createdTime)
The timestamp for when the rule was created.
createdTime
- The timestamp for when the rule was created.public void setLastUpdatedTime(Date lastUpdatedTime)
The timestamp for the when the rule was last updated.
lastUpdatedTime
- The timestamp for the when the rule was last updated.public Date getLastUpdatedTime()
The timestamp for the when the rule was last updated.
public Rule withLastUpdatedTime(Date lastUpdatedTime)
The timestamp for the when the rule was last updated.
lastUpdatedTime
- The timestamp for the when the rule was last updated.public void setLastUpdatedBy(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 String getLastUpdatedBy()
The Amazon Resource Name (ARN) of the user who last updated the rule.
public Rule withLastUpdatedBy(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 Map<String,String> getTags()
The tags used to organize, track, or control access for this resource. For example, { "Tags": {"key1":"value1", "key2":"value2"} }.
public void setTags(Map<String,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(Map<String,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 clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.