AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AcceptMatchRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/gamelift/model/AcceptanceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace GameLift
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_GAMELIFT_API AcceptMatchRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AcceptMatch"; }
33
34 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetTicketId() const{ return m_ticketId; }
45 inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; }
46 inline void SetTicketId(const Aws::String& value) { m_ticketIdHasBeenSet = true; m_ticketId = value; }
47 inline void SetTicketId(Aws::String&& value) { m_ticketIdHasBeenSet = true; m_ticketId = std::move(value); }
48 inline void SetTicketId(const char* value) { m_ticketIdHasBeenSet = true; m_ticketId.assign(value); }
49 inline AcceptMatchRequest& WithTicketId(const Aws::String& value) { SetTicketId(value); return *this;}
50 inline AcceptMatchRequest& WithTicketId(Aws::String&& value) { SetTicketId(std::move(value)); return *this;}
51 inline AcceptMatchRequest& WithTicketId(const char* value) { SetTicketId(value); return *this;}
53
55
59 inline const Aws::Vector<Aws::String>& GetPlayerIds() const{ return m_playerIds; }
60 inline bool PlayerIdsHasBeenSet() const { return m_playerIdsHasBeenSet; }
61 inline void SetPlayerIds(const Aws::Vector<Aws::String>& value) { m_playerIdsHasBeenSet = true; m_playerIds = value; }
62 inline void SetPlayerIds(Aws::Vector<Aws::String>&& value) { m_playerIdsHasBeenSet = true; m_playerIds = std::move(value); }
63 inline AcceptMatchRequest& WithPlayerIds(const Aws::Vector<Aws::String>& value) { SetPlayerIds(value); return *this;}
64 inline AcceptMatchRequest& WithPlayerIds(Aws::Vector<Aws::String>&& value) { SetPlayerIds(std::move(value)); return *this;}
65 inline AcceptMatchRequest& AddPlayerIds(const Aws::String& value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(value); return *this; }
66 inline AcceptMatchRequest& AddPlayerIds(Aws::String&& value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(std::move(value)); return *this; }
67 inline AcceptMatchRequest& AddPlayerIds(const char* value) { m_playerIdsHasBeenSet = true; m_playerIds.push_back(value); return *this; }
69
71
74 inline const AcceptanceType& GetAcceptanceType() const{ return m_acceptanceType; }
75 inline bool AcceptanceTypeHasBeenSet() const { return m_acceptanceTypeHasBeenSet; }
76 inline void SetAcceptanceType(const AcceptanceType& value) { m_acceptanceTypeHasBeenSet = true; m_acceptanceType = value; }
77 inline void SetAcceptanceType(AcceptanceType&& value) { m_acceptanceTypeHasBeenSet = true; m_acceptanceType = std::move(value); }
78 inline AcceptMatchRequest& WithAcceptanceType(const AcceptanceType& value) { SetAcceptanceType(value); return *this;}
79 inline AcceptMatchRequest& WithAcceptanceType(AcceptanceType&& value) { SetAcceptanceType(std::move(value)); return *this;}
81 private:
82
83 Aws::String m_ticketId;
84 bool m_ticketIdHasBeenSet = false;
85
86 Aws::Vector<Aws::String> m_playerIds;
87 bool m_playerIdsHasBeenSet = false;
88
89 AcceptanceType m_acceptanceType;
90 bool m_acceptanceTypeHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace GameLift
95} // namespace Aws
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API Aws::String SerializePayload() const override
AcceptMatchRequest & WithTicketId(Aws::String &&value)
AcceptMatchRequest & AddPlayerIds(const Aws::String &value)
AcceptMatchRequest & WithPlayerIds(const Aws::Vector< Aws::String > &value)
virtual const char * GetServiceRequestName() const override
AcceptMatchRequest & AddPlayerIds(const char *value)
void SetAcceptanceType(AcceptanceType &&value)
const Aws::Vector< Aws::String > & GetPlayerIds() const
AcceptMatchRequest & AddPlayerIds(Aws::String &&value)
AcceptMatchRequest & WithTicketId(const char *value)
AcceptMatchRequest & WithTicketId(const Aws::String &value)
AcceptMatchRequest & WithPlayerIds(Aws::Vector< Aws::String > &&value)
void SetPlayerIds(Aws::Vector< Aws::String > &&value)
void SetPlayerIds(const Aws::Vector< Aws::String > &value)
void SetTicketId(const Aws::String &value)
AcceptMatchRequest & WithAcceptanceType(const AcceptanceType &value)
void SetAcceptanceType(const AcceptanceType &value)
AcceptMatchRequest & WithAcceptanceType(AcceptanceType &&value)
const AcceptanceType & GetAcceptanceType() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector