@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 forward 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 forward 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; useful for testing and debugging.
|
OriginCustomHeader |
withHeaderName(String headerName)
The name of a header that you want CloudFront to forward 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 forward to your origin. For more information, see Forwarding Custom Headers to Your Origin (Web Distributions Only) in the Amazon Amazon CloudFront Developer Guide.
headerName
- The name of a header that you want CloudFront to forward to your origin. For more information, see
Forwarding Custom Headers to Your Origin (Web Distributions Only) in the Amazon Amazon CloudFront
Developer Guide.public String getHeaderName()
The name of a header that you want CloudFront to forward to your origin. For more information, see Forwarding Custom Headers to Your Origin (Web Distributions Only) in the Amazon Amazon CloudFront Developer Guide.
public OriginCustomHeader withHeaderName(String headerName)
The name of a header that you want CloudFront to forward to your origin. For more information, see Forwarding Custom Headers to Your Origin (Web Distributions Only) in the Amazon Amazon CloudFront Developer Guide.
headerName
- The name of a header that you want CloudFront to forward to your origin. For more information, see
Forwarding Custom Headers to Your Origin (Web Distributions Only) in the Amazon 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.