AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ResetImageAttributeRequest.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/ResetImageAttributeName.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
25 public:
26 AWS_EC2_API ResetImageAttributeRequest() = 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 "ResetImageAttribute"; }
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
45 inline ResetImageAttributeName GetAttribute() const { return m_attribute; }
46 inline bool AttributeHasBeenSet() const { return m_attributeHasBeenSet; }
48 m_attributeHasBeenSet = true;
49 m_attribute = value;
50 }
52 SetAttribute(value);
53 return *this;
54 }
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) {
65 m_imageIdHasBeenSet = true;
66 m_imageId = std::forward<ImageIdT>(value);
67 }
68 template <typename ImageIdT = Aws::String>
70 SetImageId(std::forward<ImageIdT>(value));
71 return *this;
72 }
74
76
82 inline bool GetDryRun() const { return m_dryRun; }
83 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
84 inline void SetDryRun(bool value) {
85 m_dryRunHasBeenSet = true;
86 m_dryRun = value;
87 }
89 SetDryRun(value);
90 return *this;
91 }
93 private:
95
96 Aws::String m_imageId;
97
98 bool m_dryRun{false};
99 bool m_attributeHasBeenSet = false;
100 bool m_imageIdHasBeenSet = false;
101 bool m_dryRunHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace EC2
106} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API ResetImageAttributeRequest()=default
ResetImageAttributeRequest & WithDryRun(bool value)
void SetAttribute(ResetImageAttributeName value)
ResetImageAttributeRequest & WithImageId(ImageIdT &&value)
ResetImageAttributeRequest & WithAttribute(ResetImageAttributeName value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String