AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
LocationModel.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10#include <aws/gamelift/model/PingBeacon.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
30 public:
31 AWS_GAMELIFT_API LocationModel() = default;
32 AWS_GAMELIFT_API LocationModel(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_GAMELIFT_API LocationModel& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetLocationName() const { return m_locationName; }
41 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
42 template <typename LocationNameT = Aws::String>
43 void SetLocationName(LocationNameT&& value) {
44 m_locationNameHasBeenSet = true;
45 m_locationName = std::forward<LocationNameT>(value);
46 }
47 template <typename LocationNameT = Aws::String>
48 LocationModel& WithLocationName(LocationNameT&& value) {
49 SetLocationName(std::forward<LocationNameT>(value));
50 return *this;
51 }
53
55
62 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
63 inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
64 template <typename LocationArnT = Aws::String>
65 void SetLocationArn(LocationArnT&& value) {
66 m_locationArnHasBeenSet = true;
67 m_locationArn = std::forward<LocationArnT>(value);
68 }
69 template <typename LocationArnT = Aws::String>
70 LocationModel& WithLocationArn(LocationArnT&& value) {
71 SetLocationArn(std::forward<LocationArnT>(value));
72 return *this;
73 }
75
77
82 inline const PingBeacon& GetPingBeacon() const { return m_pingBeacon; }
83 inline bool PingBeaconHasBeenSet() const { return m_pingBeaconHasBeenSet; }
84 template <typename PingBeaconT = PingBeacon>
85 void SetPingBeacon(PingBeaconT&& value) {
86 m_pingBeaconHasBeenSet = true;
87 m_pingBeacon = std::forward<PingBeaconT>(value);
88 }
89 template <typename PingBeaconT = PingBeacon>
90 LocationModel& WithPingBeacon(PingBeaconT&& value) {
91 SetPingBeacon(std::forward<PingBeaconT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_locationName;
97
98 Aws::String m_locationArn;
99
100 PingBeacon m_pingBeacon;
101 bool m_locationNameHasBeenSet = false;
102 bool m_locationArnHasBeenSet = false;
103 bool m_pingBeaconHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace GameLift
108} // namespace Aws
const PingBeacon & GetPingBeacon() const
LocationModel & WithLocationName(LocationNameT &&value)
void SetPingBeacon(PingBeaconT &&value)
void SetLocationArn(LocationArnT &&value)
AWS_GAMELIFT_API LocationModel(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API LocationModel & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetLocationName() const
LocationModel & WithPingBeacon(PingBeaconT &&value)
const Aws::String & GetLocationArn() const
LocationModel & WithLocationArn(LocationArnT &&value)
void SetLocationName(LocationNameT &&value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_GAMELIFT_API LocationModel()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String