AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
DescribeInstanceRefreshesRequest.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 DescribeInstanceRefreshesRequest() = 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 "DescribeInstanceRefreshes"; }
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
40 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
41 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
42 template <typename AutoScalingGroupNameT = Aws::String>
43 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
44 m_autoScalingGroupNameHasBeenSet = true;
45 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
46 }
47 template <typename AutoScalingGroupNameT = Aws::String>
49 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<Aws::String>& GetInstanceRefreshIds() const { return m_instanceRefreshIds; }
59 inline bool InstanceRefreshIdsHasBeenSet() const { return m_instanceRefreshIdsHasBeenSet; }
60 template <typename InstanceRefreshIdsT = Aws::Vector<Aws::String>>
61 void SetInstanceRefreshIds(InstanceRefreshIdsT&& value) {
62 m_instanceRefreshIdsHasBeenSet = true;
63 m_instanceRefreshIds = std::forward<InstanceRefreshIdsT>(value);
64 }
65 template <typename InstanceRefreshIdsT = Aws::Vector<Aws::String>>
67 SetInstanceRefreshIds(std::forward<InstanceRefreshIdsT>(value));
68 return *this;
69 }
70 template <typename InstanceRefreshIdsT = Aws::String>
72 m_instanceRefreshIdsHasBeenSet = true;
73 m_instanceRefreshIds.emplace_back(std::forward<InstanceRefreshIdsT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::String& GetNextToken() const { return m_nextToken; }
84 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 template <typename NextTokenT = Aws::String>
86 void SetNextToken(NextTokenT&& value) {
87 m_nextTokenHasBeenSet = true;
88 m_nextToken = std::forward<NextTokenT>(value);
89 }
90 template <typename NextTokenT = Aws::String>
92 SetNextToken(std::forward<NextTokenT>(value));
93 return *this;
94 }
96
98
102 inline int GetMaxRecords() const { return m_maxRecords; }
103 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
104 inline void SetMaxRecords(int value) {
105 m_maxRecordsHasBeenSet = true;
106 m_maxRecords = value;
107 }
109 SetMaxRecords(value);
110 return *this;
111 }
113 private:
114 Aws::String m_autoScalingGroupName;
115 bool m_autoScalingGroupNameHasBeenSet = false;
116
117 Aws::Vector<Aws::String> m_instanceRefreshIds;
118 bool m_instanceRefreshIdsHasBeenSet = false;
119
120 Aws::String m_nextToken;
121 bool m_nextTokenHasBeenSet = false;
122
123 int m_maxRecords{0};
124 bool m_maxRecordsHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace AutoScaling
129} // namespace Aws
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
AWS_AUTOSCALING_API DescribeInstanceRefreshesRequest()=default
DescribeInstanceRefreshesRequest & WithInstanceRefreshIds(InstanceRefreshIdsT &&value)
DescribeInstanceRefreshesRequest & WithNextToken(NextTokenT &&value)
DescribeInstanceRefreshesRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
DescribeInstanceRefreshesRequest & AddInstanceRefreshIds(InstanceRefreshIdsT &&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