1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/location/LocationService_EXPORTS.h> 8 #include <aws/location/LocationServiceRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace LocationService 15 { 16 namespace Model 17 { 18 19 /** 20 */ 21 class AWS_LOCATIONSERVICE_API ListMapsRequest : public LocationServiceRequest 22 { 23 public: 24 ListMapsRequest(); 25 26 // Service request name is the Operation name which will send this request out, 27 // each operation should has unique request name, so that we can get operation's name from this request. 28 // Note: this is not true for response, multiple operations may have the same response name, 29 // so we can not get operation's name from response. GetServiceRequestName()30 inline virtual const char* GetServiceRequestName() const override { return "ListMaps"; } 31 32 Aws::String SerializePayload() const override; 33 34 35 /** 36 * <p>An optional limit for the number of resources returned in a single call. </p> 37 * <p>Default value: <code>100</code> </p> 38 */ GetMaxResults()39 inline int GetMaxResults() const{ return m_maxResults; } 40 41 /** 42 * <p>An optional limit for the number of resources returned in a single call. </p> 43 * <p>Default value: <code>100</code> </p> 44 */ MaxResultsHasBeenSet()45 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } 46 47 /** 48 * <p>An optional limit for the number of resources returned in a single call. </p> 49 * <p>Default value: <code>100</code> </p> 50 */ SetMaxResults(int value)51 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } 52 53 /** 54 * <p>An optional limit for the number of resources returned in a single call. </p> 55 * <p>Default value: <code>100</code> </p> 56 */ WithMaxResults(int value)57 inline ListMapsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} 58 59 60 /** 61 * <p>The pagination token specifying which page of results to return in the 62 * response. If no token is provided, the default page is the first page.</p> 63 * <p>Default value: <code>null</code> </p> 64 */ GetNextToken()65 inline const Aws::String& GetNextToken() const{ return m_nextToken; } 66 67 /** 68 * <p>The pagination token specifying which page of results to return in the 69 * response. If no token is provided, the default page is the first page.</p> 70 * <p>Default value: <code>null</code> </p> 71 */ NextTokenHasBeenSet()72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } 73 74 /** 75 * <p>The pagination token specifying which page of results to return in the 76 * response. If no token is provided, the default page is the first page.</p> 77 * <p>Default value: <code>null</code> </p> 78 */ SetNextToken(const Aws::String & value)79 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } 80 81 /** 82 * <p>The pagination token specifying which page of results to return in the 83 * response. If no token is provided, the default page is the first page.</p> 84 * <p>Default value: <code>null</code> </p> 85 */ SetNextToken(Aws::String && value)86 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } 87 88 /** 89 * <p>The pagination token specifying which page of results to return in the 90 * response. If no token is provided, the default page is the first page.</p> 91 * <p>Default value: <code>null</code> </p> 92 */ SetNextToken(const char * value)93 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } 94 95 /** 96 * <p>The pagination token specifying which page of results to return in the 97 * response. If no token is provided, the default page is the first page.</p> 98 * <p>Default value: <code>null</code> </p> 99 */ WithNextToken(const Aws::String & value)100 inline ListMapsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} 101 102 /** 103 * <p>The pagination token specifying which page of results to return in the 104 * response. If no token is provided, the default page is the first page.</p> 105 * <p>Default value: <code>null</code> </p> 106 */ WithNextToken(Aws::String && value)107 inline ListMapsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} 108 109 /** 110 * <p>The pagination token specifying which page of results to return in the 111 * response. If no token is provided, the default page is the first page.</p> 112 * <p>Default value: <code>null</code> </p> 113 */ WithNextToken(const char * value)114 inline ListMapsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} 115 116 private: 117 118 int m_maxResults; 119 bool m_maxResultsHasBeenSet; 120 121 Aws::String m_nextToken; 122 bool m_nextTokenHasBeenSet; 123 }; 124 125 } // namespace Model 126 } // namespace LocationService 127 } // namespace Aws 128