AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsCloudMapServiceDiscovery.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/appmesh/model/IpPreference.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/appmesh/model/AwsCloudMapInstanceAttribute.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 AppMesh
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_APPMESH_API AwsCloudMapServiceDiscovery();
42 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
52 inline const Aws::Vector<AwsCloudMapInstanceAttribute>& GetAttributes() const{ return m_attributes; }
53 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
54 inline void SetAttributes(const Aws::Vector<AwsCloudMapInstanceAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
55 inline void SetAttributes(Aws::Vector<AwsCloudMapInstanceAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
58 inline AwsCloudMapServiceDiscovery& AddAttributes(const AwsCloudMapInstanceAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
59 inline AwsCloudMapServiceDiscovery& AddAttributes(AwsCloudMapInstanceAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
61
63
68 inline const IpPreference& GetIpPreference() const{ return m_ipPreference; }
69 inline bool IpPreferenceHasBeenSet() const { return m_ipPreferenceHasBeenSet; }
70 inline void SetIpPreference(const IpPreference& value) { m_ipPreferenceHasBeenSet = true; m_ipPreference = value; }
71 inline void SetIpPreference(IpPreference&& value) { m_ipPreferenceHasBeenSet = true; m_ipPreference = std::move(value); }
72 inline AwsCloudMapServiceDiscovery& WithIpPreference(const IpPreference& value) { SetIpPreference(value); return *this;}
73 inline AwsCloudMapServiceDiscovery& WithIpPreference(IpPreference&& value) { SetIpPreference(std::move(value)); return *this;}
75
77
80 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
81 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
82 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
83 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
84 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
85 inline AwsCloudMapServiceDiscovery& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
86 inline AwsCloudMapServiceDiscovery& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
87 inline AwsCloudMapServiceDiscovery& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
89
91
94 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
95 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
96 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
97 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
98 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
99 inline AwsCloudMapServiceDiscovery& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
100 inline AwsCloudMapServiceDiscovery& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
101 inline AwsCloudMapServiceDiscovery& WithServiceName(const char* value) { SetServiceName(value); return *this;}
103 private:
104
106 bool m_attributesHasBeenSet = false;
107
108 IpPreference m_ipPreference;
109 bool m_ipPreferenceHasBeenSet = false;
110
111 Aws::String m_namespaceName;
112 bool m_namespaceNameHasBeenSet = false;
113
114 Aws::String m_serviceName;
115 bool m_serviceNameHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace AppMesh
120} // namespace Aws
AwsCloudMapServiceDiscovery & WithNamespaceName(Aws::String &&value)
const Aws::Vector< AwsCloudMapInstanceAttribute > & GetAttributes() const
void SetAttributes(const Aws::Vector< AwsCloudMapInstanceAttribute > &value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AwsCloudMapServiceDiscovery & WithIpPreference(const IpPreference &value)
AWS_APPMESH_API AwsCloudMapServiceDiscovery(Aws::Utils::Json::JsonView jsonValue)
AwsCloudMapServiceDiscovery & WithAttributes(Aws::Vector< AwsCloudMapInstanceAttribute > &&value)
AwsCloudMapServiceDiscovery & WithNamespaceName(const char *value)
AwsCloudMapServiceDiscovery & WithServiceName(const Aws::String &value)
AwsCloudMapServiceDiscovery & WithServiceName(const char *value)
AwsCloudMapServiceDiscovery & WithIpPreference(IpPreference &&value)
AwsCloudMapServiceDiscovery & AddAttributes(AwsCloudMapInstanceAttribute &&value)
AwsCloudMapServiceDiscovery & WithAttributes(const Aws::Vector< AwsCloudMapInstanceAttribute > &value)
void SetAttributes(Aws::Vector< AwsCloudMapInstanceAttribute > &&value)
AwsCloudMapServiceDiscovery & AddAttributes(const AwsCloudMapInstanceAttribute &value)
AwsCloudMapServiceDiscovery & WithServiceName(Aws::String &&value)
AwsCloudMapServiceDiscovery & WithNamespaceName(const Aws::String &value)
AWS_APPMESH_API AwsCloudMapServiceDiscovery & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue