AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DataReplicationError.h
1
6#pragma once
7#include <aws/mgn/Mgn_EXPORTS.h>
8#include <aws/mgn/model/DataReplicationErrorString.h>
9#include <aws/core/utils/memory/stl/AWSString.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 mgn
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_MGN_API DataReplicationError();
39
40
42
45 inline const DataReplicationErrorString& GetError() const{ return m_error; }
46 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
47 inline void SetError(const DataReplicationErrorString& value) { m_errorHasBeenSet = true; m_error = value; }
48 inline void SetError(DataReplicationErrorString&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
49 inline DataReplicationError& WithError(const DataReplicationErrorString& value) { SetError(value); return *this;}
50 inline DataReplicationError& WithError(DataReplicationErrorString&& value) { SetError(std::move(value)); return *this;}
52
54
57 inline const Aws::String& GetRawError() const{ return m_rawError; }
58 inline bool RawErrorHasBeenSet() const { return m_rawErrorHasBeenSet; }
59 inline void SetRawError(const Aws::String& value) { m_rawErrorHasBeenSet = true; m_rawError = value; }
60 inline void SetRawError(Aws::String&& value) { m_rawErrorHasBeenSet = true; m_rawError = std::move(value); }
61 inline void SetRawError(const char* value) { m_rawErrorHasBeenSet = true; m_rawError.assign(value); }
62 inline DataReplicationError& WithRawError(const Aws::String& value) { SetRawError(value); return *this;}
63 inline DataReplicationError& WithRawError(Aws::String&& value) { SetRawError(std::move(value)); return *this;}
64 inline DataReplicationError& WithRawError(const char* value) { SetRawError(value); return *this;}
66 private:
67
69 bool m_errorHasBeenSet = false;
70
71 Aws::String m_rawError;
72 bool m_rawErrorHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace mgn
77} // namespace Aws
DataReplicationError & WithRawError(Aws::String &&value)
void SetError(const DataReplicationErrorString &value)
AWS_MGN_API DataReplicationError & operator=(Aws::Utils::Json::JsonView jsonValue)
DataReplicationError & WithRawError(const Aws::String &value)
void SetError(DataReplicationErrorString &&value)
DataReplicationError & WithError(const DataReplicationErrorString &value)
const DataReplicationErrorString & GetError() const
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRawError() const
DataReplicationError & WithError(DataReplicationErrorString &&value)
void SetRawError(const Aws::String &value)
AWS_MGN_API DataReplicationError(Aws::Utils::Json::JsonView jsonValue)
DataReplicationError & WithRawError(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue