AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
IdleRecommendationError.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/IdleRecommendationResourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ComputeOptimizer {
21namespace Model {
22
30 public:
31 AWS_COMPUTEOPTIMIZER_API IdleRecommendationError() = default;
32 AWS_COMPUTEOPTIMIZER_API IdleRecommendationError(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPUTEOPTIMIZER_API IdleRecommendationError& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetIdentifier() const { return m_identifier; }
41 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
42 template <typename IdentifierT = Aws::String>
43 void SetIdentifier(IdentifierT&& value) {
44 m_identifierHasBeenSet = true;
45 m_identifier = std::forward<IdentifierT>(value);
46 }
47 template <typename IdentifierT = Aws::String>
49 SetIdentifier(std::forward<IdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCode() const { return m_code; }
59 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
60 template <typename CodeT = Aws::String>
61 void SetCode(CodeT&& value) {
62 m_codeHasBeenSet = true;
63 m_code = std::forward<CodeT>(value);
64 }
65 template <typename CodeT = Aws::String>
67 SetCode(std::forward<CodeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetMessage() const { return m_message; }
77 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
78 template <typename MessageT = Aws::String>
79 void SetMessage(MessageT&& value) {
80 m_messageHasBeenSet = true;
81 m_message = std::forward<MessageT>(value);
82 }
83 template <typename MessageT = Aws::String>
85 SetMessage(std::forward<MessageT>(value));
86 return *this;
87 }
89
91
94 inline IdleRecommendationResourceType GetResourceType() const { return m_resourceType; }
95 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
97 m_resourceTypeHasBeenSet = true;
98 m_resourceType = value;
99 }
101 SetResourceType(value);
102 return *this;
103 }
105 private:
106 Aws::String m_identifier;
107
108 Aws::String m_code;
109
110 Aws::String m_message;
111
113 bool m_identifierHasBeenSet = false;
114 bool m_codeHasBeenSet = false;
115 bool m_messageHasBeenSet = false;
116 bool m_resourceTypeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace ComputeOptimizer
121} // namespace Aws
IdleRecommendationError & WithMessage(MessageT &&value)
AWS_COMPUTEOPTIMIZER_API IdleRecommendationError(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetResourceType(IdleRecommendationResourceType value)
AWS_COMPUTEOPTIMIZER_API IdleRecommendationError()=default
IdleRecommendationError & WithIdentifier(IdentifierT &&value)
AWS_COMPUTEOPTIMIZER_API IdleRecommendationError & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
IdleRecommendationError & WithResourceType(IdleRecommendationResourceType value)
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String