AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DbServerPatchingDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/odb/Odb_EXPORTS.h>
9#include <aws/odb/model/DbServerPatchingStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace odb {
21namespace Model {
22
31 public:
32 AWS_ODB_API DbServerPatchingDetails() = default;
36
38
41 inline int GetEstimatedPatchDuration() const { return m_estimatedPatchDuration; }
42 inline bool EstimatedPatchDurationHasBeenSet() const { return m_estimatedPatchDurationHasBeenSet; }
43 inline void SetEstimatedPatchDuration(int value) {
44 m_estimatedPatchDurationHasBeenSet = true;
45 m_estimatedPatchDuration = value;
46 }
49 return *this;
50 }
52
54
59 inline DbServerPatchingStatus GetPatchingStatus() const { return m_patchingStatus; }
60 inline bool PatchingStatusHasBeenSet() const { return m_patchingStatusHasBeenSet; }
62 m_patchingStatusHasBeenSet = true;
63 m_patchingStatus = value;
64 }
66 SetPatchingStatus(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetTimePatchingEnded() const { return m_timePatchingEnded; }
76 inline bool TimePatchingEndedHasBeenSet() const { return m_timePatchingEndedHasBeenSet; }
77 template <typename TimePatchingEndedT = Aws::String>
78 void SetTimePatchingEnded(TimePatchingEndedT&& value) {
79 m_timePatchingEndedHasBeenSet = true;
80 m_timePatchingEnded = std::forward<TimePatchingEndedT>(value);
81 }
82 template <typename TimePatchingEndedT = Aws::String>
83 DbServerPatchingDetails& WithTimePatchingEnded(TimePatchingEndedT&& value) {
84 SetTimePatchingEnded(std::forward<TimePatchingEndedT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetTimePatchingStarted() const { return m_timePatchingStarted; }
94 inline bool TimePatchingStartedHasBeenSet() const { return m_timePatchingStartedHasBeenSet; }
95 template <typename TimePatchingStartedT = Aws::String>
96 void SetTimePatchingStarted(TimePatchingStartedT&& value) {
97 m_timePatchingStartedHasBeenSet = true;
98 m_timePatchingStarted = std::forward<TimePatchingStartedT>(value);
99 }
100 template <typename TimePatchingStartedT = Aws::String>
101 DbServerPatchingDetails& WithTimePatchingStarted(TimePatchingStartedT&& value) {
102 SetTimePatchingStarted(std::forward<TimePatchingStartedT>(value));
103 return *this;
104 }
106 private:
107 int m_estimatedPatchDuration{0};
108
110
111 Aws::String m_timePatchingEnded;
112
113 Aws::String m_timePatchingStarted;
114 bool m_estimatedPatchDurationHasBeenSet = false;
115 bool m_patchingStatusHasBeenSet = false;
116 bool m_timePatchingEndedHasBeenSet = false;
117 bool m_timePatchingStartedHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace odb
122} // namespace Aws
AWS_ODB_API DbServerPatchingDetails()=default
DbServerPatchingDetails & WithPatchingStatus(DbServerPatchingStatus value)
AWS_ODB_API DbServerPatchingDetails(Aws::Utils::Json::JsonView jsonValue)
DbServerPatchingDetails & WithTimePatchingStarted(TimePatchingStartedT &&value)
DbServerPatchingDetails & WithTimePatchingEnded(TimePatchingEndedT &&value)
DbServerPatchingDetails & WithEstimatedPatchDuration(int value)
AWS_ODB_API DbServerPatchingDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ODB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPatchingStatus(DbServerPatchingStatus value)
void SetTimePatchingStarted(TimePatchingStartedT &&value)
DbServerPatchingStatus GetPatchingStatus() const
void SetTimePatchingEnded(TimePatchingEndedT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue