AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateInstanceEventWindowRequest.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 <aws/ec2/model/TagSpecification.h>
13#include <utility>
14
15namespace Aws
16{
17namespace EC2
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EC2_API CreateInstanceEventWindowRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateInstanceEventWindow"; }
34
35 AWS_EC2_API Aws::String SerializePayload() const override;
36
37 protected:
38 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
39
40 public:
41
43
49 inline bool GetDryRun() const { return m_dryRun; }
50 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
51 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
52 inline CreateInstanceEventWindowRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CreateInstanceEventWindowRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
72 inline const Aws::Vector<InstanceEventWindowTimeRangeRequest>& GetTimeRanges() const { return m_timeRanges; }
73 inline bool TimeRangesHasBeenSet() const { return m_timeRangesHasBeenSet; }
74 template<typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRangeRequest>>
75 void SetTimeRanges(TimeRangesT&& value) { m_timeRangesHasBeenSet = true; m_timeRanges = std::forward<TimeRangesT>(value); }
76 template<typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRangeRequest>>
77 CreateInstanceEventWindowRequest& WithTimeRanges(TimeRangesT&& value) { SetTimeRanges(std::forward<TimeRangesT>(value)); return *this;}
78 template<typename TimeRangesT = InstanceEventWindowTimeRangeRequest>
79 CreateInstanceEventWindowRequest& AddTimeRanges(TimeRangesT&& value) { m_timeRangesHasBeenSet = true; m_timeRanges.emplace_back(std::forward<TimeRangesT>(value)); return *this; }
81
83
99 inline const Aws::String& GetCronExpression() const { return m_cronExpression; }
100 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
101 template<typename CronExpressionT = Aws::String>
102 void SetCronExpression(CronExpressionT&& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = std::forward<CronExpressionT>(value); }
103 template<typename CronExpressionT = Aws::String>
104 CreateInstanceEventWindowRequest& WithCronExpression(CronExpressionT&& value) { SetCronExpression(std::forward<CronExpressionT>(value)); return *this;}
106
108
111 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const { return m_tagSpecifications; }
112 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
113 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
114 void SetTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::forward<TagSpecificationsT>(value); }
115 template<typename TagSpecificationsT = Aws::Vector<TagSpecification>>
116 CreateInstanceEventWindowRequest& WithTagSpecifications(TagSpecificationsT&& value) { SetTagSpecifications(std::forward<TagSpecificationsT>(value)); return *this;}
117 template<typename TagSpecificationsT = TagSpecification>
118 CreateInstanceEventWindowRequest& AddTagSpecifications(TagSpecificationsT&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.emplace_back(std::forward<TagSpecificationsT>(value)); return *this; }
120 private:
121
122 bool m_dryRun{false};
123 bool m_dryRunHasBeenSet = false;
124
125 Aws::String m_name;
126 bool m_nameHasBeenSet = false;
127
129 bool m_timeRangesHasBeenSet = false;
130
131 Aws::String m_cronExpression;
132 bool m_cronExpressionHasBeenSet = false;
133
134 Aws::Vector<TagSpecification> m_tagSpecifications;
135 bool m_tagSpecificationsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace EC2
140} // 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