AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DomainInfo.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/EngineType.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 DomainInfo() = default;
31 AWS_OPENSEARCHSERVICE_API DomainInfo(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVICE_API DomainInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDomainName() const { return m_domainName; }
40 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
41 template <typename DomainNameT = Aws::String>
42 void SetDomainName(DomainNameT&& value) {
43 m_domainNameHasBeenSet = true;
44 m_domainName = std::forward<DomainNameT>(value);
45 }
46 template <typename DomainNameT = Aws::String>
47 DomainInfo& WithDomainName(DomainNameT&& value) {
48 SetDomainName(std::forward<DomainNameT>(value));
49 return *this;
50 }
52
54
59 inline EngineType GetEngineType() const { return m_engineType; }
60 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
61 inline void SetEngineType(EngineType value) {
62 m_engineTypeHasBeenSet = true;
63 m_engineType = value;
64 }
66 SetEngineType(value);
67 return *this;
68 }
70 private:
71 Aws::String m_domainName;
72
73 EngineType m_engineType{EngineType::NOT_SET};
74 bool m_domainNameHasBeenSet = false;
75 bool m_engineTypeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace OpenSearchService
80} // namespace Aws
DomainInfo & WithDomainName(DomainNameT &&value)
Definition DomainInfo.h:47
AWS_OPENSEARCHSERVICE_API DomainInfo()=default
DomainInfo & WithEngineType(EngineType value)
Definition DomainInfo.h:65
AWS_OPENSEARCHSERVICE_API DomainInfo(Aws::Utils::Json::JsonView jsonValue)
void SetDomainName(DomainNameT &&value)
Definition DomainInfo.h:42
const Aws::String & GetDomainName() const
Definition DomainInfo.h:39
AWS_OPENSEARCHSERVICE_API DomainInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue