com.amazonaws.services.ec2.model

## クラス AssociateDhcpOptionsRequest

- java.lang.Object
- - com.amazonaws.AmazonWebServiceRequest
  - - com.amazonaws.services.ec2.model.AssociateDhcpOptionsRequest

- すべての実装されたインタフェース:
    java.io.Serializable

      public class AssociateDhcpOptionsRequest
      extends AmazonWebServiceRequest
      implements java.io.Serializable

  Container for the parameters to the `AssociateDhcpOptions operation`.

  Associates a set of DHCP options (that you've previously created) with the specified VPC. Or, associates the default DHCP options with the VPC. The default set consists of the standard EC2 host name, no domain name, no DNS server, no NTP server, and no NetBIOS server or node type. After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. For more information about the supported DHCP options and using them with Amazon VPC, go to Using DHCP Options in the Amazon Virtual Private Cloud Developer Guide.

  関連項目:
    `AmazonEC2.associateDhcpOptions(AssociateDhcpOptionsRequest)`, 直列化された形式

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `AssociateDhcpOptionsRequest()` Default constructor for a new AssociateDhcpOptionsRequest object.
    `AssociateDhcpOptionsRequest(java.lang.String vpcId)` Constructs a new AssociateDhcpOptionsRequest object.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `equals(java.lang.Object obj)`
    `java.lang.String` | `getDhcpOptionsId()` The ID of the DHCP options to associate with the VPC.
    `java.lang.String` | `getVpcId()` The ID of the VPC to associate the DHCP options with.
    `int` | `hashCode()`
    `void` | `setDhcpOptionsId(java.lang.String dhcpOptionsId)` The ID of the DHCP options to associate with the VPC.
    `void` | `setVpcId(java.lang.String vpcId)` The ID of the VPC to associate the DHCP options with.
    `java.lang.String` | `toString()` Returns a string representation of this object; useful for testing and debugging.
    `AssociateDhcpOptionsRequest` | `withDhcpOptionsId(java.lang.String dhcpOptionsId)` The ID of the DHCP options to associate with the VPC.
    `AssociateDhcpOptionsRequest` | `withVpcId(java.lang.String vpcId)` The ID of the VPC to associate the DHCP options with.

    - ### クラスから継承されたメソッド com.amazonaws.AmazonWebServiceRequest

      `copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### AssociateDhcpOptionsRequest

          public AssociateDhcpOptionsRequest()

      Default constructor for a new AssociateDhcpOptionsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.

    - #### AssociateDhcpOptionsRequest

          public AssociateDhcpOptionsRequest(java.lang.String vpcId)

      Constructs a new AssociateDhcpOptionsRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      パラメータ:
        `vpcId` - The ID of the VPC to associate the DHCP options with.

  - ### メソッドの詳細

    - #### getDhcpOptionsId

          public java.lang.String getDhcpOptionsId()

      The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.
      戻り値:
        The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.

    - #### setDhcpOptionsId

          public void setDhcpOptionsId(java.lang.String dhcpOptionsId)

      The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.
      パラメータ:
        `dhcpOptionsId` - The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.

    - #### withDhcpOptionsId

          public AssociateDhcpOptionsRequest withDhcpOptionsId(java.lang.String dhcpOptionsId)

      The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.

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

      パラメータ:
        `dhcpOptionsId` - The ID of the DHCP options to associate with the VPC. Specify "default" to associate the default DHCP options with the VPC.

    - #### getVpcId

          public java.lang.String getVpcId()

      The ID of the VPC to associate the DHCP options with.
      戻り値:
        The ID of the VPC to associate the DHCP options with.

    - #### setVpcId

          public void setVpcId(java.lang.String vpcId)

      The ID of the VPC to associate the DHCP options with.
      パラメータ:
        `vpcId` - The ID of the VPC to associate the DHCP options with.

    - #### withVpcId

          public AssociateDhcpOptionsRequest withVpcId(java.lang.String vpcId)

      The ID of the VPC to associate the DHCP options with.

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

      パラメータ:
        `vpcId` - The ID of the VPC to associate the DHCP options with.

    - #### toString

          public java.lang.String toString()

      Returns a string representation of this object; useful for testing and debugging.
      オーバーライド:
        `toString` クラス内 `java.lang.Object`
      戻り値:
        A string representation of this object.
      関連項目:
        `Object.toString()`

    - #### hashCode

          public int hashCode()

      オーバーライド:
        `hashCode` クラス内 `java.lang.Object`

    - #### equals

          public boolean equals(java.lang.Object obj)

      オーバーライド:
        `equals` クラス内 `java.lang.Object`