AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeWorkspaceImagesRequest.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/WorkSpacesRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/workspaces/model/ImageType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkSpaces
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKSPACES_API DescribeWorkspaceImagesRequest() = default;
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_WORKSPACES_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::Vector<Aws::String>& GetImageIds() const { return m_imageIds; }
44 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
45 template<typename ImageIdsT = Aws::Vector<Aws::String>>
46 void SetImageIds(ImageIdsT&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::forward<ImageIdsT>(value); }
47 template<typename ImageIdsT = Aws::Vector<Aws::String>>
48 DescribeWorkspaceImagesRequest& WithImageIds(ImageIdsT&& value) { SetImageIds(std::forward<ImageIdsT>(value)); return *this;}
49 template<typename ImageIdsT = Aws::String>
50 DescribeWorkspaceImagesRequest& AddImageIds(ImageIdsT&& value) { m_imageIdsHasBeenSet = true; m_imageIds.emplace_back(std::forward<ImageIdsT>(value)); return *this; }
52
54
57 inline ImageType GetImageType() const { return m_imageType; }
58 inline bool ImageTypeHasBeenSet() const { return m_imageTypeHasBeenSet; }
59 inline void SetImageType(ImageType value) { m_imageTypeHasBeenSet = true; m_imageType = value; }
62
64
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 template<typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
72 template<typename NextTokenT = Aws::String>
73 DescribeWorkspaceImagesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
75
77
80 inline int GetMaxResults() const { return m_maxResults; }
81 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
82 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
83 inline DescribeWorkspaceImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
85 private:
86
87 Aws::Vector<Aws::String> m_imageIds;
88 bool m_imageIdsHasBeenSet = false;
89
90 ImageType m_imageType{ImageType::NOT_SET};
91 bool m_imageTypeHasBeenSet = false;
92
93 Aws::String m_nextToken;
94 bool m_nextTokenHasBeenSet = false;
95
96 int m_maxResults{0};
97 bool m_maxResultsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace WorkSpaces
102} // namespace Aws
AWS_WORKSPACES_API Aws::String SerializePayload() const override
AWS_WORKSPACES_API DescribeWorkspaceImagesRequest()=default
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeWorkspaceImagesRequest & AddImageIds(ImageIdsT &&value)
DescribeWorkspaceImagesRequest & WithImageType(ImageType value)
DescribeWorkspaceImagesRequest & WithNextToken(NextTokenT &&value)
DescribeWorkspaceImagesRequest & WithImageIds(ImageIdsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector