AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
DescribeImageAssociationsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/workspaces/WorkSpacesRequest.h>
10#include <aws/workspaces/WorkSpaces_EXPORTS.h>
11#include <aws/workspaces/model/ImageAssociatedResourceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WorkSpaces {
17namespace Model {
18
22 public:
23 AWS_WORKSPACES_API DescribeImageAssociationsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeImageAssociations"; }
30
31 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetImageId() const { return m_imageId; }
40 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
41 template <typename ImageIdT = Aws::String>
42 void SetImageId(ImageIdT&& value) {
43 m_imageIdHasBeenSet = true;
44 m_imageId = std::forward<ImageIdT>(value);
45 }
46 template <typename ImageIdT = Aws::String>
48 SetImageId(std::forward<ImageIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Vector<ImageAssociatedResourceType>& GetAssociatedResourceTypes() const { return m_associatedResourceTypes; }
58 inline bool AssociatedResourceTypesHasBeenSet() const { return m_associatedResourceTypesHasBeenSet; }
59 template <typename AssociatedResourceTypesT = Aws::Vector<ImageAssociatedResourceType>>
60 void SetAssociatedResourceTypes(AssociatedResourceTypesT&& value) {
61 m_associatedResourceTypesHasBeenSet = true;
62 m_associatedResourceTypes = std::forward<AssociatedResourceTypesT>(value);
63 }
64 template <typename AssociatedResourceTypesT = Aws::Vector<ImageAssociatedResourceType>>
66 SetAssociatedResourceTypes(std::forward<AssociatedResourceTypesT>(value));
67 return *this;
68 }
70 m_associatedResourceTypesHasBeenSet = true;
71 m_associatedResourceTypes.push_back(value);
72 return *this;
73 }
75 private:
76 Aws::String m_imageId;
77
78 Aws::Vector<ImageAssociatedResourceType> m_associatedResourceTypes;
79 bool m_imageIdHasBeenSet = false;
80 bool m_associatedResourceTypesHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace WorkSpaces
85} // namespace Aws
const Aws::Vector< ImageAssociatedResourceType > & GetAssociatedResourceTypes() const
AWS_WORKSPACES_API DescribeImageAssociationsRequest()=default
AWS_WORKSPACES_API Aws::String SerializePayload() const override
DescribeImageAssociationsRequest & AddAssociatedResourceTypes(ImageAssociatedResourceType value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeImageAssociationsRequest & WithAssociatedResourceTypes(AssociatedResourceTypesT &&value)
DescribeImageAssociationsRequest & WithImageId(ImageIdT &&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