Class PutTargetsRequest
java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cloudwatchevents.model.PutTargetsRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
Container for the parameters to the PutTargets 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
getRule()
The name of the rule you want to add targets to.List of targets you want to update or add to the rule.int
hashCode()
void
The name of the rule you want to add targets to.void
setTargets
(Collection<Target> targets) List of targets you want to update or add to the rule.toString()
Returns a string representation of this object; useful for testing and debugging.The name of the rule you want to add targets to.withTargets
(Target... targets) List of targets you want to update or add to the rule.withTargets
(Collection<Target> targets) List of targets you want to update or add to the rule.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
-
PutTargetsRequest
public PutTargetsRequest()
-
-
Method Details
-
setRule
The name of the rule you want to add targets to.
- Parameters:
rule
- The name of the rule you want to add targets to.
-
getRule
The name of the rule you want to add targets to.
- Returns:
- The name of the rule you want to add targets to.
-
withRule
The name of the rule you want to add targets to.
- Parameters:
rule
- The name of the rule you want to add targets to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTargets
List of targets you want to update or add to the rule.
- Returns:
- List of targets you want to update or add to the rule.
-
setTargets
List of targets you want to update or add to the rule.
- Parameters:
targets
- List of targets you want to update or add to the rule.
-
withTargets
List of targets you want to update or add to the rule.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
orwithTargets(java.util.Collection)
if you want to override the existing values.- Parameters:
targets
- List of targets you want to update or add to the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTargets
List of targets you want to update or add to the rule.
- Parameters:
targets
- List of targets you want to update or add to 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:
-