AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AgentRuntimeError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10#include <aws/workspaces/model/AgentRuntimeErrorCode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace WorkSpaces {
21namespace Model {
22
30 public:
31 AWS_WORKSPACES_API AgentRuntimeError() = default;
32 AWS_WORKSPACES_API AgentRuntimeError(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACES_API AgentRuntimeError& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetAgentRuntimeId() const { return m_agentRuntimeId; }
41 inline bool AgentRuntimeIdHasBeenSet() const { return m_agentRuntimeIdHasBeenSet; }
42 template <typename AgentRuntimeIdT = Aws::String>
43 void SetAgentRuntimeId(AgentRuntimeIdT&& value) {
44 m_agentRuntimeIdHasBeenSet = true;
45 m_agentRuntimeId = std::forward<AgentRuntimeIdT>(value);
46 }
47 template <typename AgentRuntimeIdT = Aws::String>
48 AgentRuntimeError& WithAgentRuntimeId(AgentRuntimeIdT&& value) {
49 SetAgentRuntimeId(std::forward<AgentRuntimeIdT>(value));
50 return *this;
51 }
53
55
59 inline AgentRuntimeErrorCode GetErrorCode() const { return m_errorCode; }
60 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
62 m_errorCodeHasBeenSet = true;
63 m_errorCode = value;
64 }
66 SetErrorCode(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetMessage() const { return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 template <typename MessageT = Aws::String>
78 void SetMessage(MessageT&& value) {
79 m_messageHasBeenSet = true;
80 m_message = std::forward<MessageT>(value);
81 }
82 template <typename MessageT = Aws::String>
83 AgentRuntimeError& WithMessage(MessageT&& value) {
84 SetMessage(std::forward<MessageT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_agentRuntimeId;
90
92
93 Aws::String m_message;
94 bool m_agentRuntimeIdHasBeenSet = false;
95 bool m_errorCodeHasBeenSet = false;
96 bool m_messageHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace WorkSpaces
101} // namespace Aws
AgentRuntimeErrorCode GetErrorCode() const
AWS_WORKSPACES_API AgentRuntimeError(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API AgentRuntimeError()=default
AgentRuntimeError & WithAgentRuntimeId(AgentRuntimeIdT &&value)
void SetAgentRuntimeId(AgentRuntimeIdT &&value)
AgentRuntimeError & WithMessage(MessageT &&value)
AWS_WORKSPACES_API AgentRuntimeError & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AgentRuntimeError & WithErrorCode(AgentRuntimeErrorCode value)
const Aws::String & GetAgentRuntimeId() const
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetErrorCode(AgentRuntimeErrorCode value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String