AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
EffectivePreferredResource.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/PreferredResourceName.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 ComputeOptimizer {
22namespace Model {
23
32 public:
33 AWS_COMPUTEOPTIMIZER_API EffectivePreferredResource() = default;
34 AWS_COMPUTEOPTIMIZER_API EffectivePreferredResource(Aws::Utils::Json::JsonView jsonValue);
36 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline PreferredResourceName GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 inline void SetName(PreferredResourceName value) {
45 m_nameHasBeenSet = true;
46 m_name = value;
47 }
49 SetName(value);
50 return *this;
51 }
53
55
59 inline const Aws::Vector<Aws::String>& GetIncludeList() const { return m_includeList; }
60 inline bool IncludeListHasBeenSet() const { return m_includeListHasBeenSet; }
61 template <typename IncludeListT = Aws::Vector<Aws::String>>
62 void SetIncludeList(IncludeListT&& value) {
63 m_includeListHasBeenSet = true;
64 m_includeList = std::forward<IncludeListT>(value);
65 }
66 template <typename IncludeListT = Aws::Vector<Aws::String>>
68 SetIncludeList(std::forward<IncludeListT>(value));
69 return *this;
70 }
71 template <typename IncludeListT = Aws::String>
73 m_includeListHasBeenSet = true;
74 m_includeList.emplace_back(std::forward<IncludeListT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::Vector<Aws::String>& GetEffectiveIncludeList() const { return m_effectiveIncludeList; }
84 inline bool EffectiveIncludeListHasBeenSet() const { return m_effectiveIncludeListHasBeenSet; }
85 template <typename EffectiveIncludeListT = Aws::Vector<Aws::String>>
86 void SetEffectiveIncludeList(EffectiveIncludeListT&& value) {
87 m_effectiveIncludeListHasBeenSet = true;
88 m_effectiveIncludeList = std::forward<EffectiveIncludeListT>(value);
89 }
90 template <typename EffectiveIncludeListT = Aws::Vector<Aws::String>>
91 EffectivePreferredResource& WithEffectiveIncludeList(EffectiveIncludeListT&& value) {
92 SetEffectiveIncludeList(std::forward<EffectiveIncludeListT>(value));
93 return *this;
94 }
95 template <typename EffectiveIncludeListT = Aws::String>
96 EffectivePreferredResource& AddEffectiveIncludeList(EffectiveIncludeListT&& value) {
97 m_effectiveIncludeListHasBeenSet = true;
98 m_effectiveIncludeList.emplace_back(std::forward<EffectiveIncludeListT>(value));
99 return *this;
100 }
102
104
108 inline const Aws::Vector<Aws::String>& GetExcludeList() const { return m_excludeList; }
109 inline bool ExcludeListHasBeenSet() const { return m_excludeListHasBeenSet; }
110 template <typename ExcludeListT = Aws::Vector<Aws::String>>
111 void SetExcludeList(ExcludeListT&& value) {
112 m_excludeListHasBeenSet = true;
113 m_excludeList = std::forward<ExcludeListT>(value);
114 }
115 template <typename ExcludeListT = Aws::Vector<Aws::String>>
117 SetExcludeList(std::forward<ExcludeListT>(value));
118 return *this;
119 }
120 template <typename ExcludeListT = Aws::String>
122 m_excludeListHasBeenSet = true;
123 m_excludeList.emplace_back(std::forward<ExcludeListT>(value));
124 return *this;
125 }
127 private:
129
130 Aws::Vector<Aws::String> m_includeList;
131
132 Aws::Vector<Aws::String> m_effectiveIncludeList;
133
134 Aws::Vector<Aws::String> m_excludeList;
135 bool m_nameHasBeenSet = false;
136 bool m_includeListHasBeenSet = false;
137 bool m_effectiveIncludeListHasBeenSet = false;
138 bool m_excludeListHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace ComputeOptimizer
143} // namespace Aws
AWS_COMPUTEOPTIMIZER_API EffectivePreferredResource()=default
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
EffectivePreferredResource & AddEffectiveIncludeList(EffectiveIncludeListT &&value)
AWS_COMPUTEOPTIMIZER_API EffectivePreferredResource(Aws::Utils::Json::JsonView jsonValue)
EffectivePreferredResource & AddExcludeList(ExcludeListT &&value)
EffectivePreferredResource & AddIncludeList(IncludeListT &&value)
EffectivePreferredResource & WithName(PreferredResourceName value)
EffectivePreferredResource & WithEffectiveIncludeList(EffectiveIncludeListT &&value)
EffectivePreferredResource & WithExcludeList(ExcludeListT &&value)
AWS_COMPUTEOPTIMIZER_API EffectivePreferredResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetEffectiveIncludeList() const
EffectivePreferredResource & WithIncludeList(IncludeListT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue