@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchPermissionConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Describes the configuration for a launch permission. The launch permission modification request is sent to the Amazon EC2
ModifyImageAttribute API on behalf of the user for each Region they have selected to distribute the AMI. To make
an AMI public, set the launch permission authorized accounts to all
. See the examples for making an AMI
public at Amazon EC2
ModifyImageAttribute.
Constructor and Description |
---|
LaunchPermissionConfiguration() |
Modifier and Type | Method and Description |
---|---|
LaunchPermissionConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getOrganizationalUnitArns()
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with.
|
List<String> |
getOrganizationArns()
The ARN for an Amazon Web Services Organization that you want to share your AMI with.
|
List<String> |
getUserGroups()
The name of the group.
|
List<String> |
getUserIds()
The Amazon Web Services account ID.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setOrganizationalUnitArns(Collection<String> organizationalUnitArns)
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with.
|
void |
setOrganizationArns(Collection<String> organizationArns)
The ARN for an Amazon Web Services Organization that you want to share your AMI with.
|
void |
setUserGroups(Collection<String> userGroups)
The name of the group.
|
void |
setUserIds(Collection<String> userIds)
The Amazon Web Services account ID.
|
String |
toString()
Returns a string representation of this object.
|
LaunchPermissionConfiguration |
withOrganizationalUnitArns(Collection<String> organizationalUnitArns)
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with.
|
LaunchPermissionConfiguration |
withOrganizationalUnitArns(String... organizationalUnitArns)
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with.
|
LaunchPermissionConfiguration |
withOrganizationArns(Collection<String> organizationArns)
The ARN for an Amazon Web Services Organization that you want to share your AMI with.
|
LaunchPermissionConfiguration |
withOrganizationArns(String... organizationArns)
The ARN for an Amazon Web Services Organization that you want to share your AMI with.
|
LaunchPermissionConfiguration |
withUserGroups(Collection<String> userGroups)
The name of the group.
|
LaunchPermissionConfiguration |
withUserGroups(String... userGroups)
The name of the group.
|
LaunchPermissionConfiguration |
withUserIds(Collection<String> userIds)
The Amazon Web Services account ID.
|
LaunchPermissionConfiguration |
withUserIds(String... userIds)
The Amazon Web Services account ID.
|
public List<String> getUserIds()
The Amazon Web Services account ID.
public void setUserIds(Collection<String> userIds)
The Amazon Web Services account ID.
userIds
- The Amazon Web Services account ID.public LaunchPermissionConfiguration withUserIds(String... userIds)
The Amazon Web Services account ID.
NOTE: This method appends the values to the existing list (if any). Use
setUserIds(java.util.Collection)
or withUserIds(java.util.Collection)
if you want to override
the existing values.
userIds
- The Amazon Web Services account ID.public LaunchPermissionConfiguration withUserIds(Collection<String> userIds)
The Amazon Web Services account ID.
userIds
- The Amazon Web Services account ID.public List<String> getUserGroups()
The name of the group.
public void setUserGroups(Collection<String> userGroups)
The name of the group.
userGroups
- The name of the group.public LaunchPermissionConfiguration withUserGroups(String... userGroups)
The name of the group.
NOTE: This method appends the values to the existing list (if any). Use
setUserGroups(java.util.Collection)
or withUserGroups(java.util.Collection)
if you want to
override the existing values.
userGroups
- The name of the group.public LaunchPermissionConfiguration withUserGroups(Collection<String> userGroups)
The name of the group.
userGroups
- The name of the group.public List<String> getOrganizationArns()
The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see What is Organizations?.
public void setOrganizationArns(Collection<String> organizationArns)
The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see What is Organizations?.
organizationArns
- The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more
information, see What is
Organizations?.public LaunchPermissionConfiguration withOrganizationArns(String... organizationArns)
The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see What is Organizations?.
NOTE: This method appends the values to the existing list (if any). Use
setOrganizationArns(java.util.Collection)
or withOrganizationArns(java.util.Collection)
if you
want to override the existing values.
organizationArns
- The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more
information, see What is
Organizations?.public LaunchPermissionConfiguration withOrganizationArns(Collection<String> organizationArns)
The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see What is Organizations?.
organizationArns
- The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more
information, see What is
Organizations?.public List<String> getOrganizationalUnitArns()
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for Organizations, see Organizations terminology and concepts.
public void setOrganizationalUnitArns(Collection<String> organizationalUnitArns)
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for Organizations, see Organizations terminology and concepts.
organizationalUnitArns
- The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more
information about key concepts for Organizations, see Organizations terminology and concepts.public LaunchPermissionConfiguration withOrganizationalUnitArns(String... organizationalUnitArns)
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for Organizations, see Organizations terminology and concepts.
NOTE: This method appends the values to the existing list (if any). Use
setOrganizationalUnitArns(java.util.Collection)
or
withOrganizationalUnitArns(java.util.Collection)
if you want to override the existing values.
organizationalUnitArns
- The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more
information about key concepts for Organizations, see Organizations terminology and concepts.public LaunchPermissionConfiguration withOrganizationalUnitArns(Collection<String> organizationalUnitArns)
The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more information about key concepts for Organizations, see Organizations terminology and concepts.
organizationalUnitArns
- The ARN for an Organizations organizational unit (OU) that you want to share your AMI with. For more
information about key concepts for Organizations, see Organizations terminology and concepts.public String toString()
toString
in class Object
Object.toString()
public LaunchPermissionConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.