AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
GetImageAncestryResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/ImageAncestryEntry.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
26 public:
27 AWS_EC2_API GetImageAncestryResponse() = default;
30
32
36 inline const Aws::Vector<ImageAncestryEntry>& GetImageAncestryEntries() const { return m_imageAncestryEntries; }
37 template <typename ImageAncestryEntriesT = Aws::Vector<ImageAncestryEntry>>
38 void SetImageAncestryEntries(ImageAncestryEntriesT&& value) {
39 m_imageAncestryEntriesHasBeenSet = true;
40 m_imageAncestryEntries = std::forward<ImageAncestryEntriesT>(value);
41 }
42 template <typename ImageAncestryEntriesT = Aws::Vector<ImageAncestryEntry>>
43 GetImageAncestryResponse& WithImageAncestryEntries(ImageAncestryEntriesT&& value) {
44 SetImageAncestryEntries(std::forward<ImageAncestryEntriesT>(value));
45 return *this;
46 }
47 template <typename ImageAncestryEntriesT = ImageAncestryEntry>
48 GetImageAncestryResponse& AddImageAncestryEntries(ImageAncestryEntriesT&& value) {
49 m_imageAncestryEntriesHasBeenSet = true;
50 m_imageAncestryEntries.emplace_back(std::forward<ImageAncestryEntriesT>(value));
51 return *this;
52 }
54
56
57 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
58 template <typename ResponseMetadataT = ResponseMetadata>
59 void SetResponseMetadata(ResponseMetadataT&& value) {
60 m_responseMetadataHasBeenSet = true;
61 m_responseMetadata = std::forward<ResponseMetadataT>(value);
62 }
63 template <typename ResponseMetadataT = ResponseMetadata>
64 GetImageAncestryResponse& WithResponseMetadata(ResponseMetadataT&& value) {
65 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
66 return *this;
67 }
69 private:
70 Aws::Vector<ImageAncestryEntry> m_imageAncestryEntries;
71
72 ResponseMetadata m_responseMetadata;
73 bool m_imageAncestryEntriesHasBeenSet = false;
74 bool m_responseMetadataHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace EC2
79} // namespace Aws
AWS_EC2_API GetImageAncestryResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetImageAncestryResponse & WithImageAncestryEntries(ImageAncestryEntriesT &&value)
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