AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DescribeLaunchConfigurationsRequest.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 DescribeLaunchConfigurationsRequest() = 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 "DescribeLaunchConfigurations"; }
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
42 inline const Aws::Vector<Aws::String>& GetLaunchConfigurationNames() const { return m_launchConfigurationNames; }
43 inline bool LaunchConfigurationNamesHasBeenSet() const { return m_launchConfigurationNamesHasBeenSet; }
44 template <typename LaunchConfigurationNamesT = Aws::Vector<Aws::String>>
45 void SetLaunchConfigurationNames(LaunchConfigurationNamesT&& value) {
46 m_launchConfigurationNamesHasBeenSet = true;
47 m_launchConfigurationNames = std::forward<LaunchConfigurationNamesT>(value);
48 }
49 template <typename LaunchConfigurationNamesT = Aws::Vector<Aws::String>>
51 SetLaunchConfigurationNames(std::forward<LaunchConfigurationNamesT>(value));
52 return *this;
53 }
54 template <typename LaunchConfigurationNamesT = Aws::String>
56 m_launchConfigurationNamesHasBeenSet = true;
57 m_launchConfigurationNames.emplace_back(std::forward<LaunchConfigurationNamesT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::String& GetNextToken() const { return m_nextToken; }
68 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
69 template <typename NextTokenT = Aws::String>
70 void SetNextToken(NextTokenT&& value) {
71 m_nextTokenHasBeenSet = true;
72 m_nextToken = std::forward<NextTokenT>(value);
73 }
74 template <typename NextTokenT = Aws::String>
76 SetNextToken(std::forward<NextTokenT>(value));
77 return *this;
78 }
80
82
86 inline int GetMaxRecords() const { return m_maxRecords; }
87 inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
88 inline void SetMaxRecords(int value) {
89 m_maxRecordsHasBeenSet = true;
90 m_maxRecords = value;
91 }
93 SetMaxRecords(value);
94 return *this;
95 }
97 private:
98 Aws::Vector<Aws::String> m_launchConfigurationNames;
99
100 Aws::String m_nextToken;
101
102 int m_maxRecords{0};
103 bool m_launchConfigurationNamesHasBeenSet = false;
104 bool m_nextTokenHasBeenSet = false;
105 bool m_maxRecordsHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace AutoScaling
110} // namespace Aws
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeLaunchConfigurationsRequest & WithNextToken(NextTokenT &&value)
DescribeLaunchConfigurationsRequest & WithLaunchConfigurationNames(LaunchConfigurationNamesT &&value)
AWS_AUTOSCALING_API DescribeLaunchConfigurationsRequest()=default
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
DescribeLaunchConfigurationsRequest & AddLaunchConfigurationNames(LaunchConfigurationNamesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector