AWS SDK for C++

AWS SDK for C++ Version 1.11.907

Loading...
Searching...
No Matches
ModifyCapacityReservationResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/CapacityReservationAdjustmentDetails.h>
10#include <aws/ec2/model/CapacityReservationAdjustmentStatus.h>
11#include <aws/ec2/model/ResponseMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace EC2 {
25namespace Model {
27 public:
28 AWS_EC2_API ModifyCapacityReservationResponse() = default;
31
33
37 inline bool GetReturn() const { return m_return; }
38 inline void SetReturn(bool value) {
39 m_returnHasBeenSet = true;
40 m_return = value;
41 }
43 SetReturn(value);
44 return *this;
45 }
47
49
54 inline CapacityReservationAdjustmentStatus GetAdjustmentStatus() const { return m_adjustmentStatus; }
56 m_adjustmentStatusHasBeenSet = true;
57 m_adjustmentStatus = value;
58 }
61 return *this;
62 }
64
66
70 inline const CapacityReservationAdjustmentDetails& GetAdjustmentDetails() const { return m_adjustmentDetails; }
71 template <typename AdjustmentDetailsT = CapacityReservationAdjustmentDetails>
72 void SetAdjustmentDetails(AdjustmentDetailsT&& value) {
73 m_adjustmentDetailsHasBeenSet = true;
74 m_adjustmentDetails = std::forward<AdjustmentDetailsT>(value);
75 }
76 template <typename AdjustmentDetailsT = CapacityReservationAdjustmentDetails>
78 SetAdjustmentDetails(std::forward<AdjustmentDetailsT>(value));
79 return *this;
80 }
82
84
85 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
86 template <typename ResponseMetadataT = ResponseMetadata>
87 void SetResponseMetadata(ResponseMetadataT&& value) {
88 m_responseMetadataHasBeenSet = true;
89 m_responseMetadata = std::forward<ResponseMetadataT>(value);
90 }
91 template <typename ResponseMetadataT = ResponseMetadata>
93 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
94 return *this;
95 }
97 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
98
99 private:
100 bool m_return{false};
101
103
104 CapacityReservationAdjustmentDetails m_adjustmentDetails;
105
106 ResponseMetadata m_responseMetadata;
107 Aws::Http::HttpResponseCode m_HttpResponseCode;
108 bool m_returnHasBeenSet = false;
109 bool m_adjustmentStatusHasBeenSet = false;
110 bool m_adjustmentDetailsHasBeenSet = false;
111 bool m_responseMetadataHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
AWS_EC2_API ModifyCapacityReservationResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const CapacityReservationAdjustmentDetails & GetAdjustmentDetails() const
ModifyCapacityReservationResponse & WithReturn(bool value)
CapacityReservationAdjustmentStatus GetAdjustmentStatus() const
ModifyCapacityReservationResponse & WithAdjustmentStatus(CapacityReservationAdjustmentStatus value)
ModifyCapacityReservationResponse & WithResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API ModifyCapacityReservationResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
ModifyCapacityReservationResponse & WithAdjustmentDetails(AdjustmentDetailsT &&value)
void SetAdjustmentStatus(CapacityReservationAdjustmentStatus value)
Aws::Utils::Xml::XmlDocument XmlDocument