Class ResponseHeadersPolicyStrictTransportSecurity
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.ResponseHeadersPolicyStrictTransportSecurity
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResponseHeadersPolicyStrictTransportSecurity.Builder,ResponseHeadersPolicyStrictTransportSecurity>
@Generated("software.amazon.awssdk:codegen") public final class ResponseHeadersPolicyStrictTransportSecurity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseHeadersPolicyStrictTransportSecurity.Builder,ResponseHeadersPolicyStrictTransportSecurity>
Determines whether CloudFront includes the
Strict-Transport-SecurityHTTP response header and the header's value.For more information about the
Strict-Transport-SecurityHTTP response header, see Strict-Transport-Security in the MDN Web Docs.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResponseHeadersPolicyStrictTransportSecurity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegeraccessControlMaxAgeSec()A number that CloudFront uses as the value for themax-agedirective in theStrict-Transport-SecurityHTTP response header.static ResponseHeadersPolicyStrictTransportSecurity.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanincludeSubdomains()A Boolean that determines whether CloudFront includes theincludeSubDomainsdirective in theStrict-Transport-SecurityHTTP response header.Booleanoverride()A Boolean that determines whether CloudFront overrides theStrict-Transport-SecurityHTTP response header received from the origin with the one specified in this response headers policy.Booleanpreload()A Boolean that determines whether CloudFront includes thepreloaddirective in theStrict-Transport-SecurityHTTP response header.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ResponseHeadersPolicyStrictTransportSecurity.Builder>serializableBuilderClass()ResponseHeadersPolicyStrictTransportSecurity.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
override
public final Boolean override()
A Boolean that determines whether CloudFront overrides the
Strict-Transport-SecurityHTTP response header received from the origin with the one specified in this response headers policy.- Returns:
- A Boolean that determines whether CloudFront overrides the
Strict-Transport-SecurityHTTP response header received from the origin with the one specified in this response headers policy.
-
includeSubdomains
public final Boolean includeSubdomains()
A Boolean that determines whether CloudFront includes the
includeSubDomainsdirective in theStrict-Transport-SecurityHTTP response header.- Returns:
- A Boolean that determines whether CloudFront includes the
includeSubDomainsdirective in theStrict-Transport-SecurityHTTP response header.
-
preload
public final Boolean preload()
A Boolean that determines whether CloudFront includes the
preloaddirective in theStrict-Transport-SecurityHTTP response header.- Returns:
- A Boolean that determines whether CloudFront includes the
preloaddirective in theStrict-Transport-SecurityHTTP response header.
-
accessControlMaxAgeSec
public final Integer accessControlMaxAgeSec()
A number that CloudFront uses as the value for the
max-agedirective in theStrict-Transport-SecurityHTTP response header.- Returns:
- A number that CloudFront uses as the value for the
max-agedirective in theStrict-Transport-SecurityHTTP response header.
-
toBuilder
public ResponseHeadersPolicyStrictTransportSecurity.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseHeadersPolicyStrictTransportSecurity.Builder,ResponseHeadersPolicyStrictTransportSecurity>
-
builder
public static ResponseHeadersPolicyStrictTransportSecurity.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResponseHeadersPolicyStrictTransportSecurity.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
-
-