AWS SDK for C++  1.9.159
AWS SDK for C++
AwsCloudMapServiceDiscovery.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace AppMesh
24 {
25 namespace Model
26 {
27 
36  {
37  public:
42 
43 
50  inline const Aws::Vector<AwsCloudMapInstanceAttribute>& GetAttributes() const{ return m_attributes; }
51 
58  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
59 
66  inline void SetAttributes(const Aws::Vector<AwsCloudMapInstanceAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
67 
74  inline void SetAttributes(Aws::Vector<AwsCloudMapInstanceAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
75 
82  inline AwsCloudMapServiceDiscovery& WithAttributes(const Aws::Vector<AwsCloudMapInstanceAttribute>& value) { SetAttributes(value); return *this;}
83 
90  inline AwsCloudMapServiceDiscovery& WithAttributes(Aws::Vector<AwsCloudMapInstanceAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
91 
98  inline AwsCloudMapServiceDiscovery& AddAttributes(const AwsCloudMapInstanceAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
99 
106  inline AwsCloudMapServiceDiscovery& AddAttributes(AwsCloudMapInstanceAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
107 
108 
112  inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
113 
117  inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
118 
122  inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
123 
127  inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
128 
132  inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
133 
137  inline AwsCloudMapServiceDiscovery& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
138 
142  inline AwsCloudMapServiceDiscovery& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
143 
147  inline AwsCloudMapServiceDiscovery& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
148 
149 
153  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
154 
158  inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
159 
163  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
164 
168  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
169 
173  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
174 
178  inline AwsCloudMapServiceDiscovery& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
179 
183  inline AwsCloudMapServiceDiscovery& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
184 
188  inline AwsCloudMapServiceDiscovery& WithServiceName(const char* value) { SetServiceName(value); return *this;}
189 
190  private:
191 
193  bool m_attributesHasBeenSet;
194 
195  Aws::String m_namespaceName;
196  bool m_namespaceNameHasBeenSet;
197 
198  Aws::String m_serviceName;
199  bool m_serviceNameHasBeenSet;
200  };
201 
202 } // namespace Model
203 } // namespace AppMesh
204 } // namespace Aws
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::WithAttributes
AwsCloudMapServiceDiscovery & WithAttributes(Aws::Vector< AwsCloudMapInstanceAttribute > &&value)
Definition: AwsCloudMapServiceDiscovery.h:90
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::WithAttributes
AwsCloudMapServiceDiscovery & WithAttributes(const Aws::Vector< AwsCloudMapInstanceAttribute > &value)
Definition: AwsCloudMapServiceDiscovery.h:82
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::WithNamespaceName
AwsCloudMapServiceDiscovery & WithNamespaceName(Aws::String &&value)
Definition: AwsCloudMapServiceDiscovery.h:142
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::GetNamespaceName
const Aws::String & GetNamespaceName() const
Definition: AwsCloudMapServiceDiscovery.h:112
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::WithNamespaceName
AwsCloudMapServiceDiscovery & WithNamespaceName(const char *value)
Definition: AwsCloudMapServiceDiscovery.h:147
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::WithServiceName
AwsCloudMapServiceDiscovery & WithServiceName(Aws::String &&value)
Definition: AwsCloudMapServiceDiscovery.h:183
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::SetAttributes
void SetAttributes(Aws::Vector< AwsCloudMapInstanceAttribute > &&value)
Definition: AwsCloudMapServiceDiscovery.h:74
Aws::AppMesh::Model::AwsCloudMapInstanceAttribute
Definition: AwsCloudMapInstanceAttribute.h:34
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::SetServiceName
void SetServiceName(const char *value)
Definition: AwsCloudMapServiceDiscovery.h:173
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::SetAttributes
void SetAttributes(const Aws::Vector< AwsCloudMapInstanceAttribute > &value)
Definition: AwsCloudMapServiceDiscovery.h:66
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::SetNamespaceName
void SetNamespaceName(const char *value)
Definition: AwsCloudMapServiceDiscovery.h:132
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::AddAttributes
AwsCloudMapServiceDiscovery & AddAttributes(AwsCloudMapInstanceAttribute &&value)
Definition: AwsCloudMapServiceDiscovery.h:106
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::SetNamespaceName
void SetNamespaceName(Aws::String &&value)
Definition: AwsCloudMapServiceDiscovery.h:127
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::WithServiceName
AwsCloudMapServiceDiscovery & WithServiceName(const Aws::String &value)
Definition: AwsCloudMapServiceDiscovery.h:178
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::WithNamespaceName
AwsCloudMapServiceDiscovery & WithNamespaceName(const Aws::String &value)
Definition: AwsCloudMapServiceDiscovery.h:137
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::GetAttributes
const Aws::Vector< AwsCloudMapInstanceAttribute > & GetAttributes() const
Definition: AwsCloudMapServiceDiscovery.h:50
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery
Definition: AwsCloudMapServiceDiscovery.h:36
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::WithServiceName
AwsCloudMapServiceDiscovery & WithServiceName(const char *value)
Definition: AwsCloudMapServiceDiscovery.h:188
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: AwsCloudMapServiceDiscovery.h:58
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::SetServiceName
void SetServiceName(const Aws::String &value)
Definition: AwsCloudMapServiceDiscovery.h:163
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::SetNamespaceName
void SetNamespaceName(const Aws::String &value)
Definition: AwsCloudMapServiceDiscovery.h:122
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::operator=
AwsCloudMapServiceDiscovery & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::AwsCloudMapServiceDiscovery
AwsCloudMapServiceDiscovery()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::ServiceNameHasBeenSet
bool ServiceNameHasBeenSet() const
Definition: AwsCloudMapServiceDiscovery.h:158
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::SetServiceName
void SetServiceName(Aws::String &&value)
Definition: AwsCloudMapServiceDiscovery.h:168
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::AwsCloudMapServiceDiscovery
AwsCloudMapServiceDiscovery(Aws::Utils::Json::JsonView jsonValue)
AwsCloudMapInstanceAttribute.h
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::NamespaceNameHasBeenSet
bool NamespaceNameHasBeenSet() const
Definition: AwsCloudMapServiceDiscovery.h:117
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::AddAttributes
AwsCloudMapServiceDiscovery & AddAttributes(const AwsCloudMapInstanceAttribute &value)
Definition: AwsCloudMapServiceDiscovery.h:98
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::AwsCloudMapServiceDiscovery::GetServiceName
const Aws::String & GetServiceName() const
Definition: AwsCloudMapServiceDiscovery.h:153