@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()
Indicates whether the rule is enabled or disabled.
|
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(RuleState state)
Indicates whether the rule is enabled or disabled.
|
void |
setState(String state)
Indicates whether the rule is enabled or disabled.
|
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)
Indicates whether the rule is enabled or disabled.
|
PutRuleRequest |
withState(String state)
Indicates whether the rule is enabled or disabled.
|
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 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 PutRuleRequest 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 setState(String state)
Indicates whether the rule is enabled or disabled.
state
- Indicates whether the rule is enabled or disabled.RuleState
public String getState()
Indicates whether the rule is enabled or disabled.
RuleState
public PutRuleRequest withState(String state)
Indicates whether the rule is enabled or disabled.
state
- Indicates whether the rule is enabled or disabled.RuleState
public void setState(RuleState state)
Indicates whether the rule is enabled or disabled.
state
- Indicates whether the rule is enabled or disabled.RuleState
public PutRuleRequest withState(RuleState state)
Indicates whether the rule is enabled or disabled.
state
- Indicates whether the rule is enabled or disabled.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()