AWS SDK for C++  1.9.16
AWS SDK for C++
AcceptMatchRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace GameLift
17 {
18 namespace Model
19 {
20 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "AcceptMatch"; }
36 
37  Aws::String SerializePayload() const override;
38 
40 
41 
46  inline const Aws::String& GetTicketId() const{ return m_ticketId; }
47 
52  inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; }
53 
58  inline void SetTicketId(const Aws::String& value) { m_ticketIdHasBeenSet = true; m_ticketId = value; }
59 
64  inline void SetTicketId(Aws::String&& value) { m_ticketIdHasBeenSet = true; m_ticketId = std::move(value); }
65 
70  inline void SetTicketId(const char* value) { m_ticketIdHasBeenSet = true; m_ticketId.assign(value); }
71 
76  inline AcceptMatchRequest& WithTicketId(const Aws::String& value) { SetTicketId(value); return *this;}
77 
82  inline AcceptMatchRequest& WithTicketId(Aws::String&& value) { SetTicketId(std::move(value)); return *this;}
83 
88  inline AcceptMatchRequest& WithTicketId(const char* value) { SetTicketId(value); return *this;}
89 
90 
95  inline const Aws::Vector<Aws::String>& GetPlayerIds() const{ return m_playerIds; }
96 
101  inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; }
102 
107  inline void SetPlayerIds(const Aws::Vector<Aws::String>& value) { m_playerIdsHasBeenSet = true; m_playerIds = value; }
108 
113  inline void SetPlayerIds(Aws::Vector<Aws::String>&& value) { m_playerIdsHasBeenSet = true; m_playerIds = std::move(value); }
114 
119  inline AcceptMatchRequest& WithPlayerIds(const Aws::Vector<Aws::String>& value) { SetPlayerIds(value); return *this;}
120 
125  inline AcceptMatchRequest& WithPlayerIds(Aws::Vector<Aws::String>&& value) { SetPlayerIds(std::move(value)); return *this;}
126 
131  inline AcceptMatchRequest& AddPlayerIds(const Aws::String& value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(value); return *this; }
132 
137  inline AcceptMatchRequest& AddPlayerIds(Aws::String&& value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(std::move(value)); return *this; }
138 
143  inline AcceptMatchRequest& AddPlayerIds(const char* value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(value); return *this; }
144 
145 
149  inline const AcceptanceType& GetAcceptanceType() const{ return m_acceptanceType; }
150 
154  inline bool AcceptanceTypeHasBeenSet() const { return m_acceptanceTypeHasBeenSet; }
155 
159  inline void SetAcceptanceType(const AcceptanceType& value) { m_acceptanceTypeHasBeenSet = true; m_acceptanceType = value; }
160 
164  inline void SetAcceptanceType(AcceptanceType&& value) { m_acceptanceTypeHasBeenSet = true; m_acceptanceType = std::move(value); }
165 
169  inline AcceptMatchRequest& WithAcceptanceType(const AcceptanceType& value) { SetAcceptanceType(value); return *this;}
170 
174  inline AcceptMatchRequest& WithAcceptanceType(AcceptanceType&& value) { SetAcceptanceType(std::move(value)); return *this;}
175 
176  private:
177 
178  Aws::String m_ticketId;
179  bool m_ticketIdHasBeenSet;
180 
181  Aws::Vector<Aws::String> m_playerIds;
182  bool m_playerIdsHasBeenSet;
183 
184  AcceptanceType m_acceptanceType;
185  bool m_acceptanceTypeHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace GameLift
190 } // namespace Aws
Aws::GameLift::Model::AcceptMatchRequest::SetPlayerIds
void SetPlayerIds(Aws::Vector< Aws::String > &&value)
Definition: AcceptMatchRequest.h:113
Aws::GameLift::Model::AcceptMatchRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::AcceptMatchRequest
Definition: AcceptMatchRequest.h:27
Aws::GameLift::Model::AcceptMatchRequest::SetTicketId
void SetTicketId(Aws::String &&value)
Definition: AcceptMatchRequest.h:64
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::AcceptMatchRequest::WithTicketId
AcceptMatchRequest & WithTicketId(const Aws::String &value)
Definition: AcceptMatchRequest.h:76
Aws::GameLift::Model::AcceptMatchRequest::SetPlayerIds
void SetPlayerIds(const Aws::Vector< Aws::String > &value)
Definition: AcceptMatchRequest.h:107
Aws::GameLift::Model::AcceptMatchRequest::TicketIdHasBeenSet
bool TicketIdHasBeenSet() const
Definition: AcceptMatchRequest.h:52
Aws::GameLift::Model::AcceptMatchRequest::SetAcceptanceType
void SetAcceptanceType(AcceptanceType &&value)
Definition: AcceptMatchRequest.h:164
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::AcceptMatchRequest::WithTicketId
AcceptMatchRequest & WithTicketId(const char *value)
Definition: AcceptMatchRequest.h:88
AWSVector.h
AcceptanceType.h
GameLift_EXPORTS.h
Aws::GameLift::Model::AcceptMatchRequest::AddPlayerIds
AcceptMatchRequest & AddPlayerIds(const char *value)
Definition: AcceptMatchRequest.h:143
Aws::GameLift::Model::AcceptMatchRequest::AddPlayerIds
AcceptMatchRequest & AddPlayerIds(Aws::String &&value)
Definition: AcceptMatchRequest.h:137
GameLiftRequest.h
Aws::GameLift::Model::AcceptMatchRequest::AcceptanceTypeHasBeenSet
bool AcceptanceTypeHasBeenSet() const
Definition: AcceptMatchRequest.h:154
Aws::GameLift::Model::AcceptMatchRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AcceptMatchRequest.h:35
Aws::GameLift::Model::AcceptMatchRequest::GetAcceptanceType
const AcceptanceType & GetAcceptanceType() const
Definition: AcceptMatchRequest.h:149
Aws::GameLift::Model::AcceptMatchRequest::WithAcceptanceType
AcceptMatchRequest & WithAcceptanceType(const AcceptanceType &value)
Definition: AcceptMatchRequest.h:169
Aws::GameLift::Model::AcceptMatchRequest::GetPlayerIds
const Aws::Vector< Aws::String > & GetPlayerIds() const
Definition: AcceptMatchRequest.h:95
Aws::GameLift::Model::AcceptMatchRequest::SetTicketId
void SetTicketId(const char *value)
Definition: AcceptMatchRequest.h:70
Aws::GameLift::Model::AcceptMatchRequest::WithPlayerIds
AcceptMatchRequest & WithPlayerIds(Aws::Vector< Aws::String > &&value)
Definition: AcceptMatchRequest.h:125
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::AcceptMatchRequest::AddPlayerIds
AcceptMatchRequest & AddPlayerIds(const Aws::String &value)
Definition: AcceptMatchRequest.h:131
Aws::GameLift::Model::AcceptanceType
AcceptanceType
Definition: AcceptanceType.h:17
Aws::GameLift::Model::AcceptMatchRequest::SetTicketId
void SetTicketId(const Aws::String &value)
Definition: AcceptMatchRequest.h:58
Aws::GameLift::Model::AcceptMatchRequest::SetAcceptanceType
void SetAcceptanceType(const AcceptanceType &value)
Definition: AcceptMatchRequest.h:159
Aws::GameLift::Model::AcceptMatchRequest::GetTicketId
const Aws::String & GetTicketId() const
Definition: AcceptMatchRequest.h:46
Aws::GameLift::Model::AcceptMatchRequest::WithTicketId
AcceptMatchRequest & WithTicketId(Aws::String &&value)
Definition: AcceptMatchRequest.h:82
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::AcceptMatchRequest::PlayerIdsHasBeenSet
bool PlayerIdsHasBeenSet() const
Definition: AcceptMatchRequest.h:101
Aws::GameLift::Model::AcceptMatchRequest::WithPlayerIds
AcceptMatchRequest & WithPlayerIds(const Aws::Vector< Aws::String > &value)
Definition: AcceptMatchRequest.h:119
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::AcceptMatchRequest::WithAcceptanceType
AcceptMatchRequest & WithAcceptanceType(AcceptanceType &&value)
Definition: AcceptMatchRequest.h:174
Aws::GameLift::Model::AcceptMatchRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::AcceptMatchRequest::AcceptMatchRequest
AcceptMatchRequest()