AWS SDK for C++  1.9.161
AWS SDK for C++
PlayerLatency.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GameLift
22 {
23 namespace Model
24 {
25 
37  {
38  public:
43 
44 
48  inline const Aws::String& GetPlayerId() const{ return m_playerId; }
49 
53  inline bool PlayerIdHasBeenSet() const { return m_playerIdHasBeenSet; }
54 
58  inline void SetPlayerId(const Aws::String& value) { m_playerIdHasBeenSet = true; m_playerId = value; }
59 
63  inline void SetPlayerId(Aws::String&& value) { m_playerIdHasBeenSet = true; m_playerId = std::move(value); }
64 
68  inline void SetPlayerId(const char* value) { m_playerIdHasBeenSet = true; m_playerId.assign(value); }
69 
73  inline PlayerLatency& WithPlayerId(const Aws::String& value) { SetPlayerId(value); return *this;}
74 
78  inline PlayerLatency& WithPlayerId(Aws::String&& value) { SetPlayerId(std::move(value)); return *this;}
79 
83  inline PlayerLatency& WithPlayerId(const char* value) { SetPlayerId(value); return *this;}
84 
85 
89  inline const Aws::String& GetRegionIdentifier() const{ return m_regionIdentifier; }
90 
94  inline bool RegionIdentifierHasBeenSet() const { return m_regionIdentifierHasBeenSet; }
95 
99  inline void SetRegionIdentifier(const Aws::String& value) { m_regionIdentifierHasBeenSet = true; m_regionIdentifier = value; }
100 
104  inline void SetRegionIdentifier(Aws::String&& value) { m_regionIdentifierHasBeenSet = true; m_regionIdentifier = std::move(value); }
105 
109  inline void SetRegionIdentifier(const char* value) { m_regionIdentifierHasBeenSet = true; m_regionIdentifier.assign(value); }
110 
114  inline PlayerLatency& WithRegionIdentifier(const Aws::String& value) { SetRegionIdentifier(value); return *this;}
115 
119  inline PlayerLatency& WithRegionIdentifier(Aws::String&& value) { SetRegionIdentifier(std::move(value)); return *this;}
120 
124  inline PlayerLatency& WithRegionIdentifier(const char* value) { SetRegionIdentifier(value); return *this;}
125 
126 
131  inline double GetLatencyInMilliseconds() const{ return m_latencyInMilliseconds; }
132 
137  inline bool LatencyInMillisecondsHasBeenSet() const { return m_latencyInMillisecondsHasBeenSet; }
138 
143  inline void SetLatencyInMilliseconds(double value) { m_latencyInMillisecondsHasBeenSet = true; m_latencyInMilliseconds = value; }
144 
149  inline PlayerLatency& WithLatencyInMilliseconds(double value) { SetLatencyInMilliseconds(value); return *this;}
150 
151  private:
152 
153  Aws::String m_playerId;
154  bool m_playerIdHasBeenSet;
155 
156  Aws::String m_regionIdentifier;
157  bool m_regionIdentifierHasBeenSet;
158 
159  double m_latencyInMilliseconds;
160  bool m_latencyInMillisecondsHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace GameLift
165 } // namespace Aws
Aws::GameLift::Model::PlayerLatency::GetLatencyInMilliseconds
double GetLatencyInMilliseconds() const
Definition: PlayerLatency.h:131
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::PlayerLatency::PlayerLatency
PlayerLatency()
Aws::GameLift::Model::PlayerLatency::WithPlayerId
PlayerLatency & WithPlayerId(const char *value)
Definition: PlayerLatency.h:83
Aws::GameLift::Model::PlayerLatency::WithLatencyInMilliseconds
PlayerLatency & WithLatencyInMilliseconds(double value)
Definition: PlayerLatency.h:149
Aws::GameLift::Model::PlayerLatency::SetRegionIdentifier
void SetRegionIdentifier(const char *value)
Definition: PlayerLatency.h:109
GameLift_EXPORTS.h
Aws::GameLift::Model::PlayerLatency::SetRegionIdentifier
void SetRegionIdentifier(Aws::String &&value)
Definition: PlayerLatency.h:104
Aws::GameLift::Model::PlayerLatency::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::PlayerLatency::WithRegionIdentifier
PlayerLatency & WithRegionIdentifier(const Aws::String &value)
Definition: PlayerLatency.h:114
Aws::GameLift::Model::PlayerLatency::WithPlayerId
PlayerLatency & WithPlayerId(const Aws::String &value)
Definition: PlayerLatency.h:73
Aws::GameLift::Model::PlayerLatency::SetPlayerId
void SetPlayerId(const char *value)
Definition: PlayerLatency.h:68
Aws::GameLift::Model::PlayerLatency::PlayerLatency
PlayerLatency(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GameLift::Model::PlayerLatency::WithPlayerId
PlayerLatency & WithPlayerId(Aws::String &&value)
Definition: PlayerLatency.h:78
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::PlayerLatency::SetPlayerId
void SetPlayerId(Aws::String &&value)
Definition: PlayerLatency.h:63
Aws::GameLift::Model::PlayerLatency::SetRegionIdentifier
void SetRegionIdentifier(const Aws::String &value)
Definition: PlayerLatency.h:99
Aws::GameLift::Model::PlayerLatency::LatencyInMillisecondsHasBeenSet
bool LatencyInMillisecondsHasBeenSet() const
Definition: PlayerLatency.h:137
Aws::GameLift::Model::PlayerLatency
Definition: PlayerLatency.h:37
Aws::GameLift::Model::PlayerLatency::WithRegionIdentifier
PlayerLatency & WithRegionIdentifier(Aws::String &&value)
Definition: PlayerLatency.h:119
Aws::GameLift::Model::PlayerLatency::PlayerIdHasBeenSet
bool PlayerIdHasBeenSet() const
Definition: PlayerLatency.h:53
Aws::GameLift::Model::PlayerLatency::SetLatencyInMilliseconds
void SetLatencyInMilliseconds(double value)
Definition: PlayerLatency.h:143
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::PlayerLatency::RegionIdentifierHasBeenSet
bool RegionIdentifierHasBeenSet() const
Definition: PlayerLatency.h:94
Aws::GameLift::Model::PlayerLatency::GetRegionIdentifier
const Aws::String & GetRegionIdentifier() const
Definition: PlayerLatency.h:89
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::PlayerLatency::GetPlayerId
const Aws::String & GetPlayerId() const
Definition: PlayerLatency.h:48
Aws::GameLift::Model::PlayerLatency::WithRegionIdentifier
PlayerLatency & WithRegionIdentifier(const char *value)
Definition: PlayerLatency.h:124
Aws::GameLift::Model::PlayerLatency::SetPlayerId
void SetPlayerId(const Aws::String &value)
Definition: PlayerLatency.h:58
Aws::GameLift::Model::PlayerLatency::operator=
PlayerLatency & operator=(Aws::Utils::Json::JsonView jsonValue)