AWS SDK for C++  1.9.16
AWS SDK for C++
GetInstanceAccessRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GameLift
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetInstanceAccess"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
47  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
48 
56  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
57 
65  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
66 
74  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
75 
83  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
84 
92  inline GetInstanceAccessRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
93 
101  inline GetInstanceAccessRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
102 
110  inline GetInstanceAccessRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
111 
112 
117  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
118 
123  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
124 
129  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
130 
135  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
136 
141  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
142 
147  inline GetInstanceAccessRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
148 
153  inline GetInstanceAccessRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
154 
159  inline GetInstanceAccessRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
160 
161  private:
162 
163  Aws::String m_fleetId;
164  bool m_fleetIdHasBeenSet;
165 
166  Aws::String m_instanceId;
167  bool m_instanceIdHasBeenSet;
168  };
169 
170 } // namespace Model
171 } // namespace GameLift
172 } // namespace Aws
Aws::GameLift::Model::GetInstanceAccessRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::GetInstanceAccessRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: GetInstanceAccessRequest.h:135
Aws::GameLift::Model::GetInstanceAccessRequest::WithFleetId
GetInstanceAccessRequest & WithFleetId(const Aws::String &value)
Definition: GetInstanceAccessRequest.h:92
Aws::GameLift::Model::GetInstanceAccessRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: GetInstanceAccessRequest.h:47
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::GetInstanceAccessRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: GetInstanceAccessRequest.h:123
Aws::GameLift::Model::GetInstanceAccessRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: GetInstanceAccessRequest.h:74
Aws::GameLift::Model::GetInstanceAccessRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: GetInstanceAccessRequest.h:141
Aws::GameLift::Model::GetInstanceAccessRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: GetInstanceAccessRequest.h:56
Aws::GameLift::Model::GetInstanceAccessRequest::WithInstanceId
GetInstanceAccessRequest & WithInstanceId(const char *value)
Definition: GetInstanceAccessRequest.h:159
Aws::GameLift::Model::GetInstanceAccessRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: GetInstanceAccessRequest.h:65
Aws::GameLift::Model::GetInstanceAccessRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetInstanceAccessRequest.h:33
Aws::GameLift::Model::GetInstanceAccessRequest::WithFleetId
GetInstanceAccessRequest & WithFleetId(Aws::String &&value)
Definition: GetInstanceAccessRequest.h:101
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::GetInstanceAccessRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: GetInstanceAccessRequest.h:129
Aws::GameLift::Model::GetInstanceAccessRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::GetInstanceAccessRequest::WithInstanceId
GetInstanceAccessRequest & WithInstanceId(const Aws::String &value)
Definition: GetInstanceAccessRequest.h:147
Aws::GameLift::Model::GetInstanceAccessRequest::SetFleetId
void SetFleetId(const char *value)
Definition: GetInstanceAccessRequest.h:83
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::GetInstanceAccessRequest::GetInstanceAccessRequest
GetInstanceAccessRequest()
Aws::GameLift::Model::GetInstanceAccessRequest::WithFleetId
GetInstanceAccessRequest & WithFleetId(const char *value)
Definition: GetInstanceAccessRequest.h:110
Aws::GameLift::Model::GetInstanceAccessRequest
Definition: GetInstanceAccessRequest.h:25
Aws::GameLift::Model::GetInstanceAccessRequest::WithInstanceId
GetInstanceAccessRequest & WithInstanceId(Aws::String &&value)
Definition: GetInstanceAccessRequest.h:153
Aws::GameLift::Model::GetInstanceAccessRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: GetInstanceAccessRequest.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97