AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
AccountSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/AccountInfo.h>
10#include <aws/datazone/model/CustomAccountPoolHandler.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataZone {
22namespace Model {
23
32 public:
33 AWS_DATAZONE_API AccountSource() = default;
34 AWS_DATAZONE_API AccountSource(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<AccountInfo>& GetAccounts() const { return m_accounts; }
43 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
44 template <typename AccountsT = Aws::Vector<AccountInfo>>
45 void SetAccounts(AccountsT&& value) {
46 m_accountsHasBeenSet = true;
47 m_accounts = std::forward<AccountsT>(value);
48 }
49 template <typename AccountsT = Aws::Vector<AccountInfo>>
50 AccountSource& WithAccounts(AccountsT&& value) {
51 SetAccounts(std::forward<AccountsT>(value));
52 return *this;
53 }
54 template <typename AccountsT = AccountInfo>
55 AccountSource& AddAccounts(AccountsT&& value) {
56 m_accountsHasBeenSet = true;
57 m_accounts.emplace_back(std::forward<AccountsT>(value));
58 return *this;
59 }
61
63
66 inline const CustomAccountPoolHandler& GetCustomAccountPoolHandler() const { return m_customAccountPoolHandler; }
67 inline bool CustomAccountPoolHandlerHasBeenSet() const { return m_customAccountPoolHandlerHasBeenSet; }
68 template <typename CustomAccountPoolHandlerT = CustomAccountPoolHandler>
69 void SetCustomAccountPoolHandler(CustomAccountPoolHandlerT&& value) {
70 m_customAccountPoolHandlerHasBeenSet = true;
71 m_customAccountPoolHandler = std::forward<CustomAccountPoolHandlerT>(value);
72 }
73 template <typename CustomAccountPoolHandlerT = CustomAccountPoolHandler>
74 AccountSource& WithCustomAccountPoolHandler(CustomAccountPoolHandlerT&& value) {
75 SetCustomAccountPoolHandler(std::forward<CustomAccountPoolHandlerT>(value));
76 return *this;
77 }
79 private:
80 Aws::Vector<AccountInfo> m_accounts;
81 bool m_accountsHasBeenSet = false;
82
83 CustomAccountPoolHandler m_customAccountPoolHandler;
84 bool m_customAccountPoolHandlerHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace DataZone
89} // namespace Aws
AWS_DATAZONE_API AccountSource()=default
AWS_DATAZONE_API AccountSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const CustomAccountPoolHandler & GetCustomAccountPoolHandler() const
AccountSource & WithCustomAccountPoolHandler(CustomAccountPoolHandlerT &&value)
AccountSource & AddAccounts(AccountsT &&value)
AccountSource & WithAccounts(AccountsT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccounts(AccountsT &&value)
const Aws::Vector< AccountInfo > & GetAccounts() const
void SetCustomAccountPoolHandler(CustomAccountPoolHandlerT &&value)
AWS_DATAZONE_API AccountSource(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue