AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CollectionSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9#include <aws/opensearchserverless/model/CollectionStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace OpenSearchServerless {
21namespace Model {
22
30 public:
31 AWS_OPENSEARCHSERVERLESS_API CollectionSummary() = default;
32 AWS_OPENSEARCHSERVERLESS_API CollectionSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API CollectionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetId() const { return m_id; }
41 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
42 template <typename IdT = Aws::String>
43 void SetId(IdT&& value) {
44 m_idHasBeenSet = true;
45 m_id = std::forward<IdT>(value);
46 }
47 template <typename IdT = Aws::String>
48 CollectionSummary& WithId(IdT&& value) {
49 SetId(std::forward<IdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
66 CollectionSummary& WithName(NameT&& value) {
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline CollectionStatus GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(CollectionStatus value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
83 SetStatus(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetArn() const { return m_arn; }
93 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
94 template <typename ArnT = Aws::String>
95 void SetArn(ArnT&& value) {
96 m_arnHasBeenSet = true;
97 m_arn = std::forward<ArnT>(value);
98 }
99 template <typename ArnT = Aws::String>
100 CollectionSummary& WithArn(ArnT&& value) {
101 SetArn(std::forward<ArnT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_id;
107
108 Aws::String m_name;
109
111
112 Aws::String m_arn;
113 bool m_idHasBeenSet = false;
114 bool m_nameHasBeenSet = false;
115 bool m_statusHasBeenSet = false;
116 bool m_arnHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace OpenSearchServerless
121} // namespace Aws
CollectionSummary & WithStatus(CollectionStatus value)
AWS_OPENSEARCHSERVERLESS_API CollectionSummary()=default
AWS_OPENSEARCHSERVERLESS_API CollectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API CollectionSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue