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-Policy
HTTP response header.For more information about the
Content-Security-Policy
HTTP 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 interface
ResponseHeadersPolicyContentSecurityPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseHeadersPolicyContentSecurityPolicy.Builder
builder()
String
contentSecurityPolicy()
The policy directives and their values that CloudFront includes as values for theContent-Security-Policy
HTTP response header.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Boolean
override()
A Boolean that determines whether CloudFront overrides theContent-Security-Policy
HTTP response header received from the origin with the one specified in this response headers policy.List<SdkField<?>>
sdkFields()
static Class<? extends ResponseHeadersPolicyContentSecurityPolicy.Builder>
serializableBuilderClass()
ResponseHeadersPolicyContentSecurityPolicy.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
Content-Security-Policy
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
Content-Security-Policy
HTTP 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-Policy
HTTP response header.- Returns:
- The policy directives and their values that CloudFront includes as values for the
Content-Security-Policy
HTTP response header.
-
toBuilder
public ResponseHeadersPolicyContentSecurityPolicy.Builder toBuilder()
- Specified by:
toBuilder
in 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:
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.
-
-