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/personalize/Personalize_EXPORTS.h>
8 #include <aws/personalize/PersonalizeRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Personalize
15 {
16 namespace Model
17 {
18 
19   /**
20    */
21   class AWS_PERSONALIZE_API ListSolutionVersionsRequest : public PersonalizeRequest
22   {
23   public:
24     ListSolutionVersionsRequest();
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 "ListSolutionVersions"; }
31 
32     Aws::String SerializePayload() const override;
33 
34     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35 
36 
37     /**
38      * <p>The Amazon Resource Name (ARN) of the solution.</p>
39      */
GetSolutionArn()40     inline const Aws::String& GetSolutionArn() const{ return m_solutionArn; }
41 
42     /**
43      * <p>The Amazon Resource Name (ARN) of the solution.</p>
44      */
SolutionArnHasBeenSet()45     inline bool SolutionArnHasBeenSet() const { return m_solutionArnHasBeenSet; }
46 
47     /**
48      * <p>The Amazon Resource Name (ARN) of the solution.</p>
49      */
SetSolutionArn(const Aws::String & value)50     inline void SetSolutionArn(const Aws::String& value) { m_solutionArnHasBeenSet = true; m_solutionArn = value; }
51 
52     /**
53      * <p>The Amazon Resource Name (ARN) of the solution.</p>
54      */
SetSolutionArn(Aws::String && value)55     inline void SetSolutionArn(Aws::String&& value) { m_solutionArnHasBeenSet = true; m_solutionArn = std::move(value); }
56 
57     /**
58      * <p>The Amazon Resource Name (ARN) of the solution.</p>
59      */
SetSolutionArn(const char * value)60     inline void SetSolutionArn(const char* value) { m_solutionArnHasBeenSet = true; m_solutionArn.assign(value); }
61 
62     /**
63      * <p>The Amazon Resource Name (ARN) of the solution.</p>
64      */
WithSolutionArn(const Aws::String & value)65     inline ListSolutionVersionsRequest& WithSolutionArn(const Aws::String& value) { SetSolutionArn(value); return *this;}
66 
67     /**
68      * <p>The Amazon Resource Name (ARN) of the solution.</p>
69      */
WithSolutionArn(Aws::String && value)70     inline ListSolutionVersionsRequest& WithSolutionArn(Aws::String&& value) { SetSolutionArn(std::move(value)); return *this;}
71 
72     /**
73      * <p>The Amazon Resource Name (ARN) of the solution.</p>
74      */
WithSolutionArn(const char * value)75     inline ListSolutionVersionsRequest& WithSolutionArn(const char* value) { SetSolutionArn(value); return *this;}
76 
77 
78     /**
79      * <p>A token returned from the previous call to <code>ListSolutionVersions</code>
80      * for getting the next set of solution versions (if they exist).</p>
81      */
GetNextToken()82     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
83 
84     /**
85      * <p>A token returned from the previous call to <code>ListSolutionVersions</code>
86      * for getting the next set of solution versions (if they exist).</p>
87      */
NextTokenHasBeenSet()88     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 
90     /**
91      * <p>A token returned from the previous call to <code>ListSolutionVersions</code>
92      * for getting the next set of solution versions (if they exist).</p>
93      */
SetNextToken(const Aws::String & value)94     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
95 
96     /**
97      * <p>A token returned from the previous call to <code>ListSolutionVersions</code>
98      * for getting the next set of solution versions (if they exist).</p>
99      */
SetNextToken(Aws::String && value)100     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
101 
102     /**
103      * <p>A token returned from the previous call to <code>ListSolutionVersions</code>
104      * for getting the next set of solution versions (if they exist).</p>
105      */
SetNextToken(const char * value)106     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
107 
108     /**
109      * <p>A token returned from the previous call to <code>ListSolutionVersions</code>
110      * for getting the next set of solution versions (if they exist).</p>
111      */
WithNextToken(const Aws::String & value)112     inline ListSolutionVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
113 
114     /**
115      * <p>A token returned from the previous call to <code>ListSolutionVersions</code>
116      * for getting the next set of solution versions (if they exist).</p>
117      */
WithNextToken(Aws::String && value)118     inline ListSolutionVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
119 
120     /**
121      * <p>A token returned from the previous call to <code>ListSolutionVersions</code>
122      * for getting the next set of solution versions (if they exist).</p>
123      */
WithNextToken(const char * value)124     inline ListSolutionVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
125 
126 
127     /**
128      * <p>The maximum number of solution versions to return.</p>
129      */
GetMaxResults()130     inline int GetMaxResults() const{ return m_maxResults; }
131 
132     /**
133      * <p>The maximum number of solution versions to return.</p>
134      */
MaxResultsHasBeenSet()135     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
136 
137     /**
138      * <p>The maximum number of solution versions to return.</p>
139      */
SetMaxResults(int value)140     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
141 
142     /**
143      * <p>The maximum number of solution versions to return.</p>
144      */
WithMaxResults(int value)145     inline ListSolutionVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
146 
147   private:
148 
149     Aws::String m_solutionArn;
150     bool m_solutionArnHasBeenSet;
151 
152     Aws::String m_nextToken;
153     bool m_nextTokenHasBeenSet;
154 
155     int m_maxResults;
156     bool m_maxResultsHasBeenSet;
157   };
158 
159 } // namespace Model
160 } // namespace Personalize
161 } // namespace Aws
162