Class AwsCloudFrontDistributionCacheBehavior
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AwsCloudFrontDistributionCacheBehavior
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AwsCloudFrontDistributionCacheBehavior.Builder,AwsCloudFrontDistributionCacheBehavior>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAwsCloudFrontDistributionCacheBehavior.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AwsCloudFrontDistributionCacheBehavior.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AwsCloudFrontDistributionCacheBehavior.Builder>serializableBuilderClass()AwsCloudFrontDistributionCacheBehavior.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 AwsCloudFrontDistributionCacheBehavior.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AwsCloudFrontDistributionCacheBehavior.Builder,AwsCloudFrontDistributionCacheBehavior>
-
builder
public static AwsCloudFrontDistributionCacheBehavior.Builder builder()
-
serializableBuilderClass
public static Class<? extends AwsCloudFrontDistributionCacheBehavior.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-