AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
61 inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
62 inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); }
64 inline DescribeCapacityBlockOfferingsRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;}
65 inline DescribeCapacityBlockOfferingsRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;}
67
69
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 inline void SetStartDateRange(const Aws::Utils::DateTime& value) { m_startDateRangeHasBeenSet = true; m_startDateRange = value; }
85 inline void SetStartDateRange(Aws::Utils::DateTime&& value) { m_startDateRangeHasBeenSet = true; m_startDateRange = std::move(value); }
89
91
94 inline const Aws::Utils::DateTime& GetEndDateRange() const{ return m_endDateRange; }
95 inline bool EndDateRangeHasBeenSet() const { return m_endDateRangeHasBeenSet; }
96 inline void SetEndDateRange(const Aws::Utils::DateTime& value) { m_endDateRangeHasBeenSet = true; m_endDateRange = value; }
97 inline void SetEndDateRange(Aws::Utils::DateTime&& value) { m_endDateRangeHasBeenSet = true; m_endDateRange = std::move(value); }
101
103
106 inline int GetCapacityDurationHours() const{ return m_capacityDurationHours; }
107 inline bool CapacityDurationHoursHasBeenSet() const { return m_capacityDurationHoursHasBeenSet; }
108 inline void SetCapacityDurationHours(int value) { m_capacityDurationHoursHasBeenSet = true; m_capacityDurationHours = value; }
111
113
116 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
117 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
118 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
119 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
120 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
122 inline DescribeCapacityBlockOfferingsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
123 inline DescribeCapacityBlockOfferingsRequest& WithNextToken(const char* value) { SetNextToken(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 private:
139
140 bool m_dryRun;
141 bool m_dryRunHasBeenSet = false;
142
143 Aws::String m_instanceType;
144 bool m_instanceTypeHasBeenSet = false;
145
146 int m_instanceCount;
147 bool m_instanceCountHasBeenSet = false;
148
149 Aws::Utils::DateTime m_startDateRange;
150 bool m_startDateRangeHasBeenSet = false;
151
152 Aws::Utils::DateTime m_endDateRange;
153 bool m_endDateRangeHasBeenSet = false;
154
155 int m_capacityDurationHours;
156 bool m_capacityDurationHoursHasBeenSet = false;
157
158 Aws::String m_nextToken;
159 bool m_nextTokenHasBeenSet = false;
160
161 int m_maxResults;
162 bool m_maxResultsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace EC2
167} // namespace Aws
DescribeCapacityBlockOfferingsRequest & WithInstanceCount(int value)
DescribeCapacityBlockOfferingsRequest & WithInstanceType(Aws::String &&value)
DescribeCapacityBlockOfferingsRequest & WithInstanceType(const Aws::String &value)
DescribeCapacityBlockOfferingsRequest & WithEndDateRange(Aws::Utils::DateTime &&value)
DescribeCapacityBlockOfferingsRequest & WithInstanceType(const char *value)
DescribeCapacityBlockOfferingsRequest & WithMaxResults(int value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeCapacityBlockOfferingsRequest & WithNextToken(const Aws::String &value)
DescribeCapacityBlockOfferingsRequest & WithCapacityDurationHours(int value)
DescribeCapacityBlockOfferingsRequest & WithNextToken(const char *value)
DescribeCapacityBlockOfferingsRequest & WithStartDateRange(Aws::Utils::DateTime &&value)
DescribeCapacityBlockOfferingsRequest & WithDryRun(bool value)
DescribeCapacityBlockOfferingsRequest & WithEndDateRange(const Aws::Utils::DateTime &value)
DescribeCapacityBlockOfferingsRequest & WithNextToken(Aws::String &&value)
DescribeCapacityBlockOfferingsRequest & WithStartDateRange(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String