AWS SDK for C++  1.8.7
AWS SDK for C++
RoutingStrategy.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GameLift
23 {
24 namespace Model
25 {
26 
37  {
38  public:
41  RoutingStrategy& operator=(Aws::Utils::Json::JsonView jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
44 
54  inline const RoutingStrategyType& GetType() const{ return m_type; }
55 
65  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 
76  inline void SetType(const RoutingStrategyType& value) { m_typeHasBeenSet = true; m_type = value; }
77 
87  inline void SetType(RoutingStrategyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
88 
98  inline RoutingStrategy& WithType(const RoutingStrategyType& value) { SetType(value); return *this;}
99 
109  inline RoutingStrategy& WithType(RoutingStrategyType&& value) { SetType(std::move(value)); return *this;}
110 
111 
116  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
117 
122  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
123 
128  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
129 
134  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
135 
140  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
141 
146  inline RoutingStrategy& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
147 
152  inline RoutingStrategy& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
153 
158  inline RoutingStrategy& WithFleetId(const char* value) { SetFleetId(value); return *this;}
159 
160 
164  inline const Aws::String& GetMessage() const{ return m_message; }
165 
169  inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
170 
174  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
175 
179  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
180 
184  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
185 
189  inline RoutingStrategy& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
190 
194  inline RoutingStrategy& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
195 
199  inline RoutingStrategy& WithMessage(const char* value) { SetMessage(value); return *this;}
200 
201  private:
202 
203  RoutingStrategyType m_type;
204  bool m_typeHasBeenSet;
205 
206  Aws::String m_fleetId;
207  bool m_fleetIdHasBeenSet;
208 
209  Aws::String m_message;
210  bool m_messageHasBeenSet;
211  };
212 
213 } // namespace Model
214 } // namespace GameLift
215 } // namespace Aws
#define AWS_GAMELIFT_API
const Aws::String & GetFleetId() const
void SetMessage(const Aws::String &value)
RoutingStrategy & WithMessage(const char *value)
RoutingStrategy & WithFleetId(const char *value)
RoutingStrategy & WithType(const RoutingStrategyType &value)
void SetMessage(Aws::String &&value)
void SetFleetId(const Aws::String &value)
void SetType(RoutingStrategyType &&value)
void SetFleetId(Aws::String &&value)
RoutingStrategy & WithFleetId(const Aws::String &value)
const Aws::String & GetMessage() const
RoutingStrategy & WithMessage(const Aws::String &value)
void SetType(const RoutingStrategyType &value)
RoutingStrategy & WithMessage(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RoutingStrategy & WithType(RoutingStrategyType &&value)
const RoutingStrategyType & GetType() const
RoutingStrategy & WithFleetId(Aws::String &&value)