AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DeregisterImageRequest.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
11#include <utility>
12
13namespace Aws {
14namespace EC2 {
15namespace Model {
16
23 public:
24 AWS_EC2_API DeregisterImageRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "DeregisterImage"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
42 inline const Aws::String& GetImageId() const { return m_imageId; }
43 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
44 template <typename ImageIdT = Aws::String>
45 void SetImageId(ImageIdT&& value) {
46 m_imageIdHasBeenSet = true;
47 m_imageId = std::forward<ImageIdT>(value);
48 }
49 template <typename ImageIdT = Aws::String>
51 SetImageId(std::forward<ImageIdT>(value));
52 return *this;
53 }
55
57
63 inline bool GetDeleteAssociatedSnapshots() const { return m_deleteAssociatedSnapshots; }
64 inline bool DeleteAssociatedSnapshotsHasBeenSet() const { return m_deleteAssociatedSnapshotsHasBeenSet; }
65 inline void SetDeleteAssociatedSnapshots(bool value) {
66 m_deleteAssociatedSnapshotsHasBeenSet = true;
67 m_deleteAssociatedSnapshots = value;
68 }
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 }
88 inline DeregisterImageRequest& WithDryRun(bool value) {
89 SetDryRun(value);
90 return *this;
91 }
93 private:
94 Aws::String m_imageId;
95
96 bool m_deleteAssociatedSnapshots{false};
97
98 bool m_dryRun{false};
99 bool m_imageIdHasBeenSet = false;
100 bool m_deleteAssociatedSnapshotsHasBeenSet = false;
101 bool m_dryRunHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace EC2
106} // namespace Aws
virtual const char * GetServiceRequestName() const override
DeregisterImageRequest & WithDeleteAssociatedSnapshots(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
DeregisterImageRequest & WithDryRun(bool value)
DeregisterImageRequest & WithImageId(ImageIdT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API DeregisterImageRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String