AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
OrganizationConfiguration.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/RuleApplyOrder.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ComputeOptimizerAutomation {
22namespace Model {
23
31 public:
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationConfiguration() = default;
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationConfiguration(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline RuleApplyOrder GetRuleApplyOrder() const { return m_ruleApplyOrder; }
43 inline bool RuleApplyOrderHasBeenSet() const { return m_ruleApplyOrderHasBeenSet; }
44 inline void SetRuleApplyOrder(RuleApplyOrder value) {
45 m_ruleApplyOrderHasBeenSet = true;
46 m_ruleApplyOrder = value;
47 }
49 SetRuleApplyOrder(value);
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
60 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
61 template <typename AccountIdsT = Aws::Vector<Aws::String>>
62 void SetAccountIds(AccountIdsT&& value) {
63 m_accountIdsHasBeenSet = true;
64 m_accountIds = std::forward<AccountIdsT>(value);
65 }
66 template <typename AccountIdsT = Aws::Vector<Aws::String>>
68 SetAccountIds(std::forward<AccountIdsT>(value));
69 return *this;
70 }
71 template <typename AccountIdsT = Aws::String>
73 m_accountIdsHasBeenSet = true;
74 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
75 return *this;
76 }
78 private:
80
81 Aws::Vector<Aws::String> m_accountIds;
82 bool m_ruleApplyOrderHasBeenSet = false;
83 bool m_accountIdsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace ComputeOptimizerAutomation
88} // namespace Aws
OrganizationConfiguration & WithRuleApplyOrder(RuleApplyOrder value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
OrganizationConfiguration & WithAccountIds(AccountIdsT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationConfiguration()=default
AWS_COMPUTEOPTIMIZERAUTOMATION_API OrganizationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue