/* * 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. *

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

* The unique identifier of the origin access control. *

*/ private String id; /** *

* A description of the origin access control. *

*/ private String description; /** *

* A unique name that identifies the origin access control. *

*/ private String name; /** *

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

*/ private String signingProtocol; /** *

* A value that specifies which requests CloudFront signs (adds authentication information to). 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; /** *

* The unique identifier of the origin access control. *

* * @param id * The unique identifier of the origin access control. */ public void setId(String id) { this.id = id; } /** *

* The unique identifier of the origin access control. *

* * @return The unique identifier of the origin access control. */ public String getId() { return this.id; } /** *

* The unique identifier of the origin access control. *

* * @param id * The unique identifier of the origin access control. * @return Returns a reference to this object so that method calls can be chained together. */ public OriginAccessControlSummary withId(String id) { setId(id); 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 OriginAccessControlSummary withDescription(String description) { setDescription(description); return this; } /** *

* A unique name that identifies the origin access control. *

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

* A unique name that identifies the origin access control. *

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

* A unique name that identifies the origin access control. *

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

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

* * @param signingProtocol * The signing protocol of the origin access control. The signing protocol 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. The signing protocol determines how CloudFront signs * (authenticates) requests. The only valid value is sigv4. *

* * @return The signing protocol of the origin access control. The signing protocol 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. The signing protocol determines how CloudFront signs * (authenticates) requests. The only valid value is sigv4. *

* * @param signingProtocol * The signing protocol of the origin access control. The signing protocol 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 OriginAccessControlSummary withSigningProtocol(String signingProtocol) { setSigningProtocol(signingProtocol); return this; } /** *

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

* * @param signingProtocol * The signing protocol of the origin access control. The signing protocol 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 OriginAccessControlSummary withSigningProtocol(OriginAccessControlSigningProtocols signingProtocol) { this.signingProtocol = signingProtocol.toString(); return this; } /** *

* A value that specifies which requests CloudFront signs (adds authentication information to). This field can have * one of the following values: *

* * * @param signingBehavior * A value that specifies which requests CloudFront signs (adds authentication information to). This field * can have one of the following values:

*