AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
AccountScope.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/acm/model/AccountScopeMode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ACM {
22namespace Model {
23
33 public:
34 AWS_ACM_API AccountScope() = default;
38
40
43 inline AccountScopeMode GetMode() const { return m_mode; }
44 inline bool ModeHasBeenSet() const { return m_modeHasBeenSet; }
45 inline void SetMode(AccountScopeMode value) {
46 m_modeHasBeenSet = true;
47 m_mode = value;
48 }
50 SetMode(value);
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetOrganizationalUnitIds() const { return m_organizationalUnitIds; }
60 inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; }
61 template <typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
62 void SetOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
63 m_organizationalUnitIdsHasBeenSet = true;
64 m_organizationalUnitIds = std::forward<OrganizationalUnitIdsT>(value);
65 }
66 template <typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
67 AccountScope& WithOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
68 SetOrganizationalUnitIds(std::forward<OrganizationalUnitIdsT>(value));
69 return *this;
70 }
71 template <typename OrganizationalUnitIdsT = Aws::String>
72 AccountScope& AddOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
73 m_organizationalUnitIdsHasBeenSet = true;
74 m_organizationalUnitIds.emplace_back(std::forward<OrganizationalUnitIdsT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
84 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
85 template <typename AccountIdsT = Aws::Vector<Aws::String>>
86 void SetAccountIds(AccountIdsT&& value) {
87 m_accountIdsHasBeenSet = true;
88 m_accountIds = std::forward<AccountIdsT>(value);
89 }
90 template <typename AccountIdsT = Aws::Vector<Aws::String>>
91 AccountScope& WithAccountIds(AccountIdsT&& value) {
92 SetAccountIds(std::forward<AccountIdsT>(value));
93 return *this;
94 }
95 template <typename AccountIdsT = Aws::String>
96 AccountScope& AddAccountIds(AccountIdsT&& value) {
97 m_accountIdsHasBeenSet = true;
98 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
99 return *this;
100 }
102 private:
104
105 Aws::Vector<Aws::String> m_organizationalUnitIds;
106
107 Aws::Vector<Aws::String> m_accountIds;
108 bool m_modeHasBeenSet = false;
109 bool m_organizationalUnitIdsHasBeenSet = false;
110 bool m_accountIdsHasBeenSet = false;
111};
112
113} // namespace Model
114} // namespace ACM
115} // namespace Aws
AWS_ACM_API AccountScope & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountScopeMode GetMode() const
void SetOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
void SetAccountIds(AccountIdsT &&value)
AccountScope & AddOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
AccountScope & AddAccountIds(AccountIdsT &&value)
bool OrganizationalUnitIdsHasBeenSet() const
AccountScope & WithOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
void SetMode(AccountScopeMode value)
AccountScope & WithMode(AccountScopeMode value)
const Aws::Vector< Aws::String > & GetOrganizationalUnitIds() const
const Aws::Vector< Aws::String > & GetAccountIds() const
AWS_ACM_API AccountScope(Aws::Utils::Json::JsonView jsonValue)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
AccountScope & WithAccountIds(AccountIdsT &&value)
AWS_ACM_API AccountScope()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue