AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
EnableImageDeprecationRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_EC2_API EnableImageDeprecationRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "EnableImageDeprecation"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const Aws::String& GetImageId() const { return m_imageId; }
45 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
46 template<typename ImageIdT = Aws::String>
47 void SetImageId(ImageIdT&& value) { m_imageIdHasBeenSet = true; m_imageId = std::forward<ImageIdT>(value); }
48 template<typename ImageIdT = Aws::String>
49 EnableImageDeprecationRequest& WithImageId(ImageIdT&& value) { SetImageId(std::forward<ImageIdT>(value)); return *this;}
51
53
61 inline const Aws::Utils::DateTime& GetDeprecateAt() const { return m_deprecateAt; }
62 inline bool DeprecateAtHasBeenSet() const { return m_deprecateAtHasBeenSet; }
63 template<typename DeprecateAtT = Aws::Utils::DateTime>
64 void SetDeprecateAt(DeprecateAtT&& value) { m_deprecateAtHasBeenSet = true; m_deprecateAt = std::forward<DeprecateAtT>(value); }
65 template<typename DeprecateAtT = Aws::Utils::DateTime>
66 EnableImageDeprecationRequest& WithDeprecateAt(DeprecateAtT&& value) { SetDeprecateAt(std::forward<DeprecateAtT>(value)); return *this;}
68
70
76 inline bool GetDryRun() const { return m_dryRun; }
77 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
78 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
79 inline EnableImageDeprecationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
81 private:
82
83 Aws::String m_imageId;
84 bool m_imageIdHasBeenSet = false;
85
86 Aws::Utils::DateTime m_deprecateAt{};
87 bool m_deprecateAtHasBeenSet = false;
88
89 bool m_dryRun{false};
90 bool m_dryRunHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // 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