@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyReferrerPolicy extends Object implements Serializable, Cloneable
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.
Constructor and Description |
---|
ResponseHeadersPolicyReferrerPolicy() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicyReferrerPolicy |
clone() |
boolean |
equals(Object obj) |
Boolean |
getOverride()
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. |
String |
getReferrerPolicy()
The value of the
Referrer-Policy HTTP response header. |
int |
hashCode() |
Boolean |
isOverride()
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. |
void |
setOverride(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. |
void |
setReferrerPolicy(String referrerPolicy)
The value of the
Referrer-Policy HTTP response header. |
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyReferrerPolicy |
withOverride(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. |
ResponseHeadersPolicyReferrerPolicy |
withReferrerPolicy(ReferrerPolicyList referrerPolicy)
The value of the
Referrer-Policy HTTP response header. |
ResponseHeadersPolicyReferrerPolicy |
withReferrerPolicy(String referrerPolicy)
The value of the
Referrer-Policy HTTP response header. |
public void setOverride(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.
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.public Boolean getOverride()
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 ResponseHeadersPolicyReferrerPolicy withOverride(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.
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.public Boolean isOverride()
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 void setReferrerPolicy(String 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.
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.
ReferrerPolicyList
public String getReferrerPolicy()
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.
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.
ReferrerPolicyList
public ResponseHeadersPolicyReferrerPolicy withReferrerPolicy(String 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.
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.
ReferrerPolicyList
public ResponseHeadersPolicyReferrerPolicy withReferrerPolicy(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.
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.
ReferrerPolicyList
public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicyReferrerPolicy clone()