AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ModifyInstanceEventStartTimeRequest.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 ModifyInstanceEventStartTimeRequest() = 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 "ModifyInstanceEventStartTime"; }
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
47 inline bool GetDryRun() const { return m_dryRun; }
48 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
49 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
50 inline ModifyInstanceEventStartTimeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
52
54
57 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
58 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
59 template<typename InstanceIdT = Aws::String>
60 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
61 template<typename InstanceIdT = Aws::String>
62 ModifyInstanceEventStartTimeRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetInstanceEventId() const { return m_instanceEventId; }
70 inline bool InstanceEventIdHasBeenSet() const { return m_instanceEventIdHasBeenSet; }
71 template<typename InstanceEventIdT = Aws::String>
72 void SetInstanceEventId(InstanceEventIdT&& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = std::forward<InstanceEventIdT>(value); }
73 template<typename InstanceEventIdT = Aws::String>
74 ModifyInstanceEventStartTimeRequest& WithInstanceEventId(InstanceEventIdT&& value) { SetInstanceEventId(std::forward<InstanceEventIdT>(value)); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetNotBefore() const { return m_notBefore; }
82 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
83 template<typename NotBeforeT = Aws::Utils::DateTime>
84 void SetNotBefore(NotBeforeT&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::forward<NotBeforeT>(value); }
85 template<typename NotBeforeT = Aws::Utils::DateTime>
86 ModifyInstanceEventStartTimeRequest& WithNotBefore(NotBeforeT&& value) { SetNotBefore(std::forward<NotBeforeT>(value)); return *this;}
88 private:
89
90 bool m_dryRun{false};
91 bool m_dryRunHasBeenSet = false;
92
93 Aws::String m_instanceId;
94 bool m_instanceIdHasBeenSet = false;
95
96 Aws::String m_instanceEventId;
97 bool m_instanceEventIdHasBeenSet = false;
98
99 Aws::Utils::DateTime m_notBefore{};
100 bool m_notBeforeHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace EC2
105} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
ModifyInstanceEventStartTimeRequest & WithNotBefore(NotBeforeT &&value)
ModifyInstanceEventStartTimeRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyInstanceEventStartTimeRequest & WithInstanceEventId(InstanceEventIdT &&value)
ModifyInstanceEventStartTimeRequest & WithInstanceId(InstanceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String