@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeRuleResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeRuleResult() |
Modifier and Type | Method and Description |
---|---|
DescribeRuleResult |
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.
|
String |
getName()
The name of the rule.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
|
String |
getScheduleExpression()
The scheduling expression.
|
String |
getState()
Specifies whether the rule is enabled or disabled.
|
int |
hashCode() |
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.
|
void |
setName(String name)
The name of the rule.
|
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
|
void |
setScheduleExpression(String scheduleExpression)
The scheduling expression.
|
void |
setState(RuleState state)
Specifies whether the rule is enabled or disabled.
|
void |
setState(String state)
Specifies whether the rule is enabled or disabled.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
DescribeRuleResult |
withArn(String arn)
The Amazon Resource Name (ARN) of the rule.
|
DescribeRuleResult |
withDescription(String description)
The description of the rule.
|
DescribeRuleResult |
withEventPattern(String eventPattern)
The event pattern.
|
DescribeRuleResult |
withName(String name)
The name of the rule.
|
DescribeRuleResult |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
|
DescribeRuleResult |
withScheduleExpression(String scheduleExpression)
The scheduling expression.
|
DescribeRuleResult |
withState(RuleState state)
Specifies whether the rule is enabled or disabled.
|
DescribeRuleResult |
withState(String state)
Specifies whether the rule is enabled or disabled.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
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 DescribeRuleResult 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 DescribeRuleResult 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. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.
eventPattern
- The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.public String getEventPattern()
The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.
public DescribeRuleResult withEventPattern(String eventPattern)
The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.
eventPattern
- The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.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 DescribeRuleResult 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 setState(String state)
Specifies whether the rule is enabled or disabled.
state
- Specifies whether the rule is enabled or disabled.RuleState
public String getState()
Specifies whether the rule is enabled or disabled.
RuleState
public DescribeRuleResult withState(String state)
Specifies whether the rule is enabled or disabled.
state
- Specifies whether the rule is enabled or disabled.RuleState
public void setState(RuleState state)
Specifies whether the rule is enabled or disabled.
state
- Specifies whether the rule is enabled or disabled.RuleState
public DescribeRuleResult withState(RuleState state)
Specifies whether the rule is enabled or disabled.
state
- Specifies whether the rule is enabled or disabled.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 DescribeRuleResult withDescription(String description)
The description of the rule.
description
- The description of the rule.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
roleArn
- The Amazon Resource Name (ARN) of the IAM role associated with the rule.public String getRoleArn()
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
public DescribeRuleResult withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
roleArn
- The Amazon Resource Name (ARN) of the IAM role associated with the rule.public String toString()
toString
in class Object
Object.toString()
public DescribeRuleResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.