AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
EnableImageDeprecationRequest.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API EnableImageDeprecationRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "EnableImageDeprecation"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const Aws::String& GetImageId() const { return m_imageId; }
41 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
42 template <typename ImageIdT = Aws::String>
43 void SetImageId(ImageIdT&& value) {
44 m_imageIdHasBeenSet = true;
45 m_imageId = std::forward<ImageIdT>(value);
46 }
47 template <typename ImageIdT = Aws::String>
49 SetImageId(std::forward<ImageIdT>(value));
50 return *this;
51 }
53
55
63 inline const Aws::Utils::DateTime& GetDeprecateAt() const { return m_deprecateAt; }
64 inline bool DeprecateAtHasBeenSet() const { return m_deprecateAtHasBeenSet; }
65 template <typename DeprecateAtT = Aws::Utils::DateTime>
66 void SetDeprecateAt(DeprecateAtT&& value) {
67 m_deprecateAtHasBeenSet = true;
68 m_deprecateAt = std::forward<DeprecateAtT>(value);
69 }
70 template <typename DeprecateAtT = Aws::Utils::DateTime>
72 SetDeprecateAt(std::forward<DeprecateAtT>(value));
73 return *this;
74 }
76
78
84 inline bool GetDryRun() const { return m_dryRun; }
85 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
86 inline void SetDryRun(bool value) {
87 m_dryRunHasBeenSet = true;
88 m_dryRun = value;
89 }
91 SetDryRun(value);
92 return *this;
93 }
95 private:
96 Aws::String m_imageId;
97
98 Aws::Utils::DateTime m_deprecateAt{};
99
100 bool m_dryRun{false};
101 bool m_imageIdHasBeenSet = false;
102 bool m_deprecateAtHasBeenSet = false;
103 bool m_dryRunHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace EC2
108} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
EnableImageDeprecationRequest & WithDryRun(bool value)
EnableImageDeprecationRequest & WithDeprecateAt(DeprecateAtT &&value)
virtual const char * GetServiceRequestName() const override
EnableImageDeprecationRequest & WithImageId(ImageIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String