AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
PurchaseScheduledInstancesResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/ScheduledInstance.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 {
33 public:
34 AWS_EC2_API PurchaseScheduledInstancesResponse() = default;
37
39
42 inline const Aws::Vector<ScheduledInstance>& GetScheduledInstanceSet() const { return m_scheduledInstanceSet; }
43 template <typename ScheduledInstanceSetT = Aws::Vector<ScheduledInstance>>
44 void SetScheduledInstanceSet(ScheduledInstanceSetT&& value) {
45 m_scheduledInstanceSetHasBeenSet = true;
46 m_scheduledInstanceSet = std::forward<ScheduledInstanceSetT>(value);
47 }
48 template <typename ScheduledInstanceSetT = Aws::Vector<ScheduledInstance>>
50 SetScheduledInstanceSet(std::forward<ScheduledInstanceSetT>(value));
51 return *this;
52 }
53 template <typename ScheduledInstanceSetT = ScheduledInstance>
55 m_scheduledInstanceSetHasBeenSet = true;
56 m_scheduledInstanceSet.emplace_back(std::forward<ScheduledInstanceSetT>(value));
57 return *this;
58 }
60
62
63 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
64 template <typename ResponseMetadataT = ResponseMetadata>
65 void SetResponseMetadata(ResponseMetadataT&& value) {
66 m_responseMetadataHasBeenSet = true;
67 m_responseMetadata = std::forward<ResponseMetadataT>(value);
68 }
69 template <typename ResponseMetadataT = ResponseMetadata>
71 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
72 return *this;
73 }
75 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
76
77 private:
78 Aws::Vector<ScheduledInstance> m_scheduledInstanceSet;
79
80 ResponseMetadata m_responseMetadata;
81 Aws::Http::HttpResponseCode m_HttpResponseCode;
82 bool m_scheduledInstanceSetHasBeenSet = false;
83 bool m_responseMetadataHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace EC2
88} // namespace Aws
PurchaseScheduledInstancesResponse & WithScheduledInstanceSet(ScheduledInstanceSetT &&value)
AWS_EC2_API PurchaseScheduledInstancesResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
PurchaseScheduledInstancesResponse & AddScheduledInstanceSet(ScheduledInstanceSetT &&value)
AWS_EC2_API PurchaseScheduledInstancesResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Vector< ScheduledInstance > & GetScheduledInstanceSet() const
PurchaseScheduledInstancesResponse & WithResponseMetadata(ResponseMetadataT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument