AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateCollectionDetail.h
1
6#pragma once
7#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opensearchserverless/model/CollectionStatus.h>
10#include <aws/opensearchserverless/model/CollectionType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchServerless
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail() = default;
38 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 UpdateCollectionDetail& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 UpdateCollectionDetail& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
71 inline CollectionStatus GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(CollectionStatus value) { m_statusHasBeenSet = true; m_status = value; }
74 inline UpdateCollectionDetail& WithStatus(CollectionStatus value) { SetStatus(value); return *this;}
76
78
81 inline CollectionType GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(CollectionType value) { m_typeHasBeenSet = true; m_type = value; }
84 inline UpdateCollectionDetail& WithType(CollectionType value) { SetType(value); return *this;}
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template<typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
95 template<typename DescriptionT = Aws::String>
96 UpdateCollectionDetail& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
98
100
103 inline const Aws::String& GetArn() const { return m_arn; }
104 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
105 template<typename ArnT = Aws::String>
106 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
107 template<typename ArnT = Aws::String>
108 UpdateCollectionDetail& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
110
112
115 inline long long GetCreatedDate() const { return m_createdDate; }
116 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
117 inline void SetCreatedDate(long long value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
118 inline UpdateCollectionDetail& WithCreatedDate(long long value) { SetCreatedDate(value); return *this;}
120
122
125 inline long long GetLastModifiedDate() const { return m_lastModifiedDate; }
126 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
127 inline void SetLastModifiedDate(long long value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
128 inline UpdateCollectionDetail& WithLastModifiedDate(long long value) { SetLastModifiedDate(value); return *this;}
130 private:
131
132 Aws::String m_id;
133 bool m_idHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
139 bool m_statusHasBeenSet = false;
140
142 bool m_typeHasBeenSet = false;
143
144 Aws::String m_description;
145 bool m_descriptionHasBeenSet = false;
146
147 Aws::String m_arn;
148 bool m_arnHasBeenSet = false;
149
150 long long m_createdDate{0};
151 bool m_createdDateHasBeenSet = false;
152
153 long long m_lastModifiedDate{0};
154 bool m_lastModifiedDateHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace OpenSearchServerless
159} // namespace Aws
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateCollectionDetail & WithLastModifiedDate(long long value)
UpdateCollectionDetail & WithType(CollectionType value)
AWS_OPENSEARCHSERVERLESS_API UpdateCollectionDetail()=default
UpdateCollectionDetail & WithStatus(CollectionStatus value)
UpdateCollectionDetail & WithCreatedDate(long long value)
UpdateCollectionDetail & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue