AWS SDK for C++  1.8.71
AWS SDK for C++
GetGroupsForCapacityReservationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetGroupsForCapacityReservation"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetCapacityReservationId() const{ return m_capacityReservationId; }
43 
47  inline bool CapacityReservationIdHasBeenSet() const { return m_capacityReservationIdHasBeenSet; }
48 
52  inline void SetCapacityReservationId(const Aws::String& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = value; }
53 
57  inline void SetCapacityReservationId(Aws::String&& value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId = std::move(value); }
58 
62  inline void SetCapacityReservationId(const char* value) { m_capacityReservationIdHasBeenSet = true; m_capacityReservationId.assign(value); }
63 
67  inline GetGroupsForCapacityReservationRequest& WithCapacityReservationId(const Aws::String& value) { SetCapacityReservationId(value); return *this;}
68 
72  inline GetGroupsForCapacityReservationRequest& WithCapacityReservationId(Aws::String&& value) { SetCapacityReservationId(std::move(value)); return *this;}
73 
77  inline GetGroupsForCapacityReservationRequest& WithCapacityReservationId(const char* value) { SetCapacityReservationId(value); return *this;}
78 
79 
83  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
84 
88  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
89 
93  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
94 
98  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
99 
103  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
104 
108  inline GetGroupsForCapacityReservationRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
109 
113  inline GetGroupsForCapacityReservationRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
114 
118  inline GetGroupsForCapacityReservationRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
119 
120 
128  inline int GetMaxResults() const{ return m_maxResults; }
129 
137  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
138 
146  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
147 
155  inline GetGroupsForCapacityReservationRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
156 
157 
164  inline bool GetDryRun() const{ return m_dryRun; }
165 
172  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
173 
180  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
181 
188  inline GetGroupsForCapacityReservationRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
189 
190  private:
191 
192  Aws::String m_capacityReservationId;
193  bool m_capacityReservationIdHasBeenSet;
194 
195  Aws::String m_nextToken;
196  bool m_nextTokenHasBeenSet;
197 
198  int m_maxResults;
199  bool m_maxResultsHasBeenSet;
200 
201  bool m_dryRun;
202  bool m_dryRunHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace EC2
207 } // namespace Aws
GetGroupsForCapacityReservationRequest & WithCapacityReservationId(Aws::String &&value)
GetGroupsForCapacityReservationRequest & WithNextToken(const Aws::String &value)
GetGroupsForCapacityReservationRequest & WithDryRun(bool value)
GetGroupsForCapacityReservationRequest & WithMaxResults(int value)
GetGroupsForCapacityReservationRequest & WithCapacityReservationId(const Aws::String &value)
GetGroupsForCapacityReservationRequest & WithCapacityReservationId(const char *value)
GetGroupsForCapacityReservationRequest & WithNextToken(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
GetGroupsForCapacityReservationRequest & WithNextToken(Aws::String &&value)