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/discovery/ApplicationDiscoveryService_EXPORTS.h>
8 #include <aws/discovery/ApplicationDiscoveryServiceRequest.h>
9 #include <aws/core/utils/memory/stl/AWSVector.h>
10 #include <aws/core/utils/memory/stl/AWSString.h>
11 #include <aws/discovery/model/ImportTaskFilter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ApplicationDiscoveryService
17 {
18 namespace Model
19 {
20 
21   /**
22    */
23   class AWS_APPLICATIONDISCOVERYSERVICE_API DescribeImportTasksRequest : public ApplicationDiscoveryServiceRequest
24   {
25   public:
26     DescribeImportTasksRequest();
27 
28     // Service request name is the Operation name which will send this request out,
29     // each operation should has unique request name, so that we can get operation's name from this request.
30     // Note: this is not true for response, multiple operations may have the same response name,
31     // so we can not get operation's name from response.
GetServiceRequestName()32     inline virtual const char* GetServiceRequestName() const override { return "DescribeImportTasks"; }
33 
34     Aws::String SerializePayload() const override;
35 
36     Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
39     /**
40      * <p>An array of name-value pairs that you provide to filter the results for the
41      * <code>DescribeImportTask</code> request to a specific subset of results.
42      * Currently, wildcard values aren't supported for filters.</p>
43      */
GetFilters()44     inline const Aws::Vector<ImportTaskFilter>& GetFilters() const{ return m_filters; }
45 
46     /**
47      * <p>An array of name-value pairs that you provide to filter the results for the
48      * <code>DescribeImportTask</code> request to a specific subset of results.
49      * Currently, wildcard values aren't supported for filters.</p>
50      */
FiltersHasBeenSet()51     inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
52 
53     /**
54      * <p>An array of name-value pairs that you provide to filter the results for the
55      * <code>DescribeImportTask</code> request to a specific subset of results.
56      * Currently, wildcard values aren't supported for filters.</p>
57      */
SetFilters(const Aws::Vector<ImportTaskFilter> & value)58     inline void SetFilters(const Aws::Vector<ImportTaskFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
59 
60     /**
61      * <p>An array of name-value pairs that you provide to filter the results for the
62      * <code>DescribeImportTask</code> request to a specific subset of results.
63      * Currently, wildcard values aren't supported for filters.</p>
64      */
SetFilters(Aws::Vector<ImportTaskFilter> && value)65     inline void SetFilters(Aws::Vector<ImportTaskFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
66 
67     /**
68      * <p>An array of name-value pairs that you provide to filter the results for the
69      * <code>DescribeImportTask</code> request to a specific subset of results.
70      * Currently, wildcard values aren't supported for filters.</p>
71      */
WithFilters(const Aws::Vector<ImportTaskFilter> & value)72     inline DescribeImportTasksRequest& WithFilters(const Aws::Vector<ImportTaskFilter>& value) { SetFilters(value); return *this;}
73 
74     /**
75      * <p>An array of name-value pairs that you provide to filter the results for the
76      * <code>DescribeImportTask</code> request to a specific subset of results.
77      * Currently, wildcard values aren't supported for filters.</p>
78      */
WithFilters(Aws::Vector<ImportTaskFilter> && value)79     inline DescribeImportTasksRequest& WithFilters(Aws::Vector<ImportTaskFilter>&& value) { SetFilters(std::move(value)); return *this;}
80 
81     /**
82      * <p>An array of name-value pairs that you provide to filter the results for the
83      * <code>DescribeImportTask</code> request to a specific subset of results.
84      * Currently, wildcard values aren't supported for filters.</p>
85      */
AddFilters(const ImportTaskFilter & value)86     inline DescribeImportTasksRequest& AddFilters(const ImportTaskFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
87 
88     /**
89      * <p>An array of name-value pairs that you provide to filter the results for the
90      * <code>DescribeImportTask</code> request to a specific subset of results.
91      * Currently, wildcard values aren't supported for filters.</p>
92      */
AddFilters(ImportTaskFilter && value)93     inline DescribeImportTasksRequest& AddFilters(ImportTaskFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
94 
95 
96     /**
97      * <p>The maximum number of results that you want this request to return, up to
98      * 100.</p>
99      */
GetMaxResults()100     inline int GetMaxResults() const{ return m_maxResults; }
101 
102     /**
103      * <p>The maximum number of results that you want this request to return, up to
104      * 100.</p>
105      */
MaxResultsHasBeenSet()106     inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
107 
108     /**
109      * <p>The maximum number of results that you want this request to return, up to
110      * 100.</p>
111      */
SetMaxResults(int value)112     inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
113 
114     /**
115      * <p>The maximum number of results that you want this request to return, up to
116      * 100.</p>
117      */
WithMaxResults(int value)118     inline DescribeImportTasksRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
119 
120 
121     /**
122      * <p>The token to request a specific page of results.</p>
123      */
GetNextToken()124     inline const Aws::String& GetNextToken() const{ return m_nextToken; }
125 
126     /**
127      * <p>The token to request a specific page of results.</p>
128      */
NextTokenHasBeenSet()129     inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
130 
131     /**
132      * <p>The token to request a specific page of results.</p>
133      */
SetNextToken(const Aws::String & value)134     inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
135 
136     /**
137      * <p>The token to request a specific page of results.</p>
138      */
SetNextToken(Aws::String && value)139     inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
140 
141     /**
142      * <p>The token to request a specific page of results.</p>
143      */
SetNextToken(const char * value)144     inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
145 
146     /**
147      * <p>The token to request a specific page of results.</p>
148      */
WithNextToken(const Aws::String & value)149     inline DescribeImportTasksRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
150 
151     /**
152      * <p>The token to request a specific page of results.</p>
153      */
WithNextToken(Aws::String && value)154     inline DescribeImportTasksRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
155 
156     /**
157      * <p>The token to request a specific page of results.</p>
158      */
WithNextToken(const char * value)159     inline DescribeImportTasksRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
160 
161   private:
162 
163     Aws::Vector<ImportTaskFilter> m_filters;
164     bool m_filtersHasBeenSet;
165 
166     int m_maxResults;
167     bool m_maxResultsHasBeenSet;
168 
169     Aws::String m_nextToken;
170     bool m_nextTokenHasBeenSet;
171   };
172 
173 } // namespace Model
174 } // namespace ApplicationDiscoveryService
175 } // namespace Aws
176