AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeImageAssociationsRequest.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/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces/model/ImageAssociatedResourceType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkSpaces
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_WORKSPACES_API DescribeImageAssociationsRequest() = 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 "DescribeImageAssociations"; }
33
34 AWS_WORKSPACES_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetImageId() const { return m_imageId; }
44 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
45 template<typename ImageIdT = Aws::String>
46 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
47 template<typename ImageIdT = Aws::String>
48 DescribeImageAssociationsRequest& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
50
52
55 inline const Aws::Vector<ImageAssociatedResourceType>& GetAssociatedResourceTypes() const { return m_associatedResourceTypes; }
56 inline bool AssociatedResourceTypesHasBeenSet() const { return m_associatedResourceTypesHasBeenSet; }
57 template<typename AssociatedResourceTypesT = Aws::Vector<ImageAssociatedResourceType>>
58 void SetAssociatedResourceTypes(AssociatedResourceTypesT&& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes = std::forward<AssociatedResourceTypesT>(value); }
59 template<typename AssociatedResourceTypesT = Aws::Vector<ImageAssociatedResourceType>>
60 DescribeImageAssociationsRequest& WithAssociatedResourceTypes(AssociatedResourceTypesT&& value) { SetAssociatedResourceTypes(std::forward<AssociatedResourceTypesT>(value)); return *this;}
61 inline DescribeImageAssociationsRequest& AddAssociatedResourceTypes(ImageAssociatedResourceType value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes.push_back(value); return *this; }
63 private:
64
65 Aws::String m_imageId;
66 bool m_imageIdHasBeenSet = false;
67
68 Aws::Vector<ImageAssociatedResourceType> m_associatedResourceTypes;
69 bool m_associatedResourceTypesHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace WorkSpaces
74} // 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