public class DescribeRuleResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
The result of the DescribeRule operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
arn
The Amazon Resource Name (ARN) associated with the rule.
|
private java.lang.String |
description
The rule's description.
|
private java.lang.String |
eventPattern
The event pattern.
|
private java.lang.String |
name
The rule's name.
|
private java.lang.String |
roleArn
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
|
private java.lang.String |
scheduleExpression
The scheduling expression.
|
private java.lang.String |
state
Specifies whether the rule is enabled or disabled.
|
Constructor and Description |
---|
DescribeRuleResult() |
Modifier and Type | Method and Description |
---|---|
DescribeRuleResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getArn()
The Amazon Resource Name (ARN) associated with the rule.
|
java.lang.String |
getDescription()
The rule's description.
|
java.lang.String |
getEventPattern()
The event pattern.
|
java.lang.String |
getName()
The rule's name.
|
java.lang.String |
getRoleArn()
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
|
java.lang.String |
getScheduleExpression()
The scheduling expression.
|
java.lang.String |
getState()
Specifies whether the rule is enabled or disabled.
|
int |
hashCode() |
void |
setArn(java.lang.String arn)
The Amazon Resource Name (ARN) associated with the rule.
|
void |
setDescription(java.lang.String description)
The rule's description.
|
void |
setEventPattern(java.lang.String eventPattern)
The event pattern.
|
void |
setName(java.lang.String name)
The rule's name.
|
void |
setRoleArn(java.lang.String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
|
void |
setScheduleExpression(java.lang.String scheduleExpression)
The scheduling expression.
|
void |
setState(RuleState state)
Specifies whether the rule is enabled or disabled.
|
void |
setState(java.lang.String state)
Specifies whether the rule is enabled or disabled.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeRuleResult |
withArn(java.lang.String arn)
The Amazon Resource Name (ARN) associated with the rule.
|
DescribeRuleResult |
withDescription(java.lang.String description)
The rule's description.
|
DescribeRuleResult |
withEventPattern(java.lang.String eventPattern)
The event pattern.
|
DescribeRuleResult |
withName(java.lang.String name)
The rule's name.
|
DescribeRuleResult |
withRoleArn(java.lang.String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
|
DescribeRuleResult |
withScheduleExpression(java.lang.String scheduleExpression)
The scheduling expression.
|
DescribeRuleResult |
withState(RuleState state)
Specifies whether the rule is enabled or disabled.
|
DescribeRuleResult |
withState(java.lang.String state)
Specifies whether the rule is enabled or disabled.
|
private java.lang.String name
The rule's name.
private java.lang.String arn
The Amazon Resource Name (ARN) associated with the rule.
private java.lang.String eventPattern
The event pattern.
private java.lang.String scheduleExpression
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
private java.lang.String state
Specifies whether the rule is enabled or disabled.
private java.lang.String description
The rule's description.
private java.lang.String roleArn
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
public void setName(java.lang.String name)
The rule's name.
name
- The rule's name.public java.lang.String getName()
The rule's name.
public DescribeRuleResult withName(java.lang.String name)
The rule's name.
name
- The rule's name.public void setArn(java.lang.String arn)
The Amazon Resource Name (ARN) associated with the rule.
arn
- The Amazon Resource Name (ARN) associated with the rule.public java.lang.String getArn()
The Amazon Resource Name (ARN) associated with the rule.
public DescribeRuleResult withArn(java.lang.String arn)
The Amazon Resource Name (ARN) associated with the rule.
arn
- The Amazon Resource Name (ARN) associated with the rule.public void setEventPattern(java.lang.String eventPattern)
The event pattern.
eventPattern
- The event pattern.public java.lang.String getEventPattern()
The event pattern.
public DescribeRuleResult withEventPattern(java.lang.String eventPattern)
The event pattern.
eventPattern
- The event pattern.public void setScheduleExpression(java.lang.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 java.lang.String getScheduleExpression()
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
public DescribeRuleResult withScheduleExpression(java.lang.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(java.lang.String state)
Specifies whether the rule is enabled or disabled.
state
- Specifies whether the rule is enabled or disabled.RuleState
public java.lang.String getState()
Specifies whether the rule is enabled or disabled.
RuleState
public DescribeRuleResult withState(java.lang.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(java.lang.String description)
The rule's description.
description
- The rule's description.public java.lang.String getDescription()
The rule's description.
public DescribeRuleResult withDescription(java.lang.String description)
The rule's description.
description
- The rule's description.public void setRoleArn(java.lang.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 java.lang.String getRoleArn()
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
public DescribeRuleResult withRoleArn(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeRuleResult clone()
clone
in class java.lang.Object