@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Rule extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a rule in Amazon CloudWatch Events.
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
Rule |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the rule.
|
String |
getDescription()
The description of the rule.
|
String |
getEventPattern()
The event pattern of the rule.
|
String |
getName()
The name of the rule.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the role that is used for target invocation.
|
String |
getScheduleExpression()
The scheduling expression.
|
String |
getState()
The state of the rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the rule.
|
void |
setDescription(String description)
The description of the rule.
|
void |
setEventPattern(String eventPattern)
The event pattern of the rule.
|
void |
setName(String name)
The name of the rule.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that is used for target invocation.
|
void |
setScheduleExpression(String scheduleExpression)
The scheduling expression.
|
void |
setState(RuleState state)
The state of the rule.
|
void |
setState(String state)
The state of the rule.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Rule |
withArn(String arn)
The Amazon Resource Name (ARN) of the rule.
|
Rule |
withDescription(String description)
The description of the rule.
|
Rule |
withEventPattern(String eventPattern)
The event pattern of the rule.
|
Rule |
withName(String name)
The name of the rule.
|
Rule |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that is used for target invocation.
|
Rule |
withScheduleExpression(String scheduleExpression)
The scheduling expression.
|
Rule |
withState(RuleState state)
The state of the rule.
|
Rule |
withState(String state)
The state of 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 setArn(String arn)
The Amazon Resource Name (ARN) of the rule.
arn
- The Amazon Resource Name (ARN) of the rule.public String getArn()
The Amazon Resource Name (ARN) of the rule.
public Rule withArn(String arn)
The Amazon Resource Name (ARN) of the rule.
arn
- The Amazon Resource Name (ARN) of the rule.public void setEventPattern(String eventPattern)
The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.
eventPattern
- The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.public String getEventPattern()
The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.
public Rule withEventPattern(String eventPattern)
The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.
eventPattern
- The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.public void setState(String state)
The state of the rule.
state
- The state of the rule.RuleState
public String getState()
The state of the rule.
RuleState
public Rule withState(String state)
The state of the rule.
state
- The state of the rule.RuleState
public void setState(RuleState state)
The state of the rule.
state
- The state of the rule.RuleState
public Rule withState(RuleState state)
The state of the rule.
state
- The state of the rule.RuleState
public void setDescription(String description)
The description of the rule.
description
- The description of the rule.public String getDescription()
The description of the rule.
public Rule withDescription(String description)
The description of the rule.
description
- The description of the rule.public void setScheduleExpression(String scheduleExpression)
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
scheduleExpression
- The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".public String getScheduleExpression()
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
public Rule withScheduleExpression(String scheduleExpression)
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
scheduleExpression
- The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that is used for target invocation.
roleArn
- The Amazon Resource Name (ARN) of the role that is used for target invocation.public String getRoleArn()
The Amazon Resource Name (ARN) of the role that is used for target invocation.
public Rule withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the role that is used for target invocation.
roleArn
- The Amazon Resource Name (ARN) of the role that is used for target invocation.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.