AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ImportTaskError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9#include <aws/mgn/model/ImportErrorData.h>
10#include <aws/mgn/model/ImportErrorType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace mgn {
22namespace Model {
23
30 public:
31 AWS_MGN_API ImportTaskError() = default;
35
37
40 inline const Aws::String& GetErrorDateTime() const { return m_errorDateTime; }
41 inline bool ErrorDateTimeHasBeenSet() const { return m_errorDateTimeHasBeenSet; }
42 template <typename ErrorDateTimeT = Aws::String>
43 void SetErrorDateTime(ErrorDateTimeT&& value) {
44 m_errorDateTimeHasBeenSet = true;
45 m_errorDateTime = std::forward<ErrorDateTimeT>(value);
46 }
47 template <typename ErrorDateTimeT = Aws::String>
48 ImportTaskError& WithErrorDateTime(ErrorDateTimeT&& value) {
49 SetErrorDateTime(std::forward<ErrorDateTimeT>(value));
50 return *this;
51 }
53
55
58 inline ImportErrorType GetErrorType() const { return m_errorType; }
59 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
60 inline void SetErrorType(ImportErrorType value) {
61 m_errorTypeHasBeenSet = true;
62 m_errorType = value;
63 }
65 SetErrorType(value);
66 return *this;
67 }
69
71
74 inline const ImportErrorData& GetErrorData() const { return m_errorData; }
75 inline bool ErrorDataHasBeenSet() const { return m_errorDataHasBeenSet; }
76 template <typename ErrorDataT = ImportErrorData>
77 void SetErrorData(ErrorDataT&& value) {
78 m_errorDataHasBeenSet = true;
79 m_errorData = std::forward<ErrorDataT>(value);
80 }
81 template <typename ErrorDataT = ImportErrorData>
82 ImportTaskError& WithErrorData(ErrorDataT&& value) {
83 SetErrorData(std::forward<ErrorDataT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_errorDateTime;
89
91
92 ImportErrorData m_errorData;
93 bool m_errorDateTimeHasBeenSet = false;
94 bool m_errorTypeHasBeenSet = false;
95 bool m_errorDataHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace mgn
100} // namespace Aws
ImportTaskError & WithErrorDateTime(ErrorDateTimeT &&value)
void SetErrorDateTime(ErrorDateTimeT &&value)
const Aws::String & GetErrorDateTime() const
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MGN_API ImportTaskError(Aws::Utils::Json::JsonView jsonValue)
ImportTaskError & WithErrorType(ImportErrorType value)
void SetErrorData(ErrorDataT &&value)
const ImportErrorData & GetErrorData() const
void SetErrorType(ImportErrorType value)
AWS_MGN_API ImportTaskError()=default
ImportTaskError & WithErrorData(ErrorDataT &&value)
ImportErrorType GetErrorType() const
AWS_MGN_API ImportTaskError & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue