AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeCapacityBlockOfferingsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace 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 "DescribeCapacityBlockOfferings"; }
32
33 AWS_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
47 inline bool GetDryRun() const { return m_dryRun; }
48 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
49 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
50 inline DescribeCapacityBlockOfferingsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
52
54
58 inline const Aws::String& GetInstanceType() const { return m_instanceType; }
59 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
60 template<typename InstanceTypeT = Aws::String>
61 void SetInstanceType(InstanceTypeT&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::forward<InstanceTypeT>(value); }
62 template<typename InstanceTypeT = Aws::String>
63 DescribeCapacityBlockOfferingsRequest& WithInstanceType(InstanceTypeT&& value) { SetInstanceType(std::forward<InstanceTypeT>(value)); return *this;}
65
67
72 inline int GetInstanceCount() const { return m_instanceCount; }
73 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
74 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
77
79
82 inline const Aws::Utils::DateTime& GetStartDateRange() const { return m_startDateRange; }
83 inline bool StartDateRangeHasBeenSet() const { return m_startDateRangeHasBeenSet; }
84 template<typename StartDateRangeT = Aws::Utils::DateTime>
85 void SetStartDateRange(StartDateRangeT&& value) { m_startDateRangeHasBeenSet = true; m_startDateRange = std::forward<StartDateRangeT>(value); }
86 template<typename StartDateRangeT = Aws::Utils::DateTime>
87 DescribeCapacityBlockOfferingsRequest& WithStartDateRange(StartDateRangeT&& value) { SetStartDateRange(std::forward<StartDateRangeT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetEndDateRange() const { return m_endDateRange; }
95 inline bool EndDateRangeHasBeenSet() const { return m_endDateRangeHasBeenSet; }
96 template<typename EndDateRangeT = Aws::Utils::DateTime>
97 void SetEndDateRange(EndDateRangeT&& value) { m_endDateRangeHasBeenSet = true; m_endDateRange = std::forward<EndDateRangeT>(value); }
98 template<typename EndDateRangeT = Aws::Utils::DateTime>
99 DescribeCapacityBlockOfferingsRequest& WithEndDateRange(EndDateRangeT&& value) { SetEndDateRange(std::forward<EndDateRangeT>(value)); return *this;}
101
103
108 inline int GetCapacityDurationHours() const { return m_capacityDurationHours; }
109 inline bool CapacityDurationHoursHasBeenSet() const { return m_capacityDurationHoursHasBeenSet; }
110 inline void SetCapacityDurationHours(int value) { m_capacityDurationHoursHasBeenSet = true; m_capacityDurationHours = value; }
113
115
118 inline const Aws::String& GetNextToken() const { return m_nextToken; }
119 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
120 template<typename NextTokenT = Aws::String>
121 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
122 template<typename NextTokenT = Aws::String>
123 DescribeCapacityBlockOfferingsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
125
127
133 inline int GetMaxResults() const { return m_maxResults; }
134 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
135 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
136 inline DescribeCapacityBlockOfferingsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
138
140
143 inline const Aws::String& GetUltraserverType() const { return m_ultraserverType; }
144 inline bool UltraserverTypeHasBeenSet() const { return m_ultraserverTypeHasBeenSet; }
145 template<typename UltraserverTypeT = Aws::String>
146 void SetUltraserverType(UltraserverTypeT&& value) { m_ultraserverTypeHasBeenSet = true; m_ultraserverType = std::forward<UltraserverTypeT>(value); }
147 template<typename UltraserverTypeT = Aws::String>
148 DescribeCapacityBlockOfferingsRequest& WithUltraserverType(UltraserverTypeT&& value) { SetUltraserverType(std::forward<UltraserverTypeT>(value)); return *this;}
150
152
155 inline int GetUltraserverCount() const { return m_ultraserverCount; }
156 inline bool UltraserverCountHasBeenSet() const { return m_ultraserverCountHasBeenSet; }
157 inline void SetUltraserverCount(int value) { m_ultraserverCountHasBeenSet = true; m_ultraserverCount = value; }
160 private:
161
162 bool m_dryRun{false};
163 bool m_dryRunHasBeenSet = false;
164
165 Aws::String m_instanceType;
166 bool m_instanceTypeHasBeenSet = false;
167
168 int m_instanceCount{0};
169 bool m_instanceCountHasBeenSet = false;
170
171 Aws::Utils::DateTime m_startDateRange{};
172 bool m_startDateRangeHasBeenSet = false;
173
174 Aws::Utils::DateTime m_endDateRange{};
175 bool m_endDateRangeHasBeenSet = false;
176
177 int m_capacityDurationHours{0};
178 bool m_capacityDurationHoursHasBeenSet = false;
179
180 Aws::String m_nextToken;
181 bool m_nextTokenHasBeenSet = false;
182
183 int m_maxResults{0};
184 bool m_maxResultsHasBeenSet = false;
185
186 Aws::String m_ultraserverType;
187 bool m_ultraserverTypeHasBeenSet = false;
188
189 int m_ultraserverCount{0};
190 bool m_ultraserverCountHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace EC2
195} // namespace Aws
DescribeCapacityBlockOfferingsRequest & WithInstanceCount(int value)
DescribeCapacityBlockOfferingsRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeCapacityBlockOfferingsRequest & WithStartDateRange(StartDateRangeT &&value)
DescribeCapacityBlockOfferingsRequest & WithUltraserverCount(int value)
DescribeCapacityBlockOfferingsRequest & WithNextToken(NextTokenT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeCapacityBlockOfferingsRequest & WithCapacityDurationHours(int value)
DescribeCapacityBlockOfferingsRequest & WithEndDateRange(EndDateRangeT &&value)
DescribeCapacityBlockOfferingsRequest & WithDryRun(bool value)
DescribeCapacityBlockOfferingsRequest & WithInstanceType(InstanceTypeT &&value)
DescribeCapacityBlockOfferingsRequest & WithUltraserverType(UltraserverTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String