AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateSnapshotCopyGrantResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/redshift/Redshift_EXPORTS.h>
9#include <aws/redshift/model/ResponseMetadata.h>
10#include <aws/redshift/model/SnapshotCopyGrant.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 Redshift {
24namespace Model {
26 public:
27 AWS_REDSHIFT_API CreateSnapshotCopyGrantResult() = default;
30
32
33 inline const SnapshotCopyGrant& GetSnapshotCopyGrant() const { return m_snapshotCopyGrant; }
34 template <typename SnapshotCopyGrantT = SnapshotCopyGrant>
35 void SetSnapshotCopyGrant(SnapshotCopyGrantT&& value) {
36 m_snapshotCopyGrantHasBeenSet = true;
37 m_snapshotCopyGrant = std::forward<SnapshotCopyGrantT>(value);
38 }
39 template <typename SnapshotCopyGrantT = SnapshotCopyGrant>
41 SetSnapshotCopyGrant(std::forward<SnapshotCopyGrantT>(value));
42 return *this;
43 }
45
47
48 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
49 template <typename ResponseMetadataT = ResponseMetadata>
50 void SetResponseMetadata(ResponseMetadataT&& value) {
51 m_responseMetadataHasBeenSet = true;
52 m_responseMetadata = std::forward<ResponseMetadataT>(value);
53 }
54 template <typename ResponseMetadataT = ResponseMetadata>
56 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
57 return *this;
58 }
60 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
61
62 private:
63 SnapshotCopyGrant m_snapshotCopyGrant;
64
65 ResponseMetadata m_responseMetadata;
66 Aws::Http::HttpResponseCode m_HttpResponseCode;
67 bool m_snapshotCopyGrantHasBeenSet = false;
68 bool m_responseMetadataHasBeenSet = false;
69};
70
71} // namespace Model
72} // namespace Redshift
73} // namespace Aws
CreateSnapshotCopyGrantResult & WithSnapshotCopyGrant(SnapshotCopyGrantT &&value)
AWS_REDSHIFT_API CreateSnapshotCopyGrantResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_REDSHIFT_API CreateSnapshotCopyGrantResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_REDSHIFT_API CreateSnapshotCopyGrantResult()=default
CreateSnapshotCopyGrantResult & WithResponseMetadata(ResponseMetadataT &&value)
Aws::Utils::Xml::XmlDocument XmlDocument