AWS SDK for C++  1.8.56
AWS SDK for C++
CreateMatchmakingConfigurationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <aws/gamelift/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace GameLift
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateMatchmakingConfiguration"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42 
43 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
66  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 
72  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 
78  inline CreateMatchmakingConfigurationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
79 
84  inline CreateMatchmakingConfigurationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 
90  inline CreateMatchmakingConfigurationRequest& WithName(const char* value) { SetName(value); return *this;}
91 
92 
96  inline const Aws::String& GetDescription() const{ return m_description; }
97 
101  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
102 
106  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
107 
111  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
112 
116  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
117 
121  inline CreateMatchmakingConfigurationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
122 
126  inline CreateMatchmakingConfigurationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
127 
131  inline CreateMatchmakingConfigurationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
132 
133 
142  inline const Aws::Vector<Aws::String>& GetGameSessionQueueArns() const{ return m_gameSessionQueueArns; }
143 
152  inline bool GameSessionQueueArnsHasBeenSet() const { return m_gameSessionQueueArnsHasBeenSet; }
153 
162  inline void SetGameSessionQueueArns(const Aws::Vector<Aws::String>& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns = value; }
163 
172  inline void SetGameSessionQueueArns(Aws::Vector<Aws::String>&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns = std::move(value); }
173 
182  inline CreateMatchmakingConfigurationRequest& WithGameSessionQueueArns(const Aws::Vector<Aws::String>& value) { SetGameSessionQueueArns(value); return *this;}
183 
192  inline CreateMatchmakingConfigurationRequest& WithGameSessionQueueArns(Aws::Vector<Aws::String>&& value) { SetGameSessionQueueArns(std::move(value)); return *this;}
193 
202  inline CreateMatchmakingConfigurationRequest& AddGameSessionQueueArns(const Aws::String& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.push_back(value); return *this; }
203 
212  inline CreateMatchmakingConfigurationRequest& AddGameSessionQueueArns(Aws::String&& value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.push_back(std::move(value)); return *this; }
213 
222  inline CreateMatchmakingConfigurationRequest& AddGameSessionQueueArns(const char* value) { m_gameSessionQueueArnsHasBeenSet = true; m_gameSessionQueueArns.push_back(value); return *this; }
223 
224 
230  inline int GetRequestTimeoutSeconds() const{ return m_requestTimeoutSeconds; }
231 
237  inline bool RequestTimeoutSecondsHasBeenSet() const { return m_requestTimeoutSecondsHasBeenSet; }
238 
244  inline void SetRequestTimeoutSeconds(int value) { m_requestTimeoutSecondsHasBeenSet = true; m_requestTimeoutSeconds = value; }
245 
251  inline CreateMatchmakingConfigurationRequest& WithRequestTimeoutSeconds(int value) { SetRequestTimeoutSeconds(value); return *this;}
252 
253 
259  inline int GetAcceptanceTimeoutSeconds() const{ return m_acceptanceTimeoutSeconds; }
260 
266  inline bool AcceptanceTimeoutSecondsHasBeenSet() const { return m_acceptanceTimeoutSecondsHasBeenSet; }
267 
273  inline void SetAcceptanceTimeoutSeconds(int value) { m_acceptanceTimeoutSecondsHasBeenSet = true; m_acceptanceTimeoutSeconds = value; }
274 
280  inline CreateMatchmakingConfigurationRequest& WithAcceptanceTimeoutSeconds(int value) { SetAcceptanceTimeoutSeconds(value); return *this;}
281 
282 
288  inline bool GetAcceptanceRequired() const{ return m_acceptanceRequired; }
289 
295  inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
296 
302  inline void SetAcceptanceRequired(bool value) { m_acceptanceRequiredHasBeenSet = true; m_acceptanceRequired = value; }
303 
309  inline CreateMatchmakingConfigurationRequest& WithAcceptanceRequired(bool value) { SetAcceptanceRequired(value); return *this;}
310 
311 
317  inline const Aws::String& GetRuleSetName() const{ return m_ruleSetName; }
318 
324  inline bool RuleSetNameHasBeenSet() const { return m_ruleSetNameHasBeenSet; }
325 
331  inline void SetRuleSetName(const Aws::String& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = value; }
332 
338  inline void SetRuleSetName(Aws::String&& value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName = std::move(value); }
339 
345  inline void SetRuleSetName(const char* value) { m_ruleSetNameHasBeenSet = true; m_ruleSetName.assign(value); }
346 
352  inline CreateMatchmakingConfigurationRequest& WithRuleSetName(const Aws::String& value) { SetRuleSetName(value); return *this;}
353 
359  inline CreateMatchmakingConfigurationRequest& WithRuleSetName(Aws::String&& value) { SetRuleSetName(std::move(value)); return *this;}
360 
366  inline CreateMatchmakingConfigurationRequest& WithRuleSetName(const char* value) { SetRuleSetName(value); return *this;}
367 
368 
372  inline const Aws::String& GetNotificationTarget() const{ return m_notificationTarget; }
373 
377  inline bool NotificationTargetHasBeenSet() const { return m_notificationTargetHasBeenSet; }
378 
382  inline void SetNotificationTarget(const Aws::String& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = value; }
383 
387  inline void SetNotificationTarget(Aws::String&& value) { m_notificationTargetHasBeenSet = true; m_notificationTarget = std::move(value); }
388 
392  inline void SetNotificationTarget(const char* value) { m_notificationTargetHasBeenSet = true; m_notificationTarget.assign(value); }
393 
397  inline CreateMatchmakingConfigurationRequest& WithNotificationTarget(const Aws::String& value) { SetNotificationTarget(value); return *this;}
398 
402  inline CreateMatchmakingConfigurationRequest& WithNotificationTarget(Aws::String&& value) { SetNotificationTarget(std::move(value)); return *this;}
403 
407  inline CreateMatchmakingConfigurationRequest& WithNotificationTarget(const char* value) { SetNotificationTarget(value); return *this;}
408 
409 
416  inline int GetAdditionalPlayerCount() const{ return m_additionalPlayerCount; }
417 
424  inline bool AdditionalPlayerCountHasBeenSet() const { return m_additionalPlayerCountHasBeenSet; }
425 
432  inline void SetAdditionalPlayerCount(int value) { m_additionalPlayerCountHasBeenSet = true; m_additionalPlayerCount = value; }
433 
440  inline CreateMatchmakingConfigurationRequest& WithAdditionalPlayerCount(int value) { SetAdditionalPlayerCount(value); return *this;}
441 
442 
447  inline const Aws::String& GetCustomEventData() const{ return m_customEventData; }
448 
453  inline bool CustomEventDataHasBeenSet() const { return m_customEventDataHasBeenSet; }
454 
459  inline void SetCustomEventData(const Aws::String& value) { m_customEventDataHasBeenSet = true; m_customEventData = value; }
460 
465  inline void SetCustomEventData(Aws::String&& value) { m_customEventDataHasBeenSet = true; m_customEventData = std::move(value); }
466 
471  inline void SetCustomEventData(const char* value) { m_customEventDataHasBeenSet = true; m_customEventData.assign(value); }
472 
477  inline CreateMatchmakingConfigurationRequest& WithCustomEventData(const Aws::String& value) { SetCustomEventData(value); return *this;}
478 
483  inline CreateMatchmakingConfigurationRequest& WithCustomEventData(Aws::String&& value) { SetCustomEventData(std::move(value)); return *this;}
484 
489  inline CreateMatchmakingConfigurationRequest& WithCustomEventData(const char* value) { SetCustomEventData(value); return *this;}
490 
491 
500  inline const Aws::Vector<GameProperty>& GetGameProperties() const{ return m_gameProperties; }
501 
510  inline bool GamePropertiesHasBeenSet() const { return m_gamePropertiesHasBeenSet; }
511 
520  inline void SetGameProperties(const Aws::Vector<GameProperty>& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = value; }
521 
530  inline void SetGameProperties(Aws::Vector<GameProperty>&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties = std::move(value); }
531 
540  inline CreateMatchmakingConfigurationRequest& WithGameProperties(const Aws::Vector<GameProperty>& value) { SetGameProperties(value); return *this;}
541 
550  inline CreateMatchmakingConfigurationRequest& WithGameProperties(Aws::Vector<GameProperty>&& value) { SetGameProperties(std::move(value)); return *this;}
551 
560  inline CreateMatchmakingConfigurationRequest& AddGameProperties(const GameProperty& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(value); return *this; }
561 
570  inline CreateMatchmakingConfigurationRequest& AddGameProperties(GameProperty&& value) { m_gamePropertiesHasBeenSet = true; m_gameProperties.push_back(std::move(value)); return *this; }
571 
572 
581  inline const Aws::String& GetGameSessionData() const{ return m_gameSessionData; }
582 
591  inline bool GameSessionDataHasBeenSet() const { return m_gameSessionDataHasBeenSet; }
592 
601  inline void SetGameSessionData(const Aws::String& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = value; }
602 
611  inline void SetGameSessionData(Aws::String&& value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData = std::move(value); }
612 
621  inline void SetGameSessionData(const char* value) { m_gameSessionDataHasBeenSet = true; m_gameSessionData.assign(value); }
622 
631  inline CreateMatchmakingConfigurationRequest& WithGameSessionData(const Aws::String& value) { SetGameSessionData(value); return *this;}
632 
641  inline CreateMatchmakingConfigurationRequest& WithGameSessionData(Aws::String&& value) { SetGameSessionData(std::move(value)); return *this;}
642 
651  inline CreateMatchmakingConfigurationRequest& WithGameSessionData(const char* value) { SetGameSessionData(value); return *this;}
652 
653 
664  inline const BackfillMode& GetBackfillMode() const{ return m_backfillMode; }
665 
676  inline bool BackfillModeHasBeenSet() const { return m_backfillModeHasBeenSet; }
677 
688  inline void SetBackfillMode(const BackfillMode& value) { m_backfillModeHasBeenSet = true; m_backfillMode = value; }
689 
700  inline void SetBackfillMode(BackfillMode&& value) { m_backfillModeHasBeenSet = true; m_backfillMode = std::move(value); }
701 
712  inline CreateMatchmakingConfigurationRequest& WithBackfillMode(const BackfillMode& value) { SetBackfillMode(value); return *this;}
713 
724  inline CreateMatchmakingConfigurationRequest& WithBackfillMode(BackfillMode&& value) { SetBackfillMode(std::move(value)); return *this;}
725 
726 
739  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
740 
753  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
754 
767  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
768 
781  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
782 
795  inline CreateMatchmakingConfigurationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
796 
809  inline CreateMatchmakingConfigurationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
810 
823  inline CreateMatchmakingConfigurationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
824 
837  inline CreateMatchmakingConfigurationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
838 
839  private:
840 
841  Aws::String m_name;
842  bool m_nameHasBeenSet;
843 
844  Aws::String m_description;
845  bool m_descriptionHasBeenSet;
846 
847  Aws::Vector<Aws::String> m_gameSessionQueueArns;
848  bool m_gameSessionQueueArnsHasBeenSet;
849 
850  int m_requestTimeoutSeconds;
851  bool m_requestTimeoutSecondsHasBeenSet;
852 
853  int m_acceptanceTimeoutSeconds;
854  bool m_acceptanceTimeoutSecondsHasBeenSet;
855 
856  bool m_acceptanceRequired;
857  bool m_acceptanceRequiredHasBeenSet;
858 
859  Aws::String m_ruleSetName;
860  bool m_ruleSetNameHasBeenSet;
861 
862  Aws::String m_notificationTarget;
863  bool m_notificationTargetHasBeenSet;
864 
865  int m_additionalPlayerCount;
866  bool m_additionalPlayerCountHasBeenSet;
867 
868  Aws::String m_customEventData;
869  bool m_customEventDataHasBeenSet;
870 
871  Aws::Vector<GameProperty> m_gameProperties;
872  bool m_gamePropertiesHasBeenSet;
873 
874  Aws::String m_gameSessionData;
875  bool m_gameSessionDataHasBeenSet;
876 
877  BackfillMode m_backfillMode;
878  bool m_backfillModeHasBeenSet;
879 
880  Aws::Vector<Tag> m_tags;
881  bool m_tagsHasBeenSet;
882  };
883 
884 } // namespace Model
885 } // namespace GameLift
886 } // namespace Aws
CreateMatchmakingConfigurationRequest & WithCustomEventData(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithGameSessionData(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithName(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithName(const Aws::String &value)
#define AWS_GAMELIFT_API
CreateMatchmakingConfigurationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateMatchmakingConfigurationRequest & WithRuleSetName(const Aws::String &value)
CreateMatchmakingConfigurationRequest & AddGameProperties(const GameProperty &value)
CreateMatchmakingConfigurationRequest & WithGameSessionData(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateMatchmakingConfigurationRequest & WithGameSessionQueueArns(Aws::Vector< Aws::String > &&value)
CreateMatchmakingConfigurationRequest & WithNotificationTarget(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithGameSessionData(const char *value)
CreateMatchmakingConfigurationRequest & AddTags(const Tag &value)
CreateMatchmakingConfigurationRequest & WithDescription(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithRequestTimeoutSeconds(int value)
CreateMatchmakingConfigurationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateMatchmakingConfigurationRequest & AddGameProperties(GameProperty &&value)
CreateMatchmakingConfigurationRequest & AddGameSessionQueueArns(const Aws::String &value)
CreateMatchmakingConfigurationRequest & AddGameSessionQueueArns(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithNotificationTarget(const char *value)
CreateMatchmakingConfigurationRequest & WithRuleSetName(const char *value)
CreateMatchmakingConfigurationRequest & WithAcceptanceRequired(bool value)
CreateMatchmakingConfigurationRequest & WithGameProperties(Aws::Vector< GameProperty > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateMatchmakingConfigurationRequest & WithNotificationTarget(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithDescription(const Aws::String &value)
CreateMatchmakingConfigurationRequest & WithCustomEventData(const char *value)
CreateMatchmakingConfigurationRequest & WithGameSessionQueueArns(const Aws::Vector< Aws::String > &value)
CreateMatchmakingConfigurationRequest & WithRuleSetName(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithAcceptanceTimeoutSeconds(int value)
CreateMatchmakingConfigurationRequest & WithDescription(const char *value)
CreateMatchmakingConfigurationRequest & WithBackfillMode(const BackfillMode &value)
CreateMatchmakingConfigurationRequest & WithAdditionalPlayerCount(int value)
CreateMatchmakingConfigurationRequest & WithBackfillMode(BackfillMode &&value)
CreateMatchmakingConfigurationRequest & AddGameSessionQueueArns(const char *value)
CreateMatchmakingConfigurationRequest & WithName(const char *value)
CreateMatchmakingConfigurationRequest & WithCustomEventData(Aws::String &&value)
CreateMatchmakingConfigurationRequest & WithGameProperties(const Aws::Vector< GameProperty > &value)