AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
26 AWS_EC2_API ModifyInstanceEventWindowRequest() = default;
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 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 ModifyInstanceEventWindowRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetInstanceEventWindowId() const { return m_instanceEventWindowId; }
71 inline bool InstanceEventWindowIdHasBeenSet() const { return m_instanceEventWindowIdHasBeenSet; }
72 template<typename InstanceEventWindowIdT = Aws::String>
73 void SetInstanceEventWindowId(InstanceEventWindowIdT&& value) { m_instanceEventWindowIdHasBeenSet = true; m_instanceEventWindowId = std::forward<InstanceEventWindowIdT>(value); }
74 template<typename InstanceEventWindowIdT = Aws::String>
75 ModifyInstanceEventWindowRequest& WithInstanceEventWindowId(InstanceEventWindowIdT&& value) { SetInstanceEventWindowId(std::forward<InstanceEventWindowIdT>(value)); return *this;}
77
79
82 inline const Aws::Vector<InstanceEventWindowTimeRangeRequest>& GetTimeRanges() const { return m_timeRanges; }
83 inline bool TimeRangesHasBeenSet() const { return m_timeRangesHasBeenSet; }
84 template<typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRangeRequest>>
85 void SetTimeRanges(TimeRangesT&& value) { m_timeRangesHasBeenSet = true; m_timeRanges = std::forward<TimeRangesT>(value); }
86 template<typename TimeRangesT = Aws::Vector<InstanceEventWindowTimeRangeRequest>>
87 ModifyInstanceEventWindowRequest& WithTimeRanges(TimeRangesT&& value) { SetTimeRanges(std::forward<TimeRangesT>(value)); return *this;}
88 template<typename TimeRangesT = InstanceEventWindowTimeRangeRequest>
89 ModifyInstanceEventWindowRequest& AddTimeRanges(TimeRangesT&& value) { m_timeRangesHasBeenSet = true; m_timeRanges.emplace_back(std::forward<TimeRangesT>(value)); return *this; }
91
93
109 inline const Aws::String& GetCronExpression() const { return m_cronExpression; }
110 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
111 template<typename CronExpressionT = Aws::String>
112 void SetCronExpression(CronExpressionT&& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = std::forward<CronExpressionT>(value); }
113 template<typename CronExpressionT = Aws::String>
114 ModifyInstanceEventWindowRequest& WithCronExpression(CronExpressionT&& value) { SetCronExpression(std::forward<CronExpressionT>(value)); return *this;}
116 private:
117
118 bool m_dryRun{false};
119 bool m_dryRunHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 Aws::String m_instanceEventWindowId;
125 bool m_instanceEventWindowIdHasBeenSet = false;
126
128 bool m_timeRangesHasBeenSet = false;
129
130 Aws::String m_cronExpression;
131 bool m_cronExpressionHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace EC2
136} // 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