public class ViewerCertificate extends Object implements Serializable, Cloneable
| Constructor and Description |
|---|
ViewerCertificate() |
| Modifier and Type | Method and Description |
|---|---|
ViewerCertificate |
clone() |
boolean |
equals(Object obj) |
String |
getCertificate()
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), you can use your own IAM or ACM
certificate.
|
String |
getCertificateSource()
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
"cloudfront".
|
Boolean |
getCloudFrontDefaultCertificate()
Note: this field is deprecated.
|
String |
getIAMCertificateId()
Note: this field is deprecated.
|
String |
getMinimumProtocolVersion()
Specify the minimum version of the SSL protocol that you want CloudFront
to use, SSLv3 or TLSv1, for HTTPS connections.
|
String |
getSSLSupportMethod()
If you specify a value for IAMCertificateId, you must also specify how
you want CloudFront to serve HTTPS requests.
|
int |
hashCode() |
Boolean |
isCloudFrontDefaultCertificate()
Note: this field is deprecated.
|
void |
setCertificate(String certificate)
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), you can use your own IAM or ACM
certificate.
|
void |
setCertificateSource(CertificateSource certificateSource)
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
"cloudfront".
|
void |
setCertificateSource(String certificateSource)
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
"cloudfront".
|
void |
setCloudFrontDefaultCertificate(Boolean cloudFrontDefaultCertificate)
Note: this field is deprecated.
|
void |
setIAMCertificateId(String iAMCertificateId)
Note: this field is deprecated.
|
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(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(String sSLSupportMethod)
If you specify a value for IAMCertificateId, you must also specify how
you want CloudFront to serve HTTPS requests.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ViewerCertificate |
withCertificate(String certificate)
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), you can use your own IAM or ACM
certificate.
|
ViewerCertificate |
withCertificateSource(CertificateSource certificateSource)
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
"cloudfront".
|
ViewerCertificate |
withCertificateSource(String certificateSource)
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
"cloudfront".
|
ViewerCertificate |
withCloudFrontDefaultCertificate(Boolean cloudFrontDefaultCertificate)
Note: this field is deprecated.
|
ViewerCertificate |
withIAMCertificateId(String iAMCertificateId)
Note: this field is deprecated.
|
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(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(String sSLSupportMethod)
If you specify a value for IAMCertificateId, you must also specify how
you want CloudFront to serve HTTPS requests.
|
public void setCertificate(String certificate)
certificate - 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), you can use your own IAM
or ACM certificate. For ACM, set to the ACM certificate ARN. For
IAM, set to the IAM certificate identifier.public String getCertificate()
public ViewerCertificate withCertificate(String certificate)
certificate - 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), you can use your own IAM
or ACM certificate. For ACM, set to the ACM certificate ARN. For
IAM, set to the IAM certificate identifier.public void setCertificateSource(String certificateSource)
certificateSource - 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
"cloudfront". 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), you can use your
own IAM or ACM certificate. To use an ACM certificate, set to
"acm" and update the Certificate to the ACM certificate ARN. To
use an IAM certificate, set to "iam" and update the Certificate to
the IAM certificate identifier.CertificateSourcepublic String getCertificateSource()
CertificateSourcepublic ViewerCertificate withCertificateSource(String certificateSource)
certificateSource - 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
"cloudfront". 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), you can use your
own IAM or ACM certificate. To use an ACM certificate, set to
"acm" and update the Certificate to the ACM certificate ARN. To
use an IAM certificate, set to "iam" and update the Certificate to
the IAM certificate identifier.CertificateSourcepublic void setCertificateSource(CertificateSource certificateSource)
certificateSource - 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
"cloudfront". 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), you can use your
own IAM or ACM certificate. To use an ACM certificate, set to
"acm" and update the Certificate to the ACM certificate ARN. To
use an IAM certificate, set to "iam" and update the Certificate to
the IAM certificate identifier.CertificateSourcepublic ViewerCertificate withCertificateSource(CertificateSource certificateSource)
certificateSource - 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
"cloudfront". 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), you can use your
own IAM or ACM certificate. To use an ACM certificate, set to
"acm" and update the Certificate to the ACM certificate ARN. To
use an IAM certificate, set to "iam" and update the Certificate to
the IAM certificate identifier.CertificateSourcepublic void setSSLSupportMethod(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.SSLSupportMethodpublic String getSSLSupportMethod()
SSLSupportMethodpublic ViewerCertificate withSSLSupportMethod(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.SSLSupportMethodpublic 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.SSLSupportMethodpublic 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.SSLSupportMethodpublic void setMinimumProtocolVersion(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.MinimumProtocolVersionpublic String getMinimumProtocolVersion()
MinimumProtocolVersionpublic ViewerCertificate withMinimumProtocolVersion(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.MinimumProtocolVersionpublic 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.MinimumProtocolVersionpublic 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.MinimumProtocolVersionpublic void setIAMCertificateId(String iAMCertificateId)
iAMCertificateId - Note: this field is deprecated. Please use "iam" as
CertificateSource and specify the IAM certificate Id as the
Certificate. 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 or
CloudFrontDefaultCertificate.public String getIAMCertificateId()
public ViewerCertificate withIAMCertificateId(String iAMCertificateId)
iAMCertificateId - Note: this field is deprecated. Please use "iam" as
CertificateSource and specify the IAM certificate Id as the
Certificate. 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 or
CloudFrontDefaultCertificate.public void setCloudFrontDefaultCertificate(Boolean cloudFrontDefaultCertificate)
cloudFrontDefaultCertificate - Note: this field is deprecated. Please use "cloudfront" as
CertificateSource and omit specifying a Certificate. 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 IAMCertificateId.public Boolean getCloudFrontDefaultCertificate()
public ViewerCertificate withCloudFrontDefaultCertificate(Boolean cloudFrontDefaultCertificate)
cloudFrontDefaultCertificate - Note: this field is deprecated. Please use "cloudfront" as
CertificateSource and omit specifying a Certificate. 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 IAMCertificateId.public Boolean isCloudFrontDefaultCertificate()
public String toString()
toString in class ObjectObject.toString()public ViewerCertificate clone()
Copyright © 2016. All rights reserved.