AWS SDK for C++

AWS SDK for C++ Version 1.11.944

Loading...
Searching...
No Matches
AgentDiscoveryDetail.h
1
6#pragma once
7#include <aws/acm/ACM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ACM {
20namespace Model {
21
29 public:
30 AWS_ACM_API AgentDiscoveryDetail() = default;
34
36
39 inline int GetPort() const { return m_port; }
40 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
41 inline void SetPort(int value) {
42 m_portHasBeenSet = true;
43 m_port = value;
44 }
45 inline AgentDiscoveryDetail& WithPort(int value) {
46 SetPort(value);
47 return *this;
48 }
50
52
56 inline const Aws::String& GetServerName() const { return m_serverName; }
57 inline bool ServerNameHasBeenSet() const { return m_serverNameHasBeenSet; }
58 template <typename ServerNameT = Aws::String>
59 void SetServerName(ServerNameT&& value) {
60 m_serverNameHasBeenSet = true;
61 m_serverName = std::forward<ServerNameT>(value);
62 }
63 template <typename ServerNameT = Aws::String>
64 AgentDiscoveryDetail& WithServerName(ServerNameT&& value) {
65 SetServerName(std::forward<ServerNameT>(value));
66 return *this;
67 }
69 private:
70 int m_port{0};
71
72 Aws::String m_serverName;
73 bool m_portHasBeenSet = false;
74 bool m_serverNameHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ACM
79} // namespace Aws
AWS_ACM_API AgentDiscoveryDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_ACM_API Aws::Utils::Json::JsonValue Jsonize() const
AgentDiscoveryDetail & WithPort(int value)
AgentDiscoveryDetail & WithServerName(ServerNameT &&value)
const Aws::String & GetServerName() const
AWS_ACM_API AgentDiscoveryDetail()=default
AWS_ACM_API AgentDiscoveryDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue