/* * 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 custom origin. A custom origin is any origin that is not an Amazon S3 bucket, with one exception. An Amazon * S3 bucket that is configured with * static website hosting is a custom origin. *

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

* The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on. *

*/ private Integer hTTPPort; /** *

* The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on. *

*/ private Integer hTTPSPort; /** *

* Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are: *

* */ private String originProtocolPolicy; /** *

* Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS. Valid * values include SSLv3, TLSv1, TLSv1.1, and TLSv1.2. *

*

* For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide. *

*/ private OriginSslProtocols originSslProtocols; /** *

* Specifies how long, in seconds, CloudFront waits for a response from the origin. This is also known as the * origin response timeout. The minimum timeout is 1 second, the maximum is 60 seconds, and the default (if * you don't specify otherwise) is 30 seconds. *

*

* For more information, see Origin Response Timeout in the Amazon CloudFront Developer Guide. *

*/ private Integer originReadTimeout; /** *

* Specifies how long, in seconds, CloudFront persists its connection to the origin. The minimum timeout is 1 * second, the maximum is 60 seconds, and the default (if you don't specify otherwise) is 5 seconds. *

*

* For more information, see Origin Keep-alive Timeout in the Amazon CloudFront Developer Guide. *

*/ private Integer originKeepaliveTimeout; /** *

* The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on. *

* * @param hTTPPort * The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens * on. */ public void setHTTPPort(Integer hTTPPort) { this.hTTPPort = hTTPPort; } /** *

* The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on. *

* * @return The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin * listens on. */ public Integer getHTTPPort() { return this.hTTPPort; } /** *

* The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on. *

* * @param hTTPPort * The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens * on. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomOriginConfig withHTTPPort(Integer hTTPPort) { setHTTPPort(hTTPPort); return this; } /** *

* The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on. *

* * @param hTTPSPort * The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin * listens on. */ public void setHTTPSPort(Integer hTTPSPort) { this.hTTPSPort = hTTPSPort; } /** *

* The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on. *

* * @return The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin * listens on. */ public Integer getHTTPSPort() { return this.hTTPSPort; } /** *

* The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on. *

* * @param hTTPSPort * The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin * listens on. * @return Returns a reference to this object so that method calls can be chained together. */ public CustomOriginConfig withHTTPSPort(Integer hTTPSPort) { setHTTPSPort(hTTPSPort); return this; } /** *

* Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are: *

* * * @param originProtocolPolicy * Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values * are:

*