@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetVpcLinkResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
A API Gateway VPC link for a RestApi to access resources in an Amazon Virtual Private Cloud (VPC).
To enable access to a resource in an Amazon Virtual Private Cloud through Amazon API Gateway, you, as an API
developer, create a VpcLink resource targeted for one or more network load balancers of the VPC and then
integrate an API method with a private integration that uses the VpcLink. The private integration has an
integration type of HTTP
or HTTP_PROXY
and has a connection type of VPC_LINK
.
The integration uses the connectionId
property to identify the VpcLink used.
Constructor and Description |
---|
GetVpcLinkResult() |
Modifier and Type | Method and Description |
---|---|
GetVpcLinkResult |
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.
|
List<String> |
getTargetArns()
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 |
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 |
setTargetArns(Collection<String> targetArns)
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.
|
GetVpcLinkResult |
withDescription(String description)
The description of the VPC link.
|
GetVpcLinkResult |
withId(String id)
The identifier of the VpcLink.
|
GetVpcLinkResult |
withName(String name)
The name used to label and identify the VPC link.
|
GetVpcLinkResult |
withStatus(String status)
The status of the VPC link.
|
GetVpcLinkResult |
withStatus(VpcLinkStatus status)
The status of the VPC link.
|
GetVpcLinkResult |
withStatusMessage(String statusMessage)
A description about the VPC link status.
|
GetVpcLinkResult |
withTargetArns(Collection<String> targetArns)
The ARNs of network load balancers of the VPC targeted by the VPC link.
|
GetVpcLinkResult |
withTargetArns(String... targetArns)
The ARNs of network load balancers 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 GetVpcLinkResult 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 GetVpcLinkResult 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 GetVpcLinkResult withDescription(String description)
The description of the VPC link.
description
- The description of the VPC link.public List<String> getTargetArns()
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)
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
- 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 GetVpcLinkResult withTargetArns(String... targetArns)
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
- 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 GetVpcLinkResult withTargetArns(Collection<String> targetArns)
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
- 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 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 GetVpcLinkResult 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 GetVpcLinkResult 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 GetVpcLinkResult withStatusMessage(String statusMessage)
A description about the VPC link status.
statusMessage
- A description about the VPC link status.public String toString()
toString
in class Object
Object.toString()
public GetVpcLinkResult clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.