@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateDestinationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateDestinationRequest() |
Modifier and Type | Method and Description |
---|---|
CreateDestinationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getClientRequestToken()
Each resource must have a unique client request token.
|
String |
getDescription()
The description of the new resource.
|
String |
getExpression()
The rule name or topic rule to send messages to.
|
String |
getExpressionType()
The type of value in
Expression . |
String |
getName()
The name of the new resource.
|
String |
getRoleArn()
The ARN of the IAM Role that authorizes the destination.
|
List<Tag> |
getTags()
The tags to attach to the new destination.
|
int |
hashCode() |
void |
setClientRequestToken(String clientRequestToken)
Each resource must have a unique client request token.
|
void |
setDescription(String description)
The description of the new resource.
|
void |
setExpression(String expression)
The rule name or topic rule to send messages to.
|
void |
setExpressionType(String expressionType)
The type of value in
Expression . |
void |
setName(String name)
The name of the new resource.
|
void |
setRoleArn(String roleArn)
The ARN of the IAM Role that authorizes the destination.
|
void |
setTags(Collection<Tag> tags)
The tags to attach to the new destination.
|
String |
toString()
Returns a string representation of this object.
|
CreateDestinationRequest |
withClientRequestToken(String clientRequestToken)
Each resource must have a unique client request token.
|
CreateDestinationRequest |
withDescription(String description)
The description of the new resource.
|
CreateDestinationRequest |
withExpression(String expression)
The rule name or topic rule to send messages to.
|
CreateDestinationRequest |
withExpressionType(ExpressionType expressionType)
The type of value in
Expression . |
CreateDestinationRequest |
withExpressionType(String expressionType)
The type of value in
Expression . |
CreateDestinationRequest |
withName(String name)
The name of the new resource.
|
CreateDestinationRequest |
withRoleArn(String roleArn)
The ARN of the IAM Role that authorizes the destination.
|
CreateDestinationRequest |
withTags(Collection<Tag> tags)
The tags to attach to the new destination.
|
CreateDestinationRequest |
withTags(Tag... tags)
The tags to attach to the new destination.
|
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 new resource.
name
- The name of the new resource.public String getName()
The name of the new resource.
public CreateDestinationRequest withName(String name)
The name of the new resource.
name
- The name of the new resource.public void setExpressionType(String expressionType)
The type of value in Expression
.
expressionType
- The type of value in Expression
.ExpressionType
public String getExpressionType()
The type of value in Expression
.
Expression
.ExpressionType
public CreateDestinationRequest withExpressionType(String expressionType)
The type of value in Expression
.
expressionType
- The type of value in Expression
.ExpressionType
public CreateDestinationRequest withExpressionType(ExpressionType expressionType)
The type of value in Expression
.
expressionType
- The type of value in Expression
.ExpressionType
public void setExpression(String expression)
The rule name or topic rule to send messages to.
expression
- The rule name or topic rule to send messages to.public String getExpression()
The rule name or topic rule to send messages to.
public CreateDestinationRequest withExpression(String expression)
The rule name or topic rule to send messages to.
expression
- The rule name or topic rule to send messages to.public void setDescription(String description)
The description of the new resource.
description
- The description of the new resource.public String getDescription()
The description of the new resource.
public CreateDestinationRequest withDescription(String description)
The description of the new resource.
description
- The description of the new resource.public void setRoleArn(String roleArn)
The ARN of the IAM Role that authorizes the destination.
roleArn
- The ARN of the IAM Role that authorizes the destination.public String getRoleArn()
The ARN of the IAM Role that authorizes the destination.
public CreateDestinationRequest withRoleArn(String roleArn)
The ARN of the IAM Role that authorizes the destination.
roleArn
- The ARN of the IAM Role that authorizes the destination.public List<Tag> getTags()
The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.
public void setTags(Collection<Tag> tags)
The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.
tags
- The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.public CreateDestinationRequest withTags(Tag... tags)
The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.public CreateDestinationRequest withTags(Collection<Tag> tags)
The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.
tags
- The tags to attach to the new destination. Tags are metadata that you can use to manage a resource.public void setClientRequestToken(String clientRequestToken)
Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
clientRequestToken
- Each resource must have a unique client request token. If you try to create a new resource with the same
token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will
automatically generate a unique client request.public String getClientRequestToken()
Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
public CreateDestinationRequest withClientRequestToken(String clientRequestToken)
Each resource must have a unique client request token. If you try to create a new resource with the same token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will automatically generate a unique client request.
clientRequestToken
- Each resource must have a unique client request token. If you try to create a new resource with the same
token as a resource that already exists, an exception occurs. If you omit this value, AWS SDKs will
automatically generate a unique client request.public String toString()
toString
in class Object
Object.toString()
public CreateDestinationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()