AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const ImageAttributeName& GetAttribute() const{ return m_attribute; }
52 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
53 inline void SetAttribute(const ImageAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
54 inline void SetAttribute(ImageAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
55 inline DescribeImageAttributeRequest& WithAttribute(const ImageAttributeName& value) { SetAttribute(value); return *this;}
56 inline DescribeImageAttributeRequest& WithAttribute(ImageAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
58
60
63 inline const Aws::String& GetImageId() const{ return m_imageId; }
64 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
65 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
66 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
67 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
68 inline DescribeImageAttributeRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
69 inline DescribeImageAttributeRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
70 inline DescribeImageAttributeRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
72
74
80 inline bool GetDryRun() const{ return m_dryRun; }
81 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
82 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
83 inline DescribeImageAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
85 private:
86
87 ImageAttributeName m_attribute;
88 bool m_attributeHasBeenSet = false;
89
90 Aws::String m_imageId;
91 bool m_imageIdHasBeenSet = false;
92
93 bool m_dryRun;
94 bool m_dryRunHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace EC2
99} // namespace Aws
DescribeImageAttributeRequest & WithDryRun(bool value)
DescribeImageAttributeRequest & WithAttribute(ImageAttributeName &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeImageAttributeRequest & WithImageId(const Aws::String &value)
DescribeImageAttributeRequest & WithImageId(Aws::String &&value)
DescribeImageAttributeRequest & WithAttribute(const ImageAttributeName &value)
virtual const char * GetServiceRequestName() const override
DescribeImageAttributeRequest & WithImageId(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String