Class PrivateIpAddressSpecification

java.lang.Object
com.amazonaws.services.ec2.model.PrivateIpAddressSpecification
All Implemented Interfaces:
Serializable, Cloneable

public class PrivateIpAddressSpecification extends Object implements Serializable, Cloneable

Describes a secondary private IP address for a network interface.

See Also:
  • Constructor Details

    • PrivateIpAddressSpecification

      public PrivateIpAddressSpecification()
  • Method Details

    • setPrivateIpAddress

      public void setPrivateIpAddress(String privateIpAddress)

      The private IP addresses.

      Parameters:
      privateIpAddress - The private IP addresses.
    • getPrivateIpAddress

      public String getPrivateIpAddress()

      The private IP addresses.

      Returns:
      The private IP addresses.
    • withPrivateIpAddress

      public PrivateIpAddressSpecification withPrivateIpAddress(String privateIpAddress)

      The private IP addresses.

      Parameters:
      privateIpAddress - The private IP addresses.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setPrimary

      public void setPrimary(Boolean primary)

      Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.

      Parameters:
      primary - Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
    • getPrimary

      public Boolean getPrimary()

      Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.

      Returns:
      Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
    • withPrimary

      public PrivateIpAddressSpecification withPrimary(Boolean primary)

      Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.

      Parameters:
      primary - Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isPrimary

      public Boolean isPrimary()

      Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.

      Returns:
      Indicates whether the private IP address is the primary private IP address. Only one IP address can be designated as primary.
    • 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

      Overrides:
      clone in class Object