Class InstancePrivateIpAddress
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstancePrivateIpAddress
-
- All Implemented Interfaces:
Serializable,Cloneable
public class InstancePrivateIpAddress extends Object implements Serializable, Cloneable
Describes a private IP address.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstancePrivateIpAddress()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancePrivateIpAddressclone()booleanequals(Object obj)InstanceNetworkInterfaceAssociationgetAssociation()The association information for an Elastic IP address for the network interface.BooleangetPrimary()Indicates whether this IP address is the primary private IP address of the network interface.StringgetPrivateDnsName()The private DNS name.StringgetPrivateIpAddress()The private IP address of the network interface.inthashCode()BooleanisPrimary()Indicates whether this IP address is the primary private IP address of the network interface.voidsetAssociation(InstanceNetworkInterfaceAssociation association)The association information for an Elastic IP address for the network interface.voidsetPrimary(Boolean primary)Indicates whether this IP address is the primary private IP address of the network interface.voidsetPrivateDnsName(String privateDnsName)The private DNS name.voidsetPrivateIpAddress(String privateIpAddress)The private IP address of the network interface.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstancePrivateIpAddresswithAssociation(InstanceNetworkInterfaceAssociation association)The association information for an Elastic IP address for the network interface.InstancePrivateIpAddresswithPrimary(Boolean primary)Indicates whether this IP address is the primary private IP address of the network interface.InstancePrivateIpAddresswithPrivateDnsName(String privateDnsName)The private DNS name.InstancePrivateIpAddresswithPrivateIpAddress(String privateIpAddress)The private IP address of the network interface.
-
-
-
Method Detail
-
setPrivateIpAddress
public void setPrivateIpAddress(String privateIpAddress)
The private IP address of the network interface.
- Parameters:
privateIpAddress- The private IP address of the network interface.
-
getPrivateIpAddress
public String getPrivateIpAddress()
The private IP address of the network interface.
- Returns:
- The private IP address of the network interface.
-
withPrivateIpAddress
public InstancePrivateIpAddress withPrivateIpAddress(String privateIpAddress)
The private IP address of the network interface.
- Parameters:
privateIpAddress- The private IP address of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrivateDnsName
public void setPrivateDnsName(String privateDnsName)
The private DNS name.
- Parameters:
privateDnsName- The private DNS name.
-
getPrivateDnsName
public String getPrivateDnsName()
The private DNS name.
- Returns:
- The private DNS name.
-
withPrivateDnsName
public InstancePrivateIpAddress withPrivateDnsName(String privateDnsName)
The private DNS name.
- Parameters:
privateDnsName- The private DNS name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrimary
public void setPrimary(Boolean primary)
Indicates whether this IP address is the primary private IP address of the network interface.
- Parameters:
primary- Indicates whether this IP address is the primary private IP address of the network interface.
-
getPrimary
public Boolean getPrimary()
Indicates whether this IP address is the primary private IP address of the network interface.
- Returns:
- Indicates whether this IP address is the primary private IP address of the network interface.
-
withPrimary
public InstancePrivateIpAddress withPrimary(Boolean primary)
Indicates whether this IP address is the primary private IP address of the network interface.
- Parameters:
primary- Indicates whether this IP address is the primary private IP address of the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPrimary
public Boolean isPrimary()
Indicates whether this IP address is the primary private IP address of the network interface.
- Returns:
- Indicates whether this IP address is the primary private IP address of the network interface.
-
setAssociation
public void setAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP address for the network interface.
- Parameters:
association- The association information for an Elastic IP address for the network interface.
-
getAssociation
public InstanceNetworkInterfaceAssociation getAssociation()
The association information for an Elastic IP address for the network interface.
- Returns:
- The association information for an Elastic IP address for the network interface.
-
withAssociation
public InstancePrivateIpAddress withAssociation(InstanceNetworkInterfaceAssociation association)
The association information for an Elastic IP address for the network interface.
- Parameters:
association- The association information for an Elastic IP address for the network interface.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstancePrivateIpAddress clone()
-
-