AWS SDK for C++

AWS SDK for C++ Version 1.11.637

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() = default;
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 template<typename IdT = Aws::String>
51 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
52 template<typename IdT = Aws::String>
53 NamespaceSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
55
57
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template<typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
65 template<typename ArnT = Aws::String>
66 NamespaceSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
68
70
77 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
78 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
79 template<typename ResourceOwnerT = Aws::String>
80 void SetResourceOwner(ResourceOwnerT&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::forward<ResourceOwnerT>(value); }
81 template<typename ResourceOwnerT = Aws::String>
82 NamespaceSummary& WithResourceOwner(ResourceOwnerT&& value) { SetResourceOwner(std::forward<ResourceOwnerT>(value)); return *this;}
84
86
91 inline const Aws::String& GetName() const { return m_name; }
92 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 template<typename NameT = Aws::String>
94 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
95 template<typename NameT = Aws::String>
96 NamespaceSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
98
100
103 inline NamespaceType GetType() const { return m_type; }
104 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
105 inline void SetType(NamespaceType value) { m_typeHasBeenSet = true; m_type = value; }
106 inline NamespaceSummary& WithType(NamespaceType value) { SetType(value); return *this;}
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template<typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
117 template<typename DescriptionT = Aws::String>
118 NamespaceSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
120
122
125 inline int GetServiceCount() const { return m_serviceCount; }
126 inline bool ServiceCountHasBeenSet() const { return m_serviceCountHasBeenSet; }
127 inline void SetServiceCount(int value) { m_serviceCountHasBeenSet = true; m_serviceCount = value; }
128 inline NamespaceSummary& WithServiceCount(int value) { SetServiceCount(value); return *this;}
130
132
135 inline const NamespaceProperties& GetProperties() const { return m_properties; }
136 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
137 template<typename PropertiesT = NamespaceProperties>
138 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
139 template<typename PropertiesT = NamespaceProperties>
140 NamespaceSummary& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
142
144
147 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
148 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
149 template<typename CreateDateT = Aws::Utils::DateTime>
150 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
151 template<typename CreateDateT = Aws::Utils::DateTime>
152 NamespaceSummary& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
154 private:
155
156 Aws::String m_id;
157 bool m_idHasBeenSet = false;
158
159 Aws::String m_arn;
160 bool m_arnHasBeenSet = false;
161
162 Aws::String m_resourceOwner;
163 bool m_resourceOwnerHasBeenSet = false;
164
165 Aws::String m_name;
166 bool m_nameHasBeenSet = false;
167
169 bool m_typeHasBeenSet = false;
170
171 Aws::String m_description;
172 bool m_descriptionHasBeenSet = false;
173
174 int m_serviceCount{0};
175 bool m_serviceCountHasBeenSet = false;
176
177 NamespaceProperties m_properties;
178 bool m_propertiesHasBeenSet = false;
179
180 Aws::Utils::DateTime m_createDate{};
181 bool m_createDateHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace ServiceDiscovery
186} // namespace Aws
const NamespaceProperties & GetProperties() const
NamespaceSummary & WithArn(ArnT &&value)
NamespaceSummary & WithResourceOwner(ResourceOwnerT &&value)
const Aws::Utils::DateTime & GetCreateDate() const
NamespaceSummary & WithProperties(PropertiesT &&value)
NamespaceSummary & WithName(NameT &&value)
AWS_SERVICEDISCOVERY_API NamespaceSummary()=default
NamespaceSummary & WithDescription(DescriptionT &&value)
NamespaceSummary & WithType(NamespaceType value)
AWS_SERVICEDISCOVERY_API NamespaceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
NamespaceSummary & WithCreateDate(CreateDateT &&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