/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.imagebuilder.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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.
*
* The Amazon Web Services account ID. *
*/ private java.util.List* The name of the group. *
*/ private java.util.List* The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see * What is * Organizations?. *
*/ private java.util.List* 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. *
*/ private java.util.List* The Amazon Web Services account ID. *
* * @return The Amazon Web Services account ID. */ public java.util.List* The Amazon Web Services account ID. *
* * @param userIds * The Amazon Web Services account ID. */ public void setUserIds(java.util.Collection* The Amazon Web Services account ID. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserIds(java.util.Collection)} or {@link #withUserIds(java.util.Collection)} if you want to override * the existing values. *
* * @param userIds * The Amazon Web Services account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchPermissionConfiguration withUserIds(String... userIds) { if (this.userIds == null) { setUserIds(new java.util.ArrayList* The Amazon Web Services account ID. *
* * @param userIds * The Amazon Web Services account ID. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchPermissionConfiguration withUserIds(java.util.Collection* The name of the group. *
* * @return The name of the group. */ public java.util.List* The name of the group. *
* * @param userGroups * The name of the group. */ public void setUserGroups(java.util.Collection* The name of the group. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUserGroups(java.util.Collection)} or {@link #withUserGroups(java.util.Collection)} if you want to * override the existing values. *
* * @param userGroups * The name of the group. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchPermissionConfiguration withUserGroups(String... userGroups) { if (this.userGroups == null) { setUserGroups(new java.util.ArrayList* The name of the group. *
* * @param userGroups * The name of the group. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchPermissionConfiguration withUserGroups(java.util.Collection* The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see * What is * Organizations?. *
* * @return The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more * information, see What is * Organizations?. */ public java.util.List* The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see * What is * Organizations?. *
* * @param 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 void setOrganizationArns(java.util.Collection* 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 * {@link #setOrganizationArns(java.util.Collection)} or {@link #withOrganizationArns(java.util.Collection)} if you * want to override the existing values. *
* * @param organizationArns * The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more * information, see What is * Organizations?. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchPermissionConfiguration withOrganizationArns(String... organizationArns) { if (this.organizationArns == null) { setOrganizationArns(new java.util.ArrayList* The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more information, see * What is * Organizations?. *
* * @param organizationArns * The ARN for an Amazon Web Services Organization that you want to share your AMI with. For more * information, see What is * Organizations?. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchPermissionConfiguration withOrganizationArns(java.util.Collection* 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. *
* * @return 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 java.util.List* 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. *
* * @param 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 void setOrganizationalUnitArns(java.util.Collection* 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 * {@link #setOrganizationalUnitArns(java.util.Collection)} or * {@link #withOrganizationalUnitArns(java.util.Collection)} if you want to override the existing values. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchPermissionConfiguration withOrganizationalUnitArns(String... organizationalUnitArns) { if (this.organizationalUnitArns == null) { setOrganizationalUnitArns(new java.util.ArrayList* 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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public LaunchPermissionConfiguration withOrganizationalUnitArns(java.util.Collection