AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DnsServiceDiscovery.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appmesh/model/IpPreference.h>
10#include <aws/appmesh/model/DnsResponseType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppMesh
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_APPMESH_API DnsServiceDiscovery();
40 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetHostname() const{ return m_hostname; }
48 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
49 inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
50 inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
51 inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
52 inline DnsServiceDiscovery& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
53 inline DnsServiceDiscovery& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
54 inline DnsServiceDiscovery& WithHostname(const char* value) { SetHostname(value); return *this;}
56
58
63 inline const IpPreference& GetIpPreference() const{ return m_ipPreference; }
64 inline bool IpPreferenceHasBeenSet() const { return m_ipPreferenceHasBeenSet; }
65 inline void SetIpPreference(const IpPreference& value) { m_ipPreferenceHasBeenSet = true; m_ipPreference = value; }
66 inline void SetIpPreference(IpPreference&& value) { m_ipPreferenceHasBeenSet = true; m_ipPreference = std::move(value); }
67 inline DnsServiceDiscovery& WithIpPreference(const IpPreference& value) { SetIpPreference(value); return *this;}
68 inline DnsServiceDiscovery& WithIpPreference(IpPreference&& value) { SetIpPreference(std::move(value)); return *this;}
70
72
75 inline const DnsResponseType& GetResponseType() const{ return m_responseType; }
76 inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
77 inline void SetResponseType(const DnsResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
78 inline void SetResponseType(DnsResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
79 inline DnsServiceDiscovery& WithResponseType(const DnsResponseType& value) { SetResponseType(value); return *this;}
80 inline DnsServiceDiscovery& WithResponseType(DnsResponseType&& value) { SetResponseType(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_hostname;
85 bool m_hostnameHasBeenSet = false;
86
87 IpPreference m_ipPreference;
88 bool m_ipPreferenceHasBeenSet = false;
89
90 DnsResponseType m_responseType;
91 bool m_responseTypeHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace AppMesh
96} // namespace Aws
DnsServiceDiscovery & WithIpPreference(const IpPreference &value)
DnsServiceDiscovery & WithHostname(Aws::String &&value)
const IpPreference & GetIpPreference() const
DnsServiceDiscovery & WithResponseType(DnsResponseType &&value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
DnsServiceDiscovery & WithResponseType(const DnsResponseType &value)
DnsServiceDiscovery & WithHostname(const Aws::String &value)
const DnsResponseType & GetResponseType() const
AWS_APPMESH_API DnsServiceDiscovery & operator=(Aws::Utils::Json::JsonView jsonValue)
DnsServiceDiscovery & WithHostname(const char *value)
void SetResponseType(const DnsResponseType &value)
DnsServiceDiscovery & WithIpPreference(IpPreference &&value)
AWS_APPMESH_API DnsServiceDiscovery(Aws::Utils::Json::JsonView jsonValue)
void SetHostname(const Aws::String &value)
void SetIpPreference(const IpPreference &value)
void SetResponseType(DnsResponseType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue