@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateVpcLinkRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Creates a VPC link, under the caller's account in a selected region, in an asynchronous operation that typically takes 2-4 minutes to complete and become operational. The caller must have permissions to create and update VPC Endpoint services.
NOOP
Constructor and Description |
---|
CreateVpcLinkRequest() |
Modifier and Type | Method and Description |
---|---|
CreateVpcLinkRequest |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateVpcLinkRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateVpcLinkRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
The description of the VPC link.
|
String |
getName()
The name used to label and identify the VPC link.
|
Map<String,String> |
getTags()
The key-value map of strings.
|
List<String> |
getTargetArns()
The ARN of the network load balancer of the VPC targeted by the VPC link.
|
int |
hashCode() |
void |
setDescription(String description)
The description of the VPC link.
|
void |
setName(String name)
The name used to label and identify the VPC link.
|
void |
setTags(Map<String,String> tags)
The key-value map of strings.
|
void |
setTargetArns(Collection<String> targetArns)
The ARN of the network load balancer of the VPC targeted by the VPC link.
|
String |
toString()
Returns a string representation of this object.
|
CreateVpcLinkRequest |
withDescription(String description)
The description of the VPC link.
|
CreateVpcLinkRequest |
withName(String name)
The name used to label and identify the VPC link.
|
CreateVpcLinkRequest |
withTags(Map<String,String> tags)
The key-value map of strings.
|
CreateVpcLinkRequest |
withTargetArns(Collection<String> targetArns)
The ARN of the network load balancer of the VPC targeted by the VPC link.
|
CreateVpcLinkRequest |
withTargetArns(String... targetArns)
The ARN of the network load balancer of the VPC targeted by the VPC link.
|
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 used to label and identify the VPC link.
name
- The name used to label and identify the VPC link.public String getName()
The name used to label and identify the VPC link.
public CreateVpcLinkRequest withName(String name)
The name used to label and identify the VPC link.
name
- The name used to label and identify the VPC link.public void setDescription(String description)
The description of the VPC link.
description
- The description of the VPC link.public String getDescription()
The description of the VPC link.
public CreateVpcLinkRequest withDescription(String description)
The description of the VPC link.
description
- The description of the VPC link.public List<String> getTargetArns()
The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same Amazon Web Services account of the API owner.
public void setTargetArns(Collection<String> targetArns)
The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same Amazon Web Services account of the API owner.
targetArns
- The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must
be owned by the same Amazon Web Services account of the API owner.public CreateVpcLinkRequest withTargetArns(String... targetArns)
The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same Amazon Web Services account of the API owner.
NOTE: This method appends the values to the existing list (if any). Use
setTargetArns(java.util.Collection)
or withTargetArns(java.util.Collection)
if you want to
override the existing values.
targetArns
- The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must
be owned by the same Amazon Web Services account of the API owner.public CreateVpcLinkRequest withTargetArns(Collection<String> targetArns)
The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must be owned by the same Amazon Web Services account of the API owner.
targetArns
- The ARN of the network load balancer of the VPC targeted by the VPC link. The network load balancer must
be owned by the same Amazon Web Services account of the API owner.public Map<String,String> getTags()
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
aws:
. The tag value can be up to 256 characters.public void setTags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
tags
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
characters and must not start with aws:
. The tag value can be up to 256 characters.public CreateVpcLinkRequest withTags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters
and must not start with aws:
. The tag value can be up to 256 characters.
tags
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
characters and must not start with aws:
. The tag value can be up to 256 characters.public CreateVpcLinkRequest addTagsEntry(String key, String value)
public CreateVpcLinkRequest clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateVpcLinkRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()