@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutTargetsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
PutTargetsRequest() |
| Modifier and Type | Method and Description |
|---|---|
PutTargetsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getEventBusName()
The name or ARN of the event bus associated with the rule.
|
String |
getRule()
The name of the rule.
|
List<Target> |
getTargets()
The targets to update or add to the rule.
|
int |
hashCode() |
void |
setEventBusName(String eventBusName)
The name or ARN of the event bus associated with the rule.
|
void |
setRule(String rule)
The name of the rule.
|
void |
setTargets(Collection<Target> targets)
The targets to update or add to the rule.
|
String |
toString()
Returns a string representation of this object.
|
PutTargetsRequest |
withEventBusName(String eventBusName)
The name or ARN of the event bus associated with the rule.
|
PutTargetsRequest |
withRule(String rule)
The name of the rule.
|
PutTargetsRequest |
withTargets(Collection<Target> targets)
The targets to update or add to the rule.
|
PutTargetsRequest |
withTargets(Target... targets)
The targets to update or add to 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, withSdkRequestTimeoutpublic void setRule(String rule)
The name of the rule.
rule - The name of the rule.public String getRule()
The name of the rule.
public PutTargetsRequest withRule(String rule)
The name of the rule.
rule - The name of the rule.public void setEventBusName(String eventBusName)
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
eventBusName - The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is
used.public String getEventBusName()
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
public PutTargetsRequest withEventBusName(String eventBusName)
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
eventBusName - The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is
used.public List<Target> getTargets()
The targets to update or add to the rule.
public void setTargets(Collection<Target> targets)
The targets to update or add to the rule.
targets - The targets to update or add to the rule.public PutTargetsRequest withTargets(Target... targets)
The targets to update or add to the rule.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection) or withTargets(java.util.Collection) if you want to override
the existing values.
targets - The targets to update or add to the rule.public PutTargetsRequest withTargets(Collection<Target> targets)
The targets to update or add to the rule.
targets - The targets to update or add to the rule.public String toString()
toString in class ObjectObject.toString()public PutTargetsRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()