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#include <aws/crt/cbor/Cbor.h>
21namespace ComputeOptimizer {
42 AWS_COMPUTEOPTIMIZER_API
PreferredResource(
const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
44 AWS_COMPUTEOPTIMIZER_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
55 m_nameHasBeenSet =
true;
74 template <
typename IncludeListT = Aws::Vector<Aws::String>>
76 m_includeListHasBeenSet =
true;
77 m_includeList = std::forward<IncludeListT>(value);
79 template <
typename IncludeListT = Aws::Vector<Aws::String>>
84 template <
typename IncludeListT = Aws::String>
86 m_includeListHasBeenSet =
true;
87 m_includeList.emplace_back(std::forward<IncludeListT>(value));
100 template <
typename ExcludeListT = Aws::Vector<Aws::String>>
102 m_excludeListHasBeenSet =
true;
103 m_excludeList = std::forward<ExcludeListT>(value);
105 template <
typename ExcludeListT = Aws::Vector<Aws::String>>
110 template <
typename ExcludeListT = Aws::String>
112 m_excludeListHasBeenSet =
true;
113 m_excludeList.emplace_back(std::forward<ExcludeListT>(value));
123 bool m_nameHasBeenSet =
false;
124 bool m_includeListHasBeenSet =
false;
125 bool m_excludeListHasBeenSet =
false;
PreferredResource & AddExcludeList(ExcludeListT &&value)
bool IncludeListHasBeenSet() const
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPUTEOPTIMIZER_API PreferredResource()=default
AWS_COMPUTEOPTIMIZER_API PreferredResource(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetExcludeList(ExcludeListT &&value)
bool ExcludeListHasBeenSet() const
PreferredResource & WithName(PreferredResourceName value)
const Aws::Vector< Aws::String > & GetExcludeList() const
void SetIncludeList(IncludeListT &&value)
const Aws::Vector< Aws::String > & GetIncludeList() const
PreferredResource & WithExcludeList(ExcludeListT &&value)
AWS_COMPUTEOPTIMIZER_API PreferredResource & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
bool NameHasBeenSet() const
void SetName(PreferredResourceName value)
PreferredResourceName GetName() const
PreferredResource & WithIncludeList(IncludeListT &&value)
PreferredResource & AddIncludeList(IncludeListT &&value)
std::vector< T, Aws::Allocator< T > > Vector