AWS SDK for C++

AWS SDK for C++ Version 1.11.817

Loading...
Searching...
No Matches
CurrentCapacity.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/opensearchserverless/model/CapacityDetails.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchServerless {
20namespace Model {
21
30 public:
31 AWS_OPENSEARCHSERVERLESS_API CurrentCapacity() = default;
32 AWS_OPENSEARCHSERVERLESS_API CurrentCapacity(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API CurrentCapacity& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const CapacityDetails& GetSearch() const { return m_search; }
41 inline bool SearchHasBeenSet() const { return m_searchHasBeenSet; }
42 template <typename SearchT = CapacityDetails>
43 void SetSearch(SearchT&& value) {
44 m_searchHasBeenSet = true;
45 m_search = std::forward<SearchT>(value);
46 }
47 template <typename SearchT = CapacityDetails>
48 CurrentCapacity& WithSearch(SearchT&& value) {
49 SetSearch(std::forward<SearchT>(value));
50 return *this;
51 }
53
55
58 inline const CapacityDetails& GetIndexing() const { return m_indexing; }
59 inline bool IndexingHasBeenSet() const { return m_indexingHasBeenSet; }
60 template <typename IndexingT = CapacityDetails>
61 void SetIndexing(IndexingT&& value) {
62 m_indexingHasBeenSet = true;
63 m_indexing = std::forward<IndexingT>(value);
64 }
65 template <typename IndexingT = CapacityDetails>
66 CurrentCapacity& WithIndexing(IndexingT&& value) {
67 SetIndexing(std::forward<IndexingT>(value));
68 return *this;
69 }
71 private:
72 CapacityDetails m_search;
73
74 CapacityDetails m_indexing;
75 bool m_searchHasBeenSet = false;
76 bool m_indexingHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace OpenSearchServerless
81} // namespace Aws
CurrentCapacity & WithIndexing(IndexingT &&value)
AWS_OPENSEARCHSERVERLESS_API CurrentCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
CurrentCapacity & WithSearch(SearchT &&value)
AWS_OPENSEARCHSERVERLESS_API CurrentCapacity()=default
AWS_OPENSEARCHSERVERLESS_API CurrentCapacity(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue