AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
41
42
44
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 AccountScope& WithAccounts(const Aws::Vector<Aws::String>& value) { SetAccounts(value); return *this;}
60 inline AccountScope& WithAccounts(Aws::Vector<Aws::String>&& value) { SetAccounts(std::move(value)); return *this;}
61 inline AccountScope& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
62 inline AccountScope& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; }
63 inline AccountScope& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; }
65
67
74 inline bool GetAllAccountsEnabled() const{ return m_allAccountsEnabled; }
75 inline bool AllAccountsEnabledHasBeenSet() const { return m_allAccountsEnabledHasBeenSet; }
76 inline void SetAllAccountsEnabled(bool value) { m_allAccountsEnabledHasBeenSet = true; m_allAccountsEnabled = value; }
77 inline AccountScope& WithAllAccountsEnabled(bool value) { SetAllAccountsEnabled(value); return *this;}
79
81
91 inline bool GetExcludeSpecifiedAccounts() const{ return m_excludeSpecifiedAccounts; }
92 inline bool ExcludeSpecifiedAccountsHasBeenSet() const { return m_excludeSpecifiedAccountsHasBeenSet; }
93 inline void SetExcludeSpecifiedAccounts(bool value) { m_excludeSpecifiedAccountsHasBeenSet = true; m_excludeSpecifiedAccounts = value; }
94 inline AccountScope& WithExcludeSpecifiedAccounts(bool value) { SetExcludeSpecifiedAccounts(value); return *this;}
96 private:
97
98 Aws::Vector<Aws::String> m_accounts;
99 bool m_accountsHasBeenSet = false;
100
101 bool m_allAccountsEnabled;
102 bool m_allAccountsEnabledHasBeenSet = false;
103
104 bool m_excludeSpecifiedAccounts;
105 bool m_excludeSpecifiedAccountsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace FMS
110} // namespace Aws
AccountScope & WithAccounts(Aws::Vector< Aws::String > &&value)
AccountScope & WithAllAccountsEnabled(bool value)
bool ExcludeSpecifiedAccountsHasBeenSet() const
AccountScope & AddAccounts(Aws::String &&value)
AccountScope & WithExcludeSpecifiedAccounts(bool value)
AWS_FMS_API AccountScope & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountScope & WithAccounts(const Aws::Vector< Aws::String > &value)
void SetAccounts(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetAccounts() const
bool GetExcludeSpecifiedAccounts() const
AccountScope & AddAccounts(const char *value)
AccountScope & AddAccounts(const Aws::String &value)
void SetAllAccountsEnabled(bool value)
AWS_FMS_API AccountScope(Aws::Utils::Json::JsonView jsonValue)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccounts(Aws::Vector< Aws::String > &&value)
void SetExcludeSpecifiedAccounts(bool value)
bool AllAccountsEnabledHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue