@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateVpcLinkResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
Constructor and Description |
---|
CreateVpcLinkResult() |
Modifier and Type | Method and Description |
---|---|
CreateVpcLinkResult |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateVpcLinkResult |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateVpcLinkResult |
clone() |
boolean |
equals(Object obj) |
String |
getDescription()
The description of the VPC link.
|
String |
getId()
The identifier of the VpcLink.
|
String |
getName()
The name used to label and identify the VPC link.
|
String |
getStatus()
The status of the VPC link.
|
String |
getStatusMessage()
A description about the VPC link status.
|
Map<String,String> |
getTags()
The collection of tags.
|
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 |
setId(String id)
The identifier of the VpcLink.
|
void |
setName(String name)
The name used to label and identify the VPC link.
|
void |
setStatus(String status)
The status of the VPC link.
|
void |
setStatusMessage(String statusMessage)
A description about the VPC link status.
|
void |
setTags(Map<String,String> tags)
The collection of tags.
|
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.
|
CreateVpcLinkResult |
withDescription(String description)
The description of the VPC link.
|
CreateVpcLinkResult |
withId(String id)
The identifier of the VpcLink.
|
CreateVpcLinkResult |
withName(String name)
The name used to label and identify the VPC link.
|
CreateVpcLinkResult |
withStatus(String status)
The status of the VPC link.
|
CreateVpcLinkResult |
withStatus(VpcLinkStatus status)
The status of the VPC link.
|
CreateVpcLinkResult |
withStatusMessage(String statusMessage)
A description about the VPC link status.
|
CreateVpcLinkResult |
withTags(Map<String,String> tags)
The collection of tags.
|
CreateVpcLinkResult |
withTargetArns(Collection<String> targetArns)
The ARN of the network load balancer of the VPC targeted by the VPC link.
|
CreateVpcLinkResult |
withTargetArns(String... targetArns)
The ARN of the network load balancer of the VPC targeted by the VPC link.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setId(String id)
The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.
id
- The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.public String getId()
The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.
public CreateVpcLinkResult withId(String id)
The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.
id
- The identifier of the VpcLink. It is used in an Integration to reference this VpcLink.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 CreateVpcLinkResult 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 CreateVpcLinkResult 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 CreateVpcLinkResult 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 CreateVpcLinkResult 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 void setStatus(String status)
The status of the VPC link. The valid values are AVAILABLE
, PENDING
,
DELETING
, or FAILED
. Deploying an API will wait if the status is PENDING
and will fail if the status is DELETING
.
status
- The status of the VPC link. The valid values are AVAILABLE
, PENDING
,
DELETING
, or FAILED
. Deploying an API will wait if the status is
PENDING
and will fail if the status is DELETING
.VpcLinkStatus
public String getStatus()
The status of the VPC link. The valid values are AVAILABLE
, PENDING
,
DELETING
, or FAILED
. Deploying an API will wait if the status is PENDING
and will fail if the status is DELETING
.
AVAILABLE
, PENDING
,
DELETING
, or FAILED
. Deploying an API will wait if the status is
PENDING
and will fail if the status is DELETING
.VpcLinkStatus
public CreateVpcLinkResult withStatus(String status)
The status of the VPC link. The valid values are AVAILABLE
, PENDING
,
DELETING
, or FAILED
. Deploying an API will wait if the status is PENDING
and will fail if the status is DELETING
.
status
- The status of the VPC link. The valid values are AVAILABLE
, PENDING
,
DELETING
, or FAILED
. Deploying an API will wait if the status is
PENDING
and will fail if the status is DELETING
.VpcLinkStatus
public CreateVpcLinkResult withStatus(VpcLinkStatus status)
The status of the VPC link. The valid values are AVAILABLE
, PENDING
,
DELETING
, or FAILED
. Deploying an API will wait if the status is PENDING
and will fail if the status is DELETING
.
status
- The status of the VPC link. The valid values are AVAILABLE
, PENDING
,
DELETING
, or FAILED
. Deploying an API will wait if the status is
PENDING
and will fail if the status is DELETING
.VpcLinkStatus
public void setStatusMessage(String statusMessage)
A description about the VPC link status.
statusMessage
- A description about the VPC link status.public String getStatusMessage()
A description about the VPC link status.
public CreateVpcLinkResult withStatusMessage(String statusMessage)
A description about the VPC link status.
statusMessage
- A description about the VPC link status.public Map<String,String> getTags()
The collection of tags. Each tag element is associated with a given resource.
public void setTags(Map<String,String> tags)
The collection of tags. Each tag element is associated with a given resource.
tags
- The collection of tags. Each tag element is associated with a given resource.public CreateVpcLinkResult withTags(Map<String,String> tags)
The collection of tags. Each tag element is associated with a given resource.
tags
- The collection of tags. Each tag element is associated with a given resource.public CreateVpcLinkResult addTagsEntry(String key, String value)
public CreateVpcLinkResult clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public CreateVpcLinkResult clone()