AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const RoutingStrategyType& GetType() const{ return m_type; }
54 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
55 inline void SetType(const RoutingStrategyType& value) { m_typeHasBeenSet = true; m_type = value; }
56 inline void SetType(RoutingStrategyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
57 inline RoutingStrategy& WithType(const RoutingStrategyType& value) { SetType(value); return *this;}
58 inline RoutingStrategy& WithType(RoutingStrategyType&& value) { SetType(std::move(value)); return *this;}
60
62
66 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
67 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
68 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
69 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
70 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
71 inline RoutingStrategy& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
72 inline RoutingStrategy& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
73 inline RoutingStrategy& WithFleetId(const char* value) { SetFleetId(value); return *this;}
75
77
80 inline const Aws::String& GetMessage() const{ return m_message; }
81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
83 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
84 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
85 inline RoutingStrategy& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
86 inline RoutingStrategy& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
87 inline RoutingStrategy& WithMessage(const char* value) { SetMessage(value); return *this;}
89 private:
90
92 bool m_typeHasBeenSet = false;
93
94 Aws::String m_fleetId;
95 bool m_fleetIdHasBeenSet = false;
96
97 Aws::String m_message;
98 bool m_messageHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace GameLift
103} // namespace Aws
void SetMessage(const Aws::String &value)
void SetType(RoutingStrategyType &&value)
void SetFleetId(const Aws::String &value)
RoutingStrategy & WithType(RoutingStrategyType &&value)
RoutingStrategy & WithFleetId(const Aws::String &value)
RoutingStrategy & WithFleetId(const char *value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(const RoutingStrategyType &value)
const RoutingStrategyType & GetType() const
RoutingStrategy & WithMessage(const char *value)
RoutingStrategy & WithMessage(Aws::String &&value)
const Aws::String & GetMessage() const
AWS_GAMELIFT_API RoutingStrategy(Aws::Utils::Json::JsonView jsonValue)
void SetMessage(Aws::String &&value)
AWS_GAMELIFT_API RoutingStrategy & operator=(Aws::Utils::Json::JsonView jsonValue)
RoutingStrategy & WithMessage(const Aws::String &value)
const Aws::String & GetFleetId() const
RoutingStrategy & WithType(const RoutingStrategyType &value)
void SetFleetId(Aws::String &&value)
RoutingStrategy & WithFleetId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue