All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.cloudfront.model.ForwardedValues Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon CloudFront module holds the client classes that are used for communicating with Amazon CloudFront Service

There is a newer version: 2.28.0
Show newest version
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */

package software.amazon.awssdk.services.cloudfront.model;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this field. *

*

* If you want to include values in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send values to the origin but not include them in the cache key, use an origin request policy. For * more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies how CloudFront handles query strings, cookies, and HTTP headers. *

*/ @Generated("software.amazon.awssdk:codegen") public final class ForwardedValues implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField QUERY_STRING_FIELD = SdkField . builder(MarshallingType.BOOLEAN) .memberName("QueryString") .getter(getter(ForwardedValues::queryString)) .setter(setter(Builder::queryString)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("QueryString") .unmarshallLocationName("QueryString").build()).build(); private static final SdkField COOKIES_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("Cookies") .getter(getter(ForwardedValues::cookies)) .setter(setter(Builder::cookies)) .constructor(CookiePreference::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Cookies") .unmarshallLocationName("Cookies").build()).build(); private static final SdkField HEADERS_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("Headers") .getter(getter(ForwardedValues::headers)) .setter(setter(Builder::headers)) .constructor(Headers::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Headers") .unmarshallLocationName("Headers").build()).build(); private static final SdkField QUERY_STRING_CACHE_KEYS_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("QueryStringCacheKeys") .getter(getter(ForwardedValues::queryStringCacheKeys)) .setter(setter(Builder::queryStringCacheKeys)) .constructor(QueryStringCacheKeys::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("QueryStringCacheKeys") .unmarshallLocationName("QueryStringCacheKeys").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(QUERY_STRING_FIELD, COOKIES_FIELD, HEADERS_FIELD, QUERY_STRING_CACHE_KEYS_FIELD)); private static final long serialVersionUID = 1L; private final Boolean queryString; private final CookiePreference cookies; private final Headers headers; private final QueryStringCacheKeys queryStringCacheKeys; private ForwardedValues(BuilderImpl builder) { this.queryString = builder.queryString; this.cookies = builder.cookies; this.headers = builder.headers; this.queryStringCacheKeys = builder.queryStringCacheKeys; } /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this * field. *

*

* If you want to include query strings in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send query strings to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* Indicates whether you want CloudFront to forward query strings to the origin that is associated with this cache * behavior and cache based on the query string parameters. CloudFront behavior depends on the value of * QueryString and on the values that you specify for QueryStringCacheKeys, if any: *

*

* If you specify true for QueryString and you don't specify any values for * QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin and caches based * on all query string parameters. Depending on how many query string parameters and values you have, this can * adversely affect performance because CloudFront must forward more requests to the origin. *

*

* If you specify true for QueryString and you specify one or more values for * QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin, but it only * caches based on the query string parameters that you specify. *

*

* If you specify false for QueryString, CloudFront doesn't forward any query string parameters to the * origin, and doesn't cache based on query string parameters. *

*

* For more information, see Configuring * CloudFront to Cache Based on Query String Parameters in the Amazon CloudFront Developer Guide. *

* * @return This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field.

*

* If you want to include query strings in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send query strings to the origin but not include them in the cache key, use an origin * request policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* Indicates whether you want CloudFront to forward query strings to the origin that is associated with this * cache behavior and cache based on the query string parameters. CloudFront behavior depends on the value * of QueryString and on the values that you specify for QueryStringCacheKeys, if * any: *

*

* If you specify true for QueryString and you don't specify any values for * QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin and * caches based on all query string parameters. Depending on how many query string parameters and values you * have, this can adversely affect performance because CloudFront must forward more requests to the origin. *

*

* If you specify true for QueryString and you specify one or more values for * QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin, but it * only caches based on the query string parameters that you specify. *

*

* If you specify false for QueryString, CloudFront doesn't forward any query string parameters * to the origin, and doesn't cache based on query string parameters. *

*

* For more information, see Configuring CloudFront to Cache Based on Query String Parameters in the Amazon CloudFront * Developer Guide. */ public final Boolean queryString() { return queryString; } /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this * field. *

*

* If you want to include cookies in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send cookies to the origin but not include them in the cache key, use an origin request policy. * For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which * ones. For more information about forwarding cookies to the origin, see How CloudFront Forwards, * Caches, and Logs Cookies in the Amazon CloudFront Developer Guide. *

* * @return This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field.

*

* If you want to include cookies in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send cookies to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, * which ones. For more information about forwarding cookies to the origin, see How CloudFront * Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide. */ public final CookiePreference cookies() { return cookies; } /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this * field. *

*

* If you want to include headers in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send headers to the origin but not include them in the cache key, use an origin request policy. * For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies the Headers, if any, that you want CloudFront to forward to the origin * for this cache behavior (whitelisted headers). For the headers that you specify, CloudFront also caches separate * versions of a specified object that is based on the header values in viewer requests. *

*

* For more information, see Caching Content * Based on Request Headers in the Amazon CloudFront Developer Guide. *

* * @return This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field.

*

* If you want to include headers in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send headers to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies the Headers, if any, that you want CloudFront to forward to * the origin for this cache behavior (whitelisted headers). For the headers that you specify, CloudFront * also caches separate versions of a specified object that is based on the header values in viewer * requests. *

*

* For more information, see Caching * Content Based on Request Headers in the Amazon CloudFront Developer Guide. */ public final Headers headers() { return headers; } /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of this * field. *

*

* If you want to include query strings in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send query strings to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that contains information about the query string parameters that you want CloudFront to use for * caching for this cache behavior. *

* * @return This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field.

*

* If you want to include query strings in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send query strings to the origin but not include them in the cache key, use an origin * request policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that contains information about the query string parameters that you want CloudFront to * use for caching for this cache behavior. */ public final QueryStringCacheKeys queryStringCacheKeys() { return queryStringCacheKeys; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(queryString()); hashCode = 31 * hashCode + Objects.hashCode(cookies()); hashCode = 31 * hashCode + Objects.hashCode(headers()); hashCode = 31 * hashCode + Objects.hashCode(queryStringCacheKeys()); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ForwardedValues)) { return false; } ForwardedValues other = (ForwardedValues) obj; return Objects.equals(queryString(), other.queryString()) && Objects.equals(cookies(), other.cookies()) && Objects.equals(headers(), other.headers()) && Objects.equals(queryStringCacheKeys(), other.queryStringCacheKeys()); } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public final String toString() { return ToString.builder("ForwardedValues").add("QueryString", queryString()).add("Cookies", cookies()) .add("Headers", headers()).add("QueryStringCacheKeys", queryStringCacheKeys()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "QueryString": return Optional.ofNullable(clazz.cast(queryString())); case "Cookies": return Optional.ofNullable(clazz.cast(cookies())); case "Headers": return Optional.ofNullable(clazz.cast(headers())); case "QueryStringCacheKeys": return Optional.ofNullable(clazz.cast(queryStringCacheKeys())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((ForwardedValues) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field. *

*

* If you want to include query strings in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send query strings to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* Indicates whether you want CloudFront to forward query strings to the origin that is associated with this * cache behavior and cache based on the query string parameters. CloudFront behavior depends on the value of * QueryString and on the values that you specify for QueryStringCacheKeys, if any: *

*

* If you specify true for QueryString and you don't specify any values for * QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin and caches * based on all query string parameters. Depending on how many query string parameters and values you have, this * can adversely affect performance because CloudFront must forward more requests to the origin. *

*

* If you specify true for QueryString and you specify one or more values for * QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin, but it only * caches based on the query string parameters that you specify. *

*

* If you specify false for QueryString, CloudFront doesn't forward any query string parameters to * the origin, and doesn't cache based on query string parameters. *

*

* For more information, see Configuring CloudFront to Cache Based on Query String Parameters in the Amazon CloudFront Developer * Guide. *

* * @param queryString * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead * of this field.

*

* If you want to include query strings in the cache key, use a cache policy. For more information, see * Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send query strings to the origin but not include them in the cache key, use an origin * request policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* Indicates whether you want CloudFront to forward query strings to the origin that is associated with * this cache behavior and cache based on the query string parameters. CloudFront behavior depends on the * value of QueryString and on the values that you specify for * QueryStringCacheKeys, if any: *

*

* If you specify true for QueryString and you don't specify any values for * QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin and * caches based on all query string parameters. Depending on how many query string parameters and values * you have, this can adversely affect performance because CloudFront must forward more requests to the * origin. *

*

* If you specify true for QueryString and you specify one or more values for * QueryStringCacheKeys, CloudFront forwards all query string parameters to the origin, but * it only caches based on the query string parameters that you specify. *

*

* If you specify false for QueryString, CloudFront doesn't forward any query string * parameters to the origin, and doesn't cache based on query string parameters. *

*

* For more information, see Configuring CloudFront to Cache Based on Query String Parameters in the Amazon CloudFront * Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder queryString(Boolean queryString); /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field. *

*

* If you want to include cookies in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send cookies to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which * ones. For more information about forwarding cookies to the origin, see How CloudFront * Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide. *

* * @param cookies * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead * of this field.

*

* If you want to include cookies in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send cookies to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, * which ones. For more information about forwarding cookies to the origin, see How CloudFront * Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder cookies(CookiePreference cookies); /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field. *

*

* If you want to include cookies in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send cookies to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies whether you want CloudFront to forward cookies to the origin and, if so, which * ones. For more information about forwarding cookies to the origin, see How CloudFront * Forwards, Caches, and Logs Cookies in the Amazon CloudFront Developer Guide. *

* This is a convenience method that creates an instance of the {@link CookiePreference.Builder} avoiding the * need to create one manually via {@link CookiePreference#builder()}. * *

* When the {@link Consumer} completes, {@link CookiePreference.Builder#build()} is called immediately and its * result is passed to {@link #cookies(CookiePreference)}. * * @param cookies * a consumer that will call methods on {@link CookiePreference.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #cookies(CookiePreference) */ default Builder cookies(Consumer cookies) { return cookies(CookiePreference.builder().applyMutation(cookies).build()); } /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field. *

*

* If you want to include headers in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send headers to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies the Headers, if any, that you want CloudFront to forward to the * origin for this cache behavior (whitelisted headers). For the headers that you specify, CloudFront also * caches separate versions of a specified object that is based on the header values in viewer requests. *

*

* For more information, see Caching * Content Based on Request Headers in the Amazon CloudFront Developer Guide. *

* * @param headers * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead * of this field.

*

* If you want to include headers in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send headers to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies the Headers, if any, that you want CloudFront to forward to * the origin for this cache behavior (whitelisted headers). For the headers that you specify, CloudFront * also caches separate versions of a specified object that is based on the header values in viewer * requests. *

*

* For more information, see Caching * Content Based on Request Headers in the Amazon CloudFront Developer Guide. * @return Returns a reference to this object so that method calls can be chained together. */ Builder headers(Headers headers); /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field. *

*

* If you want to include headers in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send headers to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that specifies the Headers, if any, that you want CloudFront to forward to the * origin for this cache behavior (whitelisted headers). For the headers that you specify, CloudFront also * caches separate versions of a specified object that is based on the header values in viewer requests. *

*

* For more information, see Caching * Content Based on Request Headers in the Amazon CloudFront Developer Guide. *

* This is a convenience method that creates an instance of the {@link Headers.Builder} avoiding the need to * create one manually via {@link Headers#builder()}. * *

* When the {@link Consumer} completes, {@link Headers.Builder#build()} is called immediately and its result is * passed to {@link #headers(Headers)}. * * @param headers * a consumer that will call methods on {@link Headers.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #headers(Headers) */ default Builder headers(Consumer headers) { return headers(Headers.builder().applyMutation(headers).build()); } /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field. *

*

* If you want to include query strings in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send query strings to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that contains information about the query string parameters that you want CloudFront to use * for caching for this cache behavior. *

* * @param queryStringCacheKeys * This field is deprecated. We recommend that you use a cache policy or an origin request policy instead * of this field.

*

* If you want to include query strings in the cache key, use a cache policy. For more information, see * Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send query strings to the origin but not include them in the cache key, use an origin * request policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that contains information about the query string parameters that you want CloudFront to * use for caching for this cache behavior. * @return Returns a reference to this object so that method calls can be chained together. */ Builder queryStringCacheKeys(QueryStringCacheKeys queryStringCacheKeys); /** *

* This field is deprecated. We recommend that you use a cache policy or an origin request policy instead of * this field. *

*

* If you want to include query strings in the cache key, use a cache policy. For more information, see Creating cache policies in the Amazon CloudFront Developer Guide. *

*

* If you want to send query strings to the origin but not include them in the cache key, use an origin request * policy. For more information, see Creating origin request policies in the Amazon CloudFront Developer Guide. *

*

* A complex type that contains information about the query string parameters that you want CloudFront to use * for caching for this cache behavior. *

* This is a convenience method that creates an instance of the {@link QueryStringCacheKeys.Builder} avoiding * the need to create one manually via {@link QueryStringCacheKeys#builder()}. * *

* When the {@link Consumer} completes, {@link QueryStringCacheKeys.Builder#build()} is called immediately and * its result is passed to {@link #queryStringCacheKeys(QueryStringCacheKeys)}. * * @param queryStringCacheKeys * a consumer that will call methods on {@link QueryStringCacheKeys.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #queryStringCacheKeys(QueryStringCacheKeys) */ default Builder queryStringCacheKeys(Consumer queryStringCacheKeys) { return queryStringCacheKeys(QueryStringCacheKeys.builder().applyMutation(queryStringCacheKeys).build()); } } static final class BuilderImpl implements Builder { private Boolean queryString; private CookiePreference cookies; private Headers headers; private QueryStringCacheKeys queryStringCacheKeys; private BuilderImpl() { } private BuilderImpl(ForwardedValues model) { queryString(model.queryString); cookies(model.cookies); headers(model.headers); queryStringCacheKeys(model.queryStringCacheKeys); } public final Boolean getQueryString() { return queryString; } public final void setQueryString(Boolean queryString) { this.queryString = queryString; } @Override public final Builder queryString(Boolean queryString) { this.queryString = queryString; return this; } public final CookiePreference.Builder getCookies() { return cookies != null ? cookies.toBuilder() : null; } public final void setCookies(CookiePreference.BuilderImpl cookies) { this.cookies = cookies != null ? cookies.build() : null; } @Override public final Builder cookies(CookiePreference cookies) { this.cookies = cookies; return this; } public final Headers.Builder getHeaders() { return headers != null ? headers.toBuilder() : null; } public final void setHeaders(Headers.BuilderImpl headers) { this.headers = headers != null ? headers.build() : null; } @Override public final Builder headers(Headers headers) { this.headers = headers; return this; } public final QueryStringCacheKeys.Builder getQueryStringCacheKeys() { return queryStringCacheKeys != null ? queryStringCacheKeys.toBuilder() : null; } public final void setQueryStringCacheKeys(QueryStringCacheKeys.BuilderImpl queryStringCacheKeys) { this.queryStringCacheKeys = queryStringCacheKeys != null ? queryStringCacheKeys.build() : null; } @Override public final Builder queryStringCacheKeys(QueryStringCacheKeys queryStringCacheKeys) { this.queryStringCacheKeys = queryStringCacheKeys; return this; } @Override public ForwardedValues build() { return new ForwardedValues(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy