AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
StartMatchBackfillRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/Player.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GameLift {
17namespace Model {
18
22 public:
23 AWS_GAMELIFT_API StartMatchBackfillRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "StartMatchBackfill"; }
30
31 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
32
34
36
42 inline const Aws::String& GetTicketId() const { return m_ticketId; }
43 inline bool TicketIdHasBeenSet() const { return m_ticketIdHasBeenSet; }
44 template <typename TicketIdT = Aws::String>
45 void SetTicketId(TicketIdT&& value) {
46 m_ticketIdHasBeenSet = true;
47 m_ticketId = std::forward<TicketIdT>(value);
48 }
49 template <typename TicketIdT = Aws::String>
51 SetTicketId(std::forward<TicketIdT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::String& GetConfigurationName() const { return m_configurationName; }
64 inline bool ConfigurationNameHasBeenSet() const { return m_configurationNameHasBeenSet; }
65 template <typename ConfigurationNameT = Aws::String>
66 void SetConfigurationName(ConfigurationNameT&& value) {
67 m_configurationNameHasBeenSet = true;
68 m_configurationName = std::forward<ConfigurationNameT>(value);
69 }
70 template <typename ConfigurationNameT = Aws::String>
71 StartMatchBackfillRequest& WithConfigurationName(ConfigurationNameT&& value) {
72 SetConfigurationName(std::forward<ConfigurationNameT>(value));
73 return *this;
74 }
76
78
85 inline const Aws::String& GetGameSessionArn() const { return m_gameSessionArn; }
86 inline bool GameSessionArnHasBeenSet() const { return m_gameSessionArnHasBeenSet; }
87 template <typename GameSessionArnT = Aws::String>
88 void SetGameSessionArn(GameSessionArnT&& value) {
89 m_gameSessionArnHasBeenSet = true;
90 m_gameSessionArn = std::forward<GameSessionArnT>(value);
91 }
92 template <typename GameSessionArnT = Aws::String>
94 SetGameSessionArn(std::forward<GameSessionArnT>(value));
95 return *this;
96 }
98
100
116 inline const Aws::Vector<Player>& GetPlayers() const { return m_players; }
117 inline bool PlayersHasBeenSet() const { return m_playersHasBeenSet; }
118 template <typename PlayersT = Aws::Vector<Player>>
119 void SetPlayers(PlayersT&& value) {
120 m_playersHasBeenSet = true;
121 m_players = std::forward<PlayersT>(value);
122 }
123 template <typename PlayersT = Aws::Vector<Player>>
125 SetPlayers(std::forward<PlayersT>(value));
126 return *this;
127 }
128 template <typename PlayersT = Player>
130 m_playersHasBeenSet = true;
131 m_players.emplace_back(std::forward<PlayersT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_ticketId;
137
138 Aws::String m_configurationName;
139
140 Aws::String m_gameSessionArn;
141
142 Aws::Vector<Player> m_players;
143 bool m_ticketIdHasBeenSet = false;
144 bool m_configurationNameHasBeenSet = false;
145 bool m_gameSessionArnHasBeenSet = false;
146 bool m_playersHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace GameLift
151} // namespace Aws
StartMatchBackfillRequest & AddPlayers(PlayersT &&value)
StartMatchBackfillRequest & WithGameSessionArn(GameSessionArnT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
StartMatchBackfillRequest & WithPlayers(PlayersT &&value)
virtual const char * GetServiceRequestName() const override
StartMatchBackfillRequest & WithTicketId(TicketIdT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
StartMatchBackfillRequest & WithConfigurationName(ConfigurationNameT &&value)
AWS_GAMELIFT_API StartMatchBackfillRequest()=default
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