@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 |
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()
[Required] The name used to label and identify the VPC link.
|
List<String> |
getTargetArns()
[Required] The ARNs of network load balancers of the VPC targeted by the VPC link.
|
int |
hashCode() |
void |
setDescription(String description)
The description of the VPC link.
|
void |
setName(String name)
[Required] The name used to label and identify the VPC link.
|
void |
setTargetArns(Collection<String> targetArns)
[Required] The ARNs of network load balancers of the VPC targeted by the VPC link.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
CreateVpcLinkRequest |
withDescription(String description)
The description of the VPC link.
|
CreateVpcLinkRequest |
withName(String name)
[Required] The name used to label and identify the VPC link.
|
CreateVpcLinkRequest |
withTargetArns(Collection<String> targetArns)
[Required] The ARNs of network load balancers of the VPC targeted by the VPC link.
|
CreateVpcLinkRequest |
withTargetArns(String... targetArns)
[Required] The ARNs of network load balancers 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)
[Required] The name used to label and identify the VPC link.
name
- [Required] The name used to label and identify the VPC link.public String getName()
[Required] The name used to label and identify the VPC link.
public CreateVpcLinkRequest withName(String name)
[Required] The name used to label and identify the VPC link.
name
- [Required] 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()
[Required] The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.
public void setTargetArns(Collection<String> targetArns)
[Required] The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.
targetArns
- [Required] The ARNs of network load balancers of the VPC targeted by the VPC link. The network load
balancers must be owned by the same AWS account of the API owner.public CreateVpcLinkRequest withTargetArns(String... targetArns)
[Required] The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS 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
- [Required] The ARNs of network load balancers of the VPC targeted by the VPC link. The network load
balancers must be owned by the same AWS account of the API owner.public CreateVpcLinkRequest withTargetArns(Collection<String> targetArns)
[Required] The ARNs of network load balancers of the VPC targeted by the VPC link. The network load balancers must be owned by the same AWS account of the API owner.
targetArns
- [Required] The ARNs of network load balancers of the VPC targeted by the VPC link. The network load
balancers must be owned by the same AWS account of the API owner.public String toString()
toString
in class Object
Object.toString()
public CreateVpcLinkRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.