AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
JobLogEventData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace mgn {
20namespace Model {
21
28 public:
29 AWS_MGN_API JobLogEventData() = default;
33
35
38 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
39 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
40 template <typename SourceServerIDT = Aws::String>
41 void SetSourceServerID(SourceServerIDT&& value) {
42 m_sourceServerIDHasBeenSet = true;
43 m_sourceServerID = std::forward<SourceServerIDT>(value);
44 }
45 template <typename SourceServerIDT = Aws::String>
46 JobLogEventData& WithSourceServerID(SourceServerIDT&& value) {
47 SetSourceServerID(std::forward<SourceServerIDT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetConversionServerID() const { return m_conversionServerID; }
57 inline bool ConversionServerIDHasBeenSet() const { return m_conversionServerIDHasBeenSet; }
58 template <typename ConversionServerIDT = Aws::String>
59 void SetConversionServerID(ConversionServerIDT&& value) {
60 m_conversionServerIDHasBeenSet = true;
61 m_conversionServerID = std::forward<ConversionServerIDT>(value);
62 }
63 template <typename ConversionServerIDT = Aws::String>
64 JobLogEventData& WithConversionServerID(ConversionServerIDT&& value) {
65 SetConversionServerID(std::forward<ConversionServerIDT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetTargetInstanceID() const { return m_targetInstanceID; }
75 inline bool TargetInstanceIDHasBeenSet() const { return m_targetInstanceIDHasBeenSet; }
76 template <typename TargetInstanceIDT = Aws::String>
77 void SetTargetInstanceID(TargetInstanceIDT&& value) {
78 m_targetInstanceIDHasBeenSet = true;
79 m_targetInstanceID = std::forward<TargetInstanceIDT>(value);
80 }
81 template <typename TargetInstanceIDT = Aws::String>
82 JobLogEventData& WithTargetInstanceID(TargetInstanceIDT&& value) {
83 SetTargetInstanceID(std::forward<TargetInstanceIDT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetRawError() const { return m_rawError; }
93 inline bool RawErrorHasBeenSet() const { return m_rawErrorHasBeenSet; }
94 template <typename RawErrorT = Aws::String>
95 void SetRawError(RawErrorT&& value) {
96 m_rawErrorHasBeenSet = true;
97 m_rawError = std::forward<RawErrorT>(value);
98 }
99 template <typename RawErrorT = Aws::String>
100 JobLogEventData& WithRawError(RawErrorT&& value) {
101 SetRawError(std::forward<RawErrorT>(value));
102 return *this;
103 }
105
107
110 inline int GetAttemptCount() const { return m_attemptCount; }
111 inline bool AttemptCountHasBeenSet() const { return m_attemptCountHasBeenSet; }
112 inline void SetAttemptCount(int value) {
113 m_attemptCountHasBeenSet = true;
114 m_attemptCount = value;
115 }
117 SetAttemptCount(value);
118 return *this;
119 }
121
123
127 inline int GetMaxAttemptsCount() const { return m_maxAttemptsCount; }
128 inline bool MaxAttemptsCountHasBeenSet() const { return m_maxAttemptsCountHasBeenSet; }
129 inline void SetMaxAttemptsCount(int value) {
130 m_maxAttemptsCountHasBeenSet = true;
131 m_maxAttemptsCount = value;
132 }
134 SetMaxAttemptsCount(value);
135 return *this;
136 }
138 private:
139 Aws::String m_sourceServerID;
140
141 Aws::String m_conversionServerID;
142
143 Aws::String m_targetInstanceID;
144
145 Aws::String m_rawError;
146
147 int m_attemptCount{0};
148
149 int m_maxAttemptsCount{0};
150 bool m_sourceServerIDHasBeenSet = false;
151 bool m_conversionServerIDHasBeenSet = false;
152 bool m_targetInstanceIDHasBeenSet = false;
153 bool m_rawErrorHasBeenSet = false;
154 bool m_attemptCountHasBeenSet = false;
155 bool m_maxAttemptsCountHasBeenSet = false;
156};
157
158} // namespace Model
159} // namespace mgn
160} // namespace Aws
JobLogEventData & WithMaxAttemptsCount(int value)
AWS_MGN_API JobLogEventData & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRawError(RawErrorT &&value)
const Aws::String & GetConversionServerID() const
void SetSourceServerID(SourceServerIDT &&value)
const Aws::String & GetSourceServerID() const
JobLogEventData & WithConversionServerID(ConversionServerIDT &&value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
JobLogEventData & WithSourceServerID(SourceServerIDT &&value)
const Aws::String & GetTargetInstanceID() const
JobLogEventData & WithAttemptCount(int value)
AWS_MGN_API JobLogEventData(Aws::Utils::Json::JsonView jsonValue)
void SetTargetInstanceID(TargetInstanceIDT &&value)
const Aws::String & GetRawError() const
JobLogEventData & WithTargetInstanceID(TargetInstanceIDT &&value)
AWS_MGN_API JobLogEventData()=default
JobLogEventData & WithRawError(RawErrorT &&value)
void SetConversionServerID(ConversionServerIDT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue