AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeScheduledActionsRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScaling_EXPORTS.h>
8#include <aws/autoscaling/AutoScalingRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/DateTime.h>
12#include <utility>
13
14namespace Aws
15{
16namespace AutoScaling
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_AUTOSCALING_API DescribeScheduledActionsRequest() = 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 "DescribeScheduledActions"; }
33
34 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
45 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
46 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
47 template<typename AutoScalingGroupNameT = Aws::String>
48 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value); }
49 template<typename AutoScalingGroupNameT = Aws::String>
50 DescribeScheduledActionsRequest& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) { SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value)); return *this;}
52
54
60 inline const Aws::Vector<Aws::String>& GetScheduledActionNames() const { return m_scheduledActionNames; }
61 inline bool ScheduledActionNamesHasBeenSet() const { return m_scheduledActionNamesHasBeenSet; }
62 template<typename ScheduledActionNamesT = Aws::Vector<Aws::String>>
63 void SetScheduledActionNames(ScheduledActionNamesT&& value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames = std::forward<ScheduledActionNamesT>(value); }
64 template<typename ScheduledActionNamesT = Aws::Vector<Aws::String>>
65 DescribeScheduledActionsRequest& WithScheduledActionNames(ScheduledActionNamesT&& value) { SetScheduledActionNames(std::forward<ScheduledActionNamesT>(value)); return *this;}
66 template<typename ScheduledActionNamesT = Aws::String>
67 DescribeScheduledActionsRequest& AddScheduledActionNames(ScheduledActionNamesT&& value) { m_scheduledActionNamesHasBeenSet = true; m_scheduledActionNames.emplace_back(std::forward<ScheduledActionNamesT>(value)); return *this; }
69
71
75 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
76 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
77 template<typename StartTimeT = Aws::Utils::DateTime>
78 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
79 template<typename StartTimeT = Aws::Utils::DateTime>
80 DescribeScheduledActionsRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
82
84
88 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
89 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
90 template<typename EndTimeT = Aws::Utils::DateTime>
91 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
92 template<typename EndTimeT = Aws::Utils::DateTime>
93 DescribeScheduledActionsRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
95
97
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 template<typename NextTokenT = Aws::String>
104 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
105 template<typename NextTokenT = Aws::String>
106 DescribeScheduledActionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
108
110
114 inline int GetMaxRecords() const { return m_maxRecords; }
115 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
116 inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
117 inline DescribeScheduledActionsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
119 private:
120
121 Aws::String m_autoScalingGroupName;
122 bool m_autoScalingGroupNameHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_scheduledActionNames;
125 bool m_scheduledActionNamesHasBeenSet = false;
126
127 Aws::Utils::DateTime m_startTime{};
128 bool m_startTimeHasBeenSet = false;
129
130 Aws::Utils::DateTime m_endTime{};
131 bool m_endTimeHasBeenSet = false;
132
133 Aws::String m_nextToken;
134 bool m_nextTokenHasBeenSet = false;
135
136 int m_maxRecords{0};
137 bool m_maxRecordsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace AutoScaling
142} // namespace Aws
DescribeScheduledActionsRequest & AddScheduledActionNames(ScheduledActionNamesT &&value)
DescribeScheduledActionsRequest & WithNextToken(NextTokenT &&value)
AWS_AUTOSCALING_API DescribeScheduledActionsRequest()=default
DescribeScheduledActionsRequest & WithScheduledActionNames(ScheduledActionNamesT &&value)
DescribeScheduledActionsRequest & WithEndTime(EndTimeT &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
DescribeScheduledActionsRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
DescribeScheduledActionsRequest & WithStartTime(StartTimeT &&value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector