AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
DescribeSnapshotCopyGrantsResult.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/model/ResponseMetadata.h>
11#include <aws/redshift/model/SnapshotCopyGrant.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace Redshift
27{
28namespace Model
29{
36 {
37 public:
38 AWS_REDSHIFT_API DescribeSnapshotCopyGrantsResult() = default;
41
42
44
54 inline const Aws::String& GetMarker() const { return m_marker; }
55 template<typename MarkerT = Aws::String>
56 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
57 template<typename MarkerT = Aws::String>
58 DescribeSnapshotCopyGrantsResult& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
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) { m_snapshotCopyGrantsHasBeenSet = true; m_snapshotCopyGrants = std::forward<SnapshotCopyGrantsT>(value); }
68 template<typename SnapshotCopyGrantsT = Aws::Vector<SnapshotCopyGrant>>
69 DescribeSnapshotCopyGrantsResult& WithSnapshotCopyGrants(SnapshotCopyGrantsT&& value) { SetSnapshotCopyGrants(std::forward<SnapshotCopyGrantsT>(value)); return *this;}
70 template<typename SnapshotCopyGrantsT = SnapshotCopyGrant>
71 DescribeSnapshotCopyGrantsResult& AddSnapshotCopyGrants(SnapshotCopyGrantsT&& value) { m_snapshotCopyGrantsHasBeenSet = true; m_snapshotCopyGrants.emplace_back(std::forward<SnapshotCopyGrantsT>(value)); return *this; }
73
75
76 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
77 template<typename ResponseMetadataT = ResponseMetadata>
78 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
79 template<typename ResponseMetadataT = ResponseMetadata>
80 DescribeSnapshotCopyGrantsResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
82 private:
83
84 Aws::String m_marker;
85 bool m_markerHasBeenSet = false;
86
87 Aws::Vector<SnapshotCopyGrant> m_snapshotCopyGrants;
88 bool m_snapshotCopyGrantsHasBeenSet = false;
89
90 ResponseMetadata m_responseMetadata;
91 bool m_responseMetadataHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Redshift
96} // 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