@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CustomOriginConfig extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
CustomOriginConfig() |
Modifier and Type | Method and Description |
---|---|
CustomOriginConfig |
clone() |
boolean |
equals(Object obj) |
Integer |
getHTTPPort()
The HTTP port that CloudFront uses to connect to the origin.
|
Integer |
getHTTPSPort()
The HTTPS port that CloudFront uses to connect to the origin.
|
Integer |
getOriginKeepaliveTimeout()
Specifies how long, in seconds, CloudFront persists its connection to the origin.
|
String |
getOriginProtocolPolicy()
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
|
Integer |
getOriginReadTimeout()
Specifies how long, in seconds, CloudFront waits for a response from the origin.
|
OriginSslProtocols |
getOriginSslProtocols()
Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.
|
int |
hashCode() |
void |
setHTTPPort(Integer hTTPPort)
The HTTP port that CloudFront uses to connect to the origin.
|
void |
setHTTPSPort(Integer hTTPSPort)
The HTTPS port that CloudFront uses to connect to the origin.
|
void |
setOriginKeepaliveTimeout(Integer originKeepaliveTimeout)
Specifies how long, in seconds, CloudFront persists its connection to the origin.
|
void |
setOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
|
void |
setOriginProtocolPolicy(String originProtocolPolicy)
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
|
void |
setOriginReadTimeout(Integer originReadTimeout)
Specifies how long, in seconds, CloudFront waits for a response from the origin.
|
void |
setOriginSslProtocols(OriginSslProtocols originSslProtocols)
Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.
|
String |
toString()
Returns a string representation of this object.
|
CustomOriginConfig |
withHTTPPort(Integer hTTPPort)
The HTTP port that CloudFront uses to connect to the origin.
|
CustomOriginConfig |
withHTTPSPort(Integer hTTPSPort)
The HTTPS port that CloudFront uses to connect to the origin.
|
CustomOriginConfig |
withOriginKeepaliveTimeout(Integer originKeepaliveTimeout)
Specifies how long, in seconds, CloudFront persists its connection to the origin.
|
CustomOriginConfig |
withOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
|
CustomOriginConfig |
withOriginProtocolPolicy(String originProtocolPolicy)
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin.
|
CustomOriginConfig |
withOriginReadTimeout(Integer originReadTimeout)
Specifies how long, in seconds, CloudFront waits for a response from the origin.
|
CustomOriginConfig |
withOriginSslProtocols(OriginSslProtocols originSslProtocols)
Specifies the minimum SSL/TLS protocol that CloudFront uses when connecting to your origin over HTTPS.
|
public void setHTTPPort(Integer hTTPPort)
The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.
hTTPPort
- The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens
on.public Integer getHTTPPort()
The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.
public CustomOriginConfig withHTTPPort(Integer hTTPPort)
The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens on.
hTTPPort
- The HTTP port that CloudFront uses to connect to the origin. Specify the HTTP port that the origin listens
on.public void setHTTPSPort(Integer hTTPSPort)
The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.
hTTPSPort
- The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin
listens on.public Integer getHTTPSPort()
The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.
public CustomOriginConfig withHTTPSPort(Integer hTTPSPort)
The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin listens on.
hTTPSPort
- The HTTPS port that CloudFront uses to connect to the origin. Specify the HTTPS port that the origin
listens on.public void setOriginProtocolPolicy(String originProtocolPolicy)
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:
http-only
– CloudFront always uses HTTP to connect to the origin.
match-viewer
– CloudFront connects to the origin using the same protocol that the viewer used to
connect to CloudFront.
https-only
– CloudFront always uses HTTPS to connect to the origin.
originProtocolPolicy
- Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values
are:
http-only
– CloudFront always uses HTTP to connect to the origin.
match-viewer
– CloudFront connects to the origin using the same protocol that the viewer used
to connect to CloudFront.
https-only
– CloudFront always uses HTTPS to connect to the origin.
OriginProtocolPolicy
public String getOriginProtocolPolicy()
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:
http-only
– CloudFront always uses HTTP to connect to the origin.
match-viewer
– CloudFront connects to the origin using the same protocol that the viewer used to
connect to CloudFront.
https-only
– CloudFront always uses HTTPS to connect to the origin.
http-only
– CloudFront always uses HTTP to connect to the origin.
match-viewer
– CloudFront connects to the origin using the same protocol that the viewer
used to connect to CloudFront.
https-only
– CloudFront always uses HTTPS to connect to the origin.
OriginProtocolPolicy
public CustomOriginConfig withOriginProtocolPolicy(String originProtocolPolicy)
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:
http-only
– CloudFront always uses HTTP to connect to the origin.
match-viewer
– CloudFront connects to the origin using the same protocol that the viewer used to
connect to CloudFront.
https-only
– CloudFront always uses HTTPS to connect to the origin.
originProtocolPolicy
- Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values
are:
http-only
– CloudFront always uses HTTP to connect to the origin.
match-viewer
– CloudFront connects to the origin using the same protocol that the viewer used
to connect to CloudFront.
https-only
– CloudFront always uses HTTPS to connect to the origin.
OriginProtocolPolicy
public void setOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:
http-only
– CloudFront always uses HTTP to connect to the origin.
match-viewer
– CloudFront connects to the origin using the same protocol that the viewer used to
connect to CloudFront.
https-only
– CloudFront always uses HTTPS to connect to the origin.
originProtocolPolicy
- Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values
are:
http-only
– CloudFront always uses HTTP to connect to the origin.
match-viewer
– CloudFront connects to the origin using the same protocol that the viewer used
to connect to CloudFront.
https-only
– CloudFront always uses HTTPS to connect to the origin.
OriginProtocolPolicy
public CustomOriginConfig withOriginProtocolPolicy(OriginProtocolPolicy originProtocolPolicy)
Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values are:
http-only
– CloudFront always uses HTTP to connect to the origin.
match-viewer
– CloudFront connects to the origin using the same protocol that the viewer used to
connect to CloudFront.
https-only
– CloudFront always uses HTTPS to connect to the origin.
originProtocolPolicy
- Specifies the protocol (HTTP or HTTPS) that CloudFront uses to connect to the origin. Valid values
are:
http-only
– CloudFront always uses HTTP to connect to the origin.
match-viewer
– CloudFront connects to the origin using the same protocol that the viewer used
to connect to CloudFront.
https-only
– CloudFront always uses HTTPS to connect to the origin.
OriginProtocolPolicy
public void setOriginSslProtocols(OriginSslProtocols originSslProtocols)
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.
originSslProtocols
- 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.
public OriginSslProtocols getOriginSslProtocols()
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.
SSLv3
, TLSv1
, TLSv1.1
, and
TLSv1.2
.
For more information, see Minimum Origin SSL Protocol in the Amazon CloudFront Developer Guide.
public CustomOriginConfig withOriginSslProtocols(OriginSslProtocols originSslProtocols)
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.
originSslProtocols
- 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.
public void setOriginReadTimeout(Integer originReadTimeout)
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.
originReadTimeout
- 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.
public Integer getOriginReadTimeout()
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.
For more information, see Origin Response Timeout in the Amazon CloudFront Developer Guide.
public CustomOriginConfig withOriginReadTimeout(Integer originReadTimeout)
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.
originReadTimeout
- 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.
public void setOriginKeepaliveTimeout(Integer originKeepaliveTimeout)
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.
originKeepaliveTimeout
- 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.
public Integer getOriginKeepaliveTimeout()
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.
For more information, see Origin Keep-alive Timeout in the Amazon CloudFront Developer Guide.
public CustomOriginConfig withOriginKeepaliveTimeout(Integer originKeepaliveTimeout)
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.
originKeepaliveTimeout
- 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.
public String toString()
toString
in class Object
Object.toString()
public CustomOriginConfig clone()