public class LaunchPermissionModifications
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a launch permission modification.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<LaunchPermission> |
add
The AWS account ID to add to the list of launch permissions for the AMI.
|
private SdkInternalList<LaunchPermission> |
remove
The AWS account ID to remove from the list of launch permissions for the
AMI.
|
Constructor and Description |
---|
LaunchPermissionModifications() |
Modifier and Type | Method and Description |
---|---|
LaunchPermissionModifications |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<LaunchPermission> |
getAdd()
The AWS account ID to add to the list of launch permissions for the AMI.
|
java.util.List<LaunchPermission> |
getRemove()
The AWS account ID to remove from the list of launch permissions for the
AMI.
|
int |
hashCode() |
void |
setAdd(java.util.Collection<LaunchPermission> add)
The AWS account ID to add to the list of launch permissions for the AMI.
|
void |
setRemove(java.util.Collection<LaunchPermission> remove)
The AWS account ID to remove from the list of launch permissions for the
AMI.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LaunchPermissionModifications |
withAdd(java.util.Collection<LaunchPermission> add)
The AWS account ID to add to the list of launch permissions for the AMI.
|
LaunchPermissionModifications |
withAdd(LaunchPermission... add)
The AWS account ID to add to the list of launch permissions for the AMI.
|
LaunchPermissionModifications |
withRemove(java.util.Collection<LaunchPermission> remove)
The AWS account ID to remove from the list of launch permissions for the
AMI.
|
LaunchPermissionModifications |
withRemove(LaunchPermission... remove)
The AWS account ID to remove from the list of launch permissions for the
AMI.
|
private SdkInternalList<LaunchPermission> add
The AWS account ID to add to the list of launch permissions for the AMI.
private SdkInternalList<LaunchPermission> remove
The AWS account ID to remove from the list of launch permissions for the AMI.
public java.util.List<LaunchPermission> getAdd()
The AWS account ID to add to the list of launch permissions for the AMI.
public void setAdd(java.util.Collection<LaunchPermission> add)
The AWS account ID to add to the list of launch permissions for the AMI.
add
- The AWS account ID to add to the list of launch permissions for
the AMI.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)
or
withAdd(java.util.Collection)
if you want to override the
existing values.
add
- The AWS account ID to add to the list of launch permissions for
the AMI.public LaunchPermissionModifications withAdd(java.util.Collection<LaunchPermission> add)
The AWS account ID to add to the list of launch permissions for the AMI.
add
- The AWS account ID to add to the list of launch permissions for
the AMI.public java.util.List<LaunchPermission> getRemove()
The AWS account ID to remove from the list of launch permissions for the AMI.
public void setRemove(java.util.Collection<LaunchPermission> remove)
The AWS account ID to remove from the list of launch permissions for the AMI.
remove
- The AWS account ID to remove from the list of launch permissions
for the AMI.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)
or
withRemove(java.util.Collection)
if you want to override the
existing values.
remove
- The AWS account ID to remove from the list of launch permissions
for the AMI.public LaunchPermissionModifications withRemove(java.util.Collection<LaunchPermission> remove)
The AWS account ID to remove from the list of launch permissions for the AMI.
remove
- The AWS account ID to remove from the list of launch permissions
for the AMI.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public LaunchPermissionModifications clone()
clone
in class java.lang.Object