AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DataSourceErrorMessage.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/model/DataSourceErrorType.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 DataZone
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DATAZONE_API DataSourceErrorMessage() = default;
39 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetErrorDetail() const { return m_errorDetail; }
48 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
49 template<typename ErrorDetailT = Aws::String>
50 void SetErrorDetail(ErrorDetailT&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::forward<ErrorDetailT>(value); }
51 template<typename ErrorDetailT = Aws::String>
52 DataSourceErrorMessage& WithErrorDetail(ErrorDetailT&& value) { SetErrorDetail(std::forward<ErrorDetailT>(value)); return *this;}
54
56
60 inline DataSourceErrorType GetErrorType() const { return m_errorType; }
61 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
62 inline void SetErrorType(DataSourceErrorType value) { m_errorTypeHasBeenSet = true; m_errorType = value; }
65 private:
66
67 Aws::String m_errorDetail;
68 bool m_errorDetailHasBeenSet = false;
69
71 bool m_errorTypeHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace DataZone
76} // namespace Aws
AWS_DATAZONE_API DataSourceErrorMessage(Aws::Utils::Json::JsonView jsonValue)
DataSourceErrorMessage & WithErrorType(DataSourceErrorType value)
DataSourceErrorMessage & WithErrorDetail(ErrorDetailT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API DataSourceErrorMessage()=default
AWS_DATAZONE_API DataSourceErrorMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue