AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
ContainerFleetLocationAttributes.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/ContainerFleetLocationStatus.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
31 public:
32 AWS_GAMELIFT_API ContainerFleetLocationAttributes() = default;
33 AWS_GAMELIFT_API ContainerFleetLocationAttributes(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_GAMELIFT_API ContainerFleetLocationAttributes& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetLocation() const { return m_location; }
42 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
43 template <typename LocationT = Aws::String>
44 void SetLocation(LocationT&& value) {
45 m_locationHasBeenSet = true;
46 m_location = std::forward<LocationT>(value);
47 }
48 template <typename LocationT = Aws::String>
50 SetLocation(std::forward<LocationT>(value));
51 return *this;
52 }
54
56
69 inline ContainerFleetLocationStatus GetStatus() const { return m_status; }
70 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 m_statusHasBeenSet = true;
73 m_status = value;
74 }
76 SetStatus(value);
77 return *this;
78 }
80
82
94 inline PlayerGatewayStatus GetPlayerGatewayStatus() const { return m_playerGatewayStatus; }
95 inline bool PlayerGatewayStatusHasBeenSet() const { return m_playerGatewayStatusHasBeenSet; }
97 m_playerGatewayStatusHasBeenSet = true;
98 m_playerGatewayStatus = value;
99 }
102 return *this;
103 }
105 private:
106 Aws::String m_location;
107
109
111 bool m_locationHasBeenSet = false;
112 bool m_statusHasBeenSet = false;
113 bool m_playerGatewayStatusHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace GameLift
118} // namespace Aws
AWS_GAMELIFT_API ContainerFleetLocationAttributes()=default
AWS_GAMELIFT_API ContainerFleetLocationAttributes(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ContainerFleetLocationAttributes & WithLocation(LocationT &&value)
AWS_GAMELIFT_API ContainerFleetLocationAttributes & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ContainerFleetLocationAttributes & WithPlayerGatewayStatus(PlayerGatewayStatus value)
AWS_GAMELIFT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
ContainerFleetLocationAttributes & WithStatus(ContainerFleetLocationStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String