AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PackageVersionHistory.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/PackageConfiguration.h>
11#include <aws/opensearch/model/PluginProperties.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchService {
23namespace Model {
24
31 public:
32 AWS_OPENSEARCHSERVICE_API PackageVersionHistory() = default;
33 AWS_OPENSEARCHSERVICE_API PackageVersionHistory(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVICE_API PackageVersionHistory& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetPackageVersion() const { return m_packageVersion; }
42 inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; }
43 template <typename PackageVersionT = Aws::String>
44 void SetPackageVersion(PackageVersionT&& value) {
45 m_packageVersionHasBeenSet = true;
46 m_packageVersion = std::forward<PackageVersionT>(value);
47 }
48 template <typename PackageVersionT = Aws::String>
49 PackageVersionHistory& WithPackageVersion(PackageVersionT&& value) {
50 SetPackageVersion(std::forward<PackageVersionT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetCommitMessage() const { return m_commitMessage; }
60 inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; }
61 template <typename CommitMessageT = Aws::String>
62 void SetCommitMessage(CommitMessageT&& value) {
63 m_commitMessageHasBeenSet = true;
64 m_commitMessage = std::forward<CommitMessageT>(value);
65 }
66 template <typename CommitMessageT = Aws::String>
67 PackageVersionHistory& WithCommitMessage(CommitMessageT&& value) {
68 SetCommitMessage(std::forward<CommitMessageT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 template <typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) {
81 m_createdAtHasBeenSet = true;
82 m_createdAt = std::forward<CreatedAtT>(value);
83 }
84 template <typename CreatedAtT = Aws::Utils::DateTime>
85 PackageVersionHistory& WithCreatedAt(CreatedAtT&& value) {
86 SetCreatedAt(std::forward<CreatedAtT>(value));
87 return *this;
88 }
90
92
96 inline const PluginProperties& GetPluginProperties() const { return m_pluginProperties; }
97 inline bool PluginPropertiesHasBeenSet() const { return m_pluginPropertiesHasBeenSet; }
98 template <typename PluginPropertiesT = PluginProperties>
99 void SetPluginProperties(PluginPropertiesT&& value) {
100 m_pluginPropertiesHasBeenSet = true;
101 m_pluginProperties = std::forward<PluginPropertiesT>(value);
102 }
103 template <typename PluginPropertiesT = PluginProperties>
104 PackageVersionHistory& WithPluginProperties(PluginPropertiesT&& value) {
105 SetPluginProperties(std::forward<PluginPropertiesT>(value));
106 return *this;
107 }
109
111
114 inline const PackageConfiguration& GetPackageConfiguration() const { return m_packageConfiguration; }
115 inline bool PackageConfigurationHasBeenSet() const { return m_packageConfigurationHasBeenSet; }
116 template <typename PackageConfigurationT = PackageConfiguration>
117 void SetPackageConfiguration(PackageConfigurationT&& value) {
118 m_packageConfigurationHasBeenSet = true;
119 m_packageConfiguration = std::forward<PackageConfigurationT>(value);
120 }
121 template <typename PackageConfigurationT = PackageConfiguration>
122 PackageVersionHistory& WithPackageConfiguration(PackageConfigurationT&& value) {
123 SetPackageConfiguration(std::forward<PackageConfigurationT>(value));
124 return *this;
125 }
127 private:
128 Aws::String m_packageVersion;
129
130 Aws::String m_commitMessage;
131
132 Aws::Utils::DateTime m_createdAt{};
133
134 PluginProperties m_pluginProperties;
135
136 PackageConfiguration m_packageConfiguration;
137 bool m_packageVersionHasBeenSet = false;
138 bool m_commitMessageHasBeenSet = false;
139 bool m_createdAtHasBeenSet = false;
140 bool m_pluginPropertiesHasBeenSet = false;
141 bool m_packageConfigurationHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace OpenSearchService
146} // namespace Aws
AWS_OPENSEARCHSERVICE_API PackageVersionHistory(Aws::Utils::Json::JsonView jsonValue)
const PackageConfiguration & GetPackageConfiguration() const
AWS_OPENSEARCHSERVICE_API PackageVersionHistory()=default
PackageVersionHistory & WithCommitMessage(CommitMessageT &&value)
PackageVersionHistory & WithPackageConfiguration(PackageConfigurationT &&value)
PackageVersionHistory & WithPackageVersion(PackageVersionT &&value)
PackageVersionHistory & WithPluginProperties(PluginPropertiesT &&value)
AWS_OPENSEARCHSERVICE_API PackageVersionHistory & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPackageConfiguration(PackageConfigurationT &&value)
PackageVersionHistory & WithCreatedAt(CreatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue