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/ram/RAM_EXPORTS.h>
8 #include <aws/ram/RAMRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace RAM
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_RAM_API ListResourceTypesRequest : public RAMRequest
22   {
23   public:
24     ListResourceTypesRequest();
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 "ListResourceTypes"; }
31 
32     Aws::String SerializePayload() const override;
33 
34 
35     /**
36      * <p>The token for the next page of results.</p>
37      */
GetNextToken()38     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
39 
40     /**
41      * <p>The token for the next page of results.</p>
42      */
NextTokenHasBeenSet()43     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
44 
45     /**
46      * <p>The token for the next page of results.</p>
47      */
SetNextToken(const Aws::String & value)48     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
49 
50     /**
51      * <p>The token for the next page of results.</p>
52      */
SetNextToken(Aws::String && value)53     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
54 
55     /**
56      * <p>The token for the next page of results.</p>
57      */
SetNextToken(const char * value)58     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
59 
60     /**
61      * <p>The token for the next page of results.</p>
62      */
WithNextToken(const Aws::String & value)63     inline ListResourceTypesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
64 
65     /**
66      * <p>The token for the next page of results.</p>
67      */
WithNextToken(Aws::String && value)68     inline ListResourceTypesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
69 
70     /**
71      * <p>The token for the next page of results.</p>
72      */
WithNextToken(const char * value)73     inline ListResourceTypesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
74 
75 
76     /**
77      * <p>The maximum number of results to return with a single call. To retrieve the
78      * remaining results, make another call with the returned <code>nextToken</code>
79      * value.</p>
80      */
GetMaxResults()81     inline int GetMaxResults() const{ return m_maxResults; }
82 
83     /**
84      * <p>The maximum number of results to return with a single call. To retrieve the
85      * remaining results, make another call with the returned <code>nextToken</code>
86      * value.</p>
87      */
MaxResultsHasBeenSet()88     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
89 
90     /**
91      * <p>The maximum number of results to return with a single call. To retrieve the
92      * remaining results, make another call with the returned <code>nextToken</code>
93      * value.</p>
94      */
SetMaxResults(int value)95     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
96 
97     /**
98      * <p>The maximum number of results to return with a single call. To retrieve the
99      * remaining results, make another call with the returned <code>nextToken</code>
100      * value.</p>
101      */
WithMaxResults(int value)102     inline ListResourceTypesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
103 
104   private:
105 
106     Aws::String m_nextToken;
107     bool m_nextTokenHasBeenSet;
108 
109     int m_maxResults;
110     bool m_maxResultsHasBeenSet;
111   };
112 
113 } // namespace Model
114 } // namespace RAM
115 } // namespace Aws
116