AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
PingBeacon.h
1
6#pragma once
7#include <aws/crt/cbor/Cbor.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/UDPEndpoint.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace GameLift {
20namespace Model {
21
30 public:
31 AWS_GAMELIFT_API PingBeacon() = default;
32 AWS_GAMELIFT_API PingBeacon(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_GAMELIFT_API PingBeacon& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
42 inline const UDPEndpoint& GetUDPEndpoint() const { return m_uDPEndpoint; }
43 inline bool UDPEndpointHasBeenSet() const { return m_uDPEndpointHasBeenSet; }
44 template <typename UDPEndpointT = UDPEndpoint>
45 void SetUDPEndpoint(UDPEndpointT&& value) {
46 m_uDPEndpointHasBeenSet = true;
47 m_uDPEndpoint = std::forward<UDPEndpointT>(value);
48 }
49 template <typename UDPEndpointT = UDPEndpoint>
50 PingBeacon& WithUDPEndpoint(UDPEndpointT&& value) {
51 SetUDPEndpoint(std::forward<UDPEndpointT>(value));
52 return *this;
53 }
55 private:
56 UDPEndpoint m_uDPEndpoint;
57 bool m_uDPEndpointHasBeenSet = false;
58};
59
60} // namespace Model
61} // namespace GameLift
62} // namespace Aws
PingBeacon & WithUDPEndpoint(UDPEndpointT &&value)
Definition PingBeacon.h:50
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_GAMELIFT_API PingBeacon(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API PingBeacon & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetUDPEndpoint(UDPEndpointT &&value)
Definition PingBeacon.h:45
const UDPEndpoint & GetUDPEndpoint() const
Definition PingBeacon.h:42
AWS_GAMELIFT_API PingBeacon()=default