AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CollectionSummary.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 <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpenSearchServerless
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPENSEARCHSERVERLESS_API CollectionSummary();
37 AWS_OPENSEARCHSERVERLESS_API CollectionSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_OPENSEARCHSERVERLESS_API CollectionSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetArn() const{ return m_arn; }
47 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
48 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
49 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
50 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
51 inline CollectionSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
52 inline CollectionSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
53 inline CollectionSummary& WithArn(const char* value) { SetArn(value); return *this;}
55
57
60 inline const Aws::String& GetId() const{ return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 inline CollectionSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
66 inline CollectionSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
67 inline CollectionSummary& WithId(const char* value) { SetId(value); return *this;}
69
71
74 inline const Aws::String& GetName() const{ return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
77 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
78 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 inline CollectionSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
80 inline CollectionSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 inline CollectionSummary& WithName(const char* value) { SetName(value); return *this;}
83
85
88 inline const CollectionStatus& GetStatus() const{ return m_status; }
89 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
90 inline void SetStatus(const CollectionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
91 inline void SetStatus(CollectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
92 inline CollectionSummary& WithStatus(const CollectionStatus& value) { SetStatus(value); return *this;}
93 inline CollectionSummary& WithStatus(CollectionStatus&& value) { SetStatus(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_arn;
98 bool m_arnHasBeenSet = false;
99
100 Aws::String m_id;
101 bool m_idHasBeenSet = false;
102
103 Aws::String m_name;
104 bool m_nameHasBeenSet = false;
105
106 CollectionStatus m_status;
107 bool m_statusHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace OpenSearchServerless
112} // namespace Aws
CollectionSummary & WithName(const char *value)
CollectionSummary & WithId(const char *value)
CollectionSummary & WithArn(Aws::String &&value)
CollectionSummary & WithId(Aws::String &&value)
CollectionSummary & WithStatus(CollectionStatus &&value)
void SetStatus(const CollectionStatus &value)
CollectionSummary & WithId(const Aws::String &value)
CollectionSummary & WithArn(const char *value)
CollectionSummary & WithName(const Aws::String &value)
CollectionSummary & WithName(Aws::String &&value)
CollectionSummary & WithStatus(const CollectionStatus &value)
AWS_OPENSEARCHSERVERLESS_API CollectionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
CollectionSummary & WithArn(const Aws::String &value)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API CollectionSummary()
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