AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeploymentTargets.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/cloudformation/model/AccountFilterType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFormation
24{
25namespace Model
26{
27
40 {
41 public:
42 AWS_CLOUDFORMATION_API DeploymentTargets() = default;
43 AWS_CLOUDFORMATION_API DeploymentTargets(const Aws::Utils::Xml::XmlNode& xmlNode);
44 AWS_CLOUDFORMATION_API DeploymentTargets& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45
46 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
56 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
57 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
58 template<typename AccountsT = Aws::Vector<Aws::String>>
59 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
60 template<typename AccountsT = Aws::Vector<Aws::String>>
61 DeploymentTargets& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
62 template<typename AccountsT = Aws::String>
63 DeploymentTargets& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
65
67
74 inline const Aws::String& GetAccountsUrl() const { return m_accountsUrl; }
75 inline bool AccountsUrlHasBeenSet() const { return m_accountsUrlHasBeenSet; }
76 template<typename AccountsUrlT = Aws::String>
77 void SetAccountsUrl(AccountsUrlT&& value) { m_accountsUrlHasBeenSet = true; m_accountsUrl = std::forward<AccountsUrlT>(value); }
78 template<typename AccountsUrlT = Aws::String>
79 DeploymentTargets& WithAccountsUrl(AccountsUrlT&& value) { SetAccountsUrl(std::forward<AccountsUrlT>(value)); return *this;}
81
83
86 inline const Aws::Vector<Aws::String>& GetOrganizationalUnitIds() const { return m_organizationalUnitIds; }
87 inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; }
88 template<typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
89 void SetOrganizationalUnitIds(OrganizationalUnitIdsT&& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds = std::forward<OrganizationalUnitIdsT>(value); }
90 template<typename OrganizationalUnitIdsT = Aws::Vector<Aws::String>>
91 DeploymentTargets& WithOrganizationalUnitIds(OrganizationalUnitIdsT&& value) { SetOrganizationalUnitIds(std::forward<OrganizationalUnitIdsT>(value)); return *this;}
92 template<typename OrganizationalUnitIdsT = Aws::String>
93 DeploymentTargets& AddOrganizationalUnitIds(OrganizationalUnitIdsT&& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.emplace_back(std::forward<OrganizationalUnitIdsT>(value)); return *this; }
95
97
112 inline AccountFilterType GetAccountFilterType() const { return m_accountFilterType; }
113 inline bool AccountFilterTypeHasBeenSet() const { return m_accountFilterTypeHasBeenSet; }
114 inline void SetAccountFilterType(AccountFilterType value) { m_accountFilterTypeHasBeenSet = true; m_accountFilterType = value; }
117 private:
118
119 Aws::Vector<Aws::String> m_accounts;
120 bool m_accountsHasBeenSet = false;
121
122 Aws::String m_accountsUrl;
123 bool m_accountsUrlHasBeenSet = false;
124
125 Aws::Vector<Aws::String> m_organizationalUnitIds;
126 bool m_organizationalUnitIdsHasBeenSet = false;
127
129 bool m_accountFilterTypeHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace CloudFormation
134} // 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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream