AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
RollbackServiceSoftwareOptions.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchService {
20namespace Model {
21
29 public:
30 AWS_OPENSEARCHSERVICE_API RollbackServiceSoftwareOptions() = default;
31 AWS_OPENSEARCHSERVICE_API RollbackServiceSoftwareOptions(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCurrentVersion() const { return m_currentVersion; }
40 inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; }
41 template <typename CurrentVersionT = Aws::String>
42 void SetCurrentVersion(CurrentVersionT&& value) {
43 m_currentVersionHasBeenSet = true;
44 m_currentVersion = std::forward<CurrentVersionT>(value);
45 }
46 template <typename CurrentVersionT = Aws::String>
48 SetCurrentVersion(std::forward<CurrentVersionT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetNewVersion() const { return m_newVersion; }
58 inline bool NewVersionHasBeenSet() const { return m_newVersionHasBeenSet; }
59 template <typename NewVersionT = Aws::String>
60 void SetNewVersion(NewVersionT&& value) {
61 m_newVersionHasBeenSet = true;
62 m_newVersion = std::forward<NewVersionT>(value);
63 }
64 template <typename NewVersionT = Aws::String>
66 SetNewVersion(std::forward<NewVersionT>(value));
67 return *this;
68 }
70
72
75 inline bool GetRollbackAvailable() const { return m_rollbackAvailable; }
76 inline bool RollbackAvailableHasBeenSet() const { return m_rollbackAvailableHasBeenSet; }
77 inline void SetRollbackAvailable(bool value) {
78 m_rollbackAvailableHasBeenSet = true;
79 m_rollbackAvailable = value;
80 }
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_currentVersion;
106
107 Aws::String m_newVersion;
108
109 bool m_rollbackAvailable{false};
110
111 Aws::String m_description;
112 bool m_currentVersionHasBeenSet = false;
113 bool m_newVersionHasBeenSet = false;
114 bool m_rollbackAvailableHasBeenSet = false;
115 bool m_descriptionHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace OpenSearchService
120} // namespace Aws
RollbackServiceSoftwareOptions & WithNewVersion(NewVersionT &&value)
AWS_OPENSEARCHSERVICE_API RollbackServiceSoftwareOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
RollbackServiceSoftwareOptions & WithCurrentVersion(CurrentVersionT &&value)
AWS_OPENSEARCHSERVICE_API RollbackServiceSoftwareOptions()=default
AWS_OPENSEARCHSERVICE_API RollbackServiceSoftwareOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
RollbackServiceSoftwareOptions & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue