Package com.amazonaws.services.ec2.model
Class ScheduledInstancesPrivateIpAddressConfig
- java.lang.Object
-
- com.amazonaws.services.ec2.model.ScheduledInstancesPrivateIpAddressConfig
-
- All Implemented Interfaces:
Serializable,Cloneable
public class ScheduledInstancesPrivateIpAddressConfig extends Object implements Serializable, Cloneable
Describes a private IP address for a Scheduled Instance.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScheduledInstancesPrivateIpAddressConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScheduledInstancesPrivateIpAddressConfigclone()booleanequals(Object obj)BooleangetPrimary()Indicates whether this is a primary IP address.StringgetPrivateIpAddress()The IP address.inthashCode()BooleanisPrimary()Indicates whether this is a primary IP address.voidsetPrimary(Boolean primary)Indicates whether this is a primary IP address.voidsetPrivateIpAddress(String privateIpAddress)The IP address.StringtoString()Returns a string representation of this object; useful for testing and debugging.ScheduledInstancesPrivateIpAddressConfigwithPrimary(Boolean primary)Indicates whether this is a primary IP address.ScheduledInstancesPrivateIpAddressConfigwithPrivateIpAddress(String privateIpAddress)The IP address.
-
-
-
Method Detail
-
setPrivateIpAddress
public void setPrivateIpAddress(String privateIpAddress)
The IP address.
- Parameters:
privateIpAddress- The IP address.
-
getPrivateIpAddress
public String getPrivateIpAddress()
The IP address.
- Returns:
- The IP address.
-
withPrivateIpAddress
public ScheduledInstancesPrivateIpAddressConfig withPrivateIpAddress(String privateIpAddress)
The IP address.
- Parameters:
privateIpAddress- The IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPrimary
public void setPrimary(Boolean primary)
Indicates whether this is a primary IP address. Otherwise, this is a secondary IP address.
- Parameters:
primary- Indicates whether this is a primary IP address. Otherwise, this is a secondary IP address.
-
getPrimary
public Boolean getPrimary()
Indicates whether this is a primary IP address. Otherwise, this is a secondary IP address.
- Returns:
- Indicates whether this is a primary IP address. Otherwise, this is a secondary IP address.
-
withPrimary
public ScheduledInstancesPrivateIpAddressConfig withPrimary(Boolean primary)
Indicates whether this is a primary IP address. Otherwise, this is a secondary IP address.
- Parameters:
primary- Indicates whether this is a primary IP address. Otherwise, this is a secondary IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPrimary
public Boolean isPrimary()
Indicates whether this is a primary IP address. Otherwise, this is a secondary IP address.
- Returns:
- Indicates whether this is a primary IP address. Otherwise, this is a secondary IP address.
-
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 ScheduledInstancesPrivateIpAddressConfig clone()
-
-