AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
DescribeScalingActivitiesRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScalingRequest.h>
8#include <aws/autoscaling/AutoScaling_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace AutoScaling {
16namespace Model {
17
21 public:
22 AWS_AUTOSCALING_API DescribeScalingActivitiesRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DescribeScalingActivities"; }
29
30 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
44 inline const Aws::Vector<Aws::String>& GetActivityIds() const { return m_activityIds; }
45 inline bool ActivityIdsHasBeenSet() const { return m_activityIdsHasBeenSet; }
46 template <typename ActivityIdsT = Aws::Vector<Aws::String>>
47 void SetActivityIds(ActivityIdsT&& value) {
48 m_activityIdsHasBeenSet = true;
49 m_activityIds = std::forward<ActivityIdsT>(value);
50 }
51 template <typename ActivityIdsT = Aws::Vector<Aws::String>>
53 SetActivityIds(std::forward<ActivityIdsT>(value));
54 return *this;
55 }
56 template <typename ActivityIdsT = Aws::String>
58 m_activityIdsHasBeenSet = true;
59 m_activityIds.emplace_back(std::forward<ActivityIdsT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
69 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
70 template <typename AutoScalingGroupNameT = Aws::String>
71 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
72 m_autoScalingGroupNameHasBeenSet = true;
73 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
74 }
75 template <typename AutoScalingGroupNameT = Aws::String>
77 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
78 return *this;
79 }
81
83
87 inline bool GetIncludeDeletedGroups() const { return m_includeDeletedGroups; }
88 inline bool IncludeDeletedGroupsHasBeenSet() const { return m_includeDeletedGroupsHasBeenSet; }
89 inline void SetIncludeDeletedGroups(bool value) {
90 m_includeDeletedGroupsHasBeenSet = true;
91 m_includeDeletedGroups = value;
92 }
95 return *this;
96 }
98
100
104 inline int GetMaxRecords() const { return m_maxRecords; }
105 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
106 inline void SetMaxRecords(int value) {
107 m_maxRecordsHasBeenSet = true;
108 m_maxRecords = value;
109 }
111 SetMaxRecords(value);
112 return *this;
113 }
115
117
121 inline const Aws::String& GetNextToken() const { return m_nextToken; }
122 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
123 template <typename NextTokenT = Aws::String>
124 void SetNextToken(NextTokenT&& value) {
125 m_nextTokenHasBeenSet = true;
126 m_nextToken = std::forward<NextTokenT>(value);
127 }
128 template <typename NextTokenT = Aws::String>
130 SetNextToken(std::forward<NextTokenT>(value));
131 return *this;
132 }
134 private:
135 Aws::Vector<Aws::String> m_activityIds;
136 bool m_activityIdsHasBeenSet = false;
137
138 Aws::String m_autoScalingGroupName;
139 bool m_autoScalingGroupNameHasBeenSet = false;
140
141 bool m_includeDeletedGroups{false};
142 bool m_includeDeletedGroupsHasBeenSet = false;
143
144 int m_maxRecords{0};
145 bool m_maxRecordsHasBeenSet = false;
146
147 Aws::String m_nextToken;
148 bool m_nextTokenHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace AutoScaling
153} // namespace Aws
AWS_AUTOSCALING_API DescribeScalingActivitiesRequest()=default
DescribeScalingActivitiesRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
DescribeScalingActivitiesRequest & WithActivityIds(ActivityIdsT &&value)
DescribeScalingActivitiesRequest & WithIncludeDeletedGroups(bool value)
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeScalingActivitiesRequest & AddActivityIds(ActivityIdsT &&value)
DescribeScalingActivitiesRequest & WithNextToken(NextTokenT &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector