AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
DeleteCollectionDetail.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#include <aws/opensearchserverless/model/DeletionProtection.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchServerless {
22namespace Model {
23
31 public:
32 AWS_OPENSEARCHSERVERLESS_API DeleteCollectionDetail() = default;
33 AWS_OPENSEARCHSERVERLESS_API DeleteCollectionDetail(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API DeleteCollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline CollectionStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(CollectionStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
94 inline DeletionProtection GetDeletionProtection() const { return m_deletionProtection; }
95 inline bool DeletionProtectionHasBeenSet() const { return m_deletionProtectionHasBeenSet; }
97 m_deletionProtectionHasBeenSet = true;
98 m_deletionProtection = value;
99 }
102 return *this;
103 }
105 private:
106 Aws::String m_id;
107
108 Aws::String m_name;
109
111
113 bool m_idHasBeenSet = false;
114 bool m_nameHasBeenSet = false;
115 bool m_statusHasBeenSet = false;
116 bool m_deletionProtectionHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace OpenSearchServerless
121} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API DeleteCollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API DeleteCollectionDetail()=default
AWS_OPENSEARCHSERVERLESS_API DeleteCollectionDetail(Aws::Utils::Json::JsonView jsonValue)
DeleteCollectionDetail & WithDeletionProtection(DeletionProtection value)
DeleteCollectionDetail & WithStatus(CollectionStatus value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue