Class ResponseHeadersPolicyContentSecurityPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.ResponseHeadersPolicyContentSecurityPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResponseHeadersPolicyContentSecurityPolicy.Builder,ResponseHeadersPolicyContentSecurityPolicy>
@Generated("software.amazon.awssdk:codegen") public final class ResponseHeadersPolicyContentSecurityPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseHeadersPolicyContentSecurityPolicy.Builder,ResponseHeadersPolicyContentSecurityPolicy>
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResponseHeadersPolicyContentSecurityPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseHeadersPolicyContentSecurityPolicy.Builderbuilder()StringcontentSecurityPolicy()The policy directives and their values that CloudFront includes as values for theContent-Security-PolicyHTTP response header.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Booleanoverride()A Boolean that determines whether CloudFront overrides theContent-Security-PolicyHTTP response header received from the origin with the one specified in this response headers policy.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ResponseHeadersPolicyContentSecurityPolicy.Builder>serializableBuilderClass()ResponseHeadersPolicyContentSecurityPolicy.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
Content-Security-PolicyHTTP response header received from the origin with the one specified in this response headers policy.- Returns:
- A Boolean that determines whether CloudFront overrides the
Content-Security-PolicyHTTP response header received from the origin with the one specified in this response headers policy.
-
contentSecurityPolicy
public final String contentSecurityPolicy()
The policy directives and their values that CloudFront includes as values for the
Content-Security-PolicyHTTP response header.- Returns:
- The policy directives and their values that CloudFront includes as values for the
Content-Security-PolicyHTTP response header.
-
toBuilder
public ResponseHeadersPolicyContentSecurityPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseHeadersPolicyContentSecurityPolicy.Builder,ResponseHeadersPolicyContentSecurityPolicy>
-
builder
public static ResponseHeadersPolicyContentSecurityPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResponseHeadersPolicyContentSecurityPolicy.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
-
-