AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
BatchModifyClusterSnapshotsResult.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/SnapshotErrorMessage.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 {
27 public:
28 AWS_REDSHIFT_API BatchModifyClusterSnapshotsResult() = default;
31
33
36 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
37 template <typename ResourcesT = Aws::Vector<Aws::String>>
38 void SetResources(ResourcesT&& value) {
39 m_resourcesHasBeenSet = true;
40 m_resources = std::forward<ResourcesT>(value);
41 }
42 template <typename ResourcesT = Aws::Vector<Aws::String>>
44 SetResources(std::forward<ResourcesT>(value));
45 return *this;
46 }
47 template <typename ResourcesT = Aws::String>
49 m_resourcesHasBeenSet = true;
50 m_resources.emplace_back(std::forward<ResourcesT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<SnapshotErrorMessage>& GetErrors() const { return m_errors; }
60 template <typename ErrorsT = Aws::Vector<SnapshotErrorMessage>>
61 void SetErrors(ErrorsT&& value) {
62 m_errorsHasBeenSet = true;
63 m_errors = std::forward<ErrorsT>(value);
64 }
65 template <typename ErrorsT = Aws::Vector<SnapshotErrorMessage>>
67 SetErrors(std::forward<ErrorsT>(value));
68 return *this;
69 }
70 template <typename ErrorsT = SnapshotErrorMessage>
72 m_errorsHasBeenSet = true;
73 m_errors.emplace_back(std::forward<ErrorsT>(value));
74 return *this;
75 }
77
79
80 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
81 template <typename ResponseMetadataT = ResponseMetadata>
82 void SetResponseMetadata(ResponseMetadataT&& value) {
83 m_responseMetadataHasBeenSet = true;
84 m_responseMetadata = std::forward<ResponseMetadataT>(value);
85 }
86 template <typename ResponseMetadataT = ResponseMetadata>
88 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
89 return *this;
90 }
92 private:
93 Aws::Vector<Aws::String> m_resources;
94
96
97 ResponseMetadata m_responseMetadata;
98 bool m_resourcesHasBeenSet = false;
99 bool m_errorsHasBeenSet = false;
100 bool m_responseMetadataHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Redshift
105} // 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