AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 PreferredResourceName GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(PreferredResourceName value) { m_nameHasBeenSet = true; m_name = value; }
61 inline PreferredResource& WithName(PreferredResourceName value) { SetName(value); return *this;}
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) { m_includeListHasBeenSet = true; m_includeList = std::forward<IncludeListT>(value); }
76 template<typename IncludeListT = Aws::Vector<Aws::String>>
77 PreferredResource& WithIncludeList(IncludeListT&& value) { SetIncludeList(std::forward<IncludeListT>(value)); return *this;}
78 template<typename IncludeListT = Aws::String>
79 PreferredResource& AddIncludeList(IncludeListT&& value) { m_includeListHasBeenSet = true; m_includeList.emplace_back(std::forward<IncludeListT>(value)); return *this; }
81
83
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 PreferredResource& WithExcludeList(ExcludeListT&& value) { SetExcludeList(std::forward<ExcludeListT>(value)); return *this;}
94 template<typename ExcludeListT = Aws::String>
95 PreferredResource& 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_excludeList;
106 bool m_excludeListHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace ComputeOptimizer
111} // 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