Class PutRuleRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
Container for the parameters to the PutRule operation.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
A description of the rule.The event pattern.getName()
The name of the rule that you are creating or updating.The Amazon Resource Name (ARN) of the IAM role associated with the rule.The scheduling expression.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
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
Indicates whether the rule is enabled or disabled.void
Indicates whether the rule is enabled or disabled.toString()
Returns a string representation of this object; useful for testing and debugging.withDescription
(String description) A description of the rule.withEventPattern
(String eventPattern) The event pattern.The name of the rule that you are creating or updating.withRoleArn
(String roleArn) The Amazon Resource Name (ARN) of the IAM role associated with the rule.withScheduleExpression
(String scheduleExpression) The scheduling expression.Indicates whether the rule is enabled or disabled.Indicates whether the rule is enabled or disabled.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
PutRuleRequest
public PutRuleRequest()
-
-
Method Details
-
setName
The name of the rule that you are creating or updating.
- Parameters:
name
- The name of the rule that you are creating or updating.
-
getName
The name of the rule that you are creating or updating.
- Returns:
- The name of the rule that you are creating or updating.
-
withName
The name of the rule that you are creating or updating.
- Parameters:
name
- The name of the rule that you are creating or updating.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setScheduleExpression
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
- Parameters:
scheduleExpression
- The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
-
getScheduleExpression
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
- Returns:
- The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
-
withScheduleExpression
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".
- Parameters:
scheduleExpression
- The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)".- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEventPattern
The event pattern.
- Parameters:
eventPattern
- The event pattern.
-
getEventPattern
The event pattern.
- Returns:
- The event pattern.
-
withEventPattern
The event pattern.
- Parameters:
eventPattern
- The event pattern.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
Indicates whether the rule is enabled or disabled.
- Parameters:
state
- Indicates whether the rule is enabled or disabled.- See Also:
-
getState
Indicates whether the rule is enabled or disabled.
- Returns:
- Indicates whether the rule is enabled or disabled.
- See Also:
-
withState
Indicates whether the rule is enabled or disabled.
- Parameters:
state
- Indicates whether the rule is enabled or disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
Indicates whether the rule is enabled or disabled.
- Parameters:
state
- Indicates whether the rule is enabled or disabled.- See Also:
-
withState
Indicates whether the rule is enabled or disabled.
- Parameters:
state
- Indicates whether the rule is enabled or disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setDescription
A description of the rule.
- Parameters:
description
- A description of the rule.
-
getDescription
A description of the rule.
- Returns:
- A description of the rule.
-
withDescription
A description of the rule.
- Parameters:
description
- A description of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRoleArn
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role associated with the rule.
-
getRoleArn
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
- Returns:
- The Amazon Resource Name (ARN) of the IAM role associated with the rule.
-
withRoleArn
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM role associated with the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-