AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeImageAttributeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ImageAttributeName.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
25 public:
26 AWS_EC2_API DescribeImageAttributeRequest() = 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 "DescribeImageAttribute"; }
33
34 AWS_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
38
39 public:
41
47 inline ImageAttributeName GetAttribute() const { return m_attribute; }
48 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
49 inline void SetAttribute(ImageAttributeName value) {
50 m_attributeHasBeenSet = true;
51 m_attribute = value;
52 }
54 SetAttribute(value);
55 return *this;
56 }
58
60
63 inline const Aws::String& GetImageId() const { return m_imageId; }
64 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
65 template <typename ImageIdT = Aws::String>
66 void SetImageId(ImageIdT&& value) {
67 m_imageIdHasBeenSet = true;
68 m_imageId = std::forward<ImageIdT>(value);
69 }
70 template <typename ImageIdT = Aws::String>
72 SetImageId(std::forward<ImageIdT>(value));
73 return *this;
74 }
76
78
84 inline bool GetDryRun() const { return m_dryRun; }
85 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
86 inline void SetDryRun(bool value) {
87 m_dryRunHasBeenSet = true;
88 m_dryRun = value;
89 }
91 SetDryRun(value);
92 return *this;
93 }
95 private:
97
98 Aws::String m_imageId;
99
100 bool m_dryRun{false};
101 bool m_attributeHasBeenSet = false;
102 bool m_imageIdHasBeenSet = false;
103 bool m_dryRunHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace EC2
108} // namespace Aws
DescribeImageAttributeRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeImageAttributeRequest & WithAttribute(ImageAttributeName value)
virtual const char * GetServiceRequestName() const override
DescribeImageAttributeRequest & WithImageId(ImageIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String