/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace imagebuilder { namespace Model { /** *

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.

See Also:

AWS * API Reference

*/ class LaunchPermissionConfiguration { public: AWS_IMAGEBUILDER_API LaunchPermissionConfiguration(); AWS_IMAGEBUILDER_API LaunchPermissionConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_IMAGEBUILDER_API LaunchPermissionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Web Services account ID.

*/ inline const Aws::Vector& GetUserIds() const{ return m_userIds; } /** *

The Amazon Web Services account ID.

*/ inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; } /** *

The Amazon Web Services account ID.

*/ inline void SetUserIds(const Aws::Vector& value) { m_userIdsHasBeenSet = true; m_userIds = value; } /** *

The Amazon Web Services account ID.

*/ inline void SetUserIds(Aws::Vector&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); } /** *

The Amazon Web Services account ID.

*/ inline LaunchPermissionConfiguration& WithUserIds(const Aws::Vector& value) { SetUserIds(value); return *this;} /** *

The Amazon Web Services account ID.

*/ inline LaunchPermissionConfiguration& WithUserIds(Aws::Vector&& value) { SetUserIds(std::move(value)); return *this;} /** *

The Amazon Web Services account ID.

*/ inline LaunchPermissionConfiguration& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; } /** *

The Amazon Web Services account ID.

*/ inline LaunchPermissionConfiguration& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; } /** *

The Amazon Web Services account ID.

*/ inline LaunchPermissionConfiguration& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; } /** *

The name of the group.

*/ inline const Aws::Vector& GetUserGroups() const{ return m_userGroups; } /** *

The name of the group.

*/ inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; } /** *

The name of the group.

*/ inline void SetUserGroups(const Aws::Vector& value) { m_userGroupsHasBeenSet = true; m_userGroups = value; } /** *

The name of the group.

*/ inline void SetUserGroups(Aws::Vector&& value) { m_userGroupsHasBeenSet = true; m_userGroups = std::move(value); } /** *

The name of the group.

*/ inline LaunchPermissionConfiguration& WithUserGroups(const Aws::Vector& value) { SetUserGroups(value); return *this;} /** *

The name of the group.

*/ inline LaunchPermissionConfiguration& WithUserGroups(Aws::Vector&& value) { SetUserGroups(std::move(value)); return *this;} /** *

The name of the group.

*/ inline LaunchPermissionConfiguration& AddUserGroups(const Aws::String& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; } /** *

The name of the group.

*/ inline LaunchPermissionConfiguration& AddUserGroups(Aws::String&& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(std::move(value)); return *this; } /** *

The name of the group.

*/ inline LaunchPermissionConfiguration& AddUserGroups(const char* value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; } /** *

The ARN for an Amazon Web Services Organization that you want to share your * AMI with. For more information, see What * is Organizations?.

*/ inline const Aws::Vector& GetOrganizationArns() const{ return m_organizationArns; } /** *

The ARN for an Amazon Web Services Organization that you want to share your * AMI with. For more information, see What * is Organizations?.

*/ inline bool OrganizationArnsHasBeenSet() const { return m_organizationArnsHasBeenSet; } /** *

The ARN for an Amazon Web Services Organization that you want to share your * AMI with. For more information, see What * is Organizations?.

*/ inline void SetOrganizationArns(const Aws::Vector& value) { m_organizationArnsHasBeenSet = true; m_organizationArns = value; } /** *

The ARN for an Amazon Web Services Organization that you want to share your * AMI with. For more information, see What * is Organizations?.

*/ inline void SetOrganizationArns(Aws::Vector&& value) { m_organizationArnsHasBeenSet = true; m_organizationArns = std::move(value); } /** *

The ARN for an Amazon Web Services Organization that you want to share your * AMI with. For more information, see What * is Organizations?.

*/ inline LaunchPermissionConfiguration& WithOrganizationArns(const Aws::Vector& value) { SetOrganizationArns(value); return *this;} /** *

The ARN for an Amazon Web Services Organization that you want to share your * AMI with. For more information, see What * is Organizations?.

*/ inline LaunchPermissionConfiguration& WithOrganizationArns(Aws::Vector&& value) { SetOrganizationArns(std::move(value)); return *this;} /** *

The ARN for an Amazon Web Services Organization that you want to share your * AMI with. For more information, see What * is Organizations?.

*/ inline LaunchPermissionConfiguration& AddOrganizationArns(const Aws::String& value) { m_organizationArnsHasBeenSet = true; m_organizationArns.push_back(value); return *this; } /** *

The ARN for an Amazon Web Services Organization that you want to share your * AMI with. For more information, see What * is Organizations?.

*/ inline LaunchPermissionConfiguration& AddOrganizationArns(Aws::String&& value) { m_organizationArnsHasBeenSet = true; m_organizationArns.push_back(std::move(value)); return *this; } /** *

The ARN for an Amazon Web Services Organization that you want to share your * AMI with. For more information, see What * is Organizations?.

*/ inline LaunchPermissionConfiguration& AddOrganizationArns(const char* value) { m_organizationArnsHasBeenSet = true; m_organizationArns.push_back(value); return *this; } /** *

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.

*/ inline const Aws::Vector& GetOrganizationalUnitArns() const{ return m_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.

*/ inline bool OrganizationalUnitArnsHasBeenSet() const { return m_organizationalUnitArnsHasBeenSet; } /** *

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.

*/ inline void SetOrganizationalUnitArns(const Aws::Vector& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns = value; } /** *

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.

*/ inline void SetOrganizationalUnitArns(Aws::Vector&& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns = std::move(value); } /** *

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.

*/ inline LaunchPermissionConfiguration& WithOrganizationalUnitArns(const Aws::Vector& value) { SetOrganizationalUnitArns(value); return *this;} /** *

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.

*/ inline LaunchPermissionConfiguration& WithOrganizationalUnitArns(Aws::Vector&& value) { SetOrganizationalUnitArns(std::move(value)); return *this;} /** *

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.

*/ inline LaunchPermissionConfiguration& AddOrganizationalUnitArns(const Aws::String& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns.push_back(value); return *this; } /** *

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.

*/ inline LaunchPermissionConfiguration& AddOrganizationalUnitArns(Aws::String&& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns.push_back(std::move(value)); return *this; } /** *

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.

*/ inline LaunchPermissionConfiguration& AddOrganizationalUnitArns(const char* value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns.push_back(value); return *this; } private: Aws::Vector m_userIds; bool m_userIdsHasBeenSet = false; Aws::Vector m_userGroups; bool m_userGroupsHasBeenSet = false; Aws::Vector m_organizationArns; bool m_organizationArnsHasBeenSet = false; Aws::Vector m_organizationalUnitArns; bool m_organizationalUnitArnsHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws