AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ModifyInstanceEventWindowRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/InstanceEventWindowTimeRangeRequest.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API ModifyInstanceEventWindowRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ModifyInstanceEventWindow"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
46 inline void SetDryRun(bool value) {
47 m_dryRunHasBeenSet = true;
48 m_dryRun = value;
49 }
51 SetDryRun(value);
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetInstanceEventWindowId() const { return m_instanceEventWindowId; }
79 inline bool InstanceEventWindowIdHasBeenSet() const { return m_instanceEventWindowIdHasBeenSet; }
80 template <typename InstanceEventWindowIdT = Aws::String>
81 void SetInstanceEventWindowId(InstanceEventWindowIdT&& value) {
82 m_instanceEventWindowIdHasBeenSet = true;
83 m_instanceEventWindowId = std::forward<InstanceEventWindowIdT>(value);
84 }
85 template <typename InstanceEventWindowIdT = Aws::String>
87 SetInstanceEventWindowId(std::forward<InstanceEventWindowIdT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<InstanceEventWindowTimeRangeRequest>& GetTimeRanges() const { return m_timeRanges; }
97 inline bool TimeRangesHasBeenSet() const { return m_timeRangesHasBeenSet; }
98 template <typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRangeRequest>>
99 void SetTimeRanges(TimeRangesT&& value) {
100 m_timeRangesHasBeenSet = true;
101 m_timeRanges = std::forward<TimeRangesT>(value);
102 }
103 template <typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRangeRequest>>
105 SetTimeRanges(std::forward<TimeRangesT>(value));
106 return *this;
107 }
108 template <typename TimeRangesT = InstanceEventWindowTimeRangeRequest>
110 m_timeRangesHasBeenSet = true;
111 m_timeRanges.emplace_back(std::forward<TimeRangesT>(value));
112 return *this;
113 }
115
117
133 inline const Aws::String& GetCronExpression() const { return m_cronExpression; }
134 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
135 template <typename CronExpressionT = Aws::String>
136 void SetCronExpression(CronExpressionT&& value) {
137 m_cronExpressionHasBeenSet = true;
138 m_cronExpression = std::forward<CronExpressionT>(value);
139 }
140 template <typename CronExpressionT = Aws::String>
142 SetCronExpression(std::forward<CronExpressionT>(value));
143 return *this;
144 }
146 private:
147 bool m_dryRun{false};
148
149 Aws::String m_name;
150
151 Aws::String m_instanceEventWindowId;
152
154
155 Aws::String m_cronExpression;
156 bool m_dryRunHasBeenSet = false;
157 bool m_nameHasBeenSet = false;
158 bool m_instanceEventWindowIdHasBeenSet = false;
159 bool m_timeRangesHasBeenSet = false;
160 bool m_cronExpressionHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace EC2
165} // namespace Aws
const Aws::Vector< InstanceEventWindowTimeRangeRequest > & GetTimeRanges() const
ModifyInstanceEventWindowRequest & WithTimeRanges(TimeRangesT &&value)
ModifyInstanceEventWindowRequest & WithDryRun(bool value)
ModifyInstanceEventWindowRequest & AddTimeRanges(TimeRangesT &&value)
ModifyInstanceEventWindowRequest & WithName(NameT &&value)
ModifyInstanceEventWindowRequest & WithCronExpression(CronExpressionT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_EC2_API Aws::String SerializePayload() const override
ModifyInstanceEventWindowRequest & WithInstanceEventWindowId(InstanceEventWindowIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector