AWS SDK for C++  1.9.67
AWS SDK for C++
ModifyInstanceCreditSpecificationResponse.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlDocument;
24 } // namespace Xml
25 } // namespace Utils
26 namespace EC2
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
42  inline const Aws::Vector<SuccessfulInstanceCreditSpecificationItem>& GetSuccessfulInstanceCreditSpecifications() const{ return m_successfulInstanceCreditSpecifications; }
43 
48  inline void SetSuccessfulInstanceCreditSpecifications(const Aws::Vector<SuccessfulInstanceCreditSpecificationItem>& value) { m_successfulInstanceCreditSpecifications = value; }
49 
54  inline void SetSuccessfulInstanceCreditSpecifications(Aws::Vector<SuccessfulInstanceCreditSpecificationItem>&& value) { m_successfulInstanceCreditSpecifications = std::move(value); }
55 
60  inline ModifyInstanceCreditSpecificationResponse& WithSuccessfulInstanceCreditSpecifications(const Aws::Vector<SuccessfulInstanceCreditSpecificationItem>& value) { SetSuccessfulInstanceCreditSpecifications(value); return *this;}
61 
66  inline ModifyInstanceCreditSpecificationResponse& WithSuccessfulInstanceCreditSpecifications(Aws::Vector<SuccessfulInstanceCreditSpecificationItem>&& value) { SetSuccessfulInstanceCreditSpecifications(std::move(value)); return *this;}
67 
72  inline ModifyInstanceCreditSpecificationResponse& AddSuccessfulInstanceCreditSpecifications(const SuccessfulInstanceCreditSpecificationItem& value) { m_successfulInstanceCreditSpecifications.push_back(value); return *this; }
73 
78  inline ModifyInstanceCreditSpecificationResponse& AddSuccessfulInstanceCreditSpecifications(SuccessfulInstanceCreditSpecificationItem&& value) { m_successfulInstanceCreditSpecifications.push_back(std::move(value)); return *this; }
79 
80 
85  inline const Aws::Vector<UnsuccessfulInstanceCreditSpecificationItem>& GetUnsuccessfulInstanceCreditSpecifications() const{ return m_unsuccessfulInstanceCreditSpecifications; }
86 
91  inline void SetUnsuccessfulInstanceCreditSpecifications(const Aws::Vector<UnsuccessfulInstanceCreditSpecificationItem>& value) { m_unsuccessfulInstanceCreditSpecifications = value; }
92 
97  inline void SetUnsuccessfulInstanceCreditSpecifications(Aws::Vector<UnsuccessfulInstanceCreditSpecificationItem>&& value) { m_unsuccessfulInstanceCreditSpecifications = std::move(value); }
98 
104 
109  inline ModifyInstanceCreditSpecificationResponse& WithUnsuccessfulInstanceCreditSpecifications(Aws::Vector<UnsuccessfulInstanceCreditSpecificationItem>&& value) { SetUnsuccessfulInstanceCreditSpecifications(std::move(value)); return *this;}
110 
115  inline ModifyInstanceCreditSpecificationResponse& AddUnsuccessfulInstanceCreditSpecifications(const UnsuccessfulInstanceCreditSpecificationItem& value) { m_unsuccessfulInstanceCreditSpecifications.push_back(value); return *this; }
116 
121  inline ModifyInstanceCreditSpecificationResponse& AddUnsuccessfulInstanceCreditSpecifications(UnsuccessfulInstanceCreditSpecificationItem&& value) { m_unsuccessfulInstanceCreditSpecifications.push_back(std::move(value)); return *this; }
122 
123 
124 
125  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
126 
127 
128  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
129 
130 
131  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
132 
133 
134  inline ModifyInstanceCreditSpecificationResponse& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
135 
136 
137  inline ModifyInstanceCreditSpecificationResponse& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
138 
139  private:
140 
141  Aws::Vector<SuccessfulInstanceCreditSpecificationItem> m_successfulInstanceCreditSpecifications;
142 
143  Aws::Vector<UnsuccessfulInstanceCreditSpecificationItem> m_unsuccessfulInstanceCreditSpecifications;
144 
145  ResponseMetadata m_responseMetadata;
146  };
147 
148 } // namespace Model
149 } // namespace EC2
150 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ModifyInstanceCreditSpecificationResponse.h:125
SuccessfulInstanceCreditSpecificationItem.h
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::AddUnsuccessfulInstanceCreditSpecifications
ModifyInstanceCreditSpecificationResponse & AddUnsuccessfulInstanceCreditSpecifications(UnsuccessfulInstanceCreditSpecificationItem &&value)
Definition: ModifyInstanceCreditSpecificationResponse.h:121
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse
Definition: ModifyInstanceCreditSpecificationResponse.h:31
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::AddSuccessfulInstanceCreditSpecifications
ModifyInstanceCreditSpecificationResponse & AddSuccessfulInstanceCreditSpecifications(const SuccessfulInstanceCreditSpecificationItem &value)
Definition: ModifyInstanceCreditSpecificationResponse.h:72
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::SetUnsuccessfulInstanceCreditSpecifications
void SetUnsuccessfulInstanceCreditSpecifications(Aws::Vector< UnsuccessfulInstanceCreditSpecificationItem > &&value)
Definition: ModifyInstanceCreditSpecificationResponse.h:97
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
ResponseMetadata.h
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ModifyInstanceCreditSpecificationResponse.h:131
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::WithSuccessfulInstanceCreditSpecifications
ModifyInstanceCreditSpecificationResponse & WithSuccessfulInstanceCreditSpecifications(Aws::Vector< SuccessfulInstanceCreditSpecificationItem > &&value)
Definition: ModifyInstanceCreditSpecificationResponse.h:66
AWSVector.h
UnsuccessfulInstanceCreditSpecificationItem.h
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::SetSuccessfulInstanceCreditSpecifications
void SetSuccessfulInstanceCreditSpecifications(const Aws::Vector< SuccessfulInstanceCreditSpecificationItem > &value)
Definition: ModifyInstanceCreditSpecificationResponse.h:48
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::WithUnsuccessfulInstanceCreditSpecifications
ModifyInstanceCreditSpecificationResponse & WithUnsuccessfulInstanceCreditSpecifications(Aws::Vector< UnsuccessfulInstanceCreditSpecificationItem > &&value)
Definition: ModifyInstanceCreditSpecificationResponse.h:109
Aws::EC2::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::SetSuccessfulInstanceCreditSpecifications
void SetSuccessfulInstanceCreditSpecifications(Aws::Vector< SuccessfulInstanceCreditSpecificationItem > &&value)
Definition: ModifyInstanceCreditSpecificationResponse.h:54
Aws::EC2::Model::SuccessfulInstanceCreditSpecificationItem
Definition: SuccessfulInstanceCreditSpecificationItem.h:33
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::ModifyInstanceCreditSpecificationResponse
ModifyInstanceCreditSpecificationResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::EC2::Model::UnsuccessfulInstanceCreditSpecificationItem
Definition: UnsuccessfulInstanceCreditSpecificationItem.h:34
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::WithSuccessfulInstanceCreditSpecifications
ModifyInstanceCreditSpecificationResponse & WithSuccessfulInstanceCreditSpecifications(const Aws::Vector< SuccessfulInstanceCreditSpecificationItem > &value)
Definition: ModifyInstanceCreditSpecificationResponse.h:60
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::SetUnsuccessfulInstanceCreditSpecifications
void SetUnsuccessfulInstanceCreditSpecifications(const Aws::Vector< UnsuccessfulInstanceCreditSpecificationItem > &value)
Definition: ModifyInstanceCreditSpecificationResponse.h:91
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::WithUnsuccessfulInstanceCreditSpecifications
ModifyInstanceCreditSpecificationResponse & WithUnsuccessfulInstanceCreditSpecifications(const Aws::Vector< UnsuccessfulInstanceCreditSpecificationItem > &value)
Definition: ModifyInstanceCreditSpecificationResponse.h:103
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::GetSuccessfulInstanceCreditSpecifications
const Aws::Vector< SuccessfulInstanceCreditSpecificationItem > & GetSuccessfulInstanceCreditSpecifications() const
Definition: ModifyInstanceCreditSpecificationResponse.h:42
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::WithResponseMetadata
ModifyInstanceCreditSpecificationResponse & WithResponseMetadata(ResponseMetadata &&value)
Definition: ModifyInstanceCreditSpecificationResponse.h:137
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ModifyInstanceCreditSpecificationResponse.h:128
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::GetUnsuccessfulInstanceCreditSpecifications
const Aws::Vector< UnsuccessfulInstanceCreditSpecificationItem > & GetUnsuccessfulInstanceCreditSpecifications() const
Definition: ModifyInstanceCreditSpecificationResponse.h:85
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::operator=
ModifyInstanceCreditSpecificationResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
EC2_EXPORTS.h
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::ModifyInstanceCreditSpecificationResponse
ModifyInstanceCreditSpecificationResponse()
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::WithResponseMetadata
ModifyInstanceCreditSpecificationResponse & WithResponseMetadata(const ResponseMetadata &value)
Definition: ModifyInstanceCreditSpecificationResponse.h:134
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::AddUnsuccessfulInstanceCreditSpecifications
ModifyInstanceCreditSpecificationResponse & AddUnsuccessfulInstanceCreditSpecifications(const UnsuccessfulInstanceCreditSpecificationItem &value)
Definition: ModifyInstanceCreditSpecificationResponse.h:115
Aws::EC2::Model::ModifyInstanceCreditSpecificationResponse::AddSuccessfulInstanceCreditSpecifications
ModifyInstanceCreditSpecificationResponse & AddSuccessfulInstanceCreditSpecifications(SuccessfulInstanceCreditSpecificationItem &&value)
Definition: ModifyInstanceCreditSpecificationResponse.h:78