AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ImportTaskError.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/model/ImportErrorData.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/mgn/model/ImportErrorType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace mgn
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_MGN_API ImportTaskError() = default;
40
41
43
46 inline const ImportErrorData& GetErrorData() const { return m_errorData; }
47 inline bool ErrorDataHasBeenSet() const { return m_errorDataHasBeenSet; }
48 template<typename ErrorDataT = ImportErrorData>
49 void SetErrorData(ErrorDataT&& value) { m_errorDataHasBeenSet = true; m_errorData = std::forward<ErrorDataT>(value); }
50 template<typename ErrorDataT = ImportErrorData>
51 ImportTaskError& WithErrorData(ErrorDataT&& value) { SetErrorData(std::forward<ErrorDataT>(value)); return *this;}
53
55
58 inline const Aws::String& GetErrorDateTime() const { return m_errorDateTime; }
59 inline bool ErrorDateTimeHasBeenSet() const { return m_errorDateTimeHasBeenSet; }
60 template<typename ErrorDateTimeT = Aws::String>
61 void SetErrorDateTime(ErrorDateTimeT&& value) { m_errorDateTimeHasBeenSet = true; m_errorDateTime = std::forward<ErrorDateTimeT>(value); }
62 template<typename ErrorDateTimeT = Aws::String>
63 ImportTaskError& WithErrorDateTime(ErrorDateTimeT&& value) { SetErrorDateTime(std::forward<ErrorDateTimeT>(value)); return *this;}
65
67
70 inline ImportErrorType GetErrorType() const { return m_errorType; }
71 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
72 inline void SetErrorType(ImportErrorType value) { m_errorTypeHasBeenSet = true; m_errorType = value; }
73 inline ImportTaskError& WithErrorType(ImportErrorType value) { SetErrorType(value); return *this;}
75 private:
76
77 ImportErrorData m_errorData;
78 bool m_errorDataHasBeenSet = false;
79
80 Aws::String m_errorDateTime;
81 bool m_errorDateTimeHasBeenSet = false;
82
84 bool m_errorTypeHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace mgn
89} // 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