AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ComputeOptimizer
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_COMPUTEOPTIMIZER_API EffectivePreferredResource() = default;
39 AWS_COMPUTEOPTIMIZER_API EffectivePreferredResource(Aws::Utils::Json::JsonView jsonValue);
41 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline PreferredResourceName GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(PreferredResourceName value) { m_nameHasBeenSet = true; m_name = value; }
51 inline EffectivePreferredResource& WithName(PreferredResourceName value) { SetName(value); return *this;}
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) { m_includeListHasBeenSet = true; m_includeList = std::forward<IncludeListT>(value); }
63 template<typename IncludeListT = Aws::Vector<Aws::String>>
64 EffectivePreferredResource& WithIncludeList(IncludeListT&& value) { SetIncludeList(std::forward<IncludeListT>(value)); return *this;}
65 template<typename IncludeListT = Aws::String>
66 EffectivePreferredResource& AddIncludeList(IncludeListT&& value) { m_includeListHasBeenSet = true; m_includeList.emplace_back(std::forward<IncludeListT>(value)); return *this; }
68
70
73 inline const Aws::Vector<Aws::String>& GetEffectiveIncludeList() const { return m_effectiveIncludeList; }
74 inline bool EffectiveIncludeListHasBeenSet() const { return m_effectiveIncludeListHasBeenSet; }
75 template<typename EffectiveIncludeListT = Aws::Vector<Aws::String>>
76 void SetEffectiveIncludeList(EffectiveIncludeListT&& value) { m_effectiveIncludeListHasBeenSet = true; m_effectiveIncludeList = std::forward<EffectiveIncludeListT>(value); }
77 template<typename EffectiveIncludeListT = Aws::Vector<Aws::String>>
78 EffectivePreferredResource& WithEffectiveIncludeList(EffectiveIncludeListT&& value) { SetEffectiveIncludeList(std::forward<EffectiveIncludeListT>(value)); return *this;}
79 template<typename EffectiveIncludeListT = Aws::String>
80 EffectivePreferredResource& AddEffectiveIncludeList(EffectiveIncludeListT&& value) { m_effectiveIncludeListHasBeenSet = true; m_effectiveIncludeList.emplace_back(std::forward<EffectiveIncludeListT>(value)); return *this; }
82
84
88 inline const Aws::Vector<Aws::String>& GetExcludeList() const { return m_excludeList; }
89 inline bool ExcludeListHasBeenSet() const { return m_excludeListHasBeenSet; }
90 template<typename ExcludeListT = Aws::Vector<Aws::String>>
91 void SetExcludeList(ExcludeListT&& value) { m_excludeListHasBeenSet = true; m_excludeList = std::forward<ExcludeListT>(value); }
92 template<typename ExcludeListT = Aws::Vector<Aws::String>>
93 EffectivePreferredResource& WithExcludeList(ExcludeListT&& value) { SetExcludeList(std::forward<ExcludeListT>(value)); return *this;}
94 template<typename ExcludeListT = Aws::String>
95 EffectivePreferredResource& AddExcludeList(ExcludeListT&& value) { m_excludeListHasBeenSet = true; m_excludeList.emplace_back(std::forward<ExcludeListT>(value)); return *this; }
97 private:
98
100 bool m_nameHasBeenSet = false;
101
102 Aws::Vector<Aws::String> m_includeList;
103 bool m_includeListHasBeenSet = false;
104
105 Aws::Vector<Aws::String> m_effectiveIncludeList;
106 bool m_effectiveIncludeListHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_excludeList;
109 bool m_excludeListHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ComputeOptimizer
114} // 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