AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
62 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64 inline CreateInstanceEventWindowRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 inline CreateInstanceEventWindowRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
66 inline CreateInstanceEventWindowRequest& WithName(const char* value) { SetName(value); return *this;}
68
70
74 inline const Aws::Vector<InstanceEventWindowTimeRangeRequest>& GetTimeRanges() const{ return m_timeRanges; }
75 inline bool TimeRangesHasBeenSet() const { return m_timeRangesHasBeenSet; }
76 inline void SetTimeRanges(const Aws::Vector<InstanceEventWindowTimeRangeRequest>& value) { m_timeRangesHasBeenSet = true; m_timeRanges = value; }
77 inline void SetTimeRanges(Aws::Vector<InstanceEventWindowTimeRangeRequest>&& value) { m_timeRangesHasBeenSet = true; m_timeRanges = std::move(value); }
80 inline CreateInstanceEventWindowRequest& AddTimeRanges(const InstanceEventWindowTimeRangeRequest& value) { m_timeRangesHasBeenSet = true; m_timeRanges.push_back(value); return *this; }
81 inline CreateInstanceEventWindowRequest& AddTimeRanges(InstanceEventWindowTimeRangeRequest&& value) { m_timeRangesHasBeenSet = true; m_timeRanges.push_back(std::move(value)); return *this; }
83
85
101 inline const Aws::String& GetCronExpression() const{ return m_cronExpression; }
102 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
103 inline void SetCronExpression(const Aws::String& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = value; }
104 inline void SetCronExpression(Aws::String&& value) { m_cronExpressionHasBeenSet = true; m_cronExpression = std::move(value); }
105 inline void SetCronExpression(const char* value) { m_cronExpressionHasBeenSet = true; m_cronExpression.assign(value); }
107 inline CreateInstanceEventWindowRequest& WithCronExpression(Aws::String&& value) { SetCronExpression(std::move(value)); return *this;}
108 inline CreateInstanceEventWindowRequest& WithCronExpression(const char* value) { SetCronExpression(value); return *this;}
110
112
115 inline const Aws::Vector<TagSpecification>& GetTagSpecifications() const{ return m_tagSpecifications; }
116 inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; }
117 inline void SetTagSpecifications(const Aws::Vector<TagSpecification>& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; }
118 inline void SetTagSpecifications(Aws::Vector<TagSpecification>&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); }
121 inline CreateInstanceEventWindowRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; }
122 inline CreateInstanceEventWindowRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; }
124 private:
125
126 bool m_dryRun;
127 bool m_dryRunHasBeenSet = false;
128
129 Aws::String m_name;
130 bool m_nameHasBeenSet = false;
131
133 bool m_timeRangesHasBeenSet = false;
134
135 Aws::String m_cronExpression;
136 bool m_cronExpressionHasBeenSet = false;
137
138 Aws::Vector<TagSpecification> m_tagSpecifications;
139 bool m_tagSpecificationsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace EC2
144} // namespace Aws
CreateInstanceEventWindowRequest & AddTagSpecifications(TagSpecification &&value)
void SetTimeRanges(const Aws::Vector< InstanceEventWindowTimeRangeRequest > &value)
CreateInstanceEventWindowRequest & WithCronExpression(const Aws::String &value)
CreateInstanceEventWindowRequest & WithCronExpression(Aws::String &&value)
CreateInstanceEventWindowRequest & WithName(const Aws::String &value)
const Aws::Vector< TagSpecification > & GetTagSpecifications() const
CreateInstanceEventWindowRequest & WithTimeRanges(Aws::Vector< InstanceEventWindowTimeRangeRequest > &&value)
CreateInstanceEventWindowRequest & AddTimeRanges(InstanceEventWindowTimeRangeRequest &&value)
CreateInstanceEventWindowRequest & WithTagSpecifications(const Aws::Vector< TagSpecification > &value)
CreateInstanceEventWindowRequest & AddTagSpecifications(const TagSpecification &value)
const Aws::Vector< InstanceEventWindowTimeRangeRequest > & GetTimeRanges() const
CreateInstanceEventWindowRequest & WithCronExpression(const char *value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateInstanceEventWindowRequest & WithName(const char *value)
CreateInstanceEventWindowRequest & WithName(Aws::String &&value)
void SetTimeRanges(Aws::Vector< InstanceEventWindowTimeRangeRequest > &&value)
AWS_EC2_API Aws::String SerializePayload() const override
CreateInstanceEventWindowRequest & WithTagSpecifications(Aws::Vector< TagSpecification > &&value)
CreateInstanceEventWindowRequest & WithDryRun(bool value)
CreateInstanceEventWindowRequest & WithTimeRanges(const Aws::Vector< InstanceEventWindowTimeRangeRequest > &value)
CreateInstanceEventWindowRequest & AddTimeRanges(const InstanceEventWindowTimeRangeRequest &value)
void SetTagSpecifications(const Aws::Vector< TagSpecification > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector