AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DescribeSnapshotCopyGrantsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/redshift/Redshift_EXPORTS.h>
10#include <aws/redshift/model/ResponseMetadata.h>
11#include <aws/redshift/model/SnapshotCopyGrant.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 Redshift {
25namespace Model {
32 public:
33 AWS_REDSHIFT_API DescribeSnapshotCopyGrantsResult() = default;
36
38
48 inline const Aws::String& GetMarker() const { return m_marker; }
49 template <typename MarkerT = Aws::String>
50 void SetMarker(MarkerT&& value) {
51 m_markerHasBeenSet = true;
52 m_marker = std::forward<MarkerT>(value);
53 }
54 template <typename MarkerT = Aws::String>
56 SetMarker(std::forward<MarkerT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<SnapshotCopyGrant>& GetSnapshotCopyGrants() const { return m_snapshotCopyGrants; }
66 template <typename SnapshotCopyGrantsT = Aws::Vector<SnapshotCopyGrant>>
67 void SetSnapshotCopyGrants(SnapshotCopyGrantsT&& value) {
68 m_snapshotCopyGrantsHasBeenSet = true;
69 m_snapshotCopyGrants = std::forward<SnapshotCopyGrantsT>(value);
70 }
71 template <typename SnapshotCopyGrantsT = Aws::Vector<SnapshotCopyGrant>>
73 SetSnapshotCopyGrants(std::forward<SnapshotCopyGrantsT>(value));
74 return *this;
75 }
76 template <typename SnapshotCopyGrantsT = SnapshotCopyGrant>
78 m_snapshotCopyGrantsHasBeenSet = true;
79 m_snapshotCopyGrants.emplace_back(std::forward<SnapshotCopyGrantsT>(value));
80 return *this;
81 }
83
85
86 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
87 template <typename ResponseMetadataT = ResponseMetadata>
88 void SetResponseMetadata(ResponseMetadataT&& value) {
89 m_responseMetadataHasBeenSet = true;
90 m_responseMetadata = std::forward<ResponseMetadataT>(value);
91 }
92 template <typename ResponseMetadataT = ResponseMetadata>
94 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_marker;
100
101 Aws::Vector<SnapshotCopyGrant> m_snapshotCopyGrants;
102
103 ResponseMetadata m_responseMetadata;
104 bool m_markerHasBeenSet = false;
105 bool m_snapshotCopyGrantsHasBeenSet = false;
106 bool m_responseMetadataHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Redshift
111} // namespace Aws
AWS_REDSHIFT_API DescribeSnapshotCopyGrantsResult()=default
DescribeSnapshotCopyGrantsResult & WithSnapshotCopyGrants(SnapshotCopyGrantsT &&value)
const Aws::Vector< SnapshotCopyGrant > & GetSnapshotCopyGrants() const
AWS_REDSHIFT_API DescribeSnapshotCopyGrantsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_REDSHIFT_API DescribeSnapshotCopyGrantsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeSnapshotCopyGrantsResult & AddSnapshotCopyGrants(SnapshotCopyGrantsT &&value)
DescribeSnapshotCopyGrantsResult & WithMarker(MarkerT &&value)
DescribeSnapshotCopyGrantsResult & WithResponseMetadata(ResponseMetadataT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument