AWS SDK for C++  1.8.56
AWS SDK for C++
SearchGameSessionsRequest.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 "SearchGameSessions"; }
34 
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
39 
45  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
46 
52  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
53 
59  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
60 
66  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
67 
73  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
74 
80  inline SearchGameSessionsRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
81 
87  inline SearchGameSessionsRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
88 
94  inline SearchGameSessionsRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
95 
96 
102  inline const Aws::String& GetAliasId() const{ return m_aliasId; }
103 
109  inline bool AliasIdHasBeenSet() const { return m_aliasIdHasBeenSet; }
110 
116  inline void SetAliasId(const Aws::String& value) { m_aliasIdHasBeenSet = true; m_aliasId = value; }
117 
123  inline void SetAliasId(Aws::String&& value) { m_aliasIdHasBeenSet = true; m_aliasId = std::move(value); }
124 
130  inline void SetAliasId(const char* value) { m_aliasIdHasBeenSet = true; m_aliasId.assign(value); }
131 
137  inline SearchGameSessionsRequest& WithAliasId(const Aws::String& value) { SetAliasId(value); return *this;}
138 
144  inline SearchGameSessionsRequest& WithAliasId(Aws::String&& value) { SetAliasId(std::move(value)); return *this;}
145 
151  inline SearchGameSessionsRequest& WithAliasId(const char* value) { SetAliasId(value); return *this;}
152 
153 
185  inline const Aws::String& GetFilterExpression() const{ return m_filterExpression; }
186 
218  inline bool FilterExpressionHasBeenSet() const { return m_filterExpressionHasBeenSet; }
219 
251  inline void SetFilterExpression(const Aws::String& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = value; }
252 
284  inline void SetFilterExpression(Aws::String&& value) { m_filterExpressionHasBeenSet = true; m_filterExpression = std::move(value); }
285 
317  inline void SetFilterExpression(const char* value) { m_filterExpressionHasBeenSet = true; m_filterExpression.assign(value); }
318 
350  inline SearchGameSessionsRequest& WithFilterExpression(const Aws::String& value) { SetFilterExpression(value); return *this;}
351 
383  inline SearchGameSessionsRequest& WithFilterExpression(Aws::String&& value) { SetFilterExpression(std::move(value)); return *this;}
384 
416  inline SearchGameSessionsRequest& WithFilterExpression(const char* value) { SetFilterExpression(value); return *this;}
417 
418 
433  inline const Aws::String& GetSortExpression() const{ return m_sortExpression; }
434 
449  inline bool SortExpressionHasBeenSet() const { return m_sortExpressionHasBeenSet; }
450 
465  inline void SetSortExpression(const Aws::String& value) { m_sortExpressionHasBeenSet = true; m_sortExpression = value; }
466 
481  inline void SetSortExpression(Aws::String&& value) { m_sortExpressionHasBeenSet = true; m_sortExpression = std::move(value); }
482 
497  inline void SetSortExpression(const char* value) { m_sortExpressionHasBeenSet = true; m_sortExpression.assign(value); }
498 
513  inline SearchGameSessionsRequest& WithSortExpression(const Aws::String& value) { SetSortExpression(value); return *this;}
514 
529  inline SearchGameSessionsRequest& WithSortExpression(Aws::String&& value) { SetSortExpression(std::move(value)); return *this;}
530 
545  inline SearchGameSessionsRequest& WithSortExpression(const char* value) { SetSortExpression(value); return *this;}
546 
547 
554  inline int GetLimit() const{ return m_limit; }
555 
562  inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
563 
570  inline void SetLimit(int value) { m_limitHasBeenSet = true; m_limit = value; }
571 
578  inline SearchGameSessionsRequest& WithLimit(int value) { SetLimit(value); return *this;}
579 
580 
586  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
587 
593  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
594 
600  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
601 
607  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
608 
614  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
615 
621  inline SearchGameSessionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
622 
628  inline SearchGameSessionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
629 
635  inline SearchGameSessionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
636 
637  private:
638 
639  Aws::String m_fleetId;
640  bool m_fleetIdHasBeenSet;
641 
642  Aws::String m_aliasId;
643  bool m_aliasIdHasBeenSet;
644 
645  Aws::String m_filterExpression;
646  bool m_filterExpressionHasBeenSet;
647 
648  Aws::String m_sortExpression;
649  bool m_sortExpressionHasBeenSet;
650 
651  int m_limit;
652  bool m_limitHasBeenSet;
653 
654  Aws::String m_nextToken;
655  bool m_nextTokenHasBeenSet;
656  };
657 
658 } // namespace Model
659 } // namespace GameLift
660 } // namespace Aws
SearchGameSessionsRequest & WithFleetId(const Aws::String &value)
SearchGameSessionsRequest & WithFilterExpression(Aws::String &&value)
SearchGameSessionsRequest & WithFleetId(Aws::String &&value)
#define AWS_GAMELIFT_API
SearchGameSessionsRequest & WithSortExpression(Aws::String &&value)
SearchGameSessionsRequest & WithNextToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
SearchGameSessionsRequest & WithNextToken(const Aws::String &value)
SearchGameSessionsRequest & WithSortExpression(const Aws::String &value)
SearchGameSessionsRequest & WithAliasId(Aws::String &&value)
SearchGameSessionsRequest & WithFleetId(const char *value)
SearchGameSessionsRequest & WithAliasId(const Aws::String &value)
SearchGameSessionsRequest & WithLimit(int value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SearchGameSessionsRequest & WithAliasId(const char *value)
SearchGameSessionsRequest & WithSortExpression(const char *value)
SearchGameSessionsRequest & WithFilterExpression(const Aws::String &value)
SearchGameSessionsRequest & WithNextToken(const char *value)
SearchGameSessionsRequest & WithFilterExpression(const char *value)