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/iotanalytics/IoTAnalytics_EXPORTS.h>
8 #include <aws/iotanalytics/IoTAnalyticsRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16     class URI;
17 } //namespace Http
18 namespace IoTAnalytics
19 {
20 namespace Model
21 {
22 
23   /**
24    */
25   class AWS_IOTANALYTICS_API GetDatasetContentRequest : public IoTAnalyticsRequest
26   {
27   public:
28     GetDatasetContentRequest();
29 
30     // Service request name is the Operation name which will send this request out,
31     // each operation should has unique request name, so that we can get operation's name from this request.
32     // Note: this is not true for response, multiple operations may have the same response name,
33     // so we can not get operation's name from response.
GetServiceRequestName()34     inline virtual const char* GetServiceRequestName() const override { return "GetDatasetContent"; }
35 
36     Aws::String SerializePayload() const override;
37 
38     void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
41     /**
42      * <p>The name of the dataset whose contents are retrieved.</p>
43      */
GetDatasetName()44     inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
45 
46     /**
47      * <p>The name of the dataset whose contents are retrieved.</p>
48      */
DatasetNameHasBeenSet()49     inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
50 
51     /**
52      * <p>The name of the dataset whose contents are retrieved.</p>
53      */
SetDatasetName(const Aws::String & value)54     inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
55 
56     /**
57      * <p>The name of the dataset whose contents are retrieved.</p>
58      */
SetDatasetName(Aws::String && value)59     inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
60 
61     /**
62      * <p>The name of the dataset whose contents are retrieved.</p>
63      */
SetDatasetName(const char * value)64     inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
65 
66     /**
67      * <p>The name of the dataset whose contents are retrieved.</p>
68      */
WithDatasetName(const Aws::String & value)69     inline GetDatasetContentRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
70 
71     /**
72      * <p>The name of the dataset whose contents are retrieved.</p>
73      */
WithDatasetName(Aws::String && value)74     inline GetDatasetContentRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
75 
76     /**
77      * <p>The name of the dataset whose contents are retrieved.</p>
78      */
WithDatasetName(const char * value)79     inline GetDatasetContentRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
80 
81 
82     /**
83      * <p>The version of the dataset whose contents are retrieved. You can also use the
84      * strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest
85      * or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED"
86      * is the default.</p>
87      */
GetVersionId()88     inline const Aws::String& GetVersionId() const{ return m_versionId; }
89 
90     /**
91      * <p>The version of the dataset whose contents are retrieved. You can also use the
92      * strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest
93      * or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED"
94      * is the default.</p>
95      */
VersionIdHasBeenSet()96     inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
97 
98     /**
99      * <p>The version of the dataset whose contents are retrieved. You can also use the
100      * strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest
101      * or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED"
102      * is the default.</p>
103      */
SetVersionId(const Aws::String & value)104     inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
105 
106     /**
107      * <p>The version of the dataset whose contents are retrieved. You can also use the
108      * strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest
109      * or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED"
110      * is the default.</p>
111      */
SetVersionId(Aws::String && value)112     inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
113 
114     /**
115      * <p>The version of the dataset whose contents are retrieved. You can also use the
116      * strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest
117      * or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED"
118      * is the default.</p>
119      */
SetVersionId(const char * value)120     inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
121 
122     /**
123      * <p>The version of the dataset whose contents are retrieved. You can also use the
124      * strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest
125      * or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED"
126      * is the default.</p>
127      */
WithVersionId(const Aws::String & value)128     inline GetDatasetContentRequest& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
129 
130     /**
131      * <p>The version of the dataset whose contents are retrieved. You can also use the
132      * strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest
133      * or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED"
134      * is the default.</p>
135      */
WithVersionId(Aws::String && value)136     inline GetDatasetContentRequest& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
137 
138     /**
139      * <p>The version of the dataset whose contents are retrieved. You can also use the
140      * strings "$LATEST" or "$LATEST_SUCCEEDED" to retrieve the contents of the latest
141      * or latest successfully completed dataset. If not specified, "$LATEST_SUCCEEDED"
142      * is the default.</p>
143      */
WithVersionId(const char * value)144     inline GetDatasetContentRequest& WithVersionId(const char* value) { SetVersionId(value); return *this;}
145 
146   private:
147 
148     Aws::String m_datasetName;
149     bool m_datasetNameHasBeenSet;
150 
151     Aws::String m_versionId;
152     bool m_versionIdHasBeenSet;
153   };
154 
155 } // namespace Model
156 } // namespace IoTAnalytics
157 } // namespace Aws
158