AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NamespaceSummary.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/model/NamespaceType.h>
10#include <aws/servicediscovery/model/NamespaceProperties.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ServiceDiscovery
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_SERVICEDISCOVERY_API NamespaceSummary();
39 AWS_SERVICEDISCOVERY_API NamespaceSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SERVICEDISCOVERY_API NamespaceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline NamespaceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline NamespaceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline NamespaceSummary& WithId(const char* value) { SetId(value); return *this;}
57
59
63 inline const Aws::String& GetArn() const{ return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
66 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
67 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 inline NamespaceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 inline NamespaceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 inline NamespaceSummary& WithArn(const char* value) { SetArn(value); return *this;}
72
74
79 inline const Aws::String& GetName() const{ return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
82 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 inline NamespaceSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline NamespaceSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline NamespaceSummary& WithName(const char* value) { SetName(value); return *this;}
88
90
93 inline const NamespaceType& GetType() const{ return m_type; }
94 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
95 inline void SetType(const NamespaceType& value) { m_typeHasBeenSet = true; m_type = value; }
96 inline void SetType(NamespaceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
97 inline NamespaceSummary& WithType(const NamespaceType& value) { SetType(value); return *this;}
98 inline NamespaceSummary& WithType(NamespaceType&& value) { SetType(std::move(value)); return *this;}
100
102
105 inline const Aws::String& GetDescription() const{ return m_description; }
106 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
107 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
108 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
109 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
110 inline NamespaceSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
111 inline NamespaceSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
112 inline NamespaceSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
114
116
119 inline int GetServiceCount() const{ return m_serviceCount; }
120 inline bool ServiceCountHasBeenSet() const { return m_serviceCountHasBeenSet; }
121 inline void SetServiceCount(int value) { m_serviceCountHasBeenSet = true; m_serviceCount = value; }
122 inline NamespaceSummary& WithServiceCount(int value) { SetServiceCount(value); return *this;}
124
126
129 inline const NamespaceProperties& GetProperties() const{ return m_properties; }
130 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
131 inline void SetProperties(const NamespaceProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; }
132 inline void SetProperties(NamespaceProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); }
133 inline NamespaceSummary& WithProperties(const NamespaceProperties& value) { SetProperties(value); return *this;}
134 inline NamespaceSummary& WithProperties(NamespaceProperties&& value) { SetProperties(std::move(value)); return *this;}
136
138
141 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
142 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
143 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
144 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
145 inline NamespaceSummary& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
146 inline NamespaceSummary& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
148 private:
149
150 Aws::String m_id;
151 bool m_idHasBeenSet = false;
152
153 Aws::String m_arn;
154 bool m_arnHasBeenSet = false;
155
156 Aws::String m_name;
157 bool m_nameHasBeenSet = false;
158
159 NamespaceType m_type;
160 bool m_typeHasBeenSet = false;
161
162 Aws::String m_description;
163 bool m_descriptionHasBeenSet = false;
164
165 int m_serviceCount;
166 bool m_serviceCountHasBeenSet = false;
167
168 NamespaceProperties m_properties;
169 bool m_propertiesHasBeenSet = false;
170
171 Aws::Utils::DateTime m_createDate;
172 bool m_createDateHasBeenSet = false;
173 };
174
175} // namespace Model
176} // namespace ServiceDiscovery
177} // namespace Aws
NamespaceSummary & WithName(Aws::String &&value)
NamespaceSummary & WithType(const NamespaceType &value)
const NamespaceProperties & GetProperties() const
NamespaceSummary & WithProperties(NamespaceProperties &&value)
NamespaceSummary & WithArn(Aws::String &&value)
void SetCreateDate(Aws::Utils::DateTime &&value)
NamespaceSummary & WithType(NamespaceType &&value)
NamespaceSummary & WithId(const char *value)
NamespaceSummary & WithId(Aws::String &&value)
NamespaceSummary & WithArn(const char *value)
NamespaceSummary & WithArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreateDate() const
NamespaceSummary & WithDescription(const char *value)
NamespaceSummary & WithDescription(Aws::String &&value)
void SetType(const NamespaceType &value)
AWS_SERVICEDISCOVERY_API NamespaceSummary()
NamespaceSummary & WithCreateDate(const Aws::Utils::DateTime &value)
NamespaceSummary & WithCreateDate(Aws::Utils::DateTime &&value)
void SetProperties(NamespaceProperties &&value)
NamespaceSummary & WithProperties(const NamespaceProperties &value)
AWS_SERVICEDISCOVERY_API NamespaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(const Aws::String &value)
void SetCreateDate(const Aws::Utils::DateTime &value)
void SetProperties(const NamespaceProperties &value)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
NamespaceSummary & WithId(const Aws::String &value)
NamespaceSummary & WithName(const char *value)
NamespaceSummary & WithName(const Aws::String &value)
NamespaceSummary & WithDescription(const Aws::String &value)
AWS_SERVICEDISCOVERY_API NamespaceSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue