Package com.amazonaws.services.ec2.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PrivateIpAddressSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrivateIpAddressSpecification
clone()
boolean
equals(Object obj)
Boolean
getPrimary()
Indicates whether the private IP address is the primary private IP address.String
getPrivateIpAddress()
The private IP addresses.int
hashCode()
Boolean
isPrimary()
Indicates whether the private IP address is the primary private IP address.void
setPrimary(Boolean primary)
Indicates whether the private IP address is the primary private IP address.void
setPrivateIpAddress(String privateIpAddress)
The private IP addresses.String
toString()
Returns a string representation of this object; useful for testing and debugging.PrivateIpAddressSpecification
withPrimary(Boolean primary)
Indicates whether the private IP address is the primary private IP address.PrivateIpAddressSpecification
withPrivateIpAddress(String privateIpAddress)
The private IP addresses.
-
-
-
Method Detail
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PrivateIpAddressSpecification clone()
-
-