AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ComputeOptimizer
22{
23namespace Model
24{
25
35 {
36 public:
37 AWS_COMPUTEOPTIMIZER_API GetRecommendationError() = default;
38 AWS_COMPUTEOPTIMIZER_API GetRecommendationError(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API GetRecommendationError& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetIdentifier() const { return m_identifier; }
48 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
49 template<typename IdentifierT = Aws::String>
50 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
51 template<typename IdentifierT = Aws::String>
52 GetRecommendationError& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
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) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
63 template<typename CodeT = Aws::String>
64 GetRecommendationError& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
66
68
71 inline const Aws::String& GetMessage() const { return m_message; }
72 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
73 template<typename MessageT = Aws::String>
74 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
75 template<typename MessageT = Aws::String>
76 GetRecommendationError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
78 private:
79
80 Aws::String m_identifier;
81 bool m_identifierHasBeenSet = false;
82
83 Aws::String m_code;
84 bool m_codeHasBeenSet = false;
85
86 Aws::String m_message;
87 bool m_messageHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace ComputeOptimizer
92} // 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