public class PutRuleRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Container for the parameters to the PutRule operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
description
A description of the rule.
|
private java.lang.String |
eventPattern
The event pattern.
|
private java.lang.String |
name
The name of the rule that you are creating or updating.
|
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
Indicates whether the rule is enabled or disabled.
|
NOOP
Constructor and Description |
---|
PutRuleRequest() |
Modifier and Type | Method and Description |
---|---|
PutRuleRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A description of the rule.
|
java.lang.String |
getEventPattern()
The event pattern.
|
java.lang.String |
getName()
The name of the rule that you are creating or updating.
|
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()
Indicates whether the rule is enabled or disabled.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
A description of the rule.
|
void |
setEventPattern(java.lang.String eventPattern)
The event pattern.
|
void |
setName(java.lang.String name)
The name of the rule that you are creating or updating.
|
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)
Indicates whether the rule is enabled or disabled.
|
void |
setState(java.lang.String state)
Indicates whether the rule is enabled or disabled.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRuleRequest |
withDescription(java.lang.String description)
A description of the rule.
|
PutRuleRequest |
withEventPattern(java.lang.String eventPattern)
The event pattern.
|
PutRuleRequest |
withName(java.lang.String name)
The name of the rule that you are creating or updating.
|
PutRuleRequest |
withRoleArn(java.lang.String roleArn)
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
|
PutRuleRequest |
withScheduleExpression(java.lang.String scheduleExpression)
The scheduling expression.
|
PutRuleRequest |
withState(RuleState state)
Indicates whether the rule is enabled or disabled.
|
PutRuleRequest |
withState(java.lang.String state)
Indicates whether the rule is enabled or disabled.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String name
The name of the rule that you are creating or updating.
private java.lang.String scheduleExpression
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
private java.lang.String eventPattern
The event pattern.
private java.lang.String state
Indicates whether the rule is enabled or disabled.
private java.lang.String description
A description of the rule.
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 name of the rule that you are creating or updating.
name
- The name of the rule that you are creating or updating.public java.lang.String getName()
The name of the rule that you are creating or updating.
public PutRuleRequest withName(java.lang.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(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 PutRuleRequest 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 setEventPattern(java.lang.String eventPattern)
The event pattern.
eventPattern
- The event pattern.public java.lang.String getEventPattern()
The event pattern.
public PutRuleRequest withEventPattern(java.lang.String eventPattern)
The event pattern.
eventPattern
- The event pattern.public void setState(java.lang.String state)
Indicates whether the rule is enabled or disabled.
state
- Indicates whether the rule is enabled or disabled.RuleState
public java.lang.String getState()
Indicates whether the rule is enabled or disabled.
RuleState
public PutRuleRequest withState(java.lang.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(java.lang.String description)
A description of the rule.
description
- A description of the rule.public java.lang.String getDescription()
A description of the rule.
public PutRuleRequest withDescription(java.lang.String description)
A description of the rule.
description
- A description of the rule.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 PutRuleRequest 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 PutRuleRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()