AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Namespace.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 Namespace() = default;
39 AWS_SERVICEDISCOVERY_API Namespace(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SERVICEDISCOVERY_API Namespace& 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 Namespace& 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 Namespace& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
68
70
73 inline const Aws::String& GetName() const { return m_name; }
74 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
75 template<typename NameT = Aws::String>
76 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
77 template<typename NameT = Aws::String>
78 Namespace& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
80
82
92 inline NamespaceType GetType() const { return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(NamespaceType value) { m_typeHasBeenSet = true; m_type = value; }
95 inline Namespace& WithType(NamespaceType value) { SetType(value); return *this;}
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template<typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
106 template<typename DescriptionT = Aws::String>
107 Namespace& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
109
111
114 inline int GetServiceCount() const { return m_serviceCount; }
115 inline bool ServiceCountHasBeenSet() const { return m_serviceCountHasBeenSet; }
116 inline void SetServiceCount(int value) { m_serviceCountHasBeenSet = true; m_serviceCount = value; }
117 inline Namespace& WithServiceCount(int value) { SetServiceCount(value); return *this;}
119
121
125 inline const NamespaceProperties& GetProperties() const { return m_properties; }
126 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
127 template<typename PropertiesT = NamespaceProperties>
128 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
129 template<typename PropertiesT = NamespaceProperties>
130 Namespace& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
132
134
140 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
141 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
142 template<typename CreateDateT = Aws::Utils::DateTime>
143 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
144 template<typename CreateDateT = Aws::Utils::DateTime>
145 Namespace& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
147
149
153 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
154 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
155 template<typename CreatorRequestIdT = Aws::String>
156 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
157 template<typename CreatorRequestIdT = Aws::String>
158 Namespace& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
160 private:
161
162 Aws::String m_id;
163 bool m_idHasBeenSet = false;
164
165 Aws::String m_arn;
166 bool m_arnHasBeenSet = false;
167
168 Aws::String m_name;
169 bool m_nameHasBeenSet = false;
170
172 bool m_typeHasBeenSet = false;
173
174 Aws::String m_description;
175 bool m_descriptionHasBeenSet = false;
176
177 int m_serviceCount{0};
178 bool m_serviceCountHasBeenSet = false;
179
180 NamespaceProperties m_properties;
181 bool m_propertiesHasBeenSet = false;
182
183 Aws::Utils::DateTime m_createDate{};
184 bool m_createDateHasBeenSet = false;
185
186 Aws::String m_creatorRequestId;
187 bool m_creatorRequestIdHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace ServiceDiscovery
192} // namespace Aws
void SetCreateDate(CreateDateT &&value)
Definition Namespace.h:143
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
Namespace & WithId(IdT &&value)
Definition Namespace.h:53
AWS_SERVICEDISCOVERY_API Namespace(Aws::Utils::Json::JsonView jsonValue)
void SetCreatorRequestId(CreatorRequestIdT &&value)
Definition Namespace.h:156
const Aws::String & GetDescription() const
Definition Namespace.h:102
Namespace & WithProperties(PropertiesT &&value)
Definition Namespace.h:130
Namespace & WithDescription(DescriptionT &&value)
Definition Namespace.h:107
Namespace & WithServiceCount(int value)
Definition Namespace.h:117
AWS_SERVICEDISCOVERY_API Namespace & operator=(Aws::Utils::Json::JsonView jsonValue)
Namespace & WithArn(ArnT &&value)
Definition Namespace.h:66
Namespace & WithCreatorRequestId(CreatorRequestIdT &&value)
Definition Namespace.h:158
const Aws::Utils::DateTime & GetCreateDate() const
Definition Namespace.h:140
Namespace & WithCreateDate(CreateDateT &&value)
Definition Namespace.h:145
const NamespaceProperties & GetProperties() const
Definition Namespace.h:125
const Aws::String & GetName() const
Definition Namespace.h:73
const Aws::String & GetCreatorRequestId() const
Definition Namespace.h:153
void SetProperties(PropertiesT &&value)
Definition Namespace.h:128
AWS_SERVICEDISCOVERY_API Namespace()=default
Namespace & WithType(NamespaceType value)
Definition Namespace.h:95
void SetDescription(DescriptionT &&value)
Definition Namespace.h:105
const Aws::String & GetArn() const
Definition Namespace.h:61
const Aws::String & GetId() const
Definition Namespace.h:48
void SetType(NamespaceType value)
Definition Namespace.h:94
Namespace & WithName(NameT &&value)
Definition Namespace.h:78
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue