AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DiscoveryServerConfiguration.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataSync
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_DATASYNC_API DiscoveryServerConfiguration();
38 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetServerHostname() const{ return m_serverHostname; }
47 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
48 inline void SetServerHostname(const Aws::String& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = value; }
49 inline void SetServerHostname(Aws::String&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::move(value); }
50 inline void SetServerHostname(const char* value) { m_serverHostnameHasBeenSet = true; m_serverHostname.assign(value); }
52 inline DiscoveryServerConfiguration& WithServerHostname(Aws::String&& value) { SetServerHostname(std::move(value)); return *this;}
53 inline DiscoveryServerConfiguration& WithServerHostname(const char* value) { SetServerHostname(value); return *this;}
55
57
60 inline int GetServerPort() const{ return m_serverPort; }
61 inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
62 inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
63 inline DiscoveryServerConfiguration& WithServerPort(int value) { SetServerPort(value); return *this;}
65 private:
66
67 Aws::String m_serverHostname;
68 bool m_serverHostnameHasBeenSet = false;
69
70 int m_serverPort;
71 bool m_serverPortHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace DataSync
76} // namespace Aws
DiscoveryServerConfiguration & WithServerHostname(const char *value)
DiscoveryServerConfiguration & WithServerPort(int value)
AWS_DATASYNC_API DiscoveryServerConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
DiscoveryServerConfiguration & WithServerHostname(Aws::String &&value)
AWS_DATASYNC_API DiscoveryServerConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
DiscoveryServerConfiguration & WithServerHostname(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue