public class AssociateVPCWithHostedZoneRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
AssociateVPCWithHostedZone operation
.
This action associates a VPC with an hosted zone.
To associate a VPC with an hosted zone, send a POST
request to the 2013-04-01/hostedzone/hosted zone
ID/associatevpc
resource. The request body must include an XML
document with a AssociateVPCWithHostedZoneRequest
element. The response returns the
AssociateVPCWithHostedZoneResponse
element that contains
ChangeInfo
for you to track the progress of the
AssociateVPCWithHostedZoneRequest
you made. See
GetChange
operation for how to track the progress of your
change.
NOOP
Constructor and Description |
---|
AssociateVPCWithHostedZoneRequest() |
Modifier and Type | Method and Description |
---|---|
AssociateVPCWithHostedZoneRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getComment()
Optional: Any comments you want to include about a
AssociateVPCWithHostedZoneRequest . |
String |
getHostedZoneId()
The ID of the hosted zone you want to associate your VPC with.
|
VPC |
getVPC()
The VPC that you want your hosted zone to be associated with.
|
int |
hashCode() |
void |
setComment(String comment)
Optional: Any comments you want to include about a
AssociateVPCWithHostedZoneRequest . |
void |
setHostedZoneId(String hostedZoneId)
The ID of the hosted zone you want to associate your VPC with.
|
void |
setVPC(VPC vPC)
The VPC that you want your hosted zone to be associated with.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AssociateVPCWithHostedZoneRequest |
withComment(String comment)
Optional: Any comments you want to include about a
AssociateVPCWithHostedZoneRequest . |
AssociateVPCWithHostedZoneRequest |
withHostedZoneId(String hostedZoneId)
The ID of the hosted zone you want to associate your VPC with.
|
AssociateVPCWithHostedZoneRequest |
withVPC(VPC vPC)
The VPC that you want your hosted zone to be associated with.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getHostedZoneId()
Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.
Constraints:
Length: 0 - 32
Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.
public void setHostedZoneId(String hostedZoneId)
Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.
Constraints:
Length: 0 - 32
hostedZoneId
- The ID of the hosted zone you want to associate your VPC with. Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.
public AssociateVPCWithHostedZoneRequest withHostedZoneId(String hostedZoneId)
Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 32
hostedZoneId
- The ID of the hosted zone you want to associate your VPC with. Note that you cannot associate a VPC with a hosted zone that doesn't have an existing VPC association.
public VPC getVPC()
public void setVPC(VPC vPC)
vPC
- The VPC that you want your hosted zone to be associated with.public AssociateVPCWithHostedZoneRequest withVPC(VPC vPC)
Returns a reference to this object so that method calls can be chained together.
vPC
- The VPC that you want your hosted zone to be associated with.public String getComment()
AssociateVPCWithHostedZoneRequest
.AssociateVPCWithHostedZoneRequest
.public void setComment(String comment)
AssociateVPCWithHostedZoneRequest
.comment
- Optional: Any comments you want to include about a
AssociateVPCWithHostedZoneRequest
.public AssociateVPCWithHostedZoneRequest withComment(String comment)
AssociateVPCWithHostedZoneRequest
.
Returns a reference to this object so that method calls can be chained together.
comment
- Optional: Any comments you want to include about a
AssociateVPCWithHostedZoneRequest
.public String toString()
toString
in class Object
Object.toString()
public AssociateVPCWithHostedZoneRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.