AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AccountScope.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/fms/FMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FMS {
21namespace Model {
22
31 public:
32 AWS_FMS_API AccountScope() = default;
36
38
49 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
50 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
51 template <typename AccountsT = Aws::Vector<Aws::String>>
52 void SetAccounts(AccountsT&& value) {
53 m_accountsHasBeenSet = true;
54 m_accounts = std::forward<AccountsT>(value);
55 }
56 template <typename AccountsT = Aws::Vector<Aws::String>>
57 AccountScope& WithAccounts(AccountsT&& value) {
58 SetAccounts(std::forward<AccountsT>(value));
59 return *this;
60 }
61 template <typename AccountsT = Aws::String>
62 AccountScope& AddAccounts(AccountsT&& value) {
63 m_accountsHasBeenSet = true;
64 m_accounts.emplace_back(std::forward<AccountsT>(value));
65 return *this;
66 }
68
70
77 inline bool GetAllAccountsEnabled() const { return m_allAccountsEnabled; }
78 inline bool AllAccountsEnabledHasBeenSet() const { return m_allAccountsEnabledHasBeenSet; }
79 inline void SetAllAccountsEnabled(bool value) {
80 m_allAccountsEnabledHasBeenSet = true;
81 m_allAccountsEnabled = value;
82 }
85 return *this;
86 }
88
90
100 inline bool GetExcludeSpecifiedAccounts() const { return m_excludeSpecifiedAccounts; }
101 inline bool ExcludeSpecifiedAccountsHasBeenSet() const { return m_excludeSpecifiedAccountsHasBeenSet; }
102 inline void SetExcludeSpecifiedAccounts(bool value) {
103 m_excludeSpecifiedAccountsHasBeenSet = true;
104 m_excludeSpecifiedAccounts = value;
105 }
108 return *this;
109 }
111 private:
112 Aws::Vector<Aws::String> m_accounts;
113
114 bool m_allAccountsEnabled{false};
115
116 bool m_excludeSpecifiedAccounts{false};
117 bool m_accountsHasBeenSet = false;
118 bool m_allAccountsEnabledHasBeenSet = false;
119 bool m_excludeSpecifiedAccountsHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace FMS
124} // namespace Aws
AccountScope & WithAllAccountsEnabled(bool value)
bool ExcludeSpecifiedAccountsHasBeenSet() const
AccountScope & WithExcludeSpecifiedAccounts(bool value)
AWS_FMS_API AccountScope & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAccounts() const
bool GetExcludeSpecifiedAccounts() const
void SetAccounts(AccountsT &&value)
void SetAllAccountsEnabled(bool value)
AWS_FMS_API AccountScope()=default
AWS_FMS_API AccountScope(Aws::Utils::Json::JsonView jsonValue)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AccountScope & AddAccounts(AccountsT &&value)
AccountScope & WithAccounts(AccountsT &&value)
void SetExcludeSpecifiedAccounts(bool value)
bool AllAccountsEnabledHasBeenSet() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue