AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
46 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
47 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
48 inline DescribeImageAssociationsRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
49 inline DescribeImageAssociationsRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
50 inline DescribeImageAssociationsRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
52
54
57 inline const Aws::Vector<ImageAssociatedResourceType>& GetAssociatedResourceTypes() const{ return m_associatedResourceTypes; }
58 inline bool AssociatedResourceTypesHasBeenSet() const { return m_associatedResourceTypesHasBeenSet; }
59 inline void SetAssociatedResourceTypes(const Aws::Vector<ImageAssociatedResourceType>& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes = value; }
60 inline void SetAssociatedResourceTypes(Aws::Vector<ImageAssociatedResourceType>&& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes = std::move(value); }
63 inline DescribeImageAssociationsRequest& AddAssociatedResourceTypes(const ImageAssociatedResourceType& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes.push_back(value); return *this; }
64 inline DescribeImageAssociationsRequest& AddAssociatedResourceTypes(ImageAssociatedResourceType&& value) { m_associatedResourceTypesHasBeenSet = true; m_associatedResourceTypes.push_back(std::move(value)); return *this; }
66 private:
67
68 Aws::String m_imageId;
69 bool m_imageIdHasBeenSet = false;
70
71 Aws::Vector<ImageAssociatedResourceType> m_associatedResourceTypes;
72 bool m_associatedResourceTypesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace WorkSpaces
77} // namespace Aws
const Aws::Vector< ImageAssociatedResourceType > & GetAssociatedResourceTypes() const
AWS_WORKSPACES_API Aws::String SerializePayload() const override
DescribeImageAssociationsRequest & WithAssociatedResourceTypes(const Aws::Vector< ImageAssociatedResourceType > &value)
void SetAssociatedResourceTypes(const Aws::Vector< ImageAssociatedResourceType > &value)
DescribeImageAssociationsRequest & WithImageId(const Aws::String &value)
DescribeImageAssociationsRequest & WithAssociatedResourceTypes(Aws::Vector< ImageAssociatedResourceType > &&value)
AWS_WORKSPACES_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeImageAssociationsRequest & AddAssociatedResourceTypes(ImageAssociatedResourceType &&value)
void SetAssociatedResourceTypes(Aws::Vector< ImageAssociatedResourceType > &&value)
DescribeImageAssociationsRequest & WithImageId(const char *value)
DescribeImageAssociationsRequest & AddAssociatedResourceTypes(const ImageAssociatedResourceType &value)
DescribeImageAssociationsRequest & WithImageId(Aws::String &&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