@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 EC2 ModifyImageAttribute API on behalf of the user for each Region they have selected to distribute the AMI.
| Constructor and Description |
|---|
LaunchPermissionConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
LaunchPermissionConfiguration |
clone() |
boolean |
equals(Object obj) |
List<String> |
getUserGroups()
The name of the group.
|
List<String> |
getUserIds()
The AWS account ID.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setUserGroups(Collection<String> userGroups)
The name of the group.
|
void |
setUserIds(Collection<String> userIds)
The AWS account ID.
|
String |
toString()
Returns a string representation of this object.
|
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 AWS account ID.
|
LaunchPermissionConfiguration |
withUserIds(String... userIds)
The AWS account ID.
|
public void setUserIds(Collection<String> userIds)
The AWS account ID.
userIds - The AWS account ID.public LaunchPermissionConfiguration withUserIds(String... userIds)
The AWS 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 AWS account ID.public LaunchPermissionConfiguration withUserIds(Collection<String> userIds)
The AWS account ID.
userIds - The AWS 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 String toString()
toString in class ObjectObject.toString()public LaunchPermissionConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.