AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ExecutionError.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/model/ExecutionErrorType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 Transfer
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_TRANSFER_API ExecutionError() = default;
37 AWS_TRANSFER_API ExecutionError(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
62 inline ExecutionErrorType GetType() const { return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(ExecutionErrorType value) { m_typeHasBeenSet = true; m_type = value; }
65 inline ExecutionError& WithType(ExecutionErrorType value) { SetType(value); return *this;}
67
69
73 inline const Aws::String& GetMessage() const { return m_message; }
74 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
75 template<typename MessageT = Aws::String>
76 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
77 template<typename MessageT = Aws::String>
78 ExecutionError& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
80 private:
81
83 bool m_typeHasBeenSet = false;
84
85 Aws::String m_message;
86 bool m_messageHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Transfer
91} // namespace Aws
ExecutionErrorType GetType() const
ExecutionError & WithMessage(MessageT &&value)
ExecutionError & WithType(ExecutionErrorType value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMessage() const
void SetType(ExecutionErrorType value)
AWS_TRANSFER_API ExecutionError(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API ExecutionError & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API ExecutionError()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue