AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/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
44 {
45 public:
46 AWS_COMPUTEOPTIMIZER_API PreferredResource();
47 AWS_COMPUTEOPTIMIZER_API PreferredResource(Aws::Utils::Json::JsonView jsonValue);
48 AWS_COMPUTEOPTIMIZER_API PreferredResource& operator=(Aws::Utils::Json::JsonView jsonValue);
49 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
58 inline const PreferredResourceName& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const PreferredResourceName& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(PreferredResourceName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline PreferredResource& WithName(const PreferredResourceName& value) { SetName(value); return *this;}
63 inline PreferredResource& WithName(PreferredResourceName&& value) { SetName(std::move(value)); return *this;}
65
67
74 inline const Aws::Vector<Aws::String>& GetIncludeList() const{ return m_includeList; }
75 inline bool IncludeListHasBeenSet() const { return m_includeListHasBeenSet; }
76 inline void SetIncludeList(const Aws::Vector<Aws::String>& value) { m_includeListHasBeenSet = true; m_includeList = value; }
77 inline void SetIncludeList(Aws::Vector<Aws::String>&& value) { m_includeListHasBeenSet = true; m_includeList = std::move(value); }
78 inline PreferredResource& WithIncludeList(const Aws::Vector<Aws::String>& value) { SetIncludeList(value); return *this;}
79 inline PreferredResource& WithIncludeList(Aws::Vector<Aws::String>&& value) { SetIncludeList(std::move(value)); return *this;}
80 inline PreferredResource& AddIncludeList(const Aws::String& value) { m_includeListHasBeenSet = true; m_includeList.push_back(value); return *this; }
81 inline PreferredResource& AddIncludeList(Aws::String&& value) { m_includeListHasBeenSet = true; m_includeList.push_back(std::move(value)); return *this; }
82 inline PreferredResource& AddIncludeList(const char* value) { m_includeListHasBeenSet = true; m_includeList.push_back(value); return *this; }
84
86
91 inline const Aws::Vector<Aws::String>& GetExcludeList() const{ return m_excludeList; }
92 inline bool ExcludeListHasBeenSet() const { return m_excludeListHasBeenSet; }
93 inline void SetExcludeList(const Aws::Vector<Aws::String>& value) { m_excludeListHasBeenSet = true; m_excludeList = value; }
94 inline void SetExcludeList(Aws::Vector<Aws::String>&& value) { m_excludeListHasBeenSet = true; m_excludeList = std::move(value); }
95 inline PreferredResource& WithExcludeList(const Aws::Vector<Aws::String>& value) { SetExcludeList(value); return *this;}
96 inline PreferredResource& WithExcludeList(Aws::Vector<Aws::String>&& value) { SetExcludeList(std::move(value)); return *this;}
97 inline PreferredResource& AddExcludeList(const Aws::String& value) { m_excludeListHasBeenSet = true; m_excludeList.push_back(value); return *this; }
98 inline PreferredResource& AddExcludeList(Aws::String&& value) { m_excludeListHasBeenSet = true; m_excludeList.push_back(std::move(value)); return *this; }
99 inline PreferredResource& AddExcludeList(const char* value) { m_excludeListHasBeenSet = true; m_excludeList.push_back(value); return *this; }
101 private:
102
104 bool m_nameHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_includeList;
107 bool m_includeListHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_excludeList;
110 bool m_excludeListHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace ComputeOptimizer
115} // namespace Aws
AWS_COMPUTEOPTIMIZER_API PreferredResource(Aws::Utils::Json::JsonView jsonValue)
PreferredResource & AddExcludeList(const char *value)
PreferredResource & WithExcludeList(Aws::Vector< Aws::String > &&value)
PreferredResource & WithIncludeList(const Aws::Vector< Aws::String > &value)
void SetName(PreferredResourceName &&value)
PreferredResource & WithName(const PreferredResourceName &value)
PreferredResource & AddIncludeList(const char *value)
PreferredResource & AddIncludeList(const Aws::String &value)
void SetIncludeList(Aws::Vector< Aws::String > &&value)
PreferredResource & WithName(PreferredResourceName &&value)
PreferredResource & AddExcludeList(const Aws::String &value)
PreferredResource & AddExcludeList(Aws::String &&value)
PreferredResource & WithIncludeList(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetExcludeList() const
const PreferredResourceName & GetName() const
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetIncludeList() const
PreferredResource & WithExcludeList(const Aws::Vector< Aws::String > &value)
AWS_COMPUTEOPTIMIZER_API PreferredResource()
void SetExcludeList(Aws::Vector< Aws::String > &&value)
void SetName(const PreferredResourceName &value)
AWS_COMPUTEOPTIMIZER_API PreferredResource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetExcludeList(const Aws::Vector< Aws::String > &value)
void SetIncludeList(const Aws::Vector< Aws::String > &value)
PreferredResource & AddIncludeList(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