AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeImageAttributeRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/ImageAttributeName.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
27 {
28 public:
29 AWS_EC2_API DescribeImageAttributeRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "DescribeImageAttribute"; }
36
37 AWS_EC2_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41
42 public:
43
45
51 inline ImageAttributeName GetAttribute() const { return m_attribute; }
52 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
53 inline void SetAttribute(ImageAttributeName value) { m_attributeHasBeenSet = true; m_attribute = value; }
56
58
61 inline const Aws::String& GetImageId() const { return m_imageId; }
62 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
63 template<typename ImageIdT = Aws::String>
64 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
65 template<typename ImageIdT = Aws::String>
66 DescribeImageAttributeRequest& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
68
70
76 inline bool GetDryRun() const { return m_dryRun; }
77 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
78 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
79 inline DescribeImageAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
81 private:
82
84 bool m_attributeHasBeenSet = false;
85
86 Aws::String m_imageId;
87 bool m_imageIdHasBeenSet = false;
88
89 bool m_dryRun{false};
90 bool m_dryRunHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // 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