@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseHeadersPolicyCustomHeader extends Object implements Serializable, Cloneable
An HTTP response header name and its value. CloudFront includes this header in HTTP responses that it sends for requests that match a cache behavior that’s associated with this response headers policy.
Constructor and Description |
---|
ResponseHeadersPolicyCustomHeader() |
Modifier and Type | Method and Description |
---|---|
ResponseHeadersPolicyCustomHeader |
clone() |
boolean |
equals(Object obj) |
String |
getHeader()
The HTTP response header name.
|
Boolean |
getOverride()
A Boolean that determines whether CloudFront overrides a response header with the same name received from the
origin with the header specified here.
|
String |
getValue()
The value for the HTTP response header.
|
int |
hashCode() |
Boolean |
isOverride()
A Boolean that determines whether CloudFront overrides a response header with the same name received from the
origin with the header specified here.
|
void |
setHeader(String header)
The HTTP response header name.
|
void |
setOverride(Boolean override)
A Boolean that determines whether CloudFront overrides a response header with the same name received from the
origin with the header specified here.
|
void |
setValue(String value)
The value for the HTTP response header.
|
String |
toString()
Returns a string representation of this object.
|
ResponseHeadersPolicyCustomHeader |
withHeader(String header)
The HTTP response header name.
|
ResponseHeadersPolicyCustomHeader |
withOverride(Boolean override)
A Boolean that determines whether CloudFront overrides a response header with the same name received from the
origin with the header specified here.
|
ResponseHeadersPolicyCustomHeader |
withValue(String value)
The value for the HTTP response header.
|
public void setHeader(String header)
The HTTP response header name.
header
- The HTTP response header name.public String getHeader()
The HTTP response header name.
public ResponseHeadersPolicyCustomHeader withHeader(String header)
The HTTP response header name.
header
- The HTTP response header name.public void setValue(String value)
The value for the HTTP response header.
value
- The value for the HTTP response header.public String getValue()
The value for the HTTP response header.
public ResponseHeadersPolicyCustomHeader withValue(String value)
The value for the HTTP response header.
value
- The value for the HTTP response header.public void setOverride(Boolean override)
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
override
- A Boolean that determines whether CloudFront overrides a response header with the same name received from
the origin with the header specified here.public Boolean getOverride()
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
public ResponseHeadersPolicyCustomHeader withOverride(Boolean override)
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
override
- A Boolean that determines whether CloudFront overrides a response header with the same name received from
the origin with the header specified here.public Boolean isOverride()
A Boolean that determines whether CloudFront overrides a response header with the same name received from the origin with the header specified here.
public String toString()
toString
in class Object
Object.toString()
public ResponseHeadersPolicyCustomHeader clone()