AWS SDK for C++  1.9.129
AWS SDK for C++
ModifyInstanceEventWindowRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceEventWindow"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline ModifyInstanceEventWindowRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
77  inline const Aws::String& GetName() const{ return m_name; }
78 
82  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 
87  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
88 
92  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
93 
97  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
98 
102  inline ModifyInstanceEventWindowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
103 
107  inline ModifyInstanceEventWindowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
108 
112  inline ModifyInstanceEventWindowRequest& WithName(const char* value) { SetName(value); return *this;}
113 
114 
118  inline const Aws::String& GetInstanceEventWindowId() const{ return m_instanceEventWindowId; }
119 
123  inline bool InstanceEventWindowIdHasBeenSet() const { return m_instanceEventWindowIdHasBeenSet; }
124 
128  inline void SetInstanceEventWindowId(const Aws::String& value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId = value; }
129 
133  inline void SetInstanceEventWindowId(Aws::String&& value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId = std::move(value); }
134 
138  inline void SetInstanceEventWindowId(const char* value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId.assign(value); }
139 
143  inline ModifyInstanceEventWindowRequest& WithInstanceEventWindowId(const Aws::String& value) { SetInstanceEventWindowId(value); return *this;}
144 
148  inline ModifyInstanceEventWindowRequest& WithInstanceEventWindowId(Aws::String&& value) { SetInstanceEventWindowId(std::move(value)); return *this;}
149 
153  inline ModifyInstanceEventWindowRequest& WithInstanceEventWindowId(const char* value) { SetInstanceEventWindowId(value); return *this;}
154 
155 
159  inline const Aws::Vector<InstanceEventWindowTimeRangeRequest>& GetTimeRanges() const{ return m_timeRanges; }
160 
164  inline bool TimeRangesHasBeenSet() const { return m_timeRangesHasBeenSet; }
165 
169  inline void SetTimeRanges(const Aws::Vector<InstanceEventWindowTimeRangeRequest>& value) { m_timeRangesHasBeenSet = true; m_timeRanges = value; }
170 
174  inline void SetTimeRanges(Aws::Vector<InstanceEventWindowTimeRangeRequest>&& value) { m_timeRangesHasBeenSet = true; m_timeRanges = std::move(value); }
175 
179  inline ModifyInstanceEventWindowRequest& WithTimeRanges(const Aws::Vector<InstanceEventWindowTimeRangeRequest>& value) { SetTimeRanges(value); return *this;}
180 
184  inline ModifyInstanceEventWindowRequest& WithTimeRanges(Aws::Vector<InstanceEventWindowTimeRangeRequest>&& value) { SetTimeRanges(std::move(value)); return *this;}
185 
189  inline ModifyInstanceEventWindowRequest& AddTimeRanges(const InstanceEventWindowTimeRangeRequest& value) { m_timeRangesHasBeenSet = true; m_timeRanges.push_back(value); return *this; }
190 
194  inline ModifyInstanceEventWindowRequest& AddTimeRanges(InstanceEventWindowTimeRangeRequest&& value) { m_timeRangesHasBeenSet = true; m_timeRanges.push_back(std::move(value)); return *this; }
195 
196 
213  inline const Aws::String& GetCronExpression() const{ return m_cronExpression; }
214 
231  inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
232 
249  inline void SetCronExpression(const Aws::String& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = value; }
250 
267  inline void SetCronExpression(Aws::String&& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = std::move(value); }
268 
285  inline void SetCronExpression(const char* value) { m_cronExpressionHasBeenSet = true; m_cronExpression.assign(value); }
286 
303  inline ModifyInstanceEventWindowRequest& WithCronExpression(const Aws::String& value) { SetCronExpression(value); return *this;}
304 
321  inline ModifyInstanceEventWindowRequest& WithCronExpression(Aws::String&& value) { SetCronExpression(std::move(value)); return *this;}
322 
339  inline ModifyInstanceEventWindowRequest& WithCronExpression(const char* value) { SetCronExpression(value); return *this;}
340 
341  private:
342 
343  bool m_dryRun;
344  bool m_dryRunHasBeenSet;
345 
346  Aws::String m_name;
347  bool m_nameHasBeenSet;
348 
349  Aws::String m_instanceEventWindowId;
350  bool m_instanceEventWindowIdHasBeenSet;
351 
353  bool m_timeRangesHasBeenSet;
354 
355  Aws::String m_cronExpression;
356  bool m_cronExpressionHasBeenSet;
357  };
358 
359 } // namespace Model
360 } // namespace EC2
361 } // namespace Aws
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetName
void SetName(Aws::String &&value)
Definition: ModifyInstanceEventWindowRequest.h:92
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetName
void SetName(const char *value)
Definition: ModifyInstanceEventWindowRequest.h:97
Aws::EC2::Model::ModifyInstanceEventWindowRequest::GetTimeRanges
const Aws::Vector< InstanceEventWindowTimeRangeRequest > & GetTimeRanges() const
Definition: ModifyInstanceEventWindowRequest.h:159
Aws::Http::URI
Definition: URI.h:32
InstanceEventWindowTimeRangeRequest.h
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithTimeRanges
ModifyInstanceEventWindowRequest & WithTimeRanges(Aws::Vector< InstanceEventWindowTimeRangeRequest > &&value)
Definition: ModifyInstanceEventWindowRequest.h:184
Aws::EC2::Model::ModifyInstanceEventWindowRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: ModifyInstanceEventWindowRequest.h:55
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithName
ModifyInstanceEventWindowRequest & WithName(const char *value)
Definition: ModifyInstanceEventWindowRequest.h:112
Aws::EC2::Model::ModifyInstanceEventWindowRequest::GetCronExpression
const Aws::String & GetCronExpression() const
Definition: ModifyInstanceEventWindowRequest.h:213
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ModifyInstanceEventWindowRequest::TimeRangesHasBeenSet
bool TimeRangesHasBeenSet() const
Definition: ModifyInstanceEventWindowRequest.h:164
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ModifyInstanceEventWindowRequest::GetName
const Aws::String & GetName() const
Definition: ModifyInstanceEventWindowRequest.h:77
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetInstanceEventWindowId
void SetInstanceEventWindowId(Aws::String &&value)
Definition: ModifyInstanceEventWindowRequest.h:133
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithDryRun
ModifyInstanceEventWindowRequest & WithDryRun(bool value)
Definition: ModifyInstanceEventWindowRequest.h:71
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetCronExpression
void SetCronExpression(Aws::String &&value)
Definition: ModifyInstanceEventWindowRequest.h:267
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetDryRun
void SetDryRun(bool value)
Definition: ModifyInstanceEventWindowRequest.h:63
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithName
ModifyInstanceEventWindowRequest & WithName(const Aws::String &value)
Definition: ModifyInstanceEventWindowRequest.h:102
Aws::EC2::Model::ModifyInstanceEventWindowRequest
Definition: ModifyInstanceEventWindowRequest.h:24
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithInstanceEventWindowId
ModifyInstanceEventWindowRequest & WithInstanceEventWindowId(const char *value)
Definition: ModifyInstanceEventWindowRequest.h:153
Aws::EC2::Model::ModifyInstanceEventWindowRequest::ModifyInstanceEventWindowRequest
ModifyInstanceEventWindowRequest()
EC2Request.h
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithCronExpression
ModifyInstanceEventWindowRequest & WithCronExpression(const char *value)
Definition: ModifyInstanceEventWindowRequest.h:339
Aws::EC2::Model::ModifyInstanceEventWindowRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: ModifyInstanceEventWindowRequest.h:82
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithCronExpression
ModifyInstanceEventWindowRequest & WithCronExpression(const Aws::String &value)
Definition: ModifyInstanceEventWindowRequest.h:303
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetTimeRanges
void SetTimeRanges(const Aws::Vector< InstanceEventWindowTimeRangeRequest > &value)
Definition: ModifyInstanceEventWindowRequest.h:169
AWSString.h
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithInstanceEventWindowId
ModifyInstanceEventWindowRequest & WithInstanceEventWindowId(const Aws::String &value)
Definition: ModifyInstanceEventWindowRequest.h:143
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetCronExpression
void SetCronExpression(const Aws::String &value)
Definition: ModifyInstanceEventWindowRequest.h:249
Aws::EC2::Model::ModifyInstanceEventWindowRequest::GetInstanceEventWindowId
const Aws::String & GetInstanceEventWindowId() const
Definition: ModifyInstanceEventWindowRequest.h:118
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithName
ModifyInstanceEventWindowRequest & WithName(Aws::String &&value)
Definition: ModifyInstanceEventWindowRequest.h:107
Aws::EC2::Model::InstanceEventWindowTimeRangeRequest
Definition: InstanceEventWindowTimeRangeRequest.h:33
Aws::EC2::Model::ModifyInstanceEventWindowRequest::InstanceEventWindowIdHasBeenSet
bool InstanceEventWindowIdHasBeenSet() const
Definition: ModifyInstanceEventWindowRequest.h:123
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetCronExpression
void SetCronExpression(const char *value)
Definition: ModifyInstanceEventWindowRequest.h:285
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithCronExpression
ModifyInstanceEventWindowRequest & WithCronExpression(Aws::String &&value)
Definition: ModifyInstanceEventWindowRequest.h:321
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetTimeRanges
void SetTimeRanges(Aws::Vector< InstanceEventWindowTimeRangeRequest > &&value)
Definition: ModifyInstanceEventWindowRequest.h:174
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetName
void SetName(const Aws::String &value)
Definition: ModifyInstanceEventWindowRequest.h:87
Aws::EC2::Model::ModifyInstanceEventWindowRequest::AddTimeRanges
ModifyInstanceEventWindowRequest & AddTimeRanges(const InstanceEventWindowTimeRangeRequest &value)
Definition: ModifyInstanceEventWindowRequest.h:189
Aws::EC2::Model::ModifyInstanceEventWindowRequest::CronExpressionHasBeenSet
bool CronExpressionHasBeenSet() const
Definition: ModifyInstanceEventWindowRequest.h:231
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyInstanceEventWindowRequest::GetDryRun
bool GetDryRun() const
Definition: ModifyInstanceEventWindowRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ModifyInstanceEventWindowRequest::AddTimeRanges
ModifyInstanceEventWindowRequest & AddTimeRanges(InstanceEventWindowTimeRangeRequest &&value)
Definition: ModifyInstanceEventWindowRequest.h:194
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ModifyInstanceEventWindowRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ModifyInstanceEventWindowRequest.h:32
EC2_EXPORTS.h
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithTimeRanges
ModifyInstanceEventWindowRequest & WithTimeRanges(const Aws::Vector< InstanceEventWindowTimeRangeRequest > &value)
Definition: ModifyInstanceEventWindowRequest.h:179
Aws::EC2::Model::ModifyInstanceEventWindowRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::ModifyInstanceEventWindowRequest::WithInstanceEventWindowId
ModifyInstanceEventWindowRequest & WithInstanceEventWindowId(Aws::String &&value)
Definition: ModifyInstanceEventWindowRequest.h:148
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetInstanceEventWindowId
void SetInstanceEventWindowId(const char *value)
Definition: ModifyInstanceEventWindowRequest.h:138
Aws::EC2::Model::ModifyInstanceEventWindowRequest::SetInstanceEventWindowId
void SetInstanceEventWindowId(const Aws::String &value)
Definition: ModifyInstanceEventWindowRequest.h:128