AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
AwsCloudMapServiceDiscovery.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/model/AwsCloudMapInstanceAttribute.h>
9#include <aws/appmesh/model/IpPreference.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppMesh {
23namespace Model {
24
33 public:
34 AWS_APPMESH_API AwsCloudMapServiceDiscovery() = default;
37 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline const Aws::Vector<AwsCloudMapInstanceAttribute>& GetAttributes() const { return m_attributes; }
47 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
48 template <typename AttributesT = Aws::Vector<AwsCloudMapInstanceAttribute>>
49 void SetAttributes(AttributesT&& value) {
50 m_attributesHasBeenSet = true;
51 m_attributes = std::forward<AttributesT>(value);
52 }
53 template <typename AttributesT = Aws::Vector<AwsCloudMapInstanceAttribute>>
55 SetAttributes(std::forward<AttributesT>(value));
56 return *this;
57 }
58 template <typename AttributesT = AwsCloudMapInstanceAttribute>
60 m_attributesHasBeenSet = true;
61 m_attributes.emplace_back(std::forward<AttributesT>(value));
62 return *this;
63 }
65
67
72 inline IpPreference GetIpPreference() const { return m_ipPreference; }
73 inline bool IpPreferenceHasBeenSet() const { return m_ipPreferenceHasBeenSet; }
74 inline void SetIpPreference(IpPreference value) {
75 m_ipPreferenceHasBeenSet = true;
76 m_ipPreference = value;
77 }
79 SetIpPreference(value);
80 return *this;
81 }
83
85
88 inline const Aws::String& GetNamespaceName() const { return m_namespaceName; }
89 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
90 template <typename NamespaceNameT = Aws::String>
91 void SetNamespaceName(NamespaceNameT&& value) {
92 m_namespaceNameHasBeenSet = true;
93 m_namespaceName = std::forward<NamespaceNameT>(value);
94 }
95 template <typename NamespaceNameT = Aws::String>
97 SetNamespaceName(std::forward<NamespaceNameT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetServiceName() const { return m_serviceName; }
107 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
108 template <typename ServiceNameT = Aws::String>
109 void SetServiceName(ServiceNameT&& value) {
110 m_serviceNameHasBeenSet = true;
111 m_serviceName = std::forward<ServiceNameT>(value);
112 }
113 template <typename ServiceNameT = Aws::String>
115 SetServiceName(std::forward<ServiceNameT>(value));
116 return *this;
117 }
119 private:
121
122 IpPreference m_ipPreference{IpPreference::NOT_SET};
123
124 Aws::String m_namespaceName;
125
126 Aws::String m_serviceName;
127 bool m_attributesHasBeenSet = false;
128 bool m_ipPreferenceHasBeenSet = false;
129 bool m_namespaceNameHasBeenSet = false;
130 bool m_serviceNameHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace AppMesh
135} // namespace Aws
const Aws::Vector< AwsCloudMapInstanceAttribute > & GetAttributes() const
AwsCloudMapServiceDiscovery & WithServiceName(ServiceNameT &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
AwsCloudMapServiceDiscovery & WithIpPreference(IpPreference value)
AWS_APPMESH_API AwsCloudMapServiceDiscovery(Aws::Utils::Json::JsonView jsonValue)
AwsCloudMapServiceDiscovery & WithNamespaceName(NamespaceNameT &&value)
AWS_APPMESH_API AwsCloudMapServiceDiscovery()=default
AwsCloudMapServiceDiscovery & AddAttributes(AttributesT &&value)
AWS_APPMESH_API AwsCloudMapServiceDiscovery & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsCloudMapServiceDiscovery & WithAttributes(AttributesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue