AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyInstanceEventWindowRequest.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/memory/stl/AWSVector.h>
11#include <aws/ec2/model/InstanceEventWindowTimeRangeRequest.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EC2
17{
18namespace 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_EC2_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
48 inline bool GetDryRun() const{ return m_dryRun; }
49 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
50 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
51 inline ModifyInstanceEventWindowRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
53
55
58 inline const Aws::String& GetName() const{ return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
62 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 inline ModifyInstanceEventWindowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
64 inline ModifyInstanceEventWindowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
65 inline ModifyInstanceEventWindowRequest& WithName(const char* value) { SetName(value); return *this;}
67
69
72 inline const Aws::String& GetInstanceEventWindowId() const{ return m_instanceEventWindowId; }
73 inline bool InstanceEventWindowIdHasBeenSet() const { return m_instanceEventWindowIdHasBeenSet; }
74 inline void SetInstanceEventWindowId(const Aws::String& value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId = value; }
75 inline void SetInstanceEventWindowId(Aws::String&& value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId = std::move(value); }
76 inline void SetInstanceEventWindowId(const char* value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId.assign(value); }
81
83
86 inline const Aws::Vector<InstanceEventWindowTimeRangeRequest>& GetTimeRanges() const{ return m_timeRanges; }
87 inline bool TimeRangesHasBeenSet() const { return m_timeRangesHasBeenSet; }
88 inline void SetTimeRanges(const Aws::Vector<InstanceEventWindowTimeRangeRequest>& value) { m_timeRangesHasBeenSet = true; m_timeRanges = value; }
89 inline void SetTimeRanges(Aws::Vector<InstanceEventWindowTimeRangeRequest>&& value) { m_timeRangesHasBeenSet = true; m_timeRanges = std::move(value); }
92 inline ModifyInstanceEventWindowRequest& AddTimeRanges(const InstanceEventWindowTimeRangeRequest& value) { m_timeRangesHasBeenSet = true; m_timeRanges.push_back(value); return *this; }
93 inline ModifyInstanceEventWindowRequest& AddTimeRanges(InstanceEventWindowTimeRangeRequest&& value) { m_timeRangesHasBeenSet = true; m_timeRanges.push_back(std::move(value)); return *this; }
95
97
113 inline const Aws::String& GetCronExpression() const{ return m_cronExpression; }
114 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
115 inline void SetCronExpression(const Aws::String& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = value; }
116 inline void SetCronExpression(Aws::String&& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = std::move(value); }
117 inline void SetCronExpression(const char* value) { m_cronExpressionHasBeenSet = true; m_cronExpression.assign(value); }
119 inline ModifyInstanceEventWindowRequest& WithCronExpression(Aws::String&& value) { SetCronExpression(std::move(value)); return *this;}
120 inline ModifyInstanceEventWindowRequest& WithCronExpression(const char* value) { SetCronExpression(value); return *this;}
122 private:
123
124 bool m_dryRun;
125 bool m_dryRunHasBeenSet = false;
126
127 Aws::String m_name;
128 bool m_nameHasBeenSet = false;
129
130 Aws::String m_instanceEventWindowId;
131 bool m_instanceEventWindowIdHasBeenSet = false;
132
134 bool m_timeRangesHasBeenSet = false;
135
136 Aws::String m_cronExpression;
137 bool m_cronExpressionHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace EC2
142} // namespace Aws
ModifyInstanceEventWindowRequest & AddTimeRanges(InstanceEventWindowTimeRangeRequest &&value)
ModifyInstanceEventWindowRequest & WithInstanceEventWindowId(Aws::String &&value)
const Aws::Vector< InstanceEventWindowTimeRangeRequest > & GetTimeRanges() const
ModifyInstanceEventWindowRequest & AddTimeRanges(const InstanceEventWindowTimeRangeRequest &value)
ModifyInstanceEventWindowRequest & WithCronExpression(const Aws::String &value)
ModifyInstanceEventWindowRequest & WithName(Aws::String &&value)
ModifyInstanceEventWindowRequest & WithInstanceEventWindowId(const char *value)
ModifyInstanceEventWindowRequest & WithDryRun(bool value)
ModifyInstanceEventWindowRequest & WithName(const char *value)
ModifyInstanceEventWindowRequest & WithCronExpression(Aws::String &&value)
void SetTimeRanges(const Aws::Vector< InstanceEventWindowTimeRangeRequest > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
ModifyInstanceEventWindowRequest & WithCronExpression(const char *value)
ModifyInstanceEventWindowRequest & WithName(const Aws::String &value)
ModifyInstanceEventWindowRequest & WithInstanceEventWindowId(const Aws::String &value)
ModifyInstanceEventWindowRequest & WithTimeRanges(const Aws::Vector< InstanceEventWindowTimeRangeRequest > &value)
ModifyInstanceEventWindowRequest & WithTimeRanges(Aws::Vector< InstanceEventWindowTimeRangeRequest > &&value)
void SetTimeRanges(Aws::Vector< InstanceEventWindowTimeRangeRequest > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector