AWS SDK for C++  1.8.95
AWS SDK for C++
DescribeWorkspaceImagesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WorkSpaces
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeWorkspaceImages"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
42  inline const Aws::Vector<Aws::String>& GetImageIds() const{ return m_imageIds; }
43 
47  inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
48 
52  inline void SetImageIds(const Aws::Vector<Aws::String>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
53 
57  inline void SetImageIds(Aws::Vector<Aws::String>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
58 
62  inline DescribeWorkspaceImagesRequest& WithImageIds(const Aws::Vector<Aws::String>& value) { SetImageIds(value); return *this;}
63 
67  inline DescribeWorkspaceImagesRequest& WithImageIds(Aws::Vector<Aws::String>&& value) { SetImageIds(std::move(value)); return *this;}
68 
72  inline DescribeWorkspaceImagesRequest& AddImageIds(const Aws::String& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
73 
77  inline DescribeWorkspaceImagesRequest& AddImageIds(Aws::String&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
78 
82  inline DescribeWorkspaceImagesRequest& AddImageIds(const char* value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
83 
84 
88  inline const ImageType& GetImageType() const{ return m_imageType; }
89 
93  inline bool ImageTypeHasBeenSet() const { return m_imageTypeHasBeenSet; }
94 
98  inline void SetImageType(const ImageType& value) { m_imageTypeHasBeenSet = true; m_imageType = value; }
99 
103  inline void SetImageType(ImageType&& value) { m_imageTypeHasBeenSet = true; m_imageType = std::move(value); }
104 
108  inline DescribeWorkspaceImagesRequest& WithImageType(const ImageType& value) { SetImageType(value); return *this;}
109 
113  inline DescribeWorkspaceImagesRequest& WithImageType(ImageType&& value) { SetImageType(std::move(value)); return *this;}
114 
115 
120  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
121 
126  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
127 
132  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
133 
138  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
139 
144  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
145 
150  inline DescribeWorkspaceImagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
151 
156  inline DescribeWorkspaceImagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
157 
162  inline DescribeWorkspaceImagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
163 
164 
168  inline int GetMaxResults() const{ return m_maxResults; }
169 
173  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
174 
178  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
179 
183  inline DescribeWorkspaceImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
184 
185  private:
186 
187  Aws::Vector<Aws::String> m_imageIds;
188  bool m_imageIdsHasBeenSet;
189 
190  ImageType m_imageType;
191  bool m_imageTypeHasBeenSet;
192 
193  Aws::String m_nextToken;
194  bool m_nextTokenHasBeenSet;
195 
196  int m_maxResults;
197  bool m_maxResultsHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace WorkSpaces
202 } // namespace Aws
DescribeWorkspaceImagesRequest & AddImageIds(const char *value)
DescribeWorkspaceImagesRequest & AddImageIds(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
DescribeWorkspaceImagesRequest & AddImageIds(Aws::String &&value)
DescribeWorkspaceImagesRequest & WithNextToken(const Aws::String &value)
void SetImageIds(const Aws::Vector< Aws::String > &value)
DescribeWorkspaceImagesRequest & WithImageIds(Aws::Vector< Aws::String > &&value)
DescribeWorkspaceImagesRequest & WithImageIds(const Aws::Vector< Aws::String > &value)
DescribeWorkspaceImagesRequest & WithImageType(const ImageType &value)
DescribeWorkspaceImagesRequest & WithImageType(ImageType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeWorkspaceImagesRequest & WithNextToken(const char *value)
DescribeWorkspaceImagesRequest & WithNextToken(Aws::String &&value)
#define AWS_WORKSPACES_API