AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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
55 inline const Aws::Vector<Aws::String>& GetAccounts() const{ return m_accounts; }
56 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
57 inline void SetAccounts(const Aws::Vector<Aws::String>& value) { m_accountsHasBeenSet = true; m_accounts = value; }
58 inline void SetAccounts(Aws::Vector<Aws::String>&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); }
59 inline DeploymentTargets& WithAccounts(const Aws::Vector<Aws::String>& value) { SetAccounts(value); return *this;}
60 inline DeploymentTargets& WithAccounts(Aws::Vector<Aws::String>&& value) { SetAccounts(std::move(value)); return *this;}
61 inline DeploymentTargets& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
62 inline DeploymentTargets& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
63 inline DeploymentTargets& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
65
67
70 inline const Aws::String& GetAccountsUrl() const{ return m_accountsUrl; }
71 inline bool AccountsUrlHasBeenSet() const { return m_accountsUrlHasBeenSet; }
72 inline void SetAccountsUrl(const Aws::String& value) { m_accountsUrlHasBeenSet = true; m_accountsUrl = value; }
73 inline void SetAccountsUrl(Aws::String&& value) { m_accountsUrlHasBeenSet = true; m_accountsUrl = std::move(value); }
74 inline void SetAccountsUrl(const char* value) { m_accountsUrlHasBeenSet = true; m_accountsUrl.assign(value); }
75 inline DeploymentTargets& WithAccountsUrl(const Aws::String& value) { SetAccountsUrl(value); return *this;}
76 inline DeploymentTargets& WithAccountsUrl(Aws::String&& value) { SetAccountsUrl(std::move(value)); return *this;}
77 inline DeploymentTargets& WithAccountsUrl(const char* value) { SetAccountsUrl(value); return *this;}
79
81
85 inline const Aws::Vector<Aws::String>& GetOrganizationalUnitIds() const{ return m_organizationalUnitIds; }
86 inline bool OrganizationalUnitIdsHasBeenSet() const { return m_organizationalUnitIdsHasBeenSet; }
87 inline void SetOrganizationalUnitIds(const Aws::Vector<Aws::String>& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds = value; }
88 inline void SetOrganizationalUnitIds(Aws::Vector<Aws::String>&& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds = std::move(value); }
91 inline DeploymentTargets& AddOrganizationalUnitIds(const Aws::String& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.push_back(value); return *this; }
92 inline DeploymentTargets& AddOrganizationalUnitIds(Aws::String&& value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.push_back(std::move(value)); return *this; }
93 inline DeploymentTargets& AddOrganizationalUnitIds(const char* value) { m_organizationalUnitIdsHasBeenSet = true; m_organizationalUnitIds.push_back(value); return *this; }
95
97
112 inline const AccountFilterType& GetAccountFilterType() const{ return m_accountFilterType; }
113 inline bool AccountFilterTypeHasBeenSet() const { return m_accountFilterTypeHasBeenSet; }
114 inline void SetAccountFilterType(const AccountFilterType& value) { m_accountFilterTypeHasBeenSet = true; m_accountFilterType = value; }
115 inline void SetAccountFilterType(AccountFilterType&& value) { m_accountFilterTypeHasBeenSet = true; m_accountFilterType = std::move(value); }
117 inline DeploymentTargets& WithAccountFilterType(AccountFilterType&& value) { SetAccountFilterType(std::move(value)); return *this;}
119 private:
120
121 Aws::Vector<Aws::String> m_accounts;
122 bool m_accountsHasBeenSet = false;
123
124 Aws::String m_accountsUrl;
125 bool m_accountsUrlHasBeenSet = false;
126
127 Aws::Vector<Aws::String> m_organizationalUnitIds;
128 bool m_organizationalUnitIdsHasBeenSet = false;
129
130 AccountFilterType m_accountFilterType;
131 bool m_accountFilterTypeHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace CloudFormation
136} // namespace Aws
DeploymentTargets & WithOrganizationalUnitIds(Aws::Vector< Aws::String > &&value)
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
DeploymentTargets & WithAccountsUrl(const Aws::String &value)
AWS_CLOUDFORMATION_API DeploymentTargets & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
DeploymentTargets & WithAccountsUrl(Aws::String &&value)
DeploymentTargets & WithAccountsUrl(const char *value)
AWS_CLOUDFORMATION_API DeploymentTargets(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetOrganizationalUnitIds(const Aws::Vector< Aws::String > &value)
DeploymentTargets & AddOrganizationalUnitIds(Aws::String &&value)
void SetAccounts(const Aws::Vector< Aws::String > &value)
DeploymentTargets & AddAccounts(const char *value)
DeploymentTargets & WithAccountFilterType(AccountFilterType &&value)
DeploymentTargets & WithAccounts(const Aws::Vector< Aws::String > &value)
void SetAccountsUrl(const Aws::String &value)
DeploymentTargets & WithAccountFilterType(const AccountFilterType &value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetAccounts(Aws::Vector< Aws::String > &&value)
DeploymentTargets & WithAccounts(Aws::Vector< Aws::String > &&value)
DeploymentTargets & AddAccounts(Aws::String &&value)
DeploymentTargets & AddOrganizationalUnitIds(const char *value)
DeploymentTargets & WithOrganizationalUnitIds(const Aws::Vector< Aws::String > &value)
const AccountFilterType & GetAccountFilterType() const
DeploymentTargets & AddOrganizationalUnitIds(const Aws::String &value)
void SetOrganizationalUnitIds(Aws::Vector< Aws::String > &&value)
void SetAccountFilterType(AccountFilterType &&value)
DeploymentTargets & AddAccounts(const Aws::String &value)
void SetAccountFilterType(const AccountFilterType &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