AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
DeploymentTargets.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/AccountFilterType.h>
9#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFormation {
22namespace Model {
23
38 public:
39 AWS_CLOUDFORMATION_API DeploymentTargets() = default;
40 AWS_CLOUDFORMATION_API DeploymentTargets(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDFORMATION_API DeploymentTargets& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
47
54 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
55 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
56 template <typename AccountsT = Aws::Vector<Aws::String>>
57 void SetAccounts(AccountsT&& value) {
58 m_accountsHasBeenSet = true;
59 m_accounts = std::forward<AccountsT>(value);
60 }
61 template <typename AccountsT = Aws::Vector<Aws::String>>
62 DeploymentTargets& WithAccounts(AccountsT&& value) {
63 SetAccounts(std::forward<AccountsT>(value));
64 return *this;
65 }
66 template <typename AccountsT = Aws::String>
67 DeploymentTargets& AddAccounts(AccountsT&& value) {
68 m_accountsHasBeenSet = true;
69 m_accounts.emplace_back(std::forward<AccountsT>(value));
70 return *this;
71 }
73
75
83 inline const Aws::String& GetAccountsUrl() const { return m_accountsUrl; }
84 inline bool AccountsUrlHasBeenSet() const { return m_accountsUrlHasBeenSet; }
85 template <typename AccountsUrlT = Aws::String>
86 void SetAccountsUrl(AccountsUrlT&& value) {
87 m_accountsUrlHasBeenSet = true;
88 m_accountsUrl = std::forward<AccountsUrlT>(value);
89 }
90 template <typename AccountsUrlT = Aws::String>
91 DeploymentTargets& WithAccountsUrl(AccountsUrlT&& value) {
92 SetAccountsUrl(std::forward<AccountsUrlT>(value));
93 return *this;
94 }
96
98
103 inline const Aws::Vector<Aws::String>& GetOrganizationalUnitIds() const { return m_organizationalUnitIds; }
104 inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; }
105 template <typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
106 void SetOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
107 m_organizationalUnitIdsHasBeenSet = true;
108 m_organizationalUnitIds = std::forward<OrganizationalUnitIdsT>(value);
109 }
110 template <typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
111 DeploymentTargets& WithOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
112 SetOrganizationalUnitIds(std::forward<OrganizationalUnitIdsT>(value));
113 return *this;
114 }
115 template <typename OrganizationalUnitIdsT = Aws::String>
116 DeploymentTargets& AddOrganizationalUnitIds(OrganizationalUnitIdsT&& value) {
117 m_organizationalUnitIdsHasBeenSet = true;
118 m_organizationalUnitIds.emplace_back(std::forward<OrganizationalUnitIdsT>(value));
119 return *this;
120 }
122
124
144 inline AccountFilterType GetAccountFilterType() const { return m_accountFilterType; }
145 inline bool AccountFilterTypeHasBeenSet() const { return m_accountFilterTypeHasBeenSet; }
147 m_accountFilterTypeHasBeenSet = true;
148 m_accountFilterType = value;
149 }
152 return *this;
153 }
155 private:
156 Aws::Vector<Aws::String> m_accounts;
157
158 Aws::String m_accountsUrl;
159
160 Aws::Vector<Aws::String> m_organizationalUnitIds;
161
163 bool m_accountsHasBeenSet = false;
164 bool m_accountsUrlHasBeenSet = false;
165 bool m_organizationalUnitIdsHasBeenSet = false;
166 bool m_accountFilterTypeHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace CloudFormation
171} // namespace Aws
const Aws::Vector< Aws::String > & GetOrganizationalUnitIds() const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Vector< Aws::String > & GetAccounts() const
AWS_CLOUDFORMATION_API DeploymentTargets & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API DeploymentTargets()=default
AWS_CLOUDFORMATION_API DeploymentTargets(const Aws::Utils::Xml::XmlNode &xmlNode)
DeploymentTargets & WithOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
DeploymentTargets & AddAccounts(AccountsT &&value)
DeploymentTargets & WithAccountFilterType(AccountFilterType value)
DeploymentTargets & AddOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
DeploymentTargets & WithAccountsUrl(AccountsUrlT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAccountFilterType(AccountFilterType value)
DeploymentTargets & WithAccounts(AccountsT &&value)
void SetOrganizationalUnitIds(OrganizationalUnitIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector