AWS SDK for C++  1.9.129
AWS SDK for C++
ModifyInstanceEventStartTimeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace 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::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
46  inline bool GetDryRun() const{ return m_dryRun; }
47 
54  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
55 
62  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
63 
70  inline ModifyInstanceEventStartTimeRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
71 
72 
76  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
77 
81  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
82 
86  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
87 
91  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
92 
96  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
97 
101  inline ModifyInstanceEventStartTimeRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
102 
106  inline ModifyInstanceEventStartTimeRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
107 
111  inline ModifyInstanceEventStartTimeRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
112 
113 
117  inline const Aws::String& GetInstanceEventId() const{ return m_instanceEventId; }
118 
122  inline bool InstanceEventIdHasBeenSet() const { return m_instanceEventIdHasBeenSet; }
123 
127  inline void SetInstanceEventId(const Aws::String& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = value; }
128 
132  inline void SetInstanceEventId(Aws::String&& value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId = std::move(value); }
133 
137  inline void SetInstanceEventId(const char* value) { m_instanceEventIdHasBeenSet = true; m_instanceEventId.assign(value); }
138 
142  inline ModifyInstanceEventStartTimeRequest& WithInstanceEventId(const Aws::String& value) { SetInstanceEventId(value); return *this;}
143 
147  inline ModifyInstanceEventStartTimeRequest& WithInstanceEventId(Aws::String&& value) { SetInstanceEventId(std::move(value)); return *this;}
148 
152  inline ModifyInstanceEventStartTimeRequest& WithInstanceEventId(const char* value) { SetInstanceEventId(value); return *this;}
153 
154 
158  inline const Aws::Utils::DateTime& GetNotBefore() const{ return m_notBefore; }
159 
163  inline bool NotBeforeHasBeenSet() const { return m_notBeforeHasBeenSet; }
164 
168  inline void SetNotBefore(const Aws::Utils::DateTime& value) { m_notBeforeHasBeenSet = true; m_notBefore = value; }
169 
173  inline void SetNotBefore(Aws::Utils::DateTime&& value) { m_notBeforeHasBeenSet = true; m_notBefore = std::move(value); }
174 
178  inline ModifyInstanceEventStartTimeRequest& WithNotBefore(const Aws::Utils::DateTime& value) { SetNotBefore(value); return *this;}
179 
183  inline ModifyInstanceEventStartTimeRequest& WithNotBefore(Aws::Utils::DateTime&& value) { SetNotBefore(std::move(value)); return *this;}
184 
185  private:
186 
187  bool m_dryRun;
188  bool m_dryRunHasBeenSet;
189 
190  Aws::String m_instanceId;
191  bool m_instanceIdHasBeenSet;
192 
193  Aws::String m_instanceEventId;
194  bool m_instanceEventIdHasBeenSet;
195 
196  Aws::Utils::DateTime m_notBefore;
197  bool m_notBeforeHasBeenSet;
198  };
199 
200 } // namespace Model
201 } // namespace EC2
202 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::WithNotBefore
ModifyInstanceEventStartTimeRequest & WithNotBefore(Aws::Utils::DateTime &&value)
Definition: ModifyInstanceEventStartTimeRequest.h:183
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::ModifyInstanceEventStartTimeRequest
ModifyInstanceEventStartTimeRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::GetNotBefore
const Aws::Utils::DateTime & GetNotBefore() const
Definition: ModifyInstanceEventStartTimeRequest.h:158
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::WithInstanceId
ModifyInstanceEventStartTimeRequest & WithInstanceId(Aws::String &&value)
Definition: ModifyInstanceEventStartTimeRequest.h:106
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::InstanceEventIdHasBeenSet
bool InstanceEventIdHasBeenSet() const
Definition: ModifyInstanceEventStartTimeRequest.h:122
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyInstanceEventStartTimeRequest.h:31
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::SetInstanceEventId
void SetInstanceEventId(Aws::String &&value)
Definition: ModifyInstanceEventStartTimeRequest.h:132
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::WithDryRun
ModifyInstanceEventStartTimeRequest & WithDryRun(bool value)
Definition: ModifyInstanceEventStartTimeRequest.h:70
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::WithInstanceId
ModifyInstanceEventStartTimeRequest & WithInstanceId(const Aws::String &value)
Definition: ModifyInstanceEventStartTimeRequest.h:101
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::SetNotBefore
void SetNotBefore(const Aws::Utils::DateTime &value)
Definition: ModifyInstanceEventStartTimeRequest.h:168
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::NotBeforeHasBeenSet
bool NotBeforeHasBeenSet() const
Definition: ModifyInstanceEventStartTimeRequest.h:163
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: ModifyInstanceEventStartTimeRequest.h:76
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: ModifyInstanceEventStartTimeRequest.h:81
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: ModifyInstanceEventStartTimeRequest.h:86
EC2Request.h
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: ModifyInstanceEventStartTimeRequest.h:96
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::WithInstanceEventId
ModifyInstanceEventStartTimeRequest & WithInstanceEventId(const Aws::String &value)
Definition: ModifyInstanceEventStartTimeRequest.h:142
AWSString.h
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::WithInstanceId
ModifyInstanceEventStartTimeRequest & WithInstanceId(const char *value)
Definition: ModifyInstanceEventStartTimeRequest.h:111
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: ModifyInstanceEventStartTimeRequest.h:91
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::WithNotBefore
ModifyInstanceEventStartTimeRequest & WithNotBefore(const Aws::Utils::DateTime &value)
Definition: ModifyInstanceEventStartTimeRequest.h:178
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::SetInstanceEventId
void SetInstanceEventId(const char *value)
Definition: ModifyInstanceEventStartTimeRequest.h:137
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::GetInstanceEventId
const Aws::String & GetInstanceEventId() const
Definition: ModifyInstanceEventStartTimeRequest.h:117
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::SetInstanceEventId
void SetInstanceEventId(const Aws::String &value)
Definition: ModifyInstanceEventStartTimeRequest.h:127
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::SetNotBefore
void SetNotBefore(Aws::Utils::DateTime &&value)
Definition: ModifyInstanceEventStartTimeRequest.h:173
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyInstanceEventStartTimeRequest.h:54
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest
Definition: ModifyInstanceEventStartTimeRequest.h:23
EC2_EXPORTS.h
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::WithInstanceEventId
ModifyInstanceEventStartTimeRequest & WithInstanceEventId(const char *value)
Definition: ModifyInstanceEventStartTimeRequest.h:152
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyInstanceEventStartTimeRequest.h:62
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::WithInstanceEventId
ModifyInstanceEventStartTimeRequest & WithInstanceEventId(Aws::String &&value)
Definition: ModifyInstanceEventStartTimeRequest.h:147
Aws::EC2::Model::ModifyInstanceEventStartTimeRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyInstanceEventStartTimeRequest.h:46