AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
LocationModel.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/gamelift/GameLift_EXPORTS.h>
9#include <aws/gamelift/model/PingBeacon.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
30 public:
31 AWS_GAMELIFT_API LocationModel() = default;
32 AWS_GAMELIFT_API LocationModel(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() 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
80 inline const PingBeacon& GetPingBeacon() const { return m_pingBeacon; }
81 inline bool PingBeaconHasBeenSet() const { return m_pingBeaconHasBeenSet; }
82 template <typename PingBeaconT = PingBeacon>
83 void SetPingBeacon(PingBeaconT&& value) {
84 m_pingBeaconHasBeenSet = true;
85 m_pingBeacon = std::forward<PingBeaconT>(value);
86 }
87 template <typename PingBeaconT = PingBeacon>
88 LocationModel& WithPingBeacon(PingBeaconT&& value) {
89 SetPingBeacon(std::forward<PingBeaconT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_locationName;
95
96 Aws::String m_locationArn;
97
98 PingBeacon m_pingBeacon;
99 bool m_locationNameHasBeenSet = false;
100 bool m_locationArnHasBeenSet = false;
101 bool m_pingBeaconHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace GameLift
106} // namespace Aws
const PingBeacon & GetPingBeacon() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
LocationModel & WithLocationName(LocationNameT &&value)
void SetPingBeacon(PingBeaconT &&value)
void SetLocationArn(LocationArnT &&value)
AWS_GAMELIFT_API LocationModel & operator=(Aws::Utils::Json::JsonView jsonValue)
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 LocationModel()=default
AWS_GAMELIFT_API LocationModel(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue