AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DataSourceErrorMessage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/DataSourceErrorType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DataZone {
21namespace Model {
22
30 public:
31 AWS_DATAZONE_API DataSourceErrorMessage() = default;
34 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline DataSourceErrorType GetErrorType() const { return m_errorType; }
42 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
43 inline void SetErrorType(DataSourceErrorType value) {
44 m_errorTypeHasBeenSet = true;
45 m_errorType = value;
46 }
48 SetErrorType(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetErrorDetail() const { return m_errorDetail; }
59 inline bool ErrorDetailHasBeenSet() const { return m_errorDetailHasBeenSet; }
60 template <typename ErrorDetailT = Aws::String>
61 void SetErrorDetail(ErrorDetailT&& value) {
62 m_errorDetailHasBeenSet = true;
63 m_errorDetail = std::forward<ErrorDetailT>(value);
64 }
65 template <typename ErrorDetailT = Aws::String>
66 DataSourceErrorMessage& WithErrorDetail(ErrorDetailT&& value) {
67 SetErrorDetail(std::forward<ErrorDetailT>(value));
68 return *this;
69 }
71 private:
73
74 Aws::String m_errorDetail;
75 bool m_errorTypeHasBeenSet = false;
76 bool m_errorDetailHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace DataZone
81} // 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