AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
UDPEndpoint.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
29 public:
30 AWS_GAMELIFT_API UDPEndpoint() = default;
31 AWS_GAMELIFT_API UDPEndpoint(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GAMELIFT_API UDPEndpoint& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDomain() const { return m_domain; }
40 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
41 template <typename DomainT = Aws::String>
42 void SetDomain(DomainT&& value) {
43 m_domainHasBeenSet = true;
44 m_domain = std::forward<DomainT>(value);
45 }
46 template <typename DomainT = Aws::String>
47 UDPEndpoint& WithDomain(DomainT&& value) {
48 SetDomain(std::forward<DomainT>(value));
49 return *this;
50 }
52
54
57 inline int GetPort() const { return m_port; }
58 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
59 inline void SetPort(int value) {
60 m_portHasBeenSet = true;
61 m_port = value;
62 }
63 inline UDPEndpoint& WithPort(int value) {
64 SetPort(value);
65 return *this;
66 }
68 private:
69 Aws::String m_domain;
70
71 int m_port{0};
72 bool m_domainHasBeenSet = false;
73 bool m_portHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace GameLift
78} // namespace Aws
UDPEndpoint & WithDomain(DomainT &&value)
Definition UDPEndpoint.h:47
void SetDomain(DomainT &&value)
Definition UDPEndpoint.h:42
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
UDPEndpoint & WithPort(int value)
Definition UDPEndpoint.h:63
AWS_GAMELIFT_API UDPEndpoint & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API UDPEndpoint(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDomain() const
Definition UDPEndpoint.h:39
AWS_GAMELIFT_API UDPEndpoint()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue