AWS SDK for C++  1.9.132
AWS SDK for C++
DnsServiceDiscovery.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace AppMesh
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetHostname() const{ return m_hostname; }
46 
50  inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
51 
55  inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
56 
60  inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
61 
65  inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
66 
70  inline DnsServiceDiscovery& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
71 
75  inline DnsServiceDiscovery& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
76 
80  inline DnsServiceDiscovery& WithHostname(const char* value) { SetHostname(value); return *this;}
81 
82 
86  inline const DnsResponseType& GetResponseType() const{ return m_responseType; }
87 
91  inline bool ResponseTypeHasBeenSet() const { return m_responseTypeHasBeenSet; }
92 
96  inline void SetResponseType(const DnsResponseType& value) { m_responseTypeHasBeenSet = true; m_responseType = value; }
97 
101  inline void SetResponseType(DnsResponseType&& value) { m_responseTypeHasBeenSet = true; m_responseType = std::move(value); }
102 
106  inline DnsServiceDiscovery& WithResponseType(const DnsResponseType& value) { SetResponseType(value); return *this;}
107 
111  inline DnsServiceDiscovery& WithResponseType(DnsResponseType&& value) { SetResponseType(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_hostname;
116  bool m_hostnameHasBeenSet;
117 
118  DnsResponseType m_responseType;
119  bool m_responseTypeHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace AppMesh
124 } // namespace Aws
Aws::AppMesh::Model::DnsServiceDiscovery::HostnameHasBeenSet
bool HostnameHasBeenSet() const
Definition: DnsServiceDiscovery.h:50
Aws::AppMesh::Model::DnsServiceDiscovery::SetHostname
void SetHostname(Aws::String &&value)
Definition: DnsServiceDiscovery.h:60
Aws::AppMesh::Model::DnsServiceDiscovery::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::DnsServiceDiscovery::WithHostname
DnsServiceDiscovery & WithHostname(Aws::String &&value)
Definition: DnsServiceDiscovery.h:75
Aws::AppMesh::Model::DnsServiceDiscovery::WithHostname
DnsServiceDiscovery & WithHostname(const Aws::String &value)
Definition: DnsServiceDiscovery.h:70
Aws::AppMesh::Model::DnsServiceDiscovery::WithHostname
DnsServiceDiscovery & WithHostname(const char *value)
Definition: DnsServiceDiscovery.h:80
Aws::AppMesh::Model::DnsServiceDiscovery::GetHostname
const Aws::String & GetHostname() const
Definition: DnsServiceDiscovery.h:45
Aws::AppMesh::Model::DnsServiceDiscovery
Definition: DnsServiceDiscovery.h:34
Aws::AppMesh::Model::DnsServiceDiscovery::SetResponseType
void SetResponseType(DnsResponseType &&value)
Definition: DnsServiceDiscovery.h:101
Aws::AppMesh::Model::DnsServiceDiscovery::SetHostname
void SetHostname(const char *value)
Definition: DnsServiceDiscovery.h:65
AppMesh_EXPORTS.h
Aws::AppMesh::Model::DnsServiceDiscovery::ResponseTypeHasBeenSet
bool ResponseTypeHasBeenSet() const
Definition: DnsServiceDiscovery.h:91
Aws::AppMesh::Model::DnsServiceDiscovery::DnsServiceDiscovery
DnsServiceDiscovery()
Aws::AppMesh::Model::DnsServiceDiscovery::DnsServiceDiscovery
DnsServiceDiscovery(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AppMesh::Model::DnsServiceDiscovery::SetResponseType
void SetResponseType(const DnsResponseType &value)
Definition: DnsServiceDiscovery.h:96
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::DnsServiceDiscovery::WithResponseType
DnsServiceDiscovery & WithResponseType(const DnsResponseType &value)
Definition: DnsServiceDiscovery.h:106
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::DnsServiceDiscovery::GetResponseType
const DnsResponseType & GetResponseType() const
Definition: DnsServiceDiscovery.h:86
DnsResponseType.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::DnsResponseType
DnsResponseType
Definition: DnsResponseType.h:17
Aws::AppMesh::Model::DnsServiceDiscovery::operator=
DnsServiceDiscovery & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::DnsServiceDiscovery::SetHostname
void SetHostname(const Aws::String &value)
Definition: DnsServiceDiscovery.h:55
Aws::AppMesh::Model::DnsServiceDiscovery::WithResponseType
DnsServiceDiscovery & WithResponseType(DnsResponseType &&value)
Definition: DnsServiceDiscovery.h:111
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28