AWS SDK for C++

AWS SDK for C++ Version 1.11.920

Loading...
Searching...
No Matches
GatewayOperationError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
29 public:
30 AWS_ECS_API GatewayOperationError() = default;
34
36
40 inline const Aws::String& GetOperation() const { return m_operation; }
41 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
42 template <typename OperationT = Aws::String>
43 void SetOperation(OperationT&& value) {
44 m_operationHasBeenSet = true;
45 m_operation = std::forward<OperationT>(value);
46 }
47 template <typename OperationT = Aws::String>
48 GatewayOperationError& WithOperation(OperationT&& value) {
49 SetOperation(std::forward<OperationT>(value));
50 return *this;
51 }
53
55
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_operation;
92
93 Aws::String m_code;
94
95 Aws::String m_message;
96 bool m_operationHasBeenSet = false;
97 bool m_codeHasBeenSet = false;
98 bool m_messageHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ECS
103} // namespace Aws
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API GatewayOperationError(Aws::Utils::Json::JsonView jsonValue)
GatewayOperationError & WithCode(CodeT &&value)
AWS_ECS_API GatewayOperationError & operator=(Aws::Utils::Json::JsonView jsonValue)
GatewayOperationError & WithOperation(OperationT &&value)
AWS_ECS_API GatewayOperationError()=default
GatewayOperationError & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue