@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OriginRequestPolicyCookiesConfig extends Object implements Serializable, Cloneable
An object that determines whether any cookies in viewer requests (and if so, which cookies) are included in requests that CloudFront sends to the origin.
Constructor and Description |
---|
OriginRequestPolicyCookiesConfig() |
Modifier and Type | Method and Description |
---|---|
OriginRequestPolicyCookiesConfig |
clone() |
boolean |
equals(Object obj) |
String |
getCookieBehavior()
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin.
|
CookieNames |
getCookies() |
int |
hashCode() |
void |
setCookieBehavior(String cookieBehavior)
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin.
|
void |
setCookies(CookieNames cookies) |
String |
toString()
Returns a string representation of this object.
|
OriginRequestPolicyCookiesConfig |
withCookieBehavior(OriginRequestPolicyCookieBehavior cookieBehavior)
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin.
|
OriginRequestPolicyCookiesConfig |
withCookieBehavior(String cookieBehavior)
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin.
|
OriginRequestPolicyCookiesConfig |
withCookies(CookieNames cookies) |
public void setCookieBehavior(String cookieBehavior)
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin.
Even when this field is set to none
, any cookies that are listed in a CachePolicy
are included in origin requests.
whitelist
– Only the cookies in viewer requests that are listed in the CookieNames
type
are included in requests that CloudFront sends to the origin.
all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin.
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the
origin, except for those listed in the CookieNames
type, which are not included.
cookieBehavior
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the
origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the
origin. Even when this field is set to none
, any cookies that are listed in a
CachePolicy
are included in origin requests.
whitelist
– Only the cookies in viewer requests that are listed in the
CookieNames
type are included in requests that CloudFront sends to the origin.
all
– All cookies in viewer requests are included in requests that CloudFront sends to the
origin.
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to
the origin, except for those listed in the CookieNames
type, which are not
included.
OriginRequestPolicyCookieBehavior
public String getCookieBehavior()
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin.
Even when this field is set to none
, any cookies that are listed in a CachePolicy
are included in origin requests.
whitelist
– Only the cookies in viewer requests that are listed in the CookieNames
type
are included in requests that CloudFront sends to the origin.
all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin.
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the
origin, except for those listed in the CookieNames
type, which are not included.
none
– No cookies in viewer requests are included in requests that CloudFront sends to the
origin. Even when this field is set to none
, any cookies that are listed in a
CachePolicy
are included in origin requests.
whitelist
– Only the cookies in viewer requests that are listed in the
CookieNames
type are included in requests that CloudFront sends to the origin.
all
– All cookies in viewer requests are included in requests that CloudFront sends to the
origin.
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to
the origin, except for those listed in the CookieNames
type, which are not
included.
OriginRequestPolicyCookieBehavior
public OriginRequestPolicyCookiesConfig withCookieBehavior(String cookieBehavior)
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin.
Even when this field is set to none
, any cookies that are listed in a CachePolicy
are included in origin requests.
whitelist
– Only the cookies in viewer requests that are listed in the CookieNames
type
are included in requests that CloudFront sends to the origin.
all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin.
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the
origin, except for those listed in the CookieNames
type, which are not included.
cookieBehavior
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the
origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the
origin. Even when this field is set to none
, any cookies that are listed in a
CachePolicy
are included in origin requests.
whitelist
– Only the cookies in viewer requests that are listed in the
CookieNames
type are included in requests that CloudFront sends to the origin.
all
– All cookies in viewer requests are included in requests that CloudFront sends to the
origin.
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to
the origin, except for those listed in the CookieNames
type, which are not
included.
OriginRequestPolicyCookieBehavior
public OriginRequestPolicyCookiesConfig withCookieBehavior(OriginRequestPolicyCookieBehavior cookieBehavior)
Determines whether cookies in viewer requests are included in requests that CloudFront sends to the origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the origin.
Even when this field is set to none
, any cookies that are listed in a CachePolicy
are included in origin requests.
whitelist
– Only the cookies in viewer requests that are listed in the CookieNames
type
are included in requests that CloudFront sends to the origin.
all
– All cookies in viewer requests are included in requests that CloudFront sends to the origin.
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to the
origin, except for those listed in the CookieNames
type, which are not included.
cookieBehavior
- Determines whether cookies in viewer requests are included in requests that CloudFront sends to the
origin. Valid values are:
none
– No cookies in viewer requests are included in requests that CloudFront sends to the
origin. Even when this field is set to none
, any cookies that are listed in a
CachePolicy
are included in origin requests.
whitelist
– Only the cookies in viewer requests that are listed in the
CookieNames
type are included in requests that CloudFront sends to the origin.
all
– All cookies in viewer requests are included in requests that CloudFront sends to the
origin.
allExcept
– All cookies in viewer requests are included in requests that CloudFront sends to
the origin, except for those listed in the CookieNames
type, which are not
included.
OriginRequestPolicyCookieBehavior
public void setCookies(CookieNames cookies)
cookies
- public CookieNames getCookies()
public OriginRequestPolicyCookiesConfig withCookies(CookieNames cookies)
cookies
- public String toString()
toString
in class Object
Object.toString()
public OriginRequestPolicyCookiesConfig clone()