AWS SDK for C++

AWS SDK for C++ Version 1.11.767

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Transfer {
21namespace Model {
22
30 public:
31 AWS_TRANSFER_API ExecutionError() = default;
32 AWS_TRANSFER_API ExecutionError(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
56 inline ExecutionErrorType GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 inline void SetType(ExecutionErrorType value) {
59 m_typeHasBeenSet = true;
60 m_type = value;
61 }
63 SetType(value);
64 return *this;
65 }
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) {
77 m_messageHasBeenSet = true;
78 m_message = std::forward<MessageT>(value);
79 }
80 template <typename MessageT = Aws::String>
81 ExecutionError& WithMessage(MessageT&& value) {
82 SetMessage(std::forward<MessageT>(value));
83 return *this;
84 }
86 private:
88
89 Aws::String m_message;
90 bool m_typeHasBeenSet = false;
91 bool m_messageHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace Transfer
96} // 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