AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RoutingStrategy.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/model/RoutingStrategyType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_GAMELIFT_API RoutingStrategy() = default;
39 AWS_GAMELIFT_API RoutingStrategy(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
53 inline RoutingStrategyType GetType() const { return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(RoutingStrategyType value) { m_typeHasBeenSet = true; m_type = value; }
56 inline RoutingStrategy& WithType(RoutingStrategyType value) { SetType(value); return *this;}
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) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
68 template<typename FleetIdT = Aws::String>
69 RoutingStrategy& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
71
73
76 inline const Aws::String& GetMessage() const { return m_message; }
77 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
78 template<typename MessageT = Aws::String>
79 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
80 template<typename MessageT = Aws::String>
81 RoutingStrategy& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
83 private:
84
86 bool m_typeHasBeenSet = false;
87
88 Aws::String m_fleetId;
89 bool m_fleetIdHasBeenSet = false;
90
91 Aws::String m_message;
92 bool m_messageHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace GameLift
97} // 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