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-Security
HTTP response header and the header's value.For more information about the
Strict-Transport-Security
HTTP 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 interface
ResponseHeadersPolicyStrictTransportSecurity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
accessControlMaxAgeSec()
A number that CloudFront uses as the value for themax-age
directive in theStrict-Transport-Security
HTTP response header.static ResponseHeadersPolicyStrictTransportSecurity.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Boolean
includeSubdomains()
A Boolean that determines whether CloudFront includes theincludeSubDomains
directive in theStrict-Transport-Security
HTTP response header.Boolean
override()
A Boolean that determines whether CloudFront overrides theStrict-Transport-Security
HTTP response header received from the origin with the one specified in this response headers policy.Boolean
preload()
A Boolean that determines whether CloudFront includes thepreload
directive in theStrict-Transport-Security
HTTP response header.List<SdkField<?>>
sdkFields()
static Class<? extends ResponseHeadersPolicyStrictTransportSecurity.Builder>
serializableBuilderClass()
ResponseHeadersPolicyStrictTransportSecurity.Builder
toBuilder()
String
toString()
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-Security
HTTP 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-Security
HTTP 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
includeSubDomains
directive in theStrict-Transport-Security
HTTP response header.- Returns:
- A Boolean that determines whether CloudFront includes the
includeSubDomains
directive in theStrict-Transport-Security
HTTP response header.
-
preload
public final Boolean preload()
A Boolean that determines whether CloudFront includes the
preload
directive in theStrict-Transport-Security
HTTP response header.- Returns:
- A Boolean that determines whether CloudFront includes the
preload
directive in theStrict-Transport-Security
HTTP response header.
-
accessControlMaxAgeSec
public final Integer accessControlMaxAgeSec()
A number that CloudFront uses as the value for the
max-age
directive in theStrict-Transport-Security
HTTP response header.- Returns:
- A number that CloudFront uses as the value for the
max-age
directive in theStrict-Transport-Security
HTTP response header.
-
toBuilder
public ResponseHeadersPolicyStrictTransportSecurity.Builder toBuilder()
- Specified by:
toBuilder
in 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:
equalsBySdkFields
in 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.
-
-