AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateInstanceEventWindowRequest.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#include <aws/ec2/model/TagSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EC2 {
18namespace Model {
19
23 public:
24 AWS_EC2_API CreateInstanceEventWindowRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateInstanceEventWindow"; }
31
32 AWS_EC2_API Aws::String SerializePayload() const override;
33
34 protected:
35 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
36
37 public:
39
45 inline bool GetDryRun() const { return m_dryRun; }
46 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
47 inline void SetDryRun(bool value) {
48 m_dryRunHasBeenSet = true;
49 m_dryRun = value;
50 }
52 SetDryRun(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<InstanceEventWindowTimeRangeRequest>& GetTimeRanges() const { return m_timeRanges; }
81 inline bool TimeRangesHasBeenSet() const { return m_timeRangesHasBeenSet; }
82 template <typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRangeRequest>>
83 void SetTimeRanges(TimeRangesT&& value) {
84 m_timeRangesHasBeenSet = true;
85 m_timeRanges = std::forward<TimeRangesT>(value);
86 }
87 template <typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRangeRequest>>
89 SetTimeRanges(std::forward<TimeRangesT>(value));
90 return *this;
91 }
92 template <typename TimeRangesT = InstanceEventWindowTimeRangeRequest>
94 m_timeRangesHasBeenSet = true;
95 m_timeRanges.emplace_back(std::forward<TimeRangesT>(value));
96 return *this;
97 }
99
101
117 inline const Aws::String& GetCronExpression() const { return m_cronExpression; }
118 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
119 template <typename CronExpressionT = Aws::String>
120 void SetCronExpression(CronExpressionT&& value) {
121 m_cronExpressionHasBeenSet = true;
122 m_cronExpression = std::forward<CronExpressionT>(value);
123 }
124 template <typename CronExpressionT = Aws::String>
126 SetCronExpression(std::forward<CronExpressionT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
136 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
137 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
138 void SetTagSpecifications(TagSpecificationsT&& value) {
139 m_tagSpecificationsHasBeenSet = true;
140 m_tagSpecifications = std::forward<TagSpecificationsT>(value);
141 }
142 template <typename TagSpecificationsT = Aws::Vector<TagSpecification>>
144 SetTagSpecifications(std::forward<TagSpecificationsT>(value));
145 return *this;
146 }
147 template <typename TagSpecificationsT = TagSpecification>
149 m_tagSpecificationsHasBeenSet = true;
150 m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value));
151 return *this;
152 }
154 private:
155 bool m_dryRun{false};
156
157 Aws::String m_name;
158
160
161 Aws::String m_cronExpression;
162
163 Aws::Vector<TagSpecification> m_tagSpecifications;
164 bool m_dryRunHasBeenSet = false;
165 bool m_nameHasBeenSet = false;
166 bool m_timeRangesHasBeenSet = false;
167 bool m_cronExpressionHasBeenSet = false;
168 bool m_tagSpecificationsHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace EC2
173} // namespace Aws
CreateInstanceEventWindowRequest & AddTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateInstanceEventWindowRequest & WithTagSpecifications(TagSpecificationsT &&value)
const Aws::Vector< InstanceEventWindowTimeRangeRequest > & GetTimeRanges() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateInstanceEventWindowRequest & WithCronExpression(CronExpressionT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateInstanceEventWindowRequest & AddTimeRanges(TimeRangesT &&value)
CreateInstanceEventWindowRequest & WithName(NameT &&value)
CreateInstanceEventWindowRequest & WithDryRun(bool value)
CreateInstanceEventWindowRequest & WithTimeRanges(TimeRangesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector