AWS SDK for C++  1.8.71
AWS SDK for C++
DescribeLaunchConfigurationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AutoScaling
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "DescribeLaunchConfigurations"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
44  inline const Aws::Vector<Aws::String>& GetLaunchConfigurationNames() const{ return m_launchConfigurationNames; }
45 
50  inline bool LaunchConfigurationNamesHasBeenSet() const { return m_launchConfigurationNamesHasBeenSet; }
51 
56  inline void SetLaunchConfigurationNames(const Aws::Vector<Aws::String>& value) { m_launchConfigurationNamesHasBeenSet = true; m_launchConfigurationNames = value; }
57 
62  inline void SetLaunchConfigurationNames(Aws::Vector<Aws::String>&& value) { m_launchConfigurationNamesHasBeenSet = true; m_launchConfigurationNames = std::move(value); }
63 
68  inline DescribeLaunchConfigurationsRequest& WithLaunchConfigurationNames(const Aws::Vector<Aws::String>& value) { SetLaunchConfigurationNames(value); return *this;}
69 
74  inline DescribeLaunchConfigurationsRequest& WithLaunchConfigurationNames(Aws::Vector<Aws::String>&& value) { SetLaunchConfigurationNames(std::move(value)); return *this;}
75 
80  inline DescribeLaunchConfigurationsRequest& AddLaunchConfigurationNames(const Aws::String& value) { m_launchConfigurationNamesHasBeenSet = true; m_launchConfigurationNames.push_back(value); return *this; }
81 
86  inline DescribeLaunchConfigurationsRequest& AddLaunchConfigurationNames(Aws::String&& value) { m_launchConfigurationNamesHasBeenSet = true; m_launchConfigurationNames.push_back(std::move(value)); return *this; }
87 
92  inline DescribeLaunchConfigurationsRequest& AddLaunchConfigurationNames(const char* value) { m_launchConfigurationNamesHasBeenSet = true; m_launchConfigurationNames.push_back(value); return *this; }
93 
94 
99  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
100 
105  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
106 
111  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
112 
117  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
118 
123  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
124 
129  inline DescribeLaunchConfigurationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
130 
135  inline DescribeLaunchConfigurationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
136 
141  inline DescribeLaunchConfigurationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
142 
143 
148  inline int GetMaxRecords() const{ return m_maxRecords; }
149 
154  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
155 
160  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
161 
166  inline DescribeLaunchConfigurationsRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
167 
168  private:
169 
170  Aws::Vector<Aws::String> m_launchConfigurationNames;
171  bool m_launchConfigurationNamesHasBeenSet;
172 
173  Aws::String m_nextToken;
174  bool m_nextTokenHasBeenSet;
175 
176  int m_maxRecords;
177  bool m_maxRecordsHasBeenSet;
178  };
179 
180 } // namespace Model
181 } // namespace AutoScaling
182 } // namespace Aws
DescribeLaunchConfigurationsRequest & AddLaunchConfigurationNames(const Aws::String &value)
DescribeLaunchConfigurationsRequest & AddLaunchConfigurationNames(Aws::String &&value)
DescribeLaunchConfigurationsRequest & WithNextToken(const char *value)
DescribeLaunchConfigurationsRequest & WithNextToken(const Aws::String &value)
DescribeLaunchConfigurationsRequest & WithNextToken(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
DescribeLaunchConfigurationsRequest & WithLaunchConfigurationNames(Aws::Vector< Aws::String > &&value)
DescribeLaunchConfigurationsRequest & WithLaunchConfigurationNames(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeLaunchConfigurationsRequest & AddLaunchConfigurationNames(const char *value)
#define AWS_AUTOSCALING_API