AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
AccountSource.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/datazone/model/CustomAccountPoolHandler.h>
10#include <aws/datazone/model/AccountInfo.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataZone
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_DATAZONE_API AccountSource() = default;
39 AWS_DATAZONE_API AccountSource(Aws::Utils::Json::JsonView jsonValue);
41 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<AccountInfo>& GetAccounts() const { return m_accounts; }
49 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
50 template<typename AccountsT = Aws::Vector<AccountInfo>>
51 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
52 template<typename AccountsT = Aws::Vector<AccountInfo>>
53 AccountSource& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
54 template<typename AccountsT = AccountInfo>
55 AccountSource& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
57
59
62 inline const CustomAccountPoolHandler& GetCustomAccountPoolHandler() const { return m_customAccountPoolHandler; }
63 inline bool CustomAccountPoolHandlerHasBeenSet() const { return m_customAccountPoolHandlerHasBeenSet; }
64 template<typename CustomAccountPoolHandlerT = CustomAccountPoolHandler>
65 void SetCustomAccountPoolHandler(CustomAccountPoolHandlerT&& value) { m_customAccountPoolHandlerHasBeenSet = true; m_customAccountPoolHandler = std::forward<CustomAccountPoolHandlerT>(value); }
66 template<typename CustomAccountPoolHandlerT = CustomAccountPoolHandler>
67 AccountSource& WithCustomAccountPoolHandler(CustomAccountPoolHandlerT&& value) { SetCustomAccountPoolHandler(std::forward<CustomAccountPoolHandlerT>(value)); return *this;}
69 private:
70
71 Aws::Vector<AccountInfo> m_accounts;
72 bool m_accountsHasBeenSet = false;
73
74 CustomAccountPoolHandler m_customAccountPoolHandler;
75 bool m_customAccountPoolHandlerHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace DataZone
80} // 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