AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ObjectLambdaConfiguration.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3control/model/ObjectLambdaAllowedFeature.h>
11#include <aws/s3control/model/ObjectLambdaTransformationConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace S3Control
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_S3CONTROL_API ObjectLambdaConfiguration() = default;
38 AWS_S3CONTROL_API ObjectLambdaConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
48 inline const Aws::String& GetSupportingAccessPoint() const { return m_supportingAccessPoint; }
49 inline bool SupportingAccessPointHasBeenSet() const { return m_supportingAccessPointHasBeenSet; }
50 template<typename SupportingAccessPointT = Aws::String>
51 void SetSupportingAccessPoint(SupportingAccessPointT&& value) { m_supportingAccessPointHasBeenSet = true; m_supportingAccessPoint = std::forward<SupportingAccessPointT>(value); }
52 template<typename SupportingAccessPointT = Aws::String>
53 ObjectLambdaConfiguration& WithSupportingAccessPoint(SupportingAccessPointT&& value) { SetSupportingAccessPoint(std::forward<SupportingAccessPointT>(value)); return *this;}
55
57
60 inline bool GetCloudWatchMetricsEnabled() const { return m_cloudWatchMetricsEnabled; }
61 inline bool CloudWatchMetricsEnabledHasBeenSet() const { return m_cloudWatchMetricsEnabledHasBeenSet; }
62 inline void SetCloudWatchMetricsEnabled(bool value) { m_cloudWatchMetricsEnabledHasBeenSet = true; m_cloudWatchMetricsEnabled = value; }
65
67
72 inline const Aws::Vector<ObjectLambdaAllowedFeature>& GetAllowedFeatures() const { return m_allowedFeatures; }
73 inline bool AllowedFeaturesHasBeenSet() const { return m_allowedFeaturesHasBeenSet; }
74 template<typename AllowedFeaturesT = Aws::Vector<ObjectLambdaAllowedFeature>>
75 void SetAllowedFeatures(AllowedFeaturesT&& value) { m_allowedFeaturesHasBeenSet = true; m_allowedFeatures = std::forward<AllowedFeaturesT>(value); }
76 template<typename AllowedFeaturesT = Aws::Vector<ObjectLambdaAllowedFeature>>
77 ObjectLambdaConfiguration& WithAllowedFeatures(AllowedFeaturesT&& value) { SetAllowedFeatures(std::forward<AllowedFeaturesT>(value)); return *this;}
78 inline ObjectLambdaConfiguration& AddAllowedFeatures(ObjectLambdaAllowedFeature value) { m_allowedFeaturesHasBeenSet = true; m_allowedFeatures.push_back(value); return *this; }
80
82
86 inline const Aws::Vector<ObjectLambdaTransformationConfiguration>& GetTransformationConfigurations() const { return m_transformationConfigurations; }
87 inline bool TransformationConfigurationsHasBeenSet() const { return m_transformationConfigurationsHasBeenSet; }
88 template<typename TransformationConfigurationsT = Aws::Vector<ObjectLambdaTransformationConfiguration>>
89 void SetTransformationConfigurations(TransformationConfigurationsT&& value) { m_transformationConfigurationsHasBeenSet = true; m_transformationConfigurations = std::forward<TransformationConfigurationsT>(value); }
90 template<typename TransformationConfigurationsT = Aws::Vector<ObjectLambdaTransformationConfiguration>>
91 ObjectLambdaConfiguration& WithTransformationConfigurations(TransformationConfigurationsT&& value) { SetTransformationConfigurations(std::forward<TransformationConfigurationsT>(value)); return *this;}
92 template<typename TransformationConfigurationsT = ObjectLambdaTransformationConfiguration>
93 ObjectLambdaConfiguration& AddTransformationConfigurations(TransformationConfigurationsT&& value) { m_transformationConfigurationsHasBeenSet = true; m_transformationConfigurations.emplace_back(std::forward<TransformationConfigurationsT>(value)); return *this; }
95 private:
96
97 Aws::String m_supportingAccessPoint;
98 bool m_supportingAccessPointHasBeenSet = false;
99
100 bool m_cloudWatchMetricsEnabled{false};
101 bool m_cloudWatchMetricsEnabledHasBeenSet = false;
102
104 bool m_allowedFeaturesHasBeenSet = false;
105
106 Aws::Vector<ObjectLambdaTransformationConfiguration> m_transformationConfigurations;
107 bool m_transformationConfigurationsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace S3Control
112} // 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