AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
LocationState.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/FleetStatus.h>
11#include <aws/gamelift/model/PlayerGatewayStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace GameLift {
22namespace Model {
23
45 public:
46 AWS_GAMELIFT_API LocationState() = default;
47 AWS_GAMELIFT_API LocationState(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
48 AWS_GAMELIFT_API LocationState& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
49 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
50
52
56 inline const Aws::String& GetLocation() const { return m_location; }
57 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
58 template <typename LocationT = Aws::String>
59 void SetLocation(LocationT&& value) {
60 m_locationHasBeenSet = true;
61 m_location = std::forward<LocationT>(value);
62 }
63 template <typename LocationT = Aws::String>
64 LocationState& WithLocation(LocationT&& value) {
65 SetLocation(std::forward<LocationT>(value));
66 return *this;
67 }
69
71
74 inline FleetStatus GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(FleetStatus value) {
77 m_statusHasBeenSet = true;
78 m_status = value;
79 }
81 SetStatus(value);
82 return *this;
83 }
85
87
98 inline PlayerGatewayStatus GetPlayerGatewayStatus() const { return m_playerGatewayStatus; }
99 inline bool PlayerGatewayStatusHasBeenSet() const { return m_playerGatewayStatusHasBeenSet; }
101 m_playerGatewayStatusHasBeenSet = true;
102 m_playerGatewayStatus = value;
103 }
106 return *this;
107 }
109 private:
110 Aws::String m_location;
111
113
115 bool m_locationHasBeenSet = false;
116 bool m_statusHasBeenSet = false;
117 bool m_playerGatewayStatusHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace GameLift
122} // namespace Aws
void SetLocation(LocationT &&value)
PlayerGatewayStatus GetPlayerGatewayStatus() const
LocationState & WithStatus(FleetStatus value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_GAMELIFT_API LocationState(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API LocationState & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_GAMELIFT_API LocationState()=default
void SetPlayerGatewayStatus(PlayerGatewayStatus value)
LocationState & WithLocation(LocationT &&value)
void SetStatus(FleetStatus value)
LocationState & WithPlayerGatewayStatus(PlayerGatewayStatus value)
const Aws::String & GetLocation() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String