AWS SDK for C++  1.9.13
AWS SDK for C++
DnsServiceDiscovery.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AppMesh
22 {
23 namespace Model
24 {
25 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetHostname() const{ return m_hostname; }
45 
49  inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
50 
54  inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
55 
59  inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
60 
64  inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); }
65 
69  inline DnsServiceDiscovery& WithHostname(const Aws::String& value) { SetHostname(value); return *this;}
70 
74  inline DnsServiceDiscovery& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;}
75 
79  inline DnsServiceDiscovery& WithHostname(const char* value) { SetHostname(value); return *this;}
80 
81  private:
82 
83  Aws::String m_hostname;
84  bool m_hostnameHasBeenSet;
85  };
86 
87 } // namespace Model
88 } // namespace AppMesh
89 } // namespace Aws
Aws::AppMesh::Model::DnsServiceDiscovery::HostnameHasBeenSet
bool HostnameHasBeenSet() const
Definition: DnsServiceDiscovery.h:49
Aws::AppMesh::Model::DnsServiceDiscovery::SetHostname
void SetHostname(Aws::String &&value)
Definition: DnsServiceDiscovery.h:59
Aws::AppMesh::Model::DnsServiceDiscovery::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::DnsServiceDiscovery::WithHostname
DnsServiceDiscovery & WithHostname(Aws::String &&value)
Definition: DnsServiceDiscovery.h:74
Aws::AppMesh::Model::DnsServiceDiscovery::WithHostname
DnsServiceDiscovery & WithHostname(const Aws::String &value)
Definition: DnsServiceDiscovery.h:69
Aws::AppMesh::Model::DnsServiceDiscovery::WithHostname
DnsServiceDiscovery & WithHostname(const char *value)
Definition: DnsServiceDiscovery.h:79
Aws::AppMesh::Model::DnsServiceDiscovery::GetHostname
const Aws::String & GetHostname() const
Definition: DnsServiceDiscovery.h:44
Aws::AppMesh::Model::DnsServiceDiscovery
Definition: DnsServiceDiscovery.h:33
Aws::AppMesh::Model::DnsServiceDiscovery::SetHostname
void SetHostname(const char *value)
Definition: DnsServiceDiscovery.h:64
AppMesh_EXPORTS.h
Aws::AppMesh::Model::DnsServiceDiscovery::DnsServiceDiscovery
DnsServiceDiscovery()
Aws::AppMesh::Model::DnsServiceDiscovery::DnsServiceDiscovery
DnsServiceDiscovery(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
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:54
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28