AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecoveryInstanceDataReplicationError.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/model/FailbackReplicationError.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 drs
23{
24namespace Model
25{
26
33 {
34 public:
39
40
42
45 inline const FailbackReplicationError& GetError() const{ return m_error; }
46 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
47 inline void SetError(const FailbackReplicationError& value) { m_errorHasBeenSet = true; m_error = value; }
48 inline void SetError(FailbackReplicationError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); }
50 inline RecoveryInstanceDataReplicationError& WithError(FailbackReplicationError&& 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 RecoveryInstanceDataReplicationError& WithRawError(const Aws::String& value) { SetRawError(value); return *this;}
63 inline RecoveryInstanceDataReplicationError& WithRawError(Aws::String&& value) { SetRawError(std::move(value)); return *this;}
64 inline RecoveryInstanceDataReplicationError& 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 drs
77} // namespace Aws
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DRS_API RecoveryInstanceDataReplicationError & operator=(Aws::Utils::Json::JsonView jsonValue)
RecoveryInstanceDataReplicationError & WithRawError(const char *value)
RecoveryInstanceDataReplicationError & WithRawError(const Aws::String &value)
RecoveryInstanceDataReplicationError & WithRawError(Aws::String &&value)
RecoveryInstanceDataReplicationError & WithError(const FailbackReplicationError &value)
AWS_DRS_API RecoveryInstanceDataReplicationError(Aws::Utils::Json::JsonView jsonValue)
RecoveryInstanceDataReplicationError & WithError(FailbackReplicationError &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue