AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RoutingStrategy.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/RoutingStrategyType.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
32 public:
33 AWS_GAMELIFT_API RoutingStrategy() = default;
34 AWS_GAMELIFT_API RoutingStrategy(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
47 inline RoutingStrategyType GetType() const { return m_type; }
48 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
49 inline void SetType(RoutingStrategyType value) {
50 m_typeHasBeenSet = true;
51 m_type = value;
52 }
54 SetType(value);
55 return *this;
56 }
58
60
64 inline const Aws::String& GetFleetId() const { return m_fleetId; }
65 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
66 template <typename FleetIdT = Aws::String>
67 void SetFleetId(FleetIdT&& value) {
68 m_fleetIdHasBeenSet = true;
69 m_fleetId = std::forward<FleetIdT>(value);
70 }
71 template <typename FleetIdT = Aws::String>
72 RoutingStrategy& WithFleetId(FleetIdT&& value) {
73 SetFleetId(std::forward<FleetIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetMessage() const { return m_message; }
83 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
84 template <typename MessageT = Aws::String>
85 void SetMessage(MessageT&& value) {
86 m_messageHasBeenSet = true;
87 m_message = std::forward<MessageT>(value);
88 }
89 template <typename MessageT = Aws::String>
90 RoutingStrategy& WithMessage(MessageT&& value) {
91 SetMessage(std::forward<MessageT>(value));
92 return *this;
93 }
95 private:
97
98 Aws::String m_fleetId;
99
100 Aws::String m_message;
101 bool m_typeHasBeenSet = false;
102 bool m_fleetIdHasBeenSet = false;
103 bool m_messageHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace GameLift
108} // namespace Aws
AWS_GAMELIFT_API RoutingStrategy()=default
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
RoutingStrategy & WithType(RoutingStrategyType value)
const Aws::String & GetMessage() const
AWS_GAMELIFT_API RoutingStrategy(Aws::Utils::Json::JsonView jsonValue)
RoutingStrategy & WithFleetId(FleetIdT &&value)
AWS_GAMELIFT_API RoutingStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFleetId() const
RoutingStrategyType GetType() const
RoutingStrategy & WithMessage(MessageT &&value)
void SetType(RoutingStrategyType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue