AWS SDK for C++  1.9.107
AWS SDK for C++
DescribeImageAttributeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace 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::String SerializePayload() const override;
38 
39  protected:
40  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
41 
42  public:
43 
50  inline const ImageAttributeName& GetAttribute() const{ return m_attribute; }
51 
58  inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
59 
66  inline void SetAttribute(const ImageAttributeName& value) { m_attributeHasBeenSet = true; m_attribute = value; }
67 
74  inline void SetAttribute(ImageAttributeName&& value) { m_attributeHasBeenSet = true; m_attribute = std::move(value); }
75 
82  inline DescribeImageAttributeRequest& WithAttribute(const ImageAttributeName& value) { SetAttribute(value); return *this;}
83 
90  inline DescribeImageAttributeRequest& WithAttribute(ImageAttributeName&& value) { SetAttribute(std::move(value)); return *this;}
91 
92 
96  inline const Aws::String& GetImageId() const{ return m_imageId; }
97 
101  inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
102 
106  inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
107 
111  inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
112 
116  inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
117 
121  inline DescribeImageAttributeRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
122 
126  inline DescribeImageAttributeRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
127 
131  inline DescribeImageAttributeRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
132 
133 
140  inline bool GetDryRun() const{ return m_dryRun; }
141 
148  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
149 
156  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
157 
164  inline DescribeImageAttributeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
165 
166  private:
167 
168  ImageAttributeName m_attribute;
169  bool m_attributeHasBeenSet;
170 
171  Aws::String m_imageId;
172  bool m_imageIdHasBeenSet;
173 
174  bool m_dryRun;
175  bool m_dryRunHasBeenSet;
176  };
177 
178 } // namespace Model
179 } // namespace EC2
180 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeImageAttributeRequest::SetImageId
void SetImageId(const char *value)
Definition: DescribeImageAttributeRequest.h:116
Aws::EC2::Model::DescribeImageAttributeRequest::SetAttribute
void SetAttribute(const ImageAttributeName &value)
Definition: DescribeImageAttributeRequest.h:66
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeImageAttributeRequest::WithImageId
DescribeImageAttributeRequest & WithImageId(Aws::String &&value)
Definition: DescribeImageAttributeRequest.h:126
Aws::EC2::Model::DescribeImageAttributeRequest::SetAttribute
void SetAttribute(ImageAttributeName &&value)
Definition: DescribeImageAttributeRequest.h:74
Aws::EC2::Model::DescribeImageAttributeRequest
Definition: DescribeImageAttributeRequest.h:27
Aws::EC2::Model::DescribeImageAttributeRequest::SetImageId
void SetImageId(const Aws::String &value)
Definition: DescribeImageAttributeRequest.h:106
ImageAttributeName.h
Aws::EC2::Model::DescribeImageAttributeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeImageAttributeRequest.h:148
EC2Request.h
Aws::EC2::Model::DescribeImageAttributeRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeImageAttributeRequest.h:156
AWSString.h
Aws::EC2::Model::DescribeImageAttributeRequest::SetImageId
void SetImageId(Aws::String &&value)
Definition: DescribeImageAttributeRequest.h:111
Aws::EC2::Model::DescribeImageAttributeRequest::WithAttribute
DescribeImageAttributeRequest & WithAttribute(ImageAttributeName &&value)
Definition: DescribeImageAttributeRequest.h:90
Aws::EC2::Model::DescribeImageAttributeRequest::WithImageId
DescribeImageAttributeRequest & WithImageId(const Aws::String &value)
Definition: DescribeImageAttributeRequest.h:121
Aws::EC2::Model::DescribeImageAttributeRequest::GetAttribute
const ImageAttributeName & GetAttribute() const
Definition: DescribeImageAttributeRequest.h:50
Aws::EC2::Model::DescribeImageAttributeRequest::ImageIdHasBeenSet
bool ImageIdHasBeenSet() const
Definition: DescribeImageAttributeRequest.h:101
Aws::EC2::Model::DescribeImageAttributeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeImageAttributeRequest.h:35
Aws::EC2::Model::DescribeImageAttributeRequest::AttributeHasBeenSet
bool AttributeHasBeenSet() const
Definition: DescribeImageAttributeRequest.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeImageAttributeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeImageAttributeRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeImageAttributeRequest.h:140
Aws::EC2::Model::DescribeImageAttributeRequest::WithDryRun
DescribeImageAttributeRequest & WithDryRun(bool value)
Definition: DescribeImageAttributeRequest.h:164
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeImageAttributeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ImageAttributeName
ImageAttributeName
Definition: ImageAttributeName.h:17
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeImageAttributeRequest::GetImageId
const Aws::String & GetImageId() const
Definition: DescribeImageAttributeRequest.h:96
Aws::EC2::Model::DescribeImageAttributeRequest::WithImageId
DescribeImageAttributeRequest & WithImageId(const char *value)
Definition: DescribeImageAttributeRequest.h:131
Aws::EC2::Model::DescribeImageAttributeRequest::DescribeImageAttributeRequest
DescribeImageAttributeRequest()
EC2_EXPORTS.h
Aws::EC2::Model::DescribeImageAttributeRequest::WithAttribute
DescribeImageAttributeRequest & WithAttribute(const ImageAttributeName &value)
Definition: DescribeImageAttributeRequest.h:82