AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ExecutionErrorType& GetType() const{ return m_type; }
63 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
64 inline void SetType(const ExecutionErrorType& value) { m_typeHasBeenSet = true; m_type = value; }
65 inline void SetType(ExecutionErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
66 inline ExecutionError& WithType(const ExecutionErrorType& value) { SetType(value); return *this;}
67 inline ExecutionError& WithType(ExecutionErrorType&& value) { SetType(std::move(value)); return *this;}
69
71
75 inline const Aws::String& GetMessage() const{ return m_message; }
76 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
77 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
78 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
79 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
80 inline ExecutionError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
81 inline ExecutionError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
82 inline ExecutionError& WithMessage(const char* value) { SetMessage(value); return *this;}
84 private:
85
86 ExecutionErrorType m_type;
87 bool m_typeHasBeenSet = false;
88
89 Aws::String m_message;
90 bool m_messageHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Transfer
95} // namespace Aws
ExecutionError & WithMessage(const char *value)
void SetMessage(Aws::String &&value)
ExecutionError & WithType(ExecutionErrorType &&value)
void SetType(ExecutionErrorType &&value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetMessage() const
const ExecutionErrorType & GetType() const
ExecutionError & WithType(const ExecutionErrorType &value)
ExecutionError & WithMessage(Aws::String &&value)
void SetType(const ExecutionErrorType &value)
ExecutionError & WithMessage(const Aws::String &value)
AWS_TRANSFER_API ExecutionError(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(const char *value)
void SetMessage(const Aws::String &value)
AWS_TRANSFER_API ExecutionError & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue