AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
OrganizationScope.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ComputeOptimizerAutomation {
21namespace Model {
22
30 public:
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationScope() = default;
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationScope(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationScope& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
42 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
43 template <typename AccountIdsT = Aws::Vector<Aws::String>>
44 void SetAccountIds(AccountIdsT&& value) {
45 m_accountIdsHasBeenSet = true;
46 m_accountIds = std::forward<AccountIdsT>(value);
47 }
48 template <typename AccountIdsT = Aws::Vector<Aws::String>>
49 OrganizationScope& WithAccountIds(AccountIdsT&& value) {
50 SetAccountIds(std::forward<AccountIdsT>(value));
51 return *this;
52 }
53 template <typename AccountIdsT = Aws::String>
54 OrganizationScope& AddAccountIds(AccountIdsT&& value) {
55 m_accountIdsHasBeenSet = true;
56 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
57 return *this;
58 }
60 private:
61 Aws::Vector<Aws::String> m_accountIds;
62 bool m_accountIdsHasBeenSet = false;
63};
64
65} // namespace Model
66} // namespace ComputeOptimizerAutomation
67} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationScope()=default
OrganizationScope & WithAccountIds(AccountIdsT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationScope(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationScope & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationScope & AddAccountIds(AccountIdsT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAccountIds() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue