AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeReservedInstancesRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/OfferingClassType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/OfferingTypeValues.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/ec2/model/Filter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace EC2
19{
20namespace Model
21{
22
30 {
31 public:
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "DescribeReservedInstances"; }
39
40 AWS_EC2_API Aws::String SerializePayload() const override;
41
42 protected:
43 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44
45 public:
46
48
51 inline const OfferingClassType& GetOfferingClass() const{ return m_offeringClass; }
52 inline bool OfferingClassHasBeenSet() const { return m_offeringClassHasBeenSet; }
53 inline void SetOfferingClass(const OfferingClassType& value) { m_offeringClassHasBeenSet = true; m_offeringClass = value; }
54 inline void SetOfferingClass(OfferingClassType&& value) { m_offeringClassHasBeenSet = true; m_offeringClass = std::move(value); }
56 inline DescribeReservedInstancesRequest& WithOfferingClass(OfferingClassType&& value) { SetOfferingClass(std::move(value)); return *this;}
58
60
64 inline const Aws::Vector<Aws::String>& GetReservedInstancesIds() const{ return m_reservedInstancesIds; }
65 inline bool ReservedInstancesIdsHasBeenSet() const { return m_reservedInstancesIdsHasBeenSet; }
66 inline void SetReservedInstancesIds(const Aws::Vector<Aws::String>& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = value; }
67 inline void SetReservedInstancesIds(Aws::Vector<Aws::String>&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds = std::move(value); }
70 inline DescribeReservedInstancesRequest& AddReservedInstancesIds(const Aws::String& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; }
71 inline DescribeReservedInstancesRequest& AddReservedInstancesIds(Aws::String&& value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(std::move(value)); return *this; }
72 inline DescribeReservedInstancesRequest& AddReservedInstancesIds(const char* value) { m_reservedInstancesIdsHasBeenSet = true; m_reservedInstancesIds.push_back(value); return *this; }
74
76
82 inline bool GetDryRun() const{ return m_dryRun; }
83 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
84 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
85 inline DescribeReservedInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
87
89
124 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
125 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
126 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
127 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
128 inline DescribeReservedInstancesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
129 inline DescribeReservedInstancesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
130 inline DescribeReservedInstancesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
131 inline DescribeReservedInstancesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
133
135
140 inline const OfferingTypeValues& GetOfferingType() const{ return m_offeringType; }
141 inline bool OfferingTypeHasBeenSet() const { return m_offeringTypeHasBeenSet; }
142 inline void SetOfferingType(const OfferingTypeValues& value) { m_offeringTypeHasBeenSet = true; m_offeringType = value; }
143 inline void SetOfferingType(OfferingTypeValues&& value) { m_offeringTypeHasBeenSet = true; m_offeringType = std::move(value); }
145 inline DescribeReservedInstancesRequest& WithOfferingType(OfferingTypeValues&& value) { SetOfferingType(std::move(value)); return *this;}
147 private:
148
149 OfferingClassType m_offeringClass;
150 bool m_offeringClassHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_reservedInstancesIds;
153 bool m_reservedInstancesIdsHasBeenSet = false;
154
155 bool m_dryRun;
156 bool m_dryRunHasBeenSet = false;
157
158 Aws::Vector<Filter> m_filters;
159 bool m_filtersHasBeenSet = false;
160
161 OfferingTypeValues m_offeringType;
162 bool m_offeringTypeHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace EC2
167} // namespace Aws
DescribeReservedInstancesRequest & WithOfferingType(const OfferingTypeValues &value)
DescribeReservedInstancesRequest & AddReservedInstancesIds(const char *value)
DescribeReservedInstancesRequest & WithOfferingClass(OfferingClassType &&value)
DescribeReservedInstancesRequest & WithFilters(Aws::Vector< Filter > &&value)
DescribeReservedInstancesRequest & WithDryRun(bool value)
void SetReservedInstancesIds(Aws::Vector< Aws::String > &&value)
DescribeReservedInstancesRequest & WithReservedInstancesIds(const Aws::Vector< Aws::String > &value)
DescribeReservedInstancesRequest & WithOfferingType(OfferingTypeValues &&value)
DescribeReservedInstancesRequest & WithReservedInstancesIds(Aws::Vector< Aws::String > &&value)
DescribeReservedInstancesRequest & AddFilters(Filter &&value)
const Aws::Vector< Aws::String > & GetReservedInstancesIds() const
AWS_EC2_API Aws::String SerializePayload() const override
DescribeReservedInstancesRequest & AddReservedInstancesIds(const Aws::String &value)
DescribeReservedInstancesRequest & WithOfferingClass(const OfferingClassType &value)
DescribeReservedInstancesRequest & AddFilters(const Filter &value)
DescribeReservedInstancesRequest & AddReservedInstancesIds(Aws::String &&value)
DescribeReservedInstancesRequest & WithFilters(const Aws::Vector< Filter > &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
void SetReservedInstancesIds(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector