@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 |
getCreatedBy()
The account ID of the user that created the rule.
|
String |
getDescription()
The description of the rule.
|
String |
getEventBusName()
The name of the event bus associated with the rule.
|
String |
getEventPattern()
The event pattern.
|
String |
getManagedBy()
If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays the
principal name of the Amazon Web Services service that created the rule.
|
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 |
setCreatedBy(String createdBy)
The account ID of the user that created the rule.
|
void |
setDescription(String description)
The description of the rule.
|
void |
setEventBusName(String eventBusName)
The name of the event bus associated with the rule.
|
void |
setEventPattern(String eventPattern)
The event pattern.
|
void |
setManagedBy(String managedBy)
If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays the
principal name of the Amazon Web Services service that created the rule.
|
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.
|
DescribeRuleResult |
withArn(String arn)
The Amazon Resource Name (ARN) of the rule.
|
DescribeRuleResult |
withCreatedBy(String createdBy)
The account ID of the user that created the rule.
|
DescribeRuleResult |
withDescription(String description)
The description of the rule.
|
DescribeRuleResult |
withEventBusName(String eventBusName)
The name of the event bus associated with the rule.
|
DescribeRuleResult |
withEventPattern(String eventPattern)
The event pattern.
|
DescribeRuleResult |
withManagedBy(String managedBy)
If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays the
principal name of the Amazon Web Services service that created the rule.
|
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 EventBridge User Guide.
eventPattern
- The event pattern. For more information, see Events
and Event Patterns in the Amazon EventBridge User Guide.public String getEventPattern()
The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
public DescribeRuleResult withEventPattern(String eventPattern)
The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
eventPattern
- The event pattern. For more information, see Events
and Event Patterns in the Amazon EventBridge 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 void setManagedBy(String managedBy)
If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays the principal name of the Amazon Web Services service that created the rule.
managedBy
- If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays
the principal name of the Amazon Web Services service that created the rule.public String getManagedBy()
If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays the principal name of the Amazon Web Services service that created the rule.
public DescribeRuleResult withManagedBy(String managedBy)
If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays the principal name of the Amazon Web Services service that created the rule.
managedBy
- If this is a managed rule, created by an Amazon Web Services service on your behalf, this field displays
the principal name of the Amazon Web Services service that created the rule.public void setEventBusName(String eventBusName)
The name of the event bus associated with the rule.
eventBusName
- The name of the event bus associated with the rule.public String getEventBusName()
The name of the event bus associated with the rule.
public DescribeRuleResult withEventBusName(String eventBusName)
The name of the event bus associated with the rule.
eventBusName
- The name of the event bus associated with the rule.public void setCreatedBy(String createdBy)
The account ID of the user that created the rule. If you use PutRule
to put a rule on an event bus
in another account, the other account is the owner of the rule, and the rule ARN includes the account ID for that
account. However, the value for CreatedBy
is the account ID as the account that created the rule in
the other account.
createdBy
- The account ID of the user that created the rule. If you use PutRule
to put a rule on an
event bus in another account, the other account is the owner of the rule, and the rule ARN includes the
account ID for that account. However, the value for CreatedBy
is the account ID as the
account that created the rule in the other account.public String getCreatedBy()
The account ID of the user that created the rule. If you use PutRule
to put a rule on an event bus
in another account, the other account is the owner of the rule, and the rule ARN includes the account ID for that
account. However, the value for CreatedBy
is the account ID as the account that created the rule in
the other account.
PutRule
to put a rule on an
event bus in another account, the other account is the owner of the rule, and the rule ARN includes the
account ID for that account. However, the value for CreatedBy
is the account ID as the
account that created the rule in the other account.public DescribeRuleResult withCreatedBy(String createdBy)
The account ID of the user that created the rule. If you use PutRule
to put a rule on an event bus
in another account, the other account is the owner of the rule, and the rule ARN includes the account ID for that
account. However, the value for CreatedBy
is the account ID as the account that created the rule in
the other account.
createdBy
- The account ID of the user that created the rule. If you use PutRule
to put a rule on an
event bus in another account, the other account is the owner of the rule, and the rule ARN includes the
account ID for that account. However, the value for CreatedBy
is the account ID as the
account that created the rule in the other account.public String toString()
toString
in class Object
Object.toString()
public DescribeRuleResult clone()