AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
BatchModifyClusterSnapshotsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/redshift/Redshift_EXPORTS.h>
11#include <aws/redshift/model/ResponseMetadata.h>
12#include <aws/redshift/model/SnapshotErrorMessage.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Xml {
22class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace Redshift {
26namespace Model {
28 public:
29 AWS_REDSHIFT_API BatchModifyClusterSnapshotsResult() = default;
32
34
37 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
38 template <typename ResourcesT = Aws::Vector<Aws::String>>
39 void SetResources(ResourcesT&& value) {
40 m_resourcesHasBeenSet = true;
41 m_resources = std::forward<ResourcesT>(value);
42 }
43 template <typename ResourcesT = Aws::Vector<Aws::String>>
45 SetResources(std::forward<ResourcesT>(value));
46 return *this;
47 }
48 template <typename ResourcesT = Aws::String>
50 m_resourcesHasBeenSet = true;
51 m_resources.emplace_back(std::forward<ResourcesT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<SnapshotErrorMessage>& GetErrors() const { return m_errors; }
61 template <typename ErrorsT = Aws::Vector<SnapshotErrorMessage>>
62 void SetErrors(ErrorsT&& value) {
63 m_errorsHasBeenSet = true;
64 m_errors = std::forward<ErrorsT>(value);
65 }
66 template <typename ErrorsT = Aws::Vector<SnapshotErrorMessage>>
68 SetErrors(std::forward<ErrorsT>(value));
69 return *this;
70 }
71 template <typename ErrorsT = SnapshotErrorMessage>
73 m_errorsHasBeenSet = true;
74 m_errors.emplace_back(std::forward<ErrorsT>(value));
75 return *this;
76 }
78
80
81 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
82 template <typename ResponseMetadataT = ResponseMetadata>
83 void SetResponseMetadata(ResponseMetadataT&& value) {
84 m_responseMetadataHasBeenSet = true;
85 m_responseMetadata = std::forward<ResponseMetadataT>(value);
86 }
87 template <typename ResponseMetadataT = ResponseMetadata>
89 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
90 return *this;
91 }
93 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
94
95 private:
96 Aws::Vector<Aws::String> m_resources;
97
99
100 ResponseMetadata m_responseMetadata;
101 Aws::Http::HttpResponseCode m_HttpResponseCode;
102 bool m_resourcesHasBeenSet = false;
103 bool m_errorsHasBeenSet = false;
104 bool m_responseMetadataHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace Redshift
109} // namespace Aws
BatchModifyClusterSnapshotsResult & WithResources(ResourcesT &&value)
BatchModifyClusterSnapshotsResult & AddErrors(ErrorsT &&value)
BatchModifyClusterSnapshotsResult & WithErrors(ErrorsT &&value)
const Aws::Vector< SnapshotErrorMessage > & GetErrors() const
BatchModifyClusterSnapshotsResult & AddResources(ResourcesT &&value)
AWS_REDSHIFT_API BatchModifyClusterSnapshotsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_REDSHIFT_API BatchModifyClusterSnapshotsResult()=default
BatchModifyClusterSnapshotsResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_REDSHIFT_API BatchModifyClusterSnapshotsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument