AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
50 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
51 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
52 inline GetRecommendationError& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
53 inline GetRecommendationError& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
54 inline GetRecommendationError& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
56
58
61 inline const Aws::String& GetCode() const{ return m_code; }
62 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
63 inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; }
64 inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); }
65 inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); }
66 inline GetRecommendationError& WithCode(const Aws::String& value) { SetCode(value); return *this;}
67 inline GetRecommendationError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;}
68 inline GetRecommendationError& WithCode(const char* value) { SetCode(value); return *this;}
70
72
75 inline const Aws::String& GetMessage() const{ return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
78 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
79 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
80 inline GetRecommendationError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
81 inline GetRecommendationError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
82 inline GetRecommendationError& WithMessage(const char* value) { SetMessage(value); return *this;}
84 private:
85
86 Aws::String m_identifier;
87 bool m_identifierHasBeenSet = false;
88
89 Aws::String m_code;
90 bool m_codeHasBeenSet = false;
91
92 Aws::String m_message;
93 bool m_messageHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ComputeOptimizer
98} // namespace Aws
AWS_COMPUTEOPTIMIZER_API GetRecommendationError & operator=(Aws::Utils::Json::JsonView jsonValue)
GetRecommendationError & WithIdentifier(Aws::String &&value)
GetRecommendationError & WithIdentifier(const char *value)
GetRecommendationError & WithMessage(Aws::String &&value)
AWS_COMPUTEOPTIMIZER_API GetRecommendationError(Aws::Utils::Json::JsonView jsonValue)
GetRecommendationError & WithMessage(const char *value)
GetRecommendationError & WithCode(Aws::String &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
GetRecommendationError & WithCode(const char *value)
GetRecommendationError & WithMessage(const Aws::String &value)
GetRecommendationError & WithIdentifier(const Aws::String &value)
GetRecommendationError & WithCode(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue