Class LaunchPermissionModifications
- java.lang.Object
-
- com.amazonaws.services.ec2.model.LaunchPermissionModifications
-
- All Implemented Interfaces:
Serializable,Cloneable
public class LaunchPermissionModifications extends Object implements Serializable, Cloneable
Describes a launch permission modification.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LaunchPermissionModifications()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LaunchPermissionModificationsclone()booleanequals(Object obj)List<LaunchPermission>getAdd()The AWS account ID to add to the list of launch permissions for the AMI.List<LaunchPermission>getRemove()The AWS account ID to remove from the list of launch permissions for the AMI.inthashCode()voidsetAdd(Collection<LaunchPermission> add)The AWS account ID to add to the list of launch permissions for the AMI.voidsetRemove(Collection<LaunchPermission> remove)The AWS account ID to remove from the list of launch permissions for the AMI.StringtoString()Returns a string representation of this object; useful for testing and debugging.LaunchPermissionModificationswithAdd(LaunchPermission... add)The AWS account ID to add to the list of launch permissions for the AMI.LaunchPermissionModificationswithAdd(Collection<LaunchPermission> add)The AWS account ID to add to the list of launch permissions for the AMI.LaunchPermissionModificationswithRemove(LaunchPermission... remove)The AWS account ID to remove from the list of launch permissions for the AMI.LaunchPermissionModificationswithRemove(Collection<LaunchPermission> remove)The AWS account ID to remove from the list of launch permissions for the AMI.
-
-
-
Method Detail
-
getAdd
public List<LaunchPermission> getAdd()
The AWS account ID to add to the list of launch permissions for the AMI.
- Returns:
- The AWS account ID to add to the list of launch permissions for the AMI.
-
setAdd
public void setAdd(Collection<LaunchPermission> add)
The AWS account ID to add to the list of launch permissions for the AMI.
- Parameters:
add- The AWS account ID to add to the list of launch permissions for the AMI.
-
withAdd
public LaunchPermissionModifications withAdd(LaunchPermission... add)
The AWS account ID to add to the list of launch permissions for the AMI.
NOTE: This method appends the values to the existing list (if any). Use
setAdd(java.util.Collection)orwithAdd(java.util.Collection)if you want to override the existing values.- Parameters:
add- The AWS account ID to add to the list of launch permissions for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withAdd
public LaunchPermissionModifications withAdd(Collection<LaunchPermission> add)
The AWS account ID to add to the list of launch permissions for the AMI.
- Parameters:
add- The AWS account ID to add to the list of launch permissions for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRemove
public List<LaunchPermission> getRemove()
The AWS account ID to remove from the list of launch permissions for the AMI.
- Returns:
- The AWS account ID to remove from the list of launch permissions for the AMI.
-
setRemove
public void setRemove(Collection<LaunchPermission> remove)
The AWS account ID to remove from the list of launch permissions for the AMI.
- Parameters:
remove- The AWS account ID to remove from the list of launch permissions for the AMI.
-
withRemove
public LaunchPermissionModifications withRemove(LaunchPermission... remove)
The AWS account ID to remove from the list of launch permissions for the AMI.
NOTE: This method appends the values to the existing list (if any). Use
setRemove(java.util.Collection)orwithRemove(java.util.Collection)if you want to override the existing values.- Parameters:
remove- The AWS account ID to remove from the list of launch permissions for the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRemove
public LaunchPermissionModifications withRemove(Collection<LaunchPermission> remove)
The AWS account ID to remove from the list of launch permissions for the AMI.
- Parameters:
remove- The AWS account ID to remove from the list of launch permissions for the AMI.- 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 LaunchPermissionModifications clone()
-
-