@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpcLink extends Object implements Serializable, Cloneable, StructuredPojo
An API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
Constructor and Description |
---|
VpcLink() |
Modifier and Type | Method and Description |
---|---|
VpcLink |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
VpcLink |
clearTagsEntries()
Removes all the entries added into Tags.
|
VpcLink |
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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.
|
VpcLink |
withDescription(String description)
The description of the VPC link.
|
VpcLink |
withId(String id)
The identifier of the VpcLink.
|
VpcLink |
withName(String name)
The name used to label and identify the VPC link.
|
VpcLink |
withStatus(String status)
The status of the VPC link.
|
VpcLink |
withStatus(VpcLinkStatus status)
The status of the VPC link.
|
VpcLink |
withStatusMessage(String statusMessage)
A description about the VPC link status.
|
VpcLink |
withTags(Map<String,String> tags)
The collection of tags.
|
VpcLink |
withTargetArns(Collection<String> targetArns)
The ARN of the network load balancer of the VPC targeted by the VPC link.
|
VpcLink |
withTargetArns(String... targetArns)
The ARN of the network load balancer of the VPC targeted by the VPC link.
|
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 VpcLink 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 VpcLink 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 VpcLink 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 VpcLink 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 VpcLink 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 VpcLink 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 VpcLink 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 VpcLink 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 VpcLink 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 VpcLink clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.