AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
LaunchPermissionConfiguration.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace imagebuilder
23{
24namespace Model
25{
26
41 {
42 public:
43 AWS_IMAGEBUILDER_API LaunchPermissionConfiguration();
46 AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::Vector<Aws::String>& GetUserIds() const{ return m_userIds; }
54 inline bool UserIdsHasBeenSet() const { return m_userIdsHasBeenSet; }
55 inline void SetUserIds(const Aws::Vector<Aws::String>& value) { m_userIdsHasBeenSet = true; m_userIds = value; }
56 inline void SetUserIds(Aws::Vector<Aws::String>&& value) { m_userIdsHasBeenSet = true; m_userIds = std::move(value); }
58 inline LaunchPermissionConfiguration& WithUserIds(Aws::Vector<Aws::String>&& value) { SetUserIds(std::move(value)); return *this;}
59 inline LaunchPermissionConfiguration& AddUserIds(const Aws::String& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
60 inline LaunchPermissionConfiguration& AddUserIds(Aws::String&& value) { m_userIdsHasBeenSet = true; m_userIds.push_back(std::move(value)); return *this; }
61 inline LaunchPermissionConfiguration& AddUserIds(const char* value) { m_userIdsHasBeenSet = true; m_userIds.push_back(value); return *this; }
63
65
68 inline const Aws::Vector<Aws::String>& GetUserGroups() const{ return m_userGroups; }
69 inline bool UserGroupsHasBeenSet() const { return m_userGroupsHasBeenSet; }
70 inline void SetUserGroups(const Aws::Vector<Aws::String>& value) { m_userGroupsHasBeenSet = true; m_userGroups = value; }
71 inline void SetUserGroups(Aws::Vector<Aws::String>&& value) { m_userGroupsHasBeenSet = true; m_userGroups = std::move(value); }
73 inline LaunchPermissionConfiguration& WithUserGroups(Aws::Vector<Aws::String>&& value) { SetUserGroups(std::move(value)); return *this;}
74 inline LaunchPermissionConfiguration& AddUserGroups(const Aws::String& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; }
75 inline LaunchPermissionConfiguration& AddUserGroups(Aws::String&& value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(std::move(value)); return *this; }
76 inline LaunchPermissionConfiguration& AddUserGroups(const char* value) { m_userGroupsHasBeenSet = true; m_userGroups.push_back(value); return *this; }
78
80
86 inline const Aws::Vector<Aws::String>& GetOrganizationArns() const{ return m_organizationArns; }
87 inline bool OrganizationArnsHasBeenSet() const { return m_organizationArnsHasBeenSet; }
88 inline void SetOrganizationArns(const Aws::Vector<Aws::String>& value) { m_organizationArnsHasBeenSet = true; m_organizationArns = value; }
89 inline void SetOrganizationArns(Aws::Vector<Aws::String>&& value) { m_organizationArnsHasBeenSet = true; m_organizationArns = std::move(value); }
92 inline LaunchPermissionConfiguration& AddOrganizationArns(const Aws::String& value) { m_organizationArnsHasBeenSet = true; m_organizationArns.push_back(value); return *this; }
93 inline LaunchPermissionConfiguration& AddOrganizationArns(Aws::String&& value) { m_organizationArnsHasBeenSet = true; m_organizationArns.push_back(std::move(value)); return *this; }
94 inline LaunchPermissionConfiguration& AddOrganizationArns(const char* value) { m_organizationArnsHasBeenSet = true; m_organizationArns.push_back(value); return *this; }
96
98
104 inline const Aws::Vector<Aws::String>& GetOrganizationalUnitArns() const{ return m_organizationalUnitArns; }
105 inline bool OrganizationalUnitArnsHasBeenSet() const { return m_organizationalUnitArnsHasBeenSet; }
106 inline void SetOrganizationalUnitArns(const Aws::Vector<Aws::String>& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns = value; }
107 inline void SetOrganizationalUnitArns(Aws::Vector<Aws::String>&& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns = std::move(value); }
110 inline LaunchPermissionConfiguration& AddOrganizationalUnitArns(const Aws::String& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns.push_back(value); return *this; }
111 inline LaunchPermissionConfiguration& AddOrganizationalUnitArns(Aws::String&& value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns.push_back(std::move(value)); return *this; }
112 inline LaunchPermissionConfiguration& AddOrganizationalUnitArns(const char* value) { m_organizationalUnitArnsHasBeenSet = true; m_organizationalUnitArns.push_back(value); return *this; }
114 private:
115
116 Aws::Vector<Aws::String> m_userIds;
117 bool m_userIdsHasBeenSet = false;
118
119 Aws::Vector<Aws::String> m_userGroups;
120 bool m_userGroupsHasBeenSet = false;
121
122 Aws::Vector<Aws::String> m_organizationArns;
123 bool m_organizationArnsHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_organizationalUnitArns;
126 bool m_organizationalUnitArnsHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace imagebuilder
131} // namespace Aws
LaunchPermissionConfiguration & WithOrganizationArns(const Aws::Vector< Aws::String > &value)
LaunchPermissionConfiguration & AddOrganizationalUnitArns(const char *value)
LaunchPermissionConfiguration & AddUserIds(const char *value)
void SetOrganizationArns(const Aws::Vector< Aws::String > &value)
LaunchPermissionConfiguration & AddOrganizationArns(Aws::String &&value)
LaunchPermissionConfiguration & WithUserGroups(const Aws::Vector< Aws::String > &value)
LaunchPermissionConfiguration & WithUserIds(Aws::Vector< Aws::String > &&value)
LaunchPermissionConfiguration & AddOrganizationalUnitArns(Aws::String &&value)
LaunchPermissionConfiguration & AddUserGroups(const Aws::String &value)
LaunchPermissionConfiguration & WithOrganizationArns(Aws::Vector< Aws::String > &&value)
AWS_IMAGEBUILDER_API LaunchPermissionConfiguration(Aws::Utils::Json::JsonView jsonValue)
LaunchPermissionConfiguration & WithUserGroups(Aws::Vector< Aws::String > &&value)
LaunchPermissionConfiguration & AddUserGroups(Aws::String &&value)
LaunchPermissionConfiguration & AddOrganizationArns(const Aws::String &value)
LaunchPermissionConfiguration & WithUserIds(const Aws::Vector< Aws::String > &value)
LaunchPermissionConfiguration & WithOrganizationalUnitArns(Aws::Vector< Aws::String > &&value)
LaunchPermissionConfiguration & AddOrganizationalUnitArns(const Aws::String &value)
AWS_IMAGEBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetOrganizationalUnitArns() const
LaunchPermissionConfiguration & AddOrganizationArns(const char *value)
void SetUserGroups(const Aws::Vector< Aws::String > &value)
LaunchPermissionConfiguration & AddUserGroups(const char *value)
void SetOrganizationalUnitArns(const Aws::Vector< Aws::String > &value)
LaunchPermissionConfiguration & AddUserIds(const Aws::String &value)
AWS_IMAGEBUILDER_API LaunchPermissionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
LaunchPermissionConfiguration & WithOrganizationalUnitArns(const Aws::Vector< Aws::String > &value)
LaunchPermissionConfiguration & AddUserIds(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue