AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DataReplicationError.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9#include <aws/mgn/model/DataReplicationErrorString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace mgn {
21namespace Model {
22
29 public:
30 AWS_MGN_API DataReplicationError() = default;
34
36
39 inline DataReplicationErrorString GetError() const { return m_error; }
40 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
42 m_errorHasBeenSet = true;
43 m_error = value;
44 }
46 SetError(value);
47 return *this;
48 }
50
52
55 inline const Aws::String& GetRawError() const { return m_rawError; }
56 inline bool RawErrorHasBeenSet() const { return m_rawErrorHasBeenSet; }
57 template <typename RawErrorT = Aws::String>
58 void SetRawError(RawErrorT&& value) {
59 m_rawErrorHasBeenSet = true;
60 m_rawError = std::forward<RawErrorT>(value);
61 }
62 template <typename RawErrorT = Aws::String>
63 DataReplicationError& WithRawError(RawErrorT&& value) {
64 SetRawError(std::forward<RawErrorT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_rawError;
72 bool m_errorHasBeenSet = false;
73 bool m_rawErrorHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace mgn
78} // namespace Aws
DataReplicationError & WithError(DataReplicationErrorString value)
AWS_MGN_API DataReplicationError & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetError(DataReplicationErrorString value)
DataReplicationError & WithRawError(RawErrorT &&value)
AWS_MGN_API DataReplicationError()=default
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRawError() const
AWS_MGN_API DataReplicationError(Aws::Utils::Json::JsonView jsonValue)
DataReplicationErrorString GetError() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue