@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 |
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.
|
int |
hashCode() |
void |
setDescription(String description)
A description of the 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.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
PutRuleRequest |
withDescription(String description)
A description of the 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.
|
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 CloudWatch Events User Guide.
eventPattern
- The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.public String getEventPattern()
The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.
public PutRuleRequest withEventPattern(String eventPattern)
The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events User Guide.
eventPattern
- The event pattern. For more information, see Events and Event Patterns in the Amazon CloudWatch Events 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.
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 PutRuleRequest 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 PutRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.