Class ResponseHeadersPolicySecurityHeadersConfig
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.ResponseHeadersPolicySecurityHeadersConfig
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,ResponseHeadersPolicySecurityHeadersConfig>
@Generated("software.amazon.awssdk:codegen") public final class ResponseHeadersPolicySecurityHeadersConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,ResponseHeadersPolicySecurityHeadersConfig>
A configuration for a set of security-related HTTP response headers. CloudFront adds these headers to HTTP responses that it sends for requests that match a cache behavior associated with this response headers policy.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResponseHeadersPolicySecurityHeadersConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseHeadersPolicySecurityHeadersConfig.Builderbuilder()ResponseHeadersPolicyContentSecurityPolicycontentSecurityPolicy()The policy directives and their values that CloudFront includes as values for theContent-Security-PolicyHTTP response header.ResponseHeadersPolicyContentTypeOptionscontentTypeOptions()Determines whether CloudFront includes theX-Content-Type-OptionsHTTP response header with its value set tonosniff.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)ResponseHeadersPolicyFrameOptionsframeOptions()Determines whether CloudFront includes theX-Frame-OptionsHTTP response header and the header's value.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ResponseHeadersPolicyReferrerPolicyreferrerPolicy()Determines whether CloudFront includes theReferrer-PolicyHTTP response header and the header's value.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ResponseHeadersPolicySecurityHeadersConfig.Builder>serializableBuilderClass()ResponseHeadersPolicyStrictTransportSecuritystrictTransportSecurity()Determines whether CloudFront includes theStrict-Transport-SecurityHTTP response header and the header's value.ResponseHeadersPolicySecurityHeadersConfig.BuildertoBuilder()StringtoString()Returns a string representation of this object.ResponseHeadersPolicyXSSProtectionxssProtection()Determines whether CloudFront includes theX-XSS-ProtectionHTTP response header and the header's value.-
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
-
xssProtection
public final ResponseHeadersPolicyXSSProtection xssProtection()
Determines whether CloudFront includes the
X-XSS-ProtectionHTTP response header and the header's value.For more information about the
X-XSS-ProtectionHTTP response header, see X-XSS-Protection in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the
X-XSS-ProtectionHTTP response header and the header's value.For more information about the
X-XSS-ProtectionHTTP response header, see X-XSS-Protection in the MDN Web Docs.
-
frameOptions
public final ResponseHeadersPolicyFrameOptions frameOptions()
Determines whether CloudFront includes the
X-Frame-OptionsHTTP response header and the header's value.For more information about the
X-Frame-OptionsHTTP response header, see X-Frame-Options in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the
X-Frame-OptionsHTTP response header and the header's value.For more information about the
X-Frame-OptionsHTTP response header, see X-Frame-Options in the MDN Web Docs.
-
referrerPolicy
public final ResponseHeadersPolicyReferrerPolicy referrerPolicy()
Determines whether CloudFront includes the
Referrer-PolicyHTTP response header and the header's value.For more information about the
Referrer-PolicyHTTP response header, see Referrer-Policy in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the
Referrer-PolicyHTTP response header and the header's value.For more information about the
Referrer-PolicyHTTP response header, see Referrer-Policy in the MDN Web Docs.
-
contentSecurityPolicy
public final ResponseHeadersPolicyContentSecurityPolicy contentSecurityPolicy()
The policy directives and their values that CloudFront includes as values for the
Content-Security-PolicyHTTP response header.For more information about the
Content-Security-PolicyHTTP response header, see Content-Security-Policy in the MDN Web Docs.- Returns:
- The policy directives and their values that CloudFront includes as values for the
Content-Security-PolicyHTTP response header.For more information about the
Content-Security-PolicyHTTP response header, see Content-Security-Policy in the MDN Web Docs.
-
contentTypeOptions
public final ResponseHeadersPolicyContentTypeOptions contentTypeOptions()
Determines whether CloudFront includes the
X-Content-Type-OptionsHTTP response header with its value set tonosniff.For more information about the
X-Content-Type-OptionsHTTP response header, see X-Content-Type-Options in the MDN Web Docs.- Returns:
- Determines whether CloudFront includes the
X-Content-Type-OptionsHTTP response header with its value set tonosniff.For more information about the
X-Content-Type-OptionsHTTP response header, see X-Content-Type-Options in the MDN Web Docs.
-
strictTransportSecurity
public final ResponseHeadersPolicyStrictTransportSecurity strictTransportSecurity()
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 Security headers in the Amazon CloudFront Developer Guide and Strict-Transport-Security in the MDN Web Docs.- Returns:
- 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 Security headers in the Amazon CloudFront Developer Guide and Strict-Transport-Security in the MDN Web Docs.
-
toBuilder
public ResponseHeadersPolicySecurityHeadersConfig.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseHeadersPolicySecurityHeadersConfig.Builder,ResponseHeadersPolicySecurityHeadersConfig>
-
builder
public static ResponseHeadersPolicySecurityHeadersConfig.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResponseHeadersPolicySecurityHeadersConfig.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
-
-