@Generated(value="software.amazon.awssdk:codegen") public final class ResponseHeadersPolicyReferrerPolicy extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResponseHeadersPolicyReferrerPolicy.Builder,ResponseHeadersPolicyReferrerPolicy>
Determines whether CloudFront includes the Referrer-Policy HTTP response header and the header's value.
For more information about the Referrer-Policy HTTP response header, see Referrer-Policy in the MDN Web
Docs.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResponseHeadersPolicyReferrerPolicy.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResponseHeadersPolicyReferrerPolicy.Builder |
builder() |
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 the
Referrer-Policy HTTP response header
received from the origin with the one specified in this response headers policy. |
ReferrerPolicyList |
referrerPolicy()
The value of the
Referrer-Policy HTTP response header. |
String |
referrerPolicyAsString()
The value of the
Referrer-Policy HTTP response header. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResponseHeadersPolicyReferrerPolicy.Builder> |
serializableBuilderClass() |
ResponseHeadersPolicyReferrerPolicy.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean override()
A Boolean that determines whether CloudFront overrides the Referrer-Policy HTTP response header
received from the origin with the one specified in this response headers policy.
Referrer-Policy HTTP response
header received from the origin with the one specified in this response headers policy.public final ReferrerPolicyList referrerPolicy()
The value of the Referrer-Policy HTTP 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, referrerPolicy
will return ReferrerPolicyList.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from referrerPolicyAsString().
Referrer-Policy HTTP 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.
ReferrerPolicyListpublic final String referrerPolicyAsString()
The value of the Referrer-Policy HTTP 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, referrerPolicy
will return ReferrerPolicyList.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from referrerPolicyAsString().
Referrer-Policy HTTP 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.
ReferrerPolicyListpublic ResponseHeadersPolicyReferrerPolicy.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResponseHeadersPolicyReferrerPolicy.Builder,ResponseHeadersPolicyReferrerPolicy>public static ResponseHeadersPolicyReferrerPolicy.Builder builder()
public static Class<? extends ResponseHeadersPolicyReferrerPolicy.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.