@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeRuleResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
The result of the DescribeRule operation.
Constructor and Description |
---|
DescribeRuleResult() |
Modifier and Type | Method and Description |
---|---|
DescribeRuleResult |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) associated with the rule.
|
String |
getDescription()
The rule's description.
|
String |
getEventPattern()
The event pattern.
|
String |
getName()
The rule's name.
|
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) associated with the rule.
|
void |
setDescription(String description)
The rule's description.
|
void |
setEventPattern(String eventPattern)
The event pattern.
|
void |
setName(String name)
The rule's name.
|
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) associated with the rule.
|
DescribeRuleResult |
withDescription(String description)
The rule's description.
|
DescribeRuleResult |
withEventPattern(String eventPattern)
The event pattern.
|
DescribeRuleResult |
withName(String name)
The rule's name.
|
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 rule's name.
name
- The rule's name.public String getName()
The rule's name.
public DescribeRuleResult withName(String name)
The rule's name.
name
- The rule's name.public void setArn(String arn)
The Amazon Resource Name (ARN) associated with the rule.
arn
- The Amazon Resource Name (ARN) associated with the rule.public String getArn()
The Amazon Resource Name (ARN) associated with the rule.
public DescribeRuleResult withArn(String arn)
The Amazon Resource Name (ARN) associated with the rule.
arn
- The Amazon Resource Name (ARN) associated with the rule.public void setEventPattern(String eventPattern)
The event pattern.
eventPattern
- The event pattern.public String getEventPattern()
The event pattern.
public DescribeRuleResult withEventPattern(String eventPattern)
The event pattern.
eventPattern
- The event pattern.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 rule's description.
description
- The rule's description.public String getDescription()
The rule's description.
public DescribeRuleResult withDescription(String description)
The rule's description.
description
- The rule's description.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.