AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetErrorDetail(const Aws::String& value) { m_errorDetailHasBeenSet = true; m_errorDetail = value; }
50 inline void SetErrorDetail(Aws::String&& value) { m_errorDetailHasBeenSet = true; m_errorDetail = std::move(value); }
51 inline void SetErrorDetail(const char* value) { m_errorDetailHasBeenSet = true; m_errorDetail.assign(value); }
52 inline DataSourceErrorMessage& WithErrorDetail(const Aws::String& value) { SetErrorDetail(value); return *this;}
53 inline DataSourceErrorMessage& WithErrorDetail(Aws::String&& value) { SetErrorDetail(std::move(value)); return *this;}
54 inline DataSourceErrorMessage& WithErrorDetail(const char* value) { SetErrorDetail(value); return *this;}
56
58
62 inline const DataSourceErrorType& GetErrorType() const{ return m_errorType; }
63 inline bool ErrorTypeHasBeenSet() const { return m_errorTypeHasBeenSet; }
64 inline void SetErrorType(const DataSourceErrorType& value) { m_errorTypeHasBeenSet = true; m_errorType = value; }
65 inline void SetErrorType(DataSourceErrorType&& value) { m_errorTypeHasBeenSet = true; m_errorType = std::move(value); }
66 inline DataSourceErrorMessage& WithErrorType(const DataSourceErrorType& value) { SetErrorType(value); return *this;}
67 inline DataSourceErrorMessage& WithErrorType(DataSourceErrorType&& value) { SetErrorType(std::move(value)); return *this;}
69 private:
70
71 Aws::String m_errorDetail;
72 bool m_errorDetailHasBeenSet = false;
73
74 DataSourceErrorType m_errorType;
75 bool m_errorTypeHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace DataZone
80} // namespace Aws
AWS_DATAZONE_API DataSourceErrorMessage(Aws::Utils::Json::JsonView jsonValue)
DataSourceErrorMessage & WithErrorDetail(const Aws::String &value)
void SetErrorType(const DataSourceErrorType &value)
DataSourceErrorMessage & WithErrorType(DataSourceErrorType &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceErrorMessage & WithErrorType(const DataSourceErrorType &value)
DataSourceErrorMessage & WithErrorDetail(Aws::String &&value)
const DataSourceErrorType & GetErrorType() const
DataSourceErrorMessage & WithErrorDetail(const char *value)
void SetErrorType(DataSourceErrorType &&value)
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