/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.s3control.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* A configuration used when creating an Object Lambda Access Point. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ObjectLambdaConfiguration implements Serializable, Cloneable { /** ** Standard access point associated with the Object Lambda Access Point. *
*/ private String supportingAccessPoint; /** ** A container for whether the CloudWatch metrics configuration is enabled. *
*/ private Boolean cloudWatchMetricsEnabled; /** *
* A container for allowed features. Valid inputs are GetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
*
* A container for transformation configurations for an Object Lambda Access Point. *
*/ private java.util.List* Standard access point associated with the Object Lambda Access Point. *
* * @param supportingAccessPoint * Standard access point associated with the Object Lambda Access Point. */ public void setSupportingAccessPoint(String supportingAccessPoint) { this.supportingAccessPoint = supportingAccessPoint; } /** ** Standard access point associated with the Object Lambda Access Point. *
* * @return Standard access point associated with the Object Lambda Access Point. */ public String getSupportingAccessPoint() { return this.supportingAccessPoint; } /** ** Standard access point associated with the Object Lambda Access Point. *
* * @param supportingAccessPoint * Standard access point associated with the Object Lambda Access Point. * @return Returns a reference to this object so that method calls can be chained together. */ public ObjectLambdaConfiguration withSupportingAccessPoint(String supportingAccessPoint) { setSupportingAccessPoint(supportingAccessPoint); return this; } /** ** A container for whether the CloudWatch metrics configuration is enabled. *
* * @param cloudWatchMetricsEnabled * A container for whether the CloudWatch metrics configuration is enabled. */ public void setCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled) { this.cloudWatchMetricsEnabled = cloudWatchMetricsEnabled; } /** ** A container for whether the CloudWatch metrics configuration is enabled. *
* * @return A container for whether the CloudWatch metrics configuration is enabled. */ public Boolean getCloudWatchMetricsEnabled() { return this.cloudWatchMetricsEnabled; } /** ** A container for whether the CloudWatch metrics configuration is enabled. *
* * @param cloudWatchMetricsEnabled * A container for whether the CloudWatch metrics configuration is enabled. * @return Returns a reference to this object so that method calls can be chained together. */ public ObjectLambdaConfiguration withCloudWatchMetricsEnabled(Boolean cloudWatchMetricsEnabled) { setCloudWatchMetricsEnabled(cloudWatchMetricsEnabled); return this; } /** ** A container for whether the CloudWatch metrics configuration is enabled. *
* * @return A container for whether the CloudWatch metrics configuration is enabled. */ public Boolean isCloudWatchMetricsEnabled() { return this.cloudWatchMetricsEnabled; } /** *
* A container for allowed features. Valid inputs are GetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
*
GetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
* @see ObjectLambdaAllowedFeature
*/
public java.util.List
* A container for allowed features. Valid inputs are GetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
*
GetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
* @see ObjectLambdaAllowedFeature
*/
public void setAllowedFeatures(java.util.Collection
* A container for allowed features. Valid inputs are GetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setAllowedFeatures(java.util.Collection)} or {@link #withAllowedFeatures(java.util.Collection)} if you * want to override the existing values. *
* * @param allowedFeatures * A container for allowed features. Valid inputs areGetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ObjectLambdaAllowedFeature
*/
public ObjectLambdaConfiguration withAllowedFeatures(String... allowedFeatures) {
if (this.allowedFeatures == null) {
setAllowedFeatures(new java.util.ArrayList
* A container for allowed features. Valid inputs are GetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
*
GetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ObjectLambdaAllowedFeature
*/
public ObjectLambdaConfiguration withAllowedFeatures(java.util.Collection
* A container for allowed features. Valid inputs are GetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
*
GetObject-Range
,
* GetObject-PartNumber
, HeadObject-Range
, and HeadObject-PartNumber
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ObjectLambdaAllowedFeature
*/
public ObjectLambdaConfiguration withAllowedFeatures(ObjectLambdaAllowedFeature... allowedFeatures) {
java.util.ArrayList* A container for transformation configurations for an Object Lambda Access Point. *
* * @return A container for transformation configurations for an Object Lambda Access Point. */ public java.util.List* A container for transformation configurations for an Object Lambda Access Point. *
* * @param transformationConfigurations * A container for transformation configurations for an Object Lambda Access Point. */ public void setTransformationConfigurations(java.util.Collection* A container for transformation configurations for an Object Lambda Access Point. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTransformationConfigurations(java.util.Collection)} or * {@link #withTransformationConfigurations(java.util.Collection)} if you want to override the existing values. *
* * @param transformationConfigurations * A container for transformation configurations for an Object Lambda Access Point. * @return Returns a reference to this object so that method calls can be chained together. */ public ObjectLambdaConfiguration withTransformationConfigurations(ObjectLambdaTransformationConfiguration... transformationConfigurations) { if (this.transformationConfigurations == null) { setTransformationConfigurations(new java.util.ArrayList* A container for transformation configurations for an Object Lambda Access Point. *
* * @param transformationConfigurations * A container for transformation configurations for an Object Lambda Access Point. * @return Returns a reference to this object so that method calls can be chained together. */ public ObjectLambdaConfiguration withTransformationConfigurations(java.util.Collection