Class ResponseHeadersPolicyFrameOptions
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.ResponseHeadersPolicyFrameOptions
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResponseHeadersPolicyFrameOptions.Builder,ResponseHeadersPolicyFrameOptions>
@Generated("software.amazon.awssdk:codegen") public final class ResponseHeadersPolicyFrameOptions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseHeadersPolicyFrameOptions.Builder,ResponseHeadersPolicyFrameOptions>
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResponseHeadersPolicyFrameOptions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseHeadersPolicyFrameOptions.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)FrameOptionsListframeOption()The value of theX-Frame-OptionsHTTP response header.StringframeOptionAsString()The value of theX-Frame-OptionsHTTP response header.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Booleanoverride()A Boolean that determines whether CloudFront overrides theX-Frame-OptionsHTTP 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 ResponseHeadersPolicyFrameOptions.Builder>serializableBuilderClass()ResponseHeadersPolicyFrameOptions.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
X-Frame-OptionsHTTP response header received from the origin with the one specified in this response headers policy.- Returns:
- A Boolean that determines whether CloudFront overrides the
X-Frame-OptionsHTTP response header received from the origin with the one specified in this response headers policy.
-
frameOption
public final FrameOptionsList frameOption()
The value of the
X-Frame-OptionsHTTP response header. Valid values areDENYandSAMEORIGIN.For more information about these values, see X-Frame-Options in the MDN Web Docs.
If the service returns an enum value that is not available in the current SDK version,
frameOptionwill returnFrameOptionsList.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromframeOptionAsString().- Returns:
- The value of the
X-Frame-OptionsHTTP response header. Valid values areDENYandSAMEORIGIN.For more information about these values, see X-Frame-Options in the MDN Web Docs.
- See Also:
FrameOptionsList
-
frameOptionAsString
public final String frameOptionAsString()
The value of the
X-Frame-OptionsHTTP response header. Valid values areDENYandSAMEORIGIN.For more information about these values, see X-Frame-Options in the MDN Web Docs.
If the service returns an enum value that is not available in the current SDK version,
frameOptionwill returnFrameOptionsList.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromframeOptionAsString().- Returns:
- The value of the
X-Frame-OptionsHTTP response header. Valid values areDENYandSAMEORIGIN.For more information about these values, see X-Frame-Options in the MDN Web Docs.
- See Also:
FrameOptionsList
-
toBuilder
public ResponseHeadersPolicyFrameOptions.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseHeadersPolicyFrameOptions.Builder,ResponseHeadersPolicyFrameOptions>
-
builder
public static ResponseHeadersPolicyFrameOptions.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResponseHeadersPolicyFrameOptions.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
-
-