/* * 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.cloudfront.model; import java.io.Serializable; import javax.annotation.Generated; /** *

* A CloudFront origin access control configuration. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class OriginAccessControlConfig implements Serializable, Cloneable { /** *

* A name to identify the origin access control. *

*/ private String name; /** *

* A description of the origin access control. *

*/ private String description; /** *

* The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) * requests. The only valid value is sigv4. *

*/ private String signingProtocol; /** *

* Specifies which requests CloudFront signs (adds authentication information to). Specify always for * the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide. *

*

* This field can have one of the following values: *

* */ private String signingBehavior; /** *

* The type of origin that this origin access control is for. *

*/ private String originAccessControlOriginType; /** *

* A name to identify the origin access control. *

* * @param name * A name to identify the origin access control. */ public void setName(String name) { this.name = name; } /** *

* A name to identify the origin access control. *

* * @return A name to identify the origin access control. */ public String getName() { return this.name; } /** *

* A name to identify the origin access control. *

* * @param name * A name to identify the origin access control. * @return Returns a reference to this object so that method calls can be chained together. */ public OriginAccessControlConfig withName(String name) { setName(name); return this; } /** *

* A description of the origin access control. *

* * @param description * A description of the origin access control. */ public void setDescription(String description) { this.description = description; } /** *

* A description of the origin access control. *

* * @return A description of the origin access control. */ public String getDescription() { return this.description; } /** *

* A description of the origin access control. *

* * @param description * A description of the origin access control. * @return Returns a reference to this object so that method calls can be chained together. */ public OriginAccessControlConfig withDescription(String description) { setDescription(description); return this; } /** *

* The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) * requests. The only valid value is sigv4. *

* * @param signingProtocol * The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) * requests. The only valid value is sigv4. * @see OriginAccessControlSigningProtocols */ public void setSigningProtocol(String signingProtocol) { this.signingProtocol = signingProtocol; } /** *

* The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) * requests. The only valid value is sigv4. *

* * @return The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) * requests. The only valid value is sigv4. * @see OriginAccessControlSigningProtocols */ public String getSigningProtocol() { return this.signingProtocol; } /** *

* The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) * requests. The only valid value is sigv4. *

* * @param signingProtocol * The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) * requests. The only valid value is sigv4. * @return Returns a reference to this object so that method calls can be chained together. * @see OriginAccessControlSigningProtocols */ public OriginAccessControlConfig withSigningProtocol(String signingProtocol) { setSigningProtocol(signingProtocol); return this; } /** *

* The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) * requests. The only valid value is sigv4. *

* * @param signingProtocol * The signing protocol of the origin access control, which determines how CloudFront signs (authenticates) * requests. The only valid value is sigv4. * @return Returns a reference to this object so that method calls can be chained together. * @see OriginAccessControlSigningProtocols */ public OriginAccessControlConfig withSigningProtocol(OriginAccessControlSigningProtocols signingProtocol) { this.signingProtocol = signingProtocol.toString(); return this; } /** *

* Specifies which requests CloudFront signs (adds authentication information to). Specify always for * the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide. *

*

* This field can have one of the following values: *

* * * @param signingBehavior * Specifies which requests CloudFront signs (adds authentication information to). Specify * always for the most common use case. For more information, see origin access control advanced settings in the Amazon CloudFront Developer Guide.

*

* This field can have one of the following values: *

*