Class ResponseHeadersPolicyReferrerPolicy
- java.lang.Object
-
- software.amazon.awssdk.services.cloudfront.model.ResponseHeadersPolicyReferrerPolicy
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ResponseHeadersPolicyReferrerPolicy.Builder,ResponseHeadersPolicyReferrerPolicy>
@Generated("software.amazon.awssdk:codegen") public final class ResponseHeadersPolicyReferrerPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseHeadersPolicyReferrerPolicy.Builder,ResponseHeadersPolicyReferrerPolicy>
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.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceResponseHeadersPolicyReferrerPolicy.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ResponseHeadersPolicyReferrerPolicy.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Booleanoverride()A Boolean that determines whether CloudFront overrides theReferrer-PolicyHTTP response header received from the origin with the one specified in this response headers policy.ReferrerPolicyListreferrerPolicy()The value of theReferrer-PolicyHTTP response header.StringreferrerPolicyAsString()The value of theReferrer-PolicyHTTP response header.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ResponseHeadersPolicyReferrerPolicy.Builder>serializableBuilderClass()ResponseHeadersPolicyReferrerPolicy.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
Referrer-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
Referrer-PolicyHTTP response header received from the origin with the one specified in this response headers policy.
-
referrerPolicy
public final ReferrerPolicyList referrerPolicy()
The value of the
Referrer-PolicyHTTP response header. Valid values are:-
no-referrer -
no-referrer-when-downgrade -
origin -
origin-when-cross-origin -
same-origin -
strict-origin -
strict-origin-when-cross-origin -
unsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
If the service returns an enum value that is not available in the current SDK version,
referrerPolicywill returnReferrerPolicyList.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreferrerPolicyAsString().- Returns:
- The value of the
Referrer-PolicyHTTP response header. Valid values are:-
no-referrer -
no-referrer-when-downgrade -
origin -
origin-when-cross-origin -
same-origin -
strict-origin -
strict-origin-when-cross-origin -
unsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
-
- See Also:
ReferrerPolicyList
-
-
referrerPolicyAsString
public final String referrerPolicyAsString()
The value of the
Referrer-PolicyHTTP response header. Valid values are:-
no-referrer -
no-referrer-when-downgrade -
origin -
origin-when-cross-origin -
same-origin -
strict-origin -
strict-origin-when-cross-origin -
unsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
If the service returns an enum value that is not available in the current SDK version,
referrerPolicywill returnReferrerPolicyList.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreferrerPolicyAsString().- Returns:
- The value of the
Referrer-PolicyHTTP response header. Valid values are:-
no-referrer -
no-referrer-when-downgrade -
origin -
origin-when-cross-origin -
same-origin -
strict-origin -
strict-origin-when-cross-origin -
unsafe-url
For more information about these values, see Referrer-Policy in the MDN Web Docs.
-
- See Also:
ReferrerPolicyList
-
-
toBuilder
public ResponseHeadersPolicyReferrerPolicy.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ResponseHeadersPolicyReferrerPolicy.Builder,ResponseHeadersPolicyReferrerPolicy>
-
builder
public static ResponseHeadersPolicyReferrerPolicy.Builder builder()
-
serializableBuilderClass
public static Class<? extends ResponseHeadersPolicyReferrerPolicy.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
-
-