Class ModifyVpcAttributeRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.ModifyVpcAttributeRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<ModifyVpcAttributeRequest>, Serializable, Cloneable

public class ModifyVpcAttributeRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyVpcAttributeRequest>

Contains the parameters for ModifyVpcAttribute.

See Also:
  • Constructor Details

    • ModifyVpcAttributeRequest

      public ModifyVpcAttributeRequest()
  • Method Details

    • setVpcId

      public void setVpcId(String vpcId)

      The ID of the VPC.

      Parameters:
      vpcId - The ID of the VPC.
    • getVpcId

      public String getVpcId()

      The ID of the VPC.

      Returns:
      The ID of the VPC.
    • withVpcId

      public ModifyVpcAttributeRequest withVpcId(String vpcId)

      The ID of the VPC.

      Parameters:
      vpcId - The ID of the VPC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setEnableDnsSupport

      public void setEnableDnsSupport(Boolean enableDnsSupport)

      Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

      Parameters:
      enableDnsSupport - Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

    • getEnableDnsSupport

      public Boolean getEnableDnsSupport()

      Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

      Returns:
      Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

    • withEnableDnsSupport

      public ModifyVpcAttributeRequest withEnableDnsSupport(Boolean enableDnsSupport)

      Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

      Parameters:
      enableDnsSupport - Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isEnableDnsSupport

      public Boolean isEnableDnsSupport()

      Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

      Returns:
      Indicates whether the DNS resolution is supported for the VPC. If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" will succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute.

    • setEnableDnsHostnames

      public void setEnableDnsHostnames(Boolean enableDnsHostnames)

      Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

      Parameters:
      enableDnsHostnames - Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

    • getEnableDnsHostnames

      public Boolean getEnableDnsHostnames()

      Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

      Returns:
      Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

    • withEnableDnsHostnames

      public ModifyVpcAttributeRequest withEnableDnsHostnames(Boolean enableDnsHostnames)

      Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

      Parameters:
      enableDnsHostnames - Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isEnableDnsHostnames

      public Boolean isEnableDnsHostnames()

      Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

      Returns:
      Indicates whether the instances launched in the VPC get DNS hostnames. If enabled, instances in the VPC get DNS hostnames; otherwise, they do not.

      You cannot modify the DNS resolution and DNS hostnames attributes in the same request. Use separate requests for each attribute. You can only enable DNS hostnames if you've enabled DNS support.

    • getDryRunRequest

      public Request<ModifyVpcAttributeRequest> getDryRunRequest()
      This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.
      Specified by:
      getDryRunRequest in interface DryRunSupportedRequest<ModifyVpcAttributeRequest>
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public ModifyVpcAttributeRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: