AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetAgentUpgradeSettingsResult.h
1
6#pragma once
7#include <aws/backup-external/BackupExternal_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace BackupExternal {
23namespace Model {
25 public:
26 AWS_BACKUPEXTERNAL_API GetAgentUpgradeSettingsResult() = default;
29
31
34 inline bool GetEnableAutoUpgrade() const { return m_enableAutoUpgrade; }
35 inline void SetEnableAutoUpgrade(bool value) {
36 m_enableAutoUpgradeHasBeenSet = true;
37 m_enableAutoUpgrade = value;
38 }
41 return *this;
42 }
44
46
47 inline int GetStartHourUtc() const { return m_startHourUtc; }
48 inline void SetStartHourUtc(int value) {
49 m_startHourUtcHasBeenSet = true;
50 m_startHourUtc = value;
51 }
53 SetStartHourUtc(value);
54 return *this;
55 }
57
59
60 inline int GetEndHourUtc() const { return m_endHourUtc; }
61 inline void SetEndHourUtc(int value) {
62 m_endHourUtcHasBeenSet = true;
63 m_endHourUtc = value;
64 }
66 SetEndHourUtc(value);
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
86
87 private:
88 bool m_enableAutoUpgrade{false};
89
90 int m_startHourUtc{0};
91
92 int m_endHourUtc{0};
93
94 Aws::String m_requestId;
95 Aws::Http::HttpResponseCode m_HttpResponseCode;
96 bool m_enableAutoUpgradeHasBeenSet = false;
97 bool m_startHourUtcHasBeenSet = false;
98 bool m_endHourUtcHasBeenSet = false;
99 bool m_requestIdHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace BackupExternal
104} // namespace Aws
GetAgentUpgradeSettingsResult & WithEnableAutoUpgrade(bool value)
AWS_BACKUPEXTERNAL_API GetAgentUpgradeSettingsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BACKUPEXTERNAL_API GetAgentUpgradeSettingsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_BACKUPEXTERNAL_API GetAgentUpgradeSettingsResult()=default
GetAgentUpgradeSettingsResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue