AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
GetImageAncestryResponse.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/ImageAncestryEntry.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 GetImageAncestryResponse() = default;
31
33
37 inline const Aws::Vector<ImageAncestryEntry>& GetImageAncestryEntries() const { return m_imageAncestryEntries; }
38 template <typename ImageAncestryEntriesT = Aws::Vector<ImageAncestryEntry>>
39 void SetImageAncestryEntries(ImageAncestryEntriesT&& value) {
40 m_imageAncestryEntriesHasBeenSet = true;
41 m_imageAncestryEntries = std::forward<ImageAncestryEntriesT>(value);
42 }
43 template <typename ImageAncestryEntriesT = Aws::Vector<ImageAncestryEntry>>
44 GetImageAncestryResponse& WithImageAncestryEntries(ImageAncestryEntriesT&& value) {
45 SetImageAncestryEntries(std::forward<ImageAncestryEntriesT>(value));
46 return *this;
47 }
48 template <typename ImageAncestryEntriesT = ImageAncestryEntry>
49 GetImageAncestryResponse& AddImageAncestryEntries(ImageAncestryEntriesT&& value) {
50 m_imageAncestryEntriesHasBeenSet = true;
51 m_imageAncestryEntries.emplace_back(std::forward<ImageAncestryEntriesT>(value));
52 return *this;
53 }
55
57
58 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
59 template <typename ResponseMetadataT = ResponseMetadata>
60 void SetResponseMetadata(ResponseMetadataT&& value) {
61 m_responseMetadataHasBeenSet = true;
62 m_responseMetadata = std::forward<ResponseMetadataT>(value);
63 }
64 template <typename ResponseMetadataT = ResponseMetadata>
65 GetImageAncestryResponse& WithResponseMetadata(ResponseMetadataT&& value) {
66 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
67 return *this;
68 }
70 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
71
72 private:
73 Aws::Vector<ImageAncestryEntry> m_imageAncestryEntries;
74
75 ResponseMetadata m_responseMetadata;
76 Aws::Http::HttpResponseCode m_HttpResponseCode;
77 bool m_imageAncestryEntriesHasBeenSet = false;
78 bool m_responseMetadataHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace EC2
83} // namespace Aws
AWS_EC2_API GetImageAncestryResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetImageAncestryResponse & WithImageAncestryEntries(ImageAncestryEntriesT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const ResponseMetadata & GetResponseMetadata() const
const Aws::Vector< ImageAncestryEntry > & GetImageAncestryEntries() const
AWS_EC2_API GetImageAncestryResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadataT &&value)
GetImageAncestryResponse & WithResponseMetadata(ResponseMetadataT &&value)
GetImageAncestryResponse & AddImageAncestryEntries(ImageAncestryEntriesT &&value)
AWS_EC2_API GetImageAncestryResponse()=default
void SetImageAncestryEntries(ImageAncestryEntriesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument