@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutRuleRequest() |
Modifier and Type | Method and Description |
---|---|
PutRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
A description of the rule.
|
String |
getEventBusName()
The name or ARN of the event bus to associate with this rule.
|
String |
getEventPattern()
The event pattern.
|
String |
getName()
The name of the rule that you are creating or updating.
|
String |
getRoleArn()
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
|
String |
getScheduleExpression()
The scheduling expression.
|
String |
getState()
The state of the rule.
|
List<Tag> |
getTags()
The list of key-value pairs to associate with the rule.
|
int |
hashCode() |
void |
setDescription(String description)
A description of the rule.
|
void |
setEventBusName(String eventBusName)
The name or ARN of the event bus to associate with this rule.
|
void |
setEventPattern(String eventPattern)
The event pattern.
|
void |
setName(String name)
The name of the rule that you are creating or updating.
|
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(String state)
The state of the rule.
|
void |
setTags(Collection<Tag> tags)
The list of key-value pairs to associate with the rule.
|
String |
toString()
Returns a string representation of this object.
|
PutRuleRequest |
withDescription(String description)
A description of the rule.
|
PutRuleRequest |
withEventBusName(String eventBusName)
The name or ARN of the event bus to associate with this rule.
|
PutRuleRequest |
withEventPattern(String eventPattern)
The event pattern.
|
PutRuleRequest |
withName(String name)
The name of the rule that you are creating or updating.
|
PutRuleRequest |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
|
PutRuleRequest |
withScheduleExpression(String scheduleExpression)
The scheduling expression.
|
PutRuleRequest |
withState(RuleState state)
The state of the rule.
|
PutRuleRequest |
withState(String state)
The state of the rule.
|
PutRuleRequest |
withTags(Collection<Tag> tags)
The list of key-value pairs to associate with the rule.
|
PutRuleRequest |
withTags(Tag... tags)
The list of key-value pairs to associate with the rule.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
The name of the rule that you are creating or updating.
name
- The name of the rule that you are creating or updating.public String getName()
The name of the rule that you are creating or updating.
public PutRuleRequest withName(String name)
The name of the rule that you are creating or updating.
name
- The name of the rule that you are creating or updating.public void setScheduleExpression(String scheduleExpression)
The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
scheduleExpression
- The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".public String getScheduleExpression()
The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
public PutRuleRequest withScheduleExpression(String scheduleExpression)
The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
scheduleExpression
- The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".public void setEventPattern(String eventPattern)
The event pattern. For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide .
eventPattern
- The event pattern. For more information, see Amazon EventBridge
event patterns in the Amazon EventBridge User Guide .public String getEventPattern()
The event pattern. For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide .
public PutRuleRequest withEventPattern(String eventPattern)
The event pattern. For more information, see Amazon EventBridge event patterns in the Amazon EventBridge User Guide .
eventPattern
- The event pattern. For more information, see Amazon EventBridge
event patterns in the Amazon EventBridge User Guide .public void setState(String state)
The state of the rule.
Valid values include:
DISABLED
: The rule is disabled. EventBridge does not match any events against the rule.
ENABLED
: The rule is enabled. EventBridge matches events against the rule, except for Amazon
Web Services management events delivered through CloudTrail.
ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
: The rule is enabled for all events, including Amazon
Web Services management events delivered through CloudTrail.
Management events provide visibility into management operations that are performed on resources in your Amazon Web Services account. These are also known as control plane operations. For more information, see Logging management events in the CloudTrail User Guide, and Filtering management events from Amazon Web Services services in the Amazon EventBridge User Guide .
This value is only valid for rules on the default event bus or custom event buses. It does not apply to partner event buses.
state
- The state of the rule.
Valid values include:
DISABLED
: The rule is disabled. EventBridge does not match any events against the rule.
ENABLED
: The rule is enabled. EventBridge matches events against the rule, except for
Amazon Web Services management events delivered through CloudTrail.
ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
: The rule is enabled for all events, including
Amazon Web Services management events delivered through CloudTrail.
Management events provide visibility into management operations that are performed on resources in your Amazon Web Services account. These are also known as control plane operations. For more information, see Logging management events in the CloudTrail User Guide, and Filtering management events from Amazon Web Services services in the Amazon EventBridge User Guide .
This value is only valid for rules on the default event bus or custom event buses. It does not apply to partner event buses.
RuleState
public String getState()
The state of the rule.
Valid values include:
DISABLED
: The rule is disabled. EventBridge does not match any events against the rule.
ENABLED
: The rule is enabled. EventBridge matches events against the rule, except for Amazon
Web Services management events delivered through CloudTrail.
ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
: The rule is enabled for all events, including Amazon
Web Services management events delivered through CloudTrail.
Management events provide visibility into management operations that are performed on resources in your Amazon Web Services account. These are also known as control plane operations. For more information, see Logging management events in the CloudTrail User Guide, and Filtering management events from Amazon Web Services services in the Amazon EventBridge User Guide .
This value is only valid for rules on the default event bus or custom event buses. It does not apply to partner event buses.
Valid values include:
DISABLED
: The rule is disabled. EventBridge does not match any events against the rule.
ENABLED
: The rule is enabled. EventBridge matches events against the rule, except for
Amazon Web Services management events delivered through CloudTrail.
ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
: The rule is enabled for all events, including
Amazon Web Services management events delivered through CloudTrail.
Management events provide visibility into management operations that are performed on resources in your Amazon Web Services account. These are also known as control plane operations. For more information, see Logging management events in the CloudTrail User Guide, and Filtering management events from Amazon Web Services services in the Amazon EventBridge User Guide .
This value is only valid for rules on the default event bus or custom event buses. It does not apply to partner event buses.
RuleState
public PutRuleRequest withState(String state)
The state of the rule.
Valid values include:
DISABLED
: The rule is disabled. EventBridge does not match any events against the rule.
ENABLED
: The rule is enabled. EventBridge matches events against the rule, except for Amazon
Web Services management events delivered through CloudTrail.
ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
: The rule is enabled for all events, including Amazon
Web Services management events delivered through CloudTrail.
Management events provide visibility into management operations that are performed on resources in your Amazon Web Services account. These are also known as control plane operations. For more information, see Logging management events in the CloudTrail User Guide, and Filtering management events from Amazon Web Services services in the Amazon EventBridge User Guide .
This value is only valid for rules on the default event bus or custom event buses. It does not apply to partner event buses.
state
- The state of the rule.
Valid values include:
DISABLED
: The rule is disabled. EventBridge does not match any events against the rule.
ENABLED
: The rule is enabled. EventBridge matches events against the rule, except for
Amazon Web Services management events delivered through CloudTrail.
ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
: The rule is enabled for all events, including
Amazon Web Services management events delivered through CloudTrail.
Management events provide visibility into management operations that are performed on resources in your Amazon Web Services account. These are also known as control plane operations. For more information, see Logging management events in the CloudTrail User Guide, and Filtering management events from Amazon Web Services services in the Amazon EventBridge User Guide .
This value is only valid for rules on the default event bus or custom event buses. It does not apply to partner event buses.
RuleState
public PutRuleRequest withState(RuleState state)
The state of the rule.
Valid values include:
DISABLED
: The rule is disabled. EventBridge does not match any events against the rule.
ENABLED
: The rule is enabled. EventBridge matches events against the rule, except for Amazon
Web Services management events delivered through CloudTrail.
ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
: The rule is enabled for all events, including Amazon
Web Services management events delivered through CloudTrail.
Management events provide visibility into management operations that are performed on resources in your Amazon Web Services account. These are also known as control plane operations. For more information, see Logging management events in the CloudTrail User Guide, and Filtering management events from Amazon Web Services services in the Amazon EventBridge User Guide .
This value is only valid for rules on the default event bus or custom event buses. It does not apply to partner event buses.
state
- The state of the rule.
Valid values include:
DISABLED
: The rule is disabled. EventBridge does not match any events against the rule.
ENABLED
: The rule is enabled. EventBridge matches events against the rule, except for
Amazon Web Services management events delivered through CloudTrail.
ENABLED_WITH_ALL_CLOUDTRAIL_MANAGEMENT_EVENTS
: The rule is enabled for all events, including
Amazon Web Services management events delivered through CloudTrail.
Management events provide visibility into management operations that are performed on resources in your Amazon Web Services account. These are also known as control plane operations. For more information, see Logging management events in the CloudTrail User Guide, and Filtering management events from Amazon Web Services services in the Amazon EventBridge User Guide .
This value is only valid for rules on the default event bus or custom event buses. It does not apply to partner event buses.
RuleState
public void setDescription(String description)
A description of the rule.
description
- A description of the rule.public String getDescription()
A description of the rule.
public PutRuleRequest withDescription(String description)
A description of the rule.
description
- A description of the rule.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
If you're setting an event bus in another account as the target and that account granted permission to your
account through an organization instead of directly by the account ID, you must specify a RoleArn
with proper permissions in the Target
structure, instead of here in this parameter.
roleArn
- The Amazon Resource Name (ARN) of the IAM role associated with the rule.
If you're setting an event bus in another account as the target and that account granted permission to
your account through an organization instead of directly by the account ID, you must specify a
RoleArn
with proper permissions in the Target
structure, instead of here in this
parameter.
public String getRoleArn()
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
If you're setting an event bus in another account as the target and that account granted permission to your
account through an organization instead of directly by the account ID, you must specify a RoleArn
with proper permissions in the Target
structure, instead of here in this parameter.
If you're setting an event bus in another account as the target and that account granted permission to
your account through an organization instead of directly by the account ID, you must specify a
RoleArn
with proper permissions in the Target
structure, instead of here in
this parameter.
public PutRuleRequest withRoleArn(String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
If you're setting an event bus in another account as the target and that account granted permission to your
account through an organization instead of directly by the account ID, you must specify a RoleArn
with proper permissions in the Target
structure, instead of here in this parameter.
roleArn
- The Amazon Resource Name (ARN) of the IAM role associated with the rule.
If you're setting an event bus in another account as the target and that account granted permission to
your account through an organization instead of directly by the account ID, you must specify a
RoleArn
with proper permissions in the Target
structure, instead of here in this
parameter.
public List<Tag> getTags()
The list of key-value pairs to associate with the rule.
public void setTags(Collection<Tag> tags)
The list of key-value pairs to associate with the rule.
tags
- The list of key-value pairs to associate with the rule.public PutRuleRequest withTags(Tag... tags)
The list of key-value pairs to associate with the rule.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The list of key-value pairs to associate with the rule.public PutRuleRequest withTags(Collection<Tag> tags)
The list of key-value pairs to associate with the rule.
tags
- The list of key-value pairs to associate with the rule.public void setEventBusName(String eventBusName)
The name or ARN of the event bus to associate with this rule. If you omit this, the default event bus is used.
eventBusName
- The name or ARN of the event bus to associate with this rule. If you omit this, the default event bus is
used.public String getEventBusName()
The name or ARN of the event bus to associate with this rule. If you omit this, the default event bus is used.
public PutRuleRequest withEventBusName(String eventBusName)
The name or ARN of the event bus to associate with this rule. If you omit this, the default event bus is used.
eventBusName
- The name or ARN of the event bus to associate with this rule. If you omit this, the default event bus is
used.public String toString()
toString
in class Object
Object.toString()
public PutRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()