AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const PreferredResourceName& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const PreferredResourceName& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(PreferredResourceName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline EffectivePreferredResource& WithName(const PreferredResourceName& value) { SetName(value); return *this;}
53 inline EffectivePreferredResource& WithName(PreferredResourceName&& value) { SetName(std::move(value)); return *this;}
55
57
61 inline const Aws::Vector<Aws::String>& GetIncludeList() const{ return m_includeList; }
62 inline bool IncludeListHasBeenSet() const { return m_includeListHasBeenSet; }
63 inline void SetIncludeList(const Aws::Vector<Aws::String>& value) { m_includeListHasBeenSet = true; m_includeList = value; }
64 inline void SetIncludeList(Aws::Vector<Aws::String>&& value) { m_includeListHasBeenSet = true; m_includeList = std::move(value); }
66 inline EffectivePreferredResource& WithIncludeList(Aws::Vector<Aws::String>&& value) { SetIncludeList(std::move(value)); return *this;}
67 inline EffectivePreferredResource& AddIncludeList(const Aws::String& value) { m_includeListHasBeenSet = true; m_includeList.push_back(value); return *this; }
68 inline EffectivePreferredResource& AddIncludeList(Aws::String&& value) { m_includeListHasBeenSet = true; m_includeList.push_back(std::move(value)); return *this; }
69 inline EffectivePreferredResource& AddIncludeList(const char* value) { m_includeListHasBeenSet = true; m_includeList.push_back(value); return *this; }
71
73
76 inline const Aws::Vector<Aws::String>& GetEffectiveIncludeList() const{ return m_effectiveIncludeList; }
77 inline bool EffectiveIncludeListHasBeenSet() const { return m_effectiveIncludeListHasBeenSet; }
78 inline void SetEffectiveIncludeList(const Aws::Vector<Aws::String>& value) { m_effectiveIncludeListHasBeenSet = true; m_effectiveIncludeList = value; }
79 inline void SetEffectiveIncludeList(Aws::Vector<Aws::String>&& value) { m_effectiveIncludeListHasBeenSet = true; m_effectiveIncludeList = std::move(value); }
82 inline EffectivePreferredResource& AddEffectiveIncludeList(const Aws::String& value) { m_effectiveIncludeListHasBeenSet = true; m_effectiveIncludeList.push_back(value); return *this; }
83 inline EffectivePreferredResource& AddEffectiveIncludeList(Aws::String&& value) { m_effectiveIncludeListHasBeenSet = true; m_effectiveIncludeList.push_back(std::move(value)); return *this; }
84 inline EffectivePreferredResource& AddEffectiveIncludeList(const char* value) { m_effectiveIncludeListHasBeenSet = true; m_effectiveIncludeList.push_back(value); return *this; }
86
88
92 inline const Aws::Vector<Aws::String>& GetExcludeList() const{ return m_excludeList; }
93 inline bool ExcludeListHasBeenSet() const { return m_excludeListHasBeenSet; }
94 inline void SetExcludeList(const Aws::Vector<Aws::String>& value) { m_excludeListHasBeenSet = true; m_excludeList = value; }
95 inline void SetExcludeList(Aws::Vector<Aws::String>&& value) { m_excludeListHasBeenSet = true; m_excludeList = std::move(value); }
97 inline EffectivePreferredResource& WithExcludeList(Aws::Vector<Aws::String>&& value) { SetExcludeList(std::move(value)); return *this;}
98 inline EffectivePreferredResource& AddExcludeList(const Aws::String& value) { m_excludeListHasBeenSet = true; m_excludeList.push_back(value); return *this; }
99 inline EffectivePreferredResource& AddExcludeList(Aws::String&& value) { m_excludeListHasBeenSet = true; m_excludeList.push_back(std::move(value)); return *this; }
100 inline EffectivePreferredResource& AddExcludeList(const char* value) { m_excludeListHasBeenSet = true; m_excludeList.push_back(value); return *this; }
102 private:
103
105 bool m_nameHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_includeList;
108 bool m_includeListHasBeenSet = false;
109
110 Aws::Vector<Aws::String> m_effectiveIncludeList;
111 bool m_effectiveIncludeListHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_excludeList;
114 bool m_excludeListHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace ComputeOptimizer
119} // namespace Aws
EffectivePreferredResource & WithIncludeList(const Aws::Vector< Aws::String > &value)
EffectivePreferredResource & WithExcludeList(Aws::Vector< Aws::String > &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEffectiveIncludeList(Aws::Vector< Aws::String > &&value)
EffectivePreferredResource & WithEffectiveIncludeList(const Aws::Vector< Aws::String > &value)
EffectivePreferredResource & AddEffectiveIncludeList(Aws::String &&value)
EffectivePreferredResource & AddEffectiveIncludeList(const char *value)
EffectivePreferredResource & AddEffectiveIncludeList(const Aws::String &value)
EffectivePreferredResource & WithExcludeList(const Aws::Vector< Aws::String > &value)
EffectivePreferredResource & AddIncludeList(const Aws::String &value)
EffectivePreferredResource & WithEffectiveIncludeList(Aws::Vector< Aws::String > &&value)
EffectivePreferredResource & AddIncludeList(Aws::String &&value)
AWS_COMPUTEOPTIMIZER_API EffectivePreferredResource(Aws::Utils::Json::JsonView jsonValue)
EffectivePreferredResource & WithIncludeList(Aws::Vector< Aws::String > &&value)
EffectivePreferredResource & AddExcludeList(const char *value)
void SetEffectiveIncludeList(const Aws::Vector< Aws::String > &value)
EffectivePreferredResource & AddIncludeList(const char *value)
EffectivePreferredResource & AddExcludeList(const Aws::String &value)
EffectivePreferredResource & WithName(const PreferredResourceName &value)
EffectivePreferredResource & WithName(PreferredResourceName &&value)
EffectivePreferredResource & AddExcludeList(Aws::String &&value)
void SetIncludeList(const Aws::Vector< Aws::String > &value)
AWS_COMPUTEOPTIMIZER_API EffectivePreferredResource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetEffectiveIncludeList() const
void SetExcludeList(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue