AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IdleRecommendationError.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/compute-optimizer/model/IdleRecommendationResourceType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ComputeOptimizer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_COMPUTEOPTIMIZER_API IdleRecommendationError() = default;
37 AWS_COMPUTEOPTIMIZER_API IdleRecommendationError(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API IdleRecommendationError& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetIdentifier() const { return m_identifier; }
47 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
48 template<typename IdentifierT = Aws::String>
49 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
50 template<typename IdentifierT = Aws::String>
51 IdleRecommendationError& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
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) { m_codeHasBeenSet = true; m_code = std::forward<CodeT>(value); }
62 template<typename CodeT = Aws::String>
63 IdleRecommendationError& WithCode(CodeT&& value) { SetCode(std::forward<CodeT>(value)); return *this;}
65
67
70 inline const Aws::String& GetMessage() const { return m_message; }
71 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
72 template<typename MessageT = Aws::String>
73 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
74 template<typename MessageT = Aws::String>
75 IdleRecommendationError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
77
79
82 inline IdleRecommendationResourceType GetResourceType() const { return m_resourceType; }
83 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
84 inline void SetResourceType(IdleRecommendationResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
87 private:
88
89 Aws::String m_identifier;
90 bool m_identifierHasBeenSet = false;
91
92 Aws::String m_code;
93 bool m_codeHasBeenSet = false;
94
95 Aws::String m_message;
96 bool m_messageHasBeenSet = false;
97
99 bool m_resourceTypeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace ComputeOptimizer
104} // namespace Aws
AWS_COMPUTEOPTIMIZER_API IdleRecommendationError(Aws::Utils::Json::JsonView jsonValue)
IdleRecommendationError & WithMessage(MessageT &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceType(IdleRecommendationResourceType value)
AWS_COMPUTEOPTIMIZER_API IdleRecommendationError()=default
IdleRecommendationError & WithIdentifier(IdentifierT &&value)
AWS_COMPUTEOPTIMIZER_API IdleRecommendationError & operator=(Aws::Utils::Json::JsonView jsonValue)
IdleRecommendationError & WithResourceType(IdleRecommendationResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue