AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetImageId(const Aws::String& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
47 inline void SetImageId(Aws::String&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
48 inline void SetImageId(const char* value) { m_imageIdHasBeenSet = true; m_imageId.assign(value); }
49 inline EnableImageDeprecationRequest& WithImageId(const Aws::String& value) { SetImageId(value); return *this;}
50 inline EnableImageDeprecationRequest& WithImageId(Aws::String&& value) { SetImageId(std::move(value)); return *this;}
51 inline EnableImageDeprecationRequest& WithImageId(const char* value) { SetImageId(value); return *this;}
53
55
63 inline const Aws::Utils::DateTime& GetDeprecateAt() const{ return m_deprecateAt; }
64 inline bool DeprecateAtHasBeenSet() const { return m_deprecateAtHasBeenSet; }
65 inline void SetDeprecateAt(const Aws::Utils::DateTime& value) { m_deprecateAtHasBeenSet = true; m_deprecateAt = value; }
66 inline void SetDeprecateAt(Aws::Utils::DateTime&& value) { m_deprecateAtHasBeenSet = true; m_deprecateAt = std::move(value); }
68 inline EnableImageDeprecationRequest& WithDeprecateAt(Aws::Utils::DateTime&& value) { SetDeprecateAt(std::move(value)); return *this;}
70
72
78 inline bool GetDryRun() const{ return m_dryRun; }
79 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
80 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
81 inline EnableImageDeprecationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
83 private:
84
85 Aws::String m_imageId;
86 bool m_imageIdHasBeenSet = false;
87
88 Aws::Utils::DateTime m_deprecateAt;
89 bool m_deprecateAtHasBeenSet = false;
90
91 bool m_dryRun;
92 bool m_dryRunHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace EC2
97} // namespace Aws
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetDeprecateAt(const Aws::Utils::DateTime &value)
EnableImageDeprecationRequest & WithImageId(Aws::String &&value)
AWS_EC2_API Aws::String SerializePayload() const override
EnableImageDeprecationRequest & WithDryRun(bool value)
EnableImageDeprecationRequest & WithImageId(const Aws::String &value)
EnableImageDeprecationRequest & WithDeprecateAt(Aws::Utils::DateTime &&value)
virtual const char * GetServiceRequestName() const override
EnableImageDeprecationRequest & WithImageId(const char *value)
EnableImageDeprecationRequest & WithDeprecateAt(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String