/** * 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 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 EC2 * ModifyImageAttribute.

See Also:

AWS * API Reference

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

The AWS account ID.

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

The AWS account ID.

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

The AWS account ID.

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

The AWS account ID.

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

The AWS account ID.

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

The AWS account ID.

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

The AWS account ID.

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

The AWS account ID.

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

The AWS 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; } private: Aws::Vector m_userIds; bool m_userIdsHasBeenSet; Aws::Vector m_userGroups; bool m_userGroupsHasBeenSet; }; } // namespace Model } // namespace imagebuilder } // namespace Aws