AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
60 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
61 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
62 inline ModifyInstanceEventStartTimeRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
63 inline ModifyInstanceEventStartTimeRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
64 inline ModifyInstanceEventStartTimeRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
66
68
71 inline const Aws::String& GetInstanceEventId() const{ return m_instanceEventId; }
72 inline bool InstanceEventIdHasBeenSet() const { return m_instanceEventIdHasBeenSet; }
73 inline void SetInstanceEventId(const Aws::String& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = value; }
74 inline void SetInstanceEventId(Aws::String&& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = std::move(value); }
75 inline void SetInstanceEventId(const char* value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId.assign(value); }
78 inline ModifyInstanceEventStartTimeRequest& WithInstanceEventId(const char* value) { SetInstanceEventId(value); return *this;}
80
82
85 inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
86 inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
87 inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
88 inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); }
90 inline ModifyInstanceEventStartTimeRequest& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(value)); return *this;}
92 private:
93
94 bool m_dryRun;
95 bool m_dryRunHasBeenSet = false;
96
97 Aws::String m_instanceId;
98 bool m_instanceIdHasBeenSet = false;
99
100 Aws::String m_instanceEventId;
101 bool m_instanceEventIdHasBeenSet = false;
102
103 Aws::Utils::DateTime m_notBefore;
104 bool m_notBeforeHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace EC2
109} // namespace Aws
AWS_EC2_API Aws::String SerializePayload() const override
ModifyInstanceEventStartTimeRequest & WithInstanceId(const char *value)
ModifyInstanceEventStartTimeRequest & WithInstanceId(const Aws::String &value)
ModifyInstanceEventStartTimeRequest & WithInstanceEventId(const Aws::String &value)
ModifyInstanceEventStartTimeRequest & WithInstanceEventId(const char *value)
ModifyInstanceEventStartTimeRequest & WithInstanceEventId(Aws::String &&value)
ModifyInstanceEventStartTimeRequest & WithNotBefore(const Aws::Utils::DateTime &value)
ModifyInstanceEventStartTimeRequest & WithDryRun(bool value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyInstanceEventStartTimeRequest & WithInstanceId(Aws::String &&value)
ModifyInstanceEventStartTimeRequest & WithNotBefore(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String