AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
PreferredResource.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
40 public:
41 AWS_COMPUTEOPTIMIZER_API PreferredResource() = default;
42 AWS_COMPUTEOPTIMIZER_API PreferredResource(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COMPUTEOPTIMIZER_API PreferredResource& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
52 inline PreferredResourceName GetName() const { return m_name; }
53 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 inline void SetName(PreferredResourceName value) {
55 m_nameHasBeenSet = true;
56 m_name = value;
57 }
59 SetName(value);
60 return *this;
61 }
63
65
72 inline const Aws::Vector<Aws::String>& GetIncludeList() const { return m_includeList; }
73 inline bool IncludeListHasBeenSet() const { return m_includeListHasBeenSet; }
74 template <typename IncludeListT = Aws::Vector<Aws::String>>
75 void SetIncludeList(IncludeListT&& value) {
76 m_includeListHasBeenSet = true;
77 m_includeList = std::forward<IncludeListT>(value);
78 }
79 template <typename IncludeListT = Aws::Vector<Aws::String>>
80 PreferredResource& WithIncludeList(IncludeListT&& value) {
81 SetIncludeList(std::forward<IncludeListT>(value));
82 return *this;
83 }
84 template <typename IncludeListT = Aws::String>
85 PreferredResource& AddIncludeList(IncludeListT&& value) {
86 m_includeListHasBeenSet = true;
87 m_includeList.emplace_back(std::forward<IncludeListT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::Vector<Aws::String>& GetExcludeList() const { return m_excludeList; }
99 inline bool ExcludeListHasBeenSet() const { return m_excludeListHasBeenSet; }
100 template <typename ExcludeListT = Aws::Vector<Aws::String>>
101 void SetExcludeList(ExcludeListT&& value) {
102 m_excludeListHasBeenSet = true;
103 m_excludeList = std::forward<ExcludeListT>(value);
104 }
105 template <typename ExcludeListT = Aws::Vector<Aws::String>>
106 PreferredResource& WithExcludeList(ExcludeListT&& value) {
107 SetExcludeList(std::forward<ExcludeListT>(value));
108 return *this;
109 }
110 template <typename ExcludeListT = Aws::String>
111 PreferredResource& AddExcludeList(ExcludeListT&& value) {
112 m_excludeListHasBeenSet = true;
113 m_excludeList.emplace_back(std::forward<ExcludeListT>(value));
114 return *this;
115 }
117 private:
119
120 Aws::Vector<Aws::String> m_includeList;
121
122 Aws::Vector<Aws::String> m_excludeList;
123 bool m_nameHasBeenSet = false;
124 bool m_includeListHasBeenSet = false;
125 bool m_excludeListHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace ComputeOptimizer
130} // namespace Aws
PreferredResource & AddExcludeList(ExcludeListT &&value)
AWS_COMPUTEOPTIMIZER_API PreferredResource(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API PreferredResource()=default
PreferredResource & WithName(PreferredResourceName value)
const Aws::Vector< Aws::String > & GetExcludeList() const
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetIncludeList() const
PreferredResource & WithExcludeList(ExcludeListT &&value)
void SetName(PreferredResourceName value)
PreferredResource & WithIncludeList(IncludeListT &&value)
AWS_COMPUTEOPTIMIZER_API PreferredResource & operator=(Aws::Utils::Json::JsonView jsonValue)
PreferredResource & AddIncludeList(IncludeListT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue