AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template<typename NameT = Aws::String>
78 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
79 template<typename NameT = Aws::String>
80 NamespaceSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
82
84
87 inline NamespaceType GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 inline void SetType(NamespaceType value) { m_typeHasBeenSet = true; m_type = value; }
90 inline NamespaceSummary& WithType(NamespaceType value) { SetType(value); return *this;}
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template<typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
101 template<typename DescriptionT = Aws::String>
102 NamespaceSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
104
106
109 inline int GetServiceCount() const { return m_serviceCount; }
110 inline bool ServiceCountHasBeenSet() const { return m_serviceCountHasBeenSet; }
111 inline void SetServiceCount(int value) { m_serviceCountHasBeenSet = true; m_serviceCount = value; }
112 inline NamespaceSummary& WithServiceCount(int value) { SetServiceCount(value); return *this;}
114
116
119 inline const NamespaceProperties& GetProperties() const { return m_properties; }
120 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
121 template<typename PropertiesT = NamespaceProperties>
122 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
123 template<typename PropertiesT = NamespaceProperties>
124 NamespaceSummary& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
132 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
133 template<typename CreateDateT = Aws::Utils::DateTime>
134 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
135 template<typename CreateDateT = Aws::Utils::DateTime>
136 NamespaceSummary& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
138 private:
139
140 Aws::String m_id;
141 bool m_idHasBeenSet = false;
142
143 Aws::String m_arn;
144 bool m_arnHasBeenSet = false;
145
146 Aws::String m_name;
147 bool m_nameHasBeenSet = false;
148
150 bool m_typeHasBeenSet = false;
151
152 Aws::String m_description;
153 bool m_descriptionHasBeenSet = false;
154
155 int m_serviceCount{0};
156 bool m_serviceCountHasBeenSet = false;
157
158 NamespaceProperties m_properties;
159 bool m_propertiesHasBeenSet = false;
160
161 Aws::Utils::DateTime m_createDate{};
162 bool m_createDateHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace ServiceDiscovery
167} // namespace Aws
const NamespaceProperties & GetProperties() const
NamespaceSummary & WithArn(ArnT &&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