@Generated(value="software.amazon.awssdk:codegen") public final class AwsCloudFrontDistributionCacheBehavior extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsCloudFrontDistributionCacheBehavior.Builder,AwsCloudFrontDistributionCacheBehavior>
Information about a cache behavior for the distribution.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsCloudFrontDistributionCacheBehavior.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsCloudFrontDistributionCacheBehavior.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 AwsCloudFrontDistributionCacheBehavior.Builder> |
serializableBuilderClass() |
AwsCloudFrontDistributionCacheBehavior.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 AwsCloudFrontDistributionCacheBehavior.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsCloudFrontDistributionCacheBehavior.Builder,AwsCloudFrontDistributionCacheBehavior>public static AwsCloudFrontDistributionCacheBehavior.Builder builder()
public static Class<? extends AwsCloudFrontDistributionCacheBehavior.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.