AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AccountScope.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FMS
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_FMS_API AccountScope() = default;
41
42
44
55 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
56 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
57 template<typename AccountsT = Aws::Vector<Aws::String>>
58 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
59 template<typename AccountsT = Aws::Vector<Aws::String>>
60 AccountScope& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
61 template<typename AccountsT = Aws::String>
62 AccountScope& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
64
66
73 inline bool GetAllAccountsEnabled() const { return m_allAccountsEnabled; }
74 inline bool AllAccountsEnabledHasBeenSet() const { return m_allAccountsEnabledHasBeenSet; }
75 inline void SetAllAccountsEnabled(bool value) { m_allAccountsEnabledHasBeenSet = true; m_allAccountsEnabled = value; }
76 inline AccountScope& WithAllAccountsEnabled(bool value) { SetAllAccountsEnabled(value); return *this;}
78
80
90 inline bool GetExcludeSpecifiedAccounts() const { return m_excludeSpecifiedAccounts; }
91 inline bool ExcludeSpecifiedAccountsHasBeenSet() const { return m_excludeSpecifiedAccountsHasBeenSet; }
92 inline void SetExcludeSpecifiedAccounts(bool value) { m_excludeSpecifiedAccountsHasBeenSet = true; m_excludeSpecifiedAccounts = value; }
93 inline AccountScope& WithExcludeSpecifiedAccounts(bool value) { SetExcludeSpecifiedAccounts(value); return *this;}
95 private:
96
97 Aws::Vector<Aws::String> m_accounts;
98 bool m_accountsHasBeenSet = false;
99
100 bool m_allAccountsEnabled{false};
101 bool m_allAccountsEnabledHasBeenSet = false;
102
103 bool m_excludeSpecifiedAccounts{false};
104 bool m_excludeSpecifiedAccountsHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace FMS
109} // 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