Class AwsCloudFrontDistributionDefaultCacheBehavior
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsCloudFrontDistributionDefaultCacheBehavior
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsCloudFrontDistributionDefaultCacheBehavior.Builder,AwsCloudFrontDistributionDefaultCacheBehavior>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsCloudFrontDistributionDefaultCacheBehavior.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsCloudFrontDistributionDefaultCacheBehavior.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends AwsCloudFrontDistributionDefaultCacheBehavior.Builder>serializableBuilderClass()AwsCloudFrontDistributionDefaultCacheBehavior.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringviewerProtocolPolicy()The protocol that viewers can use to access the files in an origin.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
viewerProtocolPolicy
public 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).
- Returns:
- 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).
-
-
-
toBuilder
public AwsCloudFrontDistributionDefaultCacheBehavior.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsCloudFrontDistributionDefaultCacheBehavior.Builder,AwsCloudFrontDistributionDefaultCacheBehavior>
-
builder
public static AwsCloudFrontDistributionDefaultCacheBehavior.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsCloudFrontDistributionDefaultCacheBehavior.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-