AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
PackageConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchService_EXPORTS.h>
9#include <aws/opensearch/model/RequirementLevel.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchService {
21namespace Model {
22
29 public:
30 AWS_OPENSEARCHSERVICE_API PackageConfiguration() = default;
31 AWS_OPENSEARCHSERVICE_API PackageConfiguration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVICE_API PackageConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline RequirementLevel GetLicenseRequirement() const { return m_licenseRequirement; }
40 inline bool LicenseRequirementHasBeenSet() const { return m_licenseRequirementHasBeenSet; }
42 m_licenseRequirementHasBeenSet = true;
43 m_licenseRequirement = value;
44 }
47 return *this;
48 }
50
52
55 inline const Aws::String& GetLicenseFilepath() const { return m_licenseFilepath; }
56 inline bool LicenseFilepathHasBeenSet() const { return m_licenseFilepathHasBeenSet; }
57 template <typename LicenseFilepathT = Aws::String>
58 void SetLicenseFilepath(LicenseFilepathT&& value) {
59 m_licenseFilepathHasBeenSet = true;
60 m_licenseFilepath = std::forward<LicenseFilepathT>(value);
61 }
62 template <typename LicenseFilepathT = Aws::String>
63 PackageConfiguration& WithLicenseFilepath(LicenseFilepathT&& value) {
64 SetLicenseFilepath(std::forward<LicenseFilepathT>(value));
65 return *this;
66 }
68
70
73 inline RequirementLevel GetConfigurationRequirement() const { return m_configurationRequirement; }
74 inline bool ConfigurationRequirementHasBeenSet() const { return m_configurationRequirementHasBeenSet; }
76 m_configurationRequirementHasBeenSet = true;
77 m_configurationRequirement = value;
78 }
81 return *this;
82 }
84
86
90 inline bool GetRequiresRestartForConfigurationUpdate() const { return m_requiresRestartForConfigurationUpdate; }
91 inline bool RequiresRestartForConfigurationUpdateHasBeenSet() const { return m_requiresRestartForConfigurationUpdateHasBeenSet; }
93 m_requiresRestartForConfigurationUpdateHasBeenSet = true;
94 m_requiresRestartForConfigurationUpdate = value;
95 }
98 return *this;
99 }
101 private:
102 RequirementLevel m_licenseRequirement{RequirementLevel::NOT_SET};
103
104 Aws::String m_licenseFilepath;
105
106 RequirementLevel m_configurationRequirement{RequirementLevel::NOT_SET};
107
108 bool m_requiresRestartForConfigurationUpdate{false};
109 bool m_licenseRequirementHasBeenSet = false;
110 bool m_licenseFilepathHasBeenSet = false;
111 bool m_configurationRequirementHasBeenSet = false;
112 bool m_requiresRestartForConfigurationUpdateHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace OpenSearchService
117} // namespace Aws
PackageConfiguration & WithLicenseRequirement(RequirementLevel value)
AWS_OPENSEARCHSERVICE_API PackageConfiguration(Aws::Utils::Json::JsonView jsonValue)
PackageConfiguration & WithLicenseFilepath(LicenseFilepathT &&value)
AWS_OPENSEARCHSERVICE_API PackageConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageConfiguration & WithRequiresRestartForConfigurationUpdate(bool value)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVICE_API PackageConfiguration()=default
PackageConfiguration & WithConfigurationRequirement(RequirementLevel value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue