AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ObjectLambdaConfiguration.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/s3control/S3Control_EXPORTS.h>
10#include <aws/s3control/model/ObjectLambdaAllowedFeature.h>
11#include <aws/s3control/model/ObjectLambdaTransformationConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace S3Control {
22namespace Model {
23
31 public:
32 AWS_S3CONTROL_API ObjectLambdaConfiguration() = default;
33 AWS_S3CONTROL_API ObjectLambdaConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
42 inline const Aws::String& GetSupportingAccessPoint() const { return m_supportingAccessPoint; }
43 inline bool SupportingAccessPointHasBeenSet() const { return m_supportingAccessPointHasBeenSet; }
44 template <typename SupportingAccessPointT = Aws::String>
45 void SetSupportingAccessPoint(SupportingAccessPointT&& value) {
46 m_supportingAccessPointHasBeenSet = true;
47 m_supportingAccessPoint = std::forward<SupportingAccessPointT>(value);
48 }
49 template <typename SupportingAccessPointT = Aws::String>
50 ObjectLambdaConfiguration& WithSupportingAccessPoint(SupportingAccessPointT&& value) {
51 SetSupportingAccessPoint(std::forward<SupportingAccessPointT>(value));
52 return *this;
53 }
55
57
60 inline bool GetCloudWatchMetricsEnabled() const { return m_cloudWatchMetricsEnabled; }
61 inline bool CloudWatchMetricsEnabledHasBeenSet() const { return m_cloudWatchMetricsEnabledHasBeenSet; }
62 inline void SetCloudWatchMetricsEnabled(bool value) {
63 m_cloudWatchMetricsEnabledHasBeenSet = true;
64 m_cloudWatchMetricsEnabled = value;
65 }
68 return *this;
69 }
71
73
78 inline const Aws::Vector<ObjectLambdaAllowedFeature>& GetAllowedFeatures() const { return m_allowedFeatures; }
79 inline bool AllowedFeaturesHasBeenSet() const { return m_allowedFeaturesHasBeenSet; }
80 template <typename AllowedFeaturesT = Aws::Vector<ObjectLambdaAllowedFeature>>
81 void SetAllowedFeatures(AllowedFeaturesT&& value) {
82 m_allowedFeaturesHasBeenSet = true;
83 m_allowedFeatures = std::forward<AllowedFeaturesT>(value);
84 }
85 template <typename AllowedFeaturesT = Aws::Vector<ObjectLambdaAllowedFeature>>
87 SetAllowedFeatures(std::forward<AllowedFeaturesT>(value));
88 return *this;
89 }
91 m_allowedFeaturesHasBeenSet = true;
92 m_allowedFeatures.push_back(value);
93 return *this;
94 }
96
98
103 return m_transformationConfigurations;
104 }
105 inline bool TransformationConfigurationsHasBeenSet() const { return m_transformationConfigurationsHasBeenSet; }
106 template <typename TransformationConfigurationsT = Aws::Vector<ObjectLambdaTransformationConfiguration>>
107 void SetTransformationConfigurations(TransformationConfigurationsT&& value) {
108 m_transformationConfigurationsHasBeenSet = true;
109 m_transformationConfigurations = std::forward<TransformationConfigurationsT>(value);
110 }
111 template <typename TransformationConfigurationsT = Aws::Vector<ObjectLambdaTransformationConfiguration>>
112 ObjectLambdaConfiguration& WithTransformationConfigurations(TransformationConfigurationsT&& value) {
113 SetTransformationConfigurations(std::forward<TransformationConfigurationsT>(value));
114 return *this;
115 }
116 template <typename TransformationConfigurationsT = ObjectLambdaTransformationConfiguration>
117 ObjectLambdaConfiguration& AddTransformationConfigurations(TransformationConfigurationsT&& value) {
118 m_transformationConfigurationsHasBeenSet = true;
119 m_transformationConfigurations.emplace_back(std::forward<TransformationConfigurationsT>(value));
120 return *this;
121 }
123 private:
124 Aws::String m_supportingAccessPoint;
125
126 bool m_cloudWatchMetricsEnabled{false};
127
129
130 Aws::Vector<ObjectLambdaTransformationConfiguration> m_transformationConfigurations;
131 bool m_supportingAccessPointHasBeenSet = false;
132 bool m_cloudWatchMetricsEnabledHasBeenSet = false;
133 bool m_allowedFeaturesHasBeenSet = false;
134 bool m_transformationConfigurationsHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace S3Control
139} // namespace Aws
ObjectLambdaConfiguration & AddTransformationConfigurations(TransformationConfigurationsT &&value)
ObjectLambdaConfiguration & WithAllowedFeatures(AllowedFeaturesT &&value)
AWS_S3CONTROL_API ObjectLambdaConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API ObjectLambdaConfiguration()=default
void SetTransformationConfigurations(TransformationConfigurationsT &&value)
AWS_S3CONTROL_API ObjectLambdaConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< ObjectLambdaTransformationConfiguration > & GetTransformationConfigurations() const
const Aws::Vector< ObjectLambdaAllowedFeature > & GetAllowedFeatures() const
ObjectLambdaConfiguration & WithTransformationConfigurations(TransformationConfigurationsT &&value)
void SetSupportingAccessPoint(SupportingAccessPointT &&value)
ObjectLambdaConfiguration & AddAllowedFeatures(ObjectLambdaAllowedFeature value)
ObjectLambdaConfiguration & WithCloudWatchMetricsEnabled(bool value)
ObjectLambdaConfiguration & WithSupportingAccessPoint(SupportingAccessPointT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector