public class ViewerCertificate
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
aCMCertificateArn
If you want viewers to use HTTPS to request your objects and you're using
an alternate domain name in your object URLs (for example,
https://example.com/logo.jpg), specify the ACM certificate ARN of the
custom viewer certificate for this distribution.
|
private java.lang.String |
certificate
Deprecated.
|
private java.lang.String |
certificateSource
Deprecated.
|
private java.lang.Boolean |
cloudFrontDefaultCertificate
If you want viewers to use HTTPS to request your objects and you're using
the CloudFront domain name of your distribution in your object URLs (for
example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true.
|
private java.lang.String |
iAMCertificateId
If you want viewers to use HTTPS to request your objects and you're using
an alternate domain name in your object URLs (for example,
https://example.com/logo.jpg), specify the IAM certificate identifier of
the custom viewer certificate for this distribution.
|
private java.lang.String |
minimumProtocolVersion
Specify the minimum version of the SSL protocol that you want CloudFront
to use, SSLv3 or TLSv1, for HTTPS connections.
|
private java.lang.String |
sSLSupportMethod
If you specify a value for IAMCertificateId, you must also specify how
you want CloudFront to serve HTTPS requests.
|
Constructor and Description |
---|
ViewerCertificate() |
Modifier and Type | Method and Description |
---|---|
ViewerCertificate |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getACMCertificateArn()
If you want viewers to use HTTPS to request your objects and you're using
an alternate domain name in your object URLs (for example,
https://example.com/logo.jpg), specify the ACM certificate ARN of the
custom viewer certificate for this distribution.
|
java.lang.String |
getCertificate()
Deprecated.
|
java.lang.String |
getCertificateSource()
Deprecated.
|
java.lang.Boolean |
getCloudFrontDefaultCertificate()
If you want viewers to use HTTPS to request your objects and you're using
the CloudFront domain name of your distribution in your object URLs (for
example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true.
|
java.lang.String |
getIAMCertificateId()
If you want viewers to use HTTPS to request your objects and you're using
an alternate domain name in your object URLs (for example,
https://example.com/logo.jpg), specify the IAM certificate identifier of
the custom viewer certificate for this distribution.
|
java.lang.String |
getMinimumProtocolVersion()
Specify the minimum version of the SSL protocol that you want CloudFront
to use, SSLv3 or TLSv1, for HTTPS connections.
|
java.lang.String |
getSSLSupportMethod()
If you specify a value for IAMCertificateId, you must also specify how
you want CloudFront to serve HTTPS requests.
|
int |
hashCode() |
java.lang.Boolean |
isCloudFrontDefaultCertificate()
If you want viewers to use HTTPS to request your objects and you're using
the CloudFront domain name of your distribution in your object URLs (for
example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true.
|
void |
setACMCertificateArn(java.lang.String aCMCertificateArn)
If you want viewers to use HTTPS to request your objects and you're using
an alternate domain name in your object URLs (for example,
https://example.com/logo.jpg), specify the ACM certificate ARN of the
custom viewer certificate for this distribution.
|
void |
setCertificate(java.lang.String certificate)
Deprecated.
|
void |
setCertificateSource(CertificateSource certificateSource)
Deprecated.
|
void |
setCertificateSource(java.lang.String certificateSource)
Deprecated.
|
void |
setCloudFrontDefaultCertificate(java.lang.Boolean cloudFrontDefaultCertificate)
If you want viewers to use HTTPS to request your objects and you're using
the CloudFront domain name of your distribution in your object URLs (for
example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true.
|
void |
setIAMCertificateId(java.lang.String iAMCertificateId)
If you want viewers to use HTTPS to request your objects and you're using
an alternate domain name in your object URLs (for example,
https://example.com/logo.jpg), specify the IAM certificate identifier of
the custom viewer certificate for this distribution.
|
void |
setMinimumProtocolVersion(MinimumProtocolVersion minimumProtocolVersion)
Specify the minimum version of the SSL protocol that you want CloudFront
to use, SSLv3 or TLSv1, for HTTPS connections.
|
void |
setMinimumProtocolVersion(java.lang.String minimumProtocolVersion)
Specify the minimum version of the SSL protocol that you want CloudFront
to use, SSLv3 or TLSv1, for HTTPS connections.
|
void |
setSSLSupportMethod(SSLSupportMethod sSLSupportMethod)
If you specify a value for IAMCertificateId, you must also specify how
you want CloudFront to serve HTTPS requests.
|
void |
setSSLSupportMethod(java.lang.String sSLSupportMethod)
If you specify a value for IAMCertificateId, you must also specify how
you want CloudFront to serve HTTPS requests.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ViewerCertificate |
withACMCertificateArn(java.lang.String aCMCertificateArn)
If you want viewers to use HTTPS to request your objects and you're using
an alternate domain name in your object URLs (for example,
https://example.com/logo.jpg), specify the ACM certificate ARN of the
custom viewer certificate for this distribution.
|
ViewerCertificate |
withCertificate(java.lang.String certificate)
Deprecated.
|
ViewerCertificate |
withCertificateSource(CertificateSource certificateSource)
Deprecated.
|
ViewerCertificate |
withCertificateSource(java.lang.String certificateSource)
Deprecated.
|
ViewerCertificate |
withCloudFrontDefaultCertificate(java.lang.Boolean cloudFrontDefaultCertificate)
If you want viewers to use HTTPS to request your objects and you're using
the CloudFront domain name of your distribution in your object URLs (for
example, https://d111111abcdef8.cloudfront.net/logo.jpg), set to true.
|
ViewerCertificate |
withIAMCertificateId(java.lang.String iAMCertificateId)
If you want viewers to use HTTPS to request your objects and you're using
an alternate domain name in your object URLs (for example,
https://example.com/logo.jpg), specify the IAM certificate identifier of
the custom viewer certificate for this distribution.
|
ViewerCertificate |
withMinimumProtocolVersion(MinimumProtocolVersion minimumProtocolVersion)
Specify the minimum version of the SSL protocol that you want CloudFront
to use, SSLv3 or TLSv1, for HTTPS connections.
|
ViewerCertificate |
withMinimumProtocolVersion(java.lang.String minimumProtocolVersion)
Specify the minimum version of the SSL protocol that you want CloudFront
to use, SSLv3 or TLSv1, for HTTPS connections.
|
ViewerCertificate |
withSSLSupportMethod(SSLSupportMethod sSLSupportMethod)
If you specify a value for IAMCertificateId, you must also specify how
you want CloudFront to serve HTTPS requests.
|
ViewerCertificate |
withSSLSupportMethod(java.lang.String sSLSupportMethod)
If you specify a value for IAMCertificateId, you must also specify how
you want CloudFront to serve HTTPS requests.
|
private java.lang.Boolean cloudFrontDefaultCertificate
private java.lang.String iAMCertificateId
private java.lang.String aCMCertificateArn
private java.lang.String sSLSupportMethod
private java.lang.String minimumProtocolVersion
@Deprecated private java.lang.String certificate
@Deprecated private java.lang.String certificateSource
public void setCloudFrontDefaultCertificate(java.lang.Boolean cloudFrontDefaultCertificate)
cloudFrontDefaultCertificate
- If you want viewers to use HTTPS to request your objects and
you're using the CloudFront domain name of your distribution in
your object URLs (for example,
https://d111111abcdef8.cloudfront.net/logo.jpg), set to true. Omit
this value if you are setting an ACMCertificateArn or
IAMCertificateId.public java.lang.Boolean getCloudFrontDefaultCertificate()
public ViewerCertificate withCloudFrontDefaultCertificate(java.lang.Boolean cloudFrontDefaultCertificate)
cloudFrontDefaultCertificate
- If you want viewers to use HTTPS to request your objects and
you're using the CloudFront domain name of your distribution in
your object URLs (for example,
https://d111111abcdef8.cloudfront.net/logo.jpg), set to true. Omit
this value if you are setting an ACMCertificateArn or
IAMCertificateId.public java.lang.Boolean isCloudFrontDefaultCertificate()
public void setIAMCertificateId(java.lang.String iAMCertificateId)
iAMCertificateId
- If you want viewers to use HTTPS to request your objects and
you're using an alternate domain name in your object URLs (for
example, https://example.com/logo.jpg), specify the IAM
certificate identifier of the custom viewer certificate for this
distribution. Specify either this value, ACMCertificateArn, or
CloudFrontDefaultCertificate.public java.lang.String getIAMCertificateId()
public ViewerCertificate withIAMCertificateId(java.lang.String iAMCertificateId)
iAMCertificateId
- If you want viewers to use HTTPS to request your objects and
you're using an alternate domain name in your object URLs (for
example, https://example.com/logo.jpg), specify the IAM
certificate identifier of the custom viewer certificate for this
distribution. Specify either this value, ACMCertificateArn, or
CloudFrontDefaultCertificate.public void setACMCertificateArn(java.lang.String aCMCertificateArn)
aCMCertificateArn
- If you want viewers to use HTTPS to request your objects and
you're using an alternate domain name in your object URLs (for
example, https://example.com/logo.jpg), specify the ACM
certificate ARN of the custom viewer certificate for this
distribution. Specify either this value, IAMCertificateId, or
CloudFrontDefaultCertificate.public java.lang.String getACMCertificateArn()
public ViewerCertificate withACMCertificateArn(java.lang.String aCMCertificateArn)
aCMCertificateArn
- If you want viewers to use HTTPS to request your objects and
you're using an alternate domain name in your object URLs (for
example, https://example.com/logo.jpg), specify the ACM
certificate ARN of the custom viewer certificate for this
distribution. Specify either this value, IAMCertificateId, or
CloudFrontDefaultCertificate.public void setSSLSupportMethod(java.lang.String sSLSupportMethod)
sSLSupportMethod
- If you specify a value for IAMCertificateId, you must also specify
how you want CloudFront to serve HTTPS requests. Valid values are
vip and sni-only. If you specify vip, CloudFront uses dedicated IP
addresses for your content and can respond to HTTPS requests from
any viewer. However, you must request permission to use this
feature, and you incur additional monthly charges. If you specify
sni-only, CloudFront can only respond to HTTPS requests from
viewers that support Server Name Indication (SNI). All modern
browsers support SNI, but some browsers still in use don't support
SNI. Do not specify a value for SSLSupportMethod if you specified
true for CloudFrontDefaultCertificate.SSLSupportMethod
public java.lang.String getSSLSupportMethod()
SSLSupportMethod
public ViewerCertificate withSSLSupportMethod(java.lang.String sSLSupportMethod)
sSLSupportMethod
- If you specify a value for IAMCertificateId, you must also specify
how you want CloudFront to serve HTTPS requests. Valid values are
vip and sni-only. If you specify vip, CloudFront uses dedicated IP
addresses for your content and can respond to HTTPS requests from
any viewer. However, you must request permission to use this
feature, and you incur additional monthly charges. If you specify
sni-only, CloudFront can only respond to HTTPS requests from
viewers that support Server Name Indication (SNI). All modern
browsers support SNI, but some browsers still in use don't support
SNI. Do not specify a value for SSLSupportMethod if you specified
true for CloudFrontDefaultCertificate.SSLSupportMethod
public void setSSLSupportMethod(SSLSupportMethod sSLSupportMethod)
sSLSupportMethod
- If you specify a value for IAMCertificateId, you must also specify
how you want CloudFront to serve HTTPS requests. Valid values are
vip and sni-only. If you specify vip, CloudFront uses dedicated IP
addresses for your content and can respond to HTTPS requests from
any viewer. However, you must request permission to use this
feature, and you incur additional monthly charges. If you specify
sni-only, CloudFront can only respond to HTTPS requests from
viewers that support Server Name Indication (SNI). All modern
browsers support SNI, but some browsers still in use don't support
SNI. Do not specify a value for SSLSupportMethod if you specified
true for CloudFrontDefaultCertificate.SSLSupportMethod
public ViewerCertificate withSSLSupportMethod(SSLSupportMethod sSLSupportMethod)
sSLSupportMethod
- If you specify a value for IAMCertificateId, you must also specify
how you want CloudFront to serve HTTPS requests. Valid values are
vip and sni-only. If you specify vip, CloudFront uses dedicated IP
addresses for your content and can respond to HTTPS requests from
any viewer. However, you must request permission to use this
feature, and you incur additional monthly charges. If you specify
sni-only, CloudFront can only respond to HTTPS requests from
viewers that support Server Name Indication (SNI). All modern
browsers support SNI, but some browsers still in use don't support
SNI. Do not specify a value for SSLSupportMethod if you specified
true for CloudFrontDefaultCertificate.SSLSupportMethod
public void setMinimumProtocolVersion(java.lang.String minimumProtocolVersion)
minimumProtocolVersion
- Specify the minimum version of the SSL protocol that you want
CloudFront to use, SSLv3 or TLSv1, for HTTPS connections.
CloudFront will serve your objects only to browsers or devices
that support at least the SSL version that you specify. The TLSv1
protocol is more secure, so we recommend that you specify SSLv3
only if your users are using browsers or devices that don't
support TLSv1. If you're using a custom certificate (if you
specify a value for IAMCertificateId) and if you're using
dedicated IP (if you specify vip for SSLSupportMethod), you can
choose SSLv3 or TLSv1 as the MinimumProtocolVersion. If you're
using a custom certificate (if you specify a value for
IAMCertificateId) and if you're using SNI (if you specify sni-only
for SSLSupportMethod), you must specify TLSv1 for
MinimumProtocolVersion.MinimumProtocolVersion
public java.lang.String getMinimumProtocolVersion()
MinimumProtocolVersion
public ViewerCertificate withMinimumProtocolVersion(java.lang.String minimumProtocolVersion)
minimumProtocolVersion
- Specify the minimum version of the SSL protocol that you want
CloudFront to use, SSLv3 or TLSv1, for HTTPS connections.
CloudFront will serve your objects only to browsers or devices
that support at least the SSL version that you specify. The TLSv1
protocol is more secure, so we recommend that you specify SSLv3
only if your users are using browsers or devices that don't
support TLSv1. If you're using a custom certificate (if you
specify a value for IAMCertificateId) and if you're using
dedicated IP (if you specify vip for SSLSupportMethod), you can
choose SSLv3 or TLSv1 as the MinimumProtocolVersion. If you're
using a custom certificate (if you specify a value for
IAMCertificateId) and if you're using SNI (if you specify sni-only
for SSLSupportMethod), you must specify TLSv1 for
MinimumProtocolVersion.MinimumProtocolVersion
public void setMinimumProtocolVersion(MinimumProtocolVersion minimumProtocolVersion)
minimumProtocolVersion
- Specify the minimum version of the SSL protocol that you want
CloudFront to use, SSLv3 or TLSv1, for HTTPS connections.
CloudFront will serve your objects only to browsers or devices
that support at least the SSL version that you specify. The TLSv1
protocol is more secure, so we recommend that you specify SSLv3
only if your users are using browsers or devices that don't
support TLSv1. If you're using a custom certificate (if you
specify a value for IAMCertificateId) and if you're using
dedicated IP (if you specify vip for SSLSupportMethod), you can
choose SSLv3 or TLSv1 as the MinimumProtocolVersion. If you're
using a custom certificate (if you specify a value for
IAMCertificateId) and if you're using SNI (if you specify sni-only
for SSLSupportMethod), you must specify TLSv1 for
MinimumProtocolVersion.MinimumProtocolVersion
public ViewerCertificate withMinimumProtocolVersion(MinimumProtocolVersion minimumProtocolVersion)
minimumProtocolVersion
- Specify the minimum version of the SSL protocol that you want
CloudFront to use, SSLv3 or TLSv1, for HTTPS connections.
CloudFront will serve your objects only to browsers or devices
that support at least the SSL version that you specify. The TLSv1
protocol is more secure, so we recommend that you specify SSLv3
only if your users are using browsers or devices that don't
support TLSv1. If you're using a custom certificate (if you
specify a value for IAMCertificateId) and if you're using
dedicated IP (if you specify vip for SSLSupportMethod), you can
choose SSLv3 or TLSv1 as the MinimumProtocolVersion. If you're
using a custom certificate (if you specify a value for
IAMCertificateId) and if you're using SNI (if you specify sni-only
for SSLSupportMethod), you must specify TLSv1 for
MinimumProtocolVersion.MinimumProtocolVersion
@Deprecated public void setCertificate(java.lang.String certificate)
certificate
- Note: this field is deprecated. Please use one of
[ACMCertificateArn, IAMCertificateId,
CloudFrontDefaultCertificate].@Deprecated public java.lang.String getCertificate()
@Deprecated public ViewerCertificate withCertificate(java.lang.String certificate)
certificate
- Note: this field is deprecated. Please use one of
[ACMCertificateArn, IAMCertificateId,
CloudFrontDefaultCertificate].@Deprecated public void setCertificateSource(java.lang.String certificateSource)
certificateSource
- Note: this field is deprecated. Please use one of
[ACMCertificateArn, IAMCertificateId,
CloudFrontDefaultCertificate].CertificateSource
@Deprecated public java.lang.String getCertificateSource()
CertificateSource
@Deprecated public ViewerCertificate withCertificateSource(java.lang.String certificateSource)
certificateSource
- Note: this field is deprecated. Please use one of
[ACMCertificateArn, IAMCertificateId,
CloudFrontDefaultCertificate].CertificateSource
@Deprecated public void setCertificateSource(CertificateSource certificateSource)
certificateSource
- Note: this field is deprecated. Please use one of
[ACMCertificateArn, IAMCertificateId,
CloudFrontDefaultCertificate].CertificateSource
@Deprecated public ViewerCertificate withCertificateSource(CertificateSource certificateSource)
certificateSource
- Note: this field is deprecated. Please use one of
[ACMCertificateArn, IAMCertificateId,
CloudFrontDefaultCertificate].CertificateSource
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ViewerCertificate clone()
clone
in class java.lang.Object