@Generated(value="software.amazon.awssdk:codegen") public final class AwsCloudFrontDistributionDefaultCacheBehavior extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsCloudFrontDistributionDefaultCacheBehavior.Builder,AwsCloudFrontDistributionDefaultCacheBehavior>
Contains information about the default cache configuration for the CloudFront distribution.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsCloudFrontDistributionDefaultCacheBehavior.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsCloudFrontDistributionDefaultCacheBehavior.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsCloudFrontDistributionDefaultCacheBehavior.Builder> |
serializableBuilderClass() |
AwsCloudFrontDistributionDefaultCacheBehavior.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
viewerProtocolPolicy()
The protocol that viewers can use to access the files in an origin.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String viewerProtocolPolicy()
The protocol that viewers can use to access the files in an origin. You can specify the following options:
allow-all - Viewers can use HTTP or HTTPS.
redirect-to-https - CloudFront responds to HTTP requests with an HTTP status code of 301 (Moved
Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
https-only - CloudFront responds to HTTP request with an HTTP status code of 403 (Forbidden).
allow-all - Viewers can use HTTP or HTTPS.
redirect-to-https - CloudFront responds to HTTP requests with an HTTP status code of 301
(Moved Permanently) and the HTTPS URL. The viewer then uses the new URL to resubmit.
https-only - CloudFront responds to HTTP request with an HTTP status code of 403
(Forbidden).
public AwsCloudFrontDistributionDefaultCacheBehavior.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsCloudFrontDistributionDefaultCacheBehavior.Builder,AwsCloudFrontDistributionDefaultCacheBehavior>public static AwsCloudFrontDistributionDefaultCacheBehavior.Builder builder()
public static Class<? extends AwsCloudFrontDistributionDefaultCacheBehavior.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.