AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
GetRecommendationError.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ComputeOptimizer {
20namespace Model {
21
31 public:
32 AWS_COMPUTEOPTIMIZER_API GetRecommendationError() = default;
33 AWS_COMPUTEOPTIMIZER_API GetRecommendationError(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPUTEOPTIMIZER_API GetRecommendationError& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetIdentifier() const { return m_identifier; }
42 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
43 template <typename IdentifierT = Aws::String>
44 void SetIdentifier(IdentifierT&& value) {
45 m_identifierHasBeenSet = true;
46 m_identifier = std::forward<IdentifierT>(value);
47 }
48 template <typename IdentifierT = Aws::String>
49 GetRecommendationError& WithIdentifier(IdentifierT&& value) {
50 SetIdentifier(std::forward<IdentifierT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCode() const { return m_code; }
60 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
61 template <typename CodeT = Aws::String>
62 void SetCode(CodeT&& value) {
63 m_codeHasBeenSet = true;
64 m_code = std::forward<CodeT>(value);
65 }
66 template <typename CodeT = Aws::String>
68 SetCode(std::forward<CodeT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetMessage() const { return m_message; }
78 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
79 template <typename MessageT = Aws::String>
80 void SetMessage(MessageT&& value) {
81 m_messageHasBeenSet = true;
82 m_message = std::forward<MessageT>(value);
83 }
84 template <typename MessageT = Aws::String>
86 SetMessage(std::forward<MessageT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_identifier;
92
93 Aws::String m_code;
94
95 Aws::String m_message;
96 bool m_identifierHasBeenSet = false;
97 bool m_codeHasBeenSet = false;
98 bool m_messageHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ComputeOptimizer
103} // namespace Aws
AWS_COMPUTEOPTIMIZER_API GetRecommendationError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZER_API GetRecommendationError(Aws::Utils::Json::JsonView jsonValue)
GetRecommendationError & WithMessage(MessageT &&value)
GetRecommendationError & WithIdentifier(IdentifierT &&value)
AWS_COMPUTEOPTIMIZER_API GetRecommendationError()=default
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue