@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OriginCustomHeader extends Object implements Serializable, Cloneable
A complex type that contains HeaderName
and HeaderValue
elements, if any, for this
distribution.
Constructor and Description |
---|
OriginCustomHeader() |
Modifier and Type | Method and Description |
---|---|
OriginCustomHeader |
clone() |
boolean |
equals(Object obj) |
String |
getHeaderName()
The name of a header that you want CloudFront to send to your origin.
|
String |
getHeaderValue()
The value for the header that you specified in the
HeaderName field. |
int |
hashCode() |
void |
setHeaderName(String headerName)
The name of a header that you want CloudFront to send to your origin.
|
void |
setHeaderValue(String headerValue)
The value for the header that you specified in the
HeaderName field. |
String |
toString()
Returns a string representation of this object.
|
OriginCustomHeader |
withHeaderName(String headerName)
The name of a header that you want CloudFront to send to your origin.
|
OriginCustomHeader |
withHeaderValue(String headerValue)
The value for the header that you specified in the
HeaderName field. |
public void setHeaderName(String headerName)
The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.
headerName
- The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.public String getHeaderName()
The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.
public OriginCustomHeader withHeaderName(String headerName)
The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.
headerName
- The name of a header that you want CloudFront to send to your origin. For more information, see Adding Custom Headers to Origin Requests in the Amazon CloudFront Developer Guide.public void setHeaderValue(String headerValue)
The value for the header that you specified in the HeaderName
field.
headerValue
- The value for the header that you specified in the HeaderName
field.public String getHeaderValue()
The value for the header that you specified in the HeaderName
field.
HeaderName
field.public OriginCustomHeader withHeaderValue(String headerValue)
The value for the header that you specified in the HeaderName
field.
headerValue
- The value for the header that you specified in the HeaderName
field.public String toString()
toString
in class Object
Object.toString()
public OriginCustomHeader clone()