Class ForwardedValues
- java.lang.Object
-
- com.amazonaws.services.cloudfront.model.ForwardedValues
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ForwardedValues extends Object implements Serializable, Cloneable
A complex type that specifies how CloudFront handles query strings, cookies and headers.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ForwardedValues()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForwardedValues
clone()
boolean
equals(Object obj)
CookiePreference
getCookies()
A complex type that specifies how CloudFront handles cookies.Headers
getHeaders()
A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.Boolean
getQueryString()
Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior.int
hashCode()
Boolean
isQueryString()
Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior.void
setCookies(CookiePreference cookies)
A complex type that specifies how CloudFront handles cookies.void
setHeaders(Headers headers)
A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.void
setQueryString(Boolean queryString)
Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior.String
toString()
Returns a string representation of this object; useful for testing and debugging.ForwardedValues
withCookies(CookiePreference cookies)
A complex type that specifies how CloudFront handles cookies.ForwardedValues
withHeaders(Headers headers)
A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.ForwardedValues
withQueryString(Boolean queryString)
Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior.
-
-
-
Method Detail
-
setQueryString
public void setQueryString(Boolean queryString)
Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.- Parameters:
queryString
- Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.
-
getQueryString
public Boolean getQueryString()
Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.- Returns:
- Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.
-
withQueryString
public ForwardedValues withQueryString(Boolean queryString)
Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.- Parameters:
queryString
- Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isQueryString
public Boolean isQueryString()
Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.- Returns:
- Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache behavior. If so, specify true; if not, specify false.
-
setCookies
public void setCookies(CookiePreference cookies)
A complex type that specifies how CloudFront handles cookies.- Parameters:
cookies
- A complex type that specifies how CloudFront handles cookies.
-
getCookies
public CookiePreference getCookies()
A complex type that specifies how CloudFront handles cookies.- Returns:
- A complex type that specifies how CloudFront handles cookies.
-
withCookies
public ForwardedValues withCookies(CookiePreference cookies)
A complex type that specifies how CloudFront handles cookies.- Parameters:
cookies
- A complex type that specifies how CloudFront handles cookies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setHeaders
public void setHeaders(Headers headers)
A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.- Parameters:
headers
- A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.
-
getHeaders
public Headers getHeaders()
A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.- Returns:
- A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.
-
withHeaders
public ForwardedValues withHeaders(Headers headers)
A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.- Parameters:
headers
- A complex type that specifies the Headers, if any, that you want CloudFront to vary upon for this cache behavior.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ForwardedValues clone()
-
-