AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
JobLogEventData.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/drs/Drs_EXPORTS.h>
9#include <aws/drs/model/ConversionProperties.h>
10#include <aws/drs/model/EventResourceData.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace drs {
22namespace Model {
23
30 public:
31 AWS_DRS_API JobLogEventData() = default;
35
37
40 inline const Aws::String& GetSourceServerID() const { return m_sourceServerID; }
41 inline bool SourceServerIDHasBeenSet() const { return m_sourceServerIDHasBeenSet; }
42 template <typename SourceServerIDT = Aws::String>
43 void SetSourceServerID(SourceServerIDT&& value) {
44 m_sourceServerIDHasBeenSet = true;
45 m_sourceServerID = std::forward<SourceServerIDT>(value);
46 }
47 template <typename SourceServerIDT = Aws::String>
48 JobLogEventData& WithSourceServerID(SourceServerIDT&& value) {
49 SetSourceServerID(std::forward<SourceServerIDT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetConversionServerID() const { return m_conversionServerID; }
59 inline bool ConversionServerIDHasBeenSet() const { return m_conversionServerIDHasBeenSet; }
60 template <typename ConversionServerIDT = Aws::String>
61 void SetConversionServerID(ConversionServerIDT&& value) {
62 m_conversionServerIDHasBeenSet = true;
63 m_conversionServerID = std::forward<ConversionServerIDT>(value);
64 }
65 template <typename ConversionServerIDT = Aws::String>
66 JobLogEventData& WithConversionServerID(ConversionServerIDT&& value) {
67 SetConversionServerID(std::forward<ConversionServerIDT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetTargetInstanceID() const { return m_targetInstanceID; }
77 inline bool TargetInstanceIDHasBeenSet() const { return m_targetInstanceIDHasBeenSet; }
78 template <typename TargetInstanceIDT = Aws::String>
79 void SetTargetInstanceID(TargetInstanceIDT&& value) {
80 m_targetInstanceIDHasBeenSet = true;
81 m_targetInstanceID = std::forward<TargetInstanceIDT>(value);
82 }
83 template <typename TargetInstanceIDT = Aws::String>
84 JobLogEventData& WithTargetInstanceID(TargetInstanceIDT&& value) {
85 SetTargetInstanceID(std::forward<TargetInstanceIDT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetRawError() const { return m_rawError; }
95 inline bool RawErrorHasBeenSet() const { return m_rawErrorHasBeenSet; }
96 template <typename RawErrorT = Aws::String>
97 void SetRawError(RawErrorT&& value) {
98 m_rawErrorHasBeenSet = true;
99 m_rawError = std::forward<RawErrorT>(value);
100 }
101 template <typename RawErrorT = Aws::String>
102 JobLogEventData& WithRawError(RawErrorT&& value) {
103 SetRawError(std::forward<RawErrorT>(value));
104 return *this;
105 }
107
109
112 inline const ConversionProperties& GetConversionProperties() const { return m_conversionProperties; }
113 inline bool ConversionPropertiesHasBeenSet() const { return m_conversionPropertiesHasBeenSet; }
114 template <typename ConversionPropertiesT = ConversionProperties>
115 void SetConversionProperties(ConversionPropertiesT&& value) {
116 m_conversionPropertiesHasBeenSet = true;
117 m_conversionProperties = std::forward<ConversionPropertiesT>(value);
118 }
119 template <typename ConversionPropertiesT = ConversionProperties>
120 JobLogEventData& WithConversionProperties(ConversionPropertiesT&& value) {
121 SetConversionProperties(std::forward<ConversionPropertiesT>(value));
122 return *this;
123 }
125
127
130 inline const EventResourceData& GetEventResourceData() const { return m_eventResourceData; }
131 inline bool EventResourceDataHasBeenSet() const { return m_eventResourceDataHasBeenSet; }
132 template <typename EventResourceDataT = EventResourceData>
133 void SetEventResourceData(EventResourceDataT&& value) {
134 m_eventResourceDataHasBeenSet = true;
135 m_eventResourceData = std::forward<EventResourceDataT>(value);
136 }
137 template <typename EventResourceDataT = EventResourceData>
138 JobLogEventData& WithEventResourceData(EventResourceDataT&& value) {
139 SetEventResourceData(std::forward<EventResourceDataT>(value));
140 return *this;
141 }
143
145
148 inline long long GetAttemptCount() const { return m_attemptCount; }
149 inline bool AttemptCountHasBeenSet() const { return m_attemptCountHasBeenSet; }
150 inline void SetAttemptCount(long long value) {
151 m_attemptCountHasBeenSet = true;
152 m_attemptCount = value;
153 }
154 inline JobLogEventData& WithAttemptCount(long long value) {
155 SetAttemptCount(value);
156 return *this;
157 }
159
161
165 inline long long GetMaxAttemptsCount() const { return m_maxAttemptsCount; }
166 inline bool MaxAttemptsCountHasBeenSet() const { return m_maxAttemptsCountHasBeenSet; }
167 inline void SetMaxAttemptsCount(long long value) {
168 m_maxAttemptsCountHasBeenSet = true;
169 m_maxAttemptsCount = value;
170 }
171 inline JobLogEventData& WithMaxAttemptsCount(long long value) {
172 SetMaxAttemptsCount(value);
173 return *this;
174 }
176 private:
177 Aws::String m_sourceServerID;
178
179 Aws::String m_conversionServerID;
180
181 Aws::String m_targetInstanceID;
182
183 Aws::String m_rawError;
184
185 ConversionProperties m_conversionProperties;
186
187 EventResourceData m_eventResourceData;
188
189 long long m_attemptCount{0};
190
191 long long m_maxAttemptsCount{0};
192 bool m_sourceServerIDHasBeenSet = false;
193 bool m_conversionServerIDHasBeenSet = false;
194 bool m_targetInstanceIDHasBeenSet = false;
195 bool m_rawErrorHasBeenSet = false;
196 bool m_conversionPropertiesHasBeenSet = false;
197 bool m_eventResourceDataHasBeenSet = false;
198 bool m_attemptCountHasBeenSet = false;
199 bool m_maxAttemptsCountHasBeenSet = false;
200};
201
202} // namespace Model
203} // namespace drs
204} // namespace Aws
void SetMaxAttemptsCount(long long value)
JobLogEventData & WithRawError(RawErrorT &&value)
void SetAttemptCount(long long value)
JobLogEventData & WithSourceServerID(SourceServerIDT &&value)
void SetTargetInstanceID(TargetInstanceIDT &&value)
const EventResourceData & GetEventResourceData() const
const Aws::String & GetConversionServerID() const
void SetRawError(RawErrorT &&value)
void SetEventResourceData(EventResourceDataT &&value)
void SetConversionServerID(ConversionServerIDT &&value)
JobLogEventData & WithMaxAttemptsCount(long long value)
AWS_DRS_API JobLogEventData & operator=(Aws::Utils::Json::JsonView jsonValue)
JobLogEventData & WithEventResourceData(EventResourceDataT &&value)
JobLogEventData & WithAttemptCount(long long value)
AWS_DRS_API JobLogEventData(Aws::Utils::Json::JsonView jsonValue)
const ConversionProperties & GetConversionProperties() const
JobLogEventData & WithTargetInstanceID(TargetInstanceIDT &&value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
JobLogEventData & WithConversionProperties(ConversionPropertiesT &&value)
const Aws::String & GetRawError() const
const Aws::String & GetTargetInstanceID() const
AWS_DRS_API JobLogEventData()=default
void SetConversionProperties(ConversionPropertiesT &&value)
JobLogEventData & WithConversionServerID(ConversionServerIDT &&value)
void SetSourceServerID(SourceServerIDT &&value)
const Aws::String & GetSourceServerID() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue