AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GameServerInstance.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/model/GameServerInstanceStatus.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
39 {
40 public:
41 AWS_GAMELIFT_API GameServerInstance();
44 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
53 inline const Aws::String& GetGameServerGroupName() const{ return m_gameServerGroupName; }
54 inline bool GameServerGroupNameHasBeenSet() const { return m_gameServerGroupNameHasBeenSet; }
55 inline void SetGameServerGroupName(const Aws::String& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = value; }
56 inline void SetGameServerGroupName(Aws::String&& value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName = std::move(value); }
57 inline void SetGameServerGroupName(const char* value) { m_gameServerGroupNameHasBeenSet = true; m_gameServerGroupName.assign(value); }
59 inline GameServerInstance& WithGameServerGroupName(Aws::String&& value) { SetGameServerGroupName(std::move(value)); return *this;}
60 inline GameServerInstance& WithGameServerGroupName(const char* value) { SetGameServerGroupName(value); return *this;}
62
64
68 inline const Aws::String& GetGameServerGroupArn() const{ return m_gameServerGroupArn; }
69 inline bool GameServerGroupArnHasBeenSet() const { return m_gameServerGroupArnHasBeenSet; }
70 inline void SetGameServerGroupArn(const Aws::String& value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn = value; }
71 inline void SetGameServerGroupArn(Aws::String&& value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn = std::move(value); }
72 inline void SetGameServerGroupArn(const char* value) { m_gameServerGroupArnHasBeenSet = true; m_gameServerGroupArn.assign(value); }
73 inline GameServerInstance& WithGameServerGroupArn(const Aws::String& value) { SetGameServerGroupArn(value); return *this;}
74 inline GameServerInstance& WithGameServerGroupArn(Aws::String&& value) { SetGameServerGroupArn(std::move(value)); return *this;}
75 inline GameServerInstance& WithGameServerGroupArn(const char* value) { SetGameServerGroupArn(value); return *this;}
77
79
84 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
85 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
86 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
87 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
88 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
89 inline GameServerInstance& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
90 inline GameServerInstance& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
91 inline GameServerInstance& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
93
95
98 inline const GameServerInstanceStatus& GetInstanceStatus() const{ return m_instanceStatus; }
99 inline bool InstanceStatusHasBeenSet() const { return m_instanceStatusHasBeenSet; }
100 inline void SetInstanceStatus(const GameServerInstanceStatus& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = value; }
101 inline void SetInstanceStatus(GameServerInstanceStatus&& value) { m_instanceStatusHasBeenSet = true; m_instanceStatus = std::move(value); }
103 inline GameServerInstance& WithInstanceStatus(GameServerInstanceStatus&& value) { SetInstanceStatus(std::move(value)); return *this;}
105 private:
106
107 Aws::String m_gameServerGroupName;
108 bool m_gameServerGroupNameHasBeenSet = false;
109
110 Aws::String m_gameServerGroupArn;
111 bool m_gameServerGroupArnHasBeenSet = false;
112
113 Aws::String m_instanceId;
114 bool m_instanceIdHasBeenSet = false;
115
116 GameServerInstanceStatus m_instanceStatus;
117 bool m_instanceStatusHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace GameLift
122} // namespace Aws
AWS_GAMELIFT_API GameServerInstance(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceStatus(GameServerInstanceStatus &&value)
void SetGameServerGroupName(Aws::String &&value)
AWS_GAMELIFT_API GameServerInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
GameServerInstance & WithGameServerGroupName(const char *value)
GameServerInstance & WithInstanceId(const char *value)
void SetGameServerGroupName(const Aws::String &value)
void SetInstanceId(const Aws::String &value)
const Aws::String & GetGameServerGroupArn() const
const GameServerInstanceStatus & GetInstanceStatus() const
void SetGameServerGroupArn(Aws::String &&value)
GameServerInstance & WithGameServerGroupArn(Aws::String &&value)
void SetGameServerGroupArn(const Aws::String &value)
GameServerInstance & WithInstanceId(Aws::String &&value)
GameServerInstance & WithGameServerGroupName(Aws::String &&value)
void SetInstanceStatus(const GameServerInstanceStatus &value)
GameServerInstance & WithGameServerGroupArn(const Aws::String &value)
GameServerInstance & WithGameServerGroupArn(const char *value)
GameServerInstance & WithGameServerGroupName(const Aws::String &value)
const Aws::String & GetInstanceId() const
GameServerInstance & WithInstanceStatus(GameServerInstanceStatus &&value)
GameServerInstance & WithInstanceStatus(const GameServerInstanceStatus &value)
GameServerInstance & WithInstanceId(const Aws::String &value)
const Aws::String & GetGameServerGroupName() const
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue