software.amazon.awssdk.services.apigateway.model.MethodSetting Maven / Gradle / Ivy
Show all versions of api-gateway Show documentation
/*
* Copyright 2013-2018 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.apigateway.model;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Generated;
import software.amazon.awssdk.annotations.SdkInternalApi;
import software.amazon.awssdk.core.protocol.ProtocolMarshaller;
import software.amazon.awssdk.core.protocol.StructuredPojo;
import software.amazon.awssdk.services.apigateway.transform.MethodSettingMarshaller;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*
* Specifies the method setting properties.
*
*/
@Generated("software.amazon.awssdk:codegen")
public class MethodSetting implements StructuredPojo, ToCopyableBuilder {
private final Boolean metricsEnabled;
private final String loggingLevel;
private final Boolean dataTraceEnabled;
private final Integer throttlingBurstLimit;
private final Double throttlingRateLimit;
private final Boolean cachingEnabled;
private final Integer cacheTtlInSeconds;
private final Boolean cacheDataEncrypted;
private final Boolean requireAuthorizationForCacheControl;
private final String unauthorizedCacheControlHeaderStrategy;
private MethodSetting(BuilderImpl builder) {
this.metricsEnabled = builder.metricsEnabled;
this.loggingLevel = builder.loggingLevel;
this.dataTraceEnabled = builder.dataTraceEnabled;
this.throttlingBurstLimit = builder.throttlingBurstLimit;
this.throttlingRateLimit = builder.throttlingRateLimit;
this.cachingEnabled = builder.cachingEnabled;
this.cacheTtlInSeconds = builder.cacheTtlInSeconds;
this.cacheDataEncrypted = builder.cacheDataEncrypted;
this.requireAuthorizationForCacheControl = builder.requireAuthorizationForCacheControl;
this.unauthorizedCacheControlHeaderStrategy = builder.unauthorizedCacheControlHeaderStrategy;
}
/**
*
* Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is
* /{method_setting_key}/metrics/enabled
, and the value is a Boolean.
*
*
* @return Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting
* is /{method_setting_key}/metrics/enabled
, and the value is a Boolean.
*/
public Boolean metricsEnabled() {
return metricsEnabled;
}
/**
*
* Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs. The
* PATCH path for this setting is /{method_setting_key}/logging/loglevel
, and the available levels are
* OFF
, ERROR
, and INFO
.
*
*
* @return Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch
* Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel
, and the
* available levels are OFF
, ERROR
, and INFO
.
*/
public String loggingLevel() {
return loggingLevel;
}
/**
*
* Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to Amazon
* CloudWatch Logs. The PATCH path for this setting is /{method_setting_key}/logging/dataTrace
, and the
* value is a Boolean.
*
*
* @return Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to
* Amazon CloudWatch Logs. The PATCH path for this setting is
* /{method_setting_key}/logging/dataTrace
, and the value is a Boolean.
*/
public Boolean dataTraceEnabled() {
return dataTraceEnabled;
}
/**
*
* Specifies the throttling burst limit. The PATCH path for this setting is
* /{method_setting_key}/throttling/burstLimit
, and the value is an integer.
*
*
* @return Specifies the throttling burst limit. The PATCH path for this setting is
* /{method_setting_key}/throttling/burstLimit
, and the value is an integer.
*/
public Integer throttlingBurstLimit() {
return throttlingBurstLimit;
}
/**
*
* Specifies the throttling rate limit. The PATCH path for this setting is
* /{method_setting_key}/throttling/rateLimit
, and the value is a double.
*
*
* @return Specifies the throttling rate limit. The PATCH path for this setting is
* /{method_setting_key}/throttling/rateLimit
, and the value is a double.
*/
public Double throttlingRateLimit() {
return throttlingRateLimit;
}
/**
*
* Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on the
* stage for responses to be cached. The PATCH path for this setting is
* /{method_setting_key}/caching/enabled
, and the value is a Boolean.
*
*
* @return Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled
* on the stage for responses to be cached. The PATCH path for this setting is
* /{method_setting_key}/caching/enabled
, and the value is a Boolean.
*/
public Boolean cachingEnabled() {
return cachingEnabled;
}
/**
*
* Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the response
* will be cached. The PATCH path for this setting is /{method_setting_key}/caching/ttlInSeconds
, and
* the value is an integer.
*
*
* @return Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the
* response will be cached. The PATCH path for this setting is
* /{method_setting_key}/caching/ttlInSeconds
, and the value is an integer.
*/
public Integer cacheTtlInSeconds() {
return cacheTtlInSeconds;
}
/**
*
* Specifies whether the cached responses are encrypted. The PATCH path for this setting is
* /{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.
*
*
* @return Specifies whether the cached responses are encrypted. The PATCH path for this setting is
* /{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.
*/
public Boolean cacheDataEncrypted() {
return cacheDataEncrypted;
}
/**
*
* Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting is
* /{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value is a Boolean.
*
*
* @return Specifies whether authorization is required for a cache invalidation request. The PATCH path for this
* setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value
* is a Boolean.
*/
public Boolean requireAuthorizationForCacheControl() {
return requireAuthorizationForCacheControl;
}
/**
*
* Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is
* /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values are
* FAIL_WITH_403
, SUCCEED_WITH_RESPONSE_HEADER
,
* SUCCEED_WITHOUT_RESPONSE_HEADER
.
*
*
* If the service returns an enum value that is not available in the current SDK version,
* {@link #unauthorizedCacheControlHeaderStrategy} will return
* {@link UnauthorizedCacheControlHeaderStrategy#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
* available from {@link #unauthorizedCacheControlHeaderStrategyString}.
*
*
* @return Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is
* /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available
* values are FAIL_WITH_403
, SUCCEED_WITH_RESPONSE_HEADER
,
* SUCCEED_WITHOUT_RESPONSE_HEADER
.
* @see UnauthorizedCacheControlHeaderStrategy
*/
public UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy() {
return UnauthorizedCacheControlHeaderStrategy.fromValue(unauthorizedCacheControlHeaderStrategy);
}
/**
*
* Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is
* /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values are
* FAIL_WITH_403
, SUCCEED_WITH_RESPONSE_HEADER
,
* SUCCEED_WITHOUT_RESPONSE_HEADER
.
*
*
* If the service returns an enum value that is not available in the current SDK version,
* {@link #unauthorizedCacheControlHeaderStrategy} will return
* {@link UnauthorizedCacheControlHeaderStrategy#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
* available from {@link #unauthorizedCacheControlHeaderStrategyString}.
*
*
* @return Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is
* /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available
* values are FAIL_WITH_403
, SUCCEED_WITH_RESPONSE_HEADER
,
* SUCCEED_WITHOUT_RESPONSE_HEADER
.
* @see UnauthorizedCacheControlHeaderStrategy
*/
public String unauthorizedCacheControlHeaderStrategyString() {
return unauthorizedCacheControlHeaderStrategy;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + Objects.hashCode(metricsEnabled());
hashCode = 31 * hashCode + Objects.hashCode(loggingLevel());
hashCode = 31 * hashCode + Objects.hashCode(dataTraceEnabled());
hashCode = 31 * hashCode + Objects.hashCode(throttlingBurstLimit());
hashCode = 31 * hashCode + Objects.hashCode(throttlingRateLimit());
hashCode = 31 * hashCode + Objects.hashCode(cachingEnabled());
hashCode = 31 * hashCode + Objects.hashCode(cacheTtlInSeconds());
hashCode = 31 * hashCode + Objects.hashCode(cacheDataEncrypted());
hashCode = 31 * hashCode + Objects.hashCode(requireAuthorizationForCacheControl());
hashCode = 31 * hashCode + Objects.hashCode(unauthorizedCacheControlHeaderStrategyString());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof MethodSetting)) {
return false;
}
MethodSetting other = (MethodSetting) obj;
return Objects.equals(metricsEnabled(), other.metricsEnabled())
&& Objects.equals(loggingLevel(), other.loggingLevel())
&& Objects.equals(dataTraceEnabled(), other.dataTraceEnabled())
&& Objects.equals(throttlingBurstLimit(), other.throttlingBurstLimit())
&& Objects.equals(throttlingRateLimit(), other.throttlingRateLimit())
&& Objects.equals(cachingEnabled(), other.cachingEnabled())
&& Objects.equals(cacheTtlInSeconds(), other.cacheTtlInSeconds())
&& Objects.equals(cacheDataEncrypted(), other.cacheDataEncrypted())
&& Objects.equals(requireAuthorizationForCacheControl(), other.requireAuthorizationForCacheControl())
&& Objects.equals(unauthorizedCacheControlHeaderStrategyString(),
other.unauthorizedCacheControlHeaderStrategyString());
}
@Override
public String toString() {
return ToString.builder("MethodSetting").add("MetricsEnabled", metricsEnabled()).add("LoggingLevel", loggingLevel())
.add("DataTraceEnabled", dataTraceEnabled()).add("ThrottlingBurstLimit", throttlingBurstLimit())
.add("ThrottlingRateLimit", throttlingRateLimit()).add("CachingEnabled", cachingEnabled())
.add("CacheTtlInSeconds", cacheTtlInSeconds()).add("CacheDataEncrypted", cacheDataEncrypted())
.add("RequireAuthorizationForCacheControl", requireAuthorizationForCacheControl())
.add("UnauthorizedCacheControlHeaderStrategy", unauthorizedCacheControlHeaderStrategyString()).build();
}
public Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "metricsEnabled":
return Optional.of(clazz.cast(metricsEnabled()));
case "loggingLevel":
return Optional.of(clazz.cast(loggingLevel()));
case "dataTraceEnabled":
return Optional.of(clazz.cast(dataTraceEnabled()));
case "throttlingBurstLimit":
return Optional.of(clazz.cast(throttlingBurstLimit()));
case "throttlingRateLimit":
return Optional.of(clazz.cast(throttlingRateLimit()));
case "cachingEnabled":
return Optional.of(clazz.cast(cachingEnabled()));
case "cacheTtlInSeconds":
return Optional.of(clazz.cast(cacheTtlInSeconds()));
case "cacheDataEncrypted":
return Optional.of(clazz.cast(cacheDataEncrypted()));
case "requireAuthorizationForCacheControl":
return Optional.of(clazz.cast(requireAuthorizationForCacheControl()));
case "unauthorizedCacheControlHeaderStrategy":
return Optional.of(clazz.cast(unauthorizedCacheControlHeaderStrategyString()));
default:
return Optional.empty();
}
}
@SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
MethodSettingMarshaller.getInstance().marshall(this, protocolMarshaller);
}
public interface Builder extends CopyableBuilder {
/**
*
* Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this setting is
* /{method_setting_key}/metrics/enabled
, and the value is a Boolean.
*
*
* @param metricsEnabled
* Specifies whether Amazon CloudWatch metrics are enabled for this method. The PATCH path for this
* setting is /{method_setting_key}/metrics/enabled
, and the value is a Boolean.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder metricsEnabled(Boolean metricsEnabled);
/**
*
* Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch Logs.
* The PATCH path for this setting is /{method_setting_key}/logging/loglevel
, and the available
* levels are OFF
, ERROR
, and INFO
.
*
*
* @param loggingLevel
* Specifies the logging level for this method, which effects the log entries pushed to Amazon CloudWatch
* Logs. The PATCH path for this setting is /{method_setting_key}/logging/loglevel
, and the
* available levels are OFF
, ERROR
, and INFO
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder loggingLevel(String loggingLevel);
/**
*
* Specifies whether data trace logging is enabled for this method, which effects the log entries pushed to
* Amazon CloudWatch Logs. The PATCH path for this setting is
* /{method_setting_key}/logging/dataTrace
, and the value is a Boolean.
*
*
* @param dataTraceEnabled
* Specifies whether data trace logging is enabled for this method, which effects the log entries pushed
* to Amazon CloudWatch Logs. The PATCH path for this setting is
* /{method_setting_key}/logging/dataTrace
, and the value is a Boolean.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder dataTraceEnabled(Boolean dataTraceEnabled);
/**
*
* Specifies the throttling burst limit. The PATCH path for this setting is
* /{method_setting_key}/throttling/burstLimit
, and the value is an integer.
*
*
* @param throttlingBurstLimit
* Specifies the throttling burst limit. The PATCH path for this setting is
* /{method_setting_key}/throttling/burstLimit
, and the value is an integer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder throttlingBurstLimit(Integer throttlingBurstLimit);
/**
*
* Specifies the throttling rate limit. The PATCH path for this setting is
* /{method_setting_key}/throttling/rateLimit
, and the value is a double.
*
*
* @param throttlingRateLimit
* Specifies the throttling rate limit. The PATCH path for this setting is
* /{method_setting_key}/throttling/rateLimit
, and the value is a double.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder throttlingRateLimit(Double throttlingRateLimit);
/**
*
* Specifies whether responses should be cached and returned for requests. A cache cluster must be enabled on
* the stage for responses to be cached. The PATCH path for this setting is
* /{method_setting_key}/caching/enabled
, and the value is a Boolean.
*
*
* @param cachingEnabled
* Specifies whether responses should be cached and returned for requests. A cache cluster must be
* enabled on the stage for responses to be cached. The PATCH path for this setting is
* /{method_setting_key}/caching/enabled
, and the value is a Boolean.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder cachingEnabled(Boolean cachingEnabled);
/**
*
* Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the
* response will be cached. The PATCH path for this setting is
* /{method_setting_key}/caching/ttlInSeconds
, and the value is an integer.
*
*
* @param cacheTtlInSeconds
* Specifies the time to live (TTL), in seconds, for cached responses. The higher the TTL, the longer the
* response will be cached. The PATCH path for this setting is
* /{method_setting_key}/caching/ttlInSeconds
, and the value is an integer.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder cacheTtlInSeconds(Integer cacheTtlInSeconds);
/**
*
* Specifies whether the cached responses are encrypted. The PATCH path for this setting is
* /{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.
*
*
* @param cacheDataEncrypted
* Specifies whether the cached responses are encrypted. The PATCH path for this setting is
* /{method_setting_key}/caching/dataEncrypted
, and the value is a Boolean.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder cacheDataEncrypted(Boolean cacheDataEncrypted);
/**
*
* Specifies whether authorization is required for a cache invalidation request. The PATCH path for this setting
* is /{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the value is a
* Boolean.
*
*
* @param requireAuthorizationForCacheControl
* Specifies whether authorization is required for a cache invalidation request. The PATCH path for this
* setting is /{method_setting_key}/caching/requireAuthorizationForCacheControl
, and the
* value is a Boolean.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder requireAuthorizationForCacheControl(Boolean requireAuthorizationForCacheControl);
/**
*
* Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is
* /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values
* are FAIL_WITH_403
, SUCCEED_WITH_RESPONSE_HEADER
,
* SUCCEED_WITHOUT_RESPONSE_HEADER
.
*
*
* @param unauthorizedCacheControlHeaderStrategy
* Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting
* is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the
* available values are FAIL_WITH_403
, SUCCEED_WITH_RESPONSE_HEADER
,
* SUCCEED_WITHOUT_RESPONSE_HEADER
.
* @see UnauthorizedCacheControlHeaderStrategy
* @return Returns a reference to this object so that method calls can be chained together.
* @see UnauthorizedCacheControlHeaderStrategy
*/
Builder unauthorizedCacheControlHeaderStrategy(String unauthorizedCacheControlHeaderStrategy);
/**
*
* Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting is
* /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the available values
* are FAIL_WITH_403
, SUCCEED_WITH_RESPONSE_HEADER
,
* SUCCEED_WITHOUT_RESPONSE_HEADER
.
*
*
* @param unauthorizedCacheControlHeaderStrategy
* Specifies how to handle unauthorized requests for cache invalidation. The PATCH path for this setting
* is /{method_setting_key}/caching/unauthorizedCacheControlHeaderStrategy
, and the
* available values are FAIL_WITH_403
, SUCCEED_WITH_RESPONSE_HEADER
,
* SUCCEED_WITHOUT_RESPONSE_HEADER
.
* @see UnauthorizedCacheControlHeaderStrategy
* @return Returns a reference to this object so that method calls can be chained together.
* @see UnauthorizedCacheControlHeaderStrategy
*/
Builder unauthorizedCacheControlHeaderStrategy(
UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy);
}
static final class BuilderImpl implements Builder {
private Boolean metricsEnabled;
private String loggingLevel;
private Boolean dataTraceEnabled;
private Integer throttlingBurstLimit;
private Double throttlingRateLimit;
private Boolean cachingEnabled;
private Integer cacheTtlInSeconds;
private Boolean cacheDataEncrypted;
private Boolean requireAuthorizationForCacheControl;
private String unauthorizedCacheControlHeaderStrategy;
private BuilderImpl() {
}
private BuilderImpl(MethodSetting model) {
metricsEnabled(model.metricsEnabled);
loggingLevel(model.loggingLevel);
dataTraceEnabled(model.dataTraceEnabled);
throttlingBurstLimit(model.throttlingBurstLimit);
throttlingRateLimit(model.throttlingRateLimit);
cachingEnabled(model.cachingEnabled);
cacheTtlInSeconds(model.cacheTtlInSeconds);
cacheDataEncrypted(model.cacheDataEncrypted);
requireAuthorizationForCacheControl(model.requireAuthorizationForCacheControl);
unauthorizedCacheControlHeaderStrategy(model.unauthorizedCacheControlHeaderStrategy);
}
public final Boolean getMetricsEnabled() {
return metricsEnabled;
}
@Override
public final Builder metricsEnabled(Boolean metricsEnabled) {
this.metricsEnabled = metricsEnabled;
return this;
}
public final void setMetricsEnabled(Boolean metricsEnabled) {
this.metricsEnabled = metricsEnabled;
}
public final String getLoggingLevel() {
return loggingLevel;
}
@Override
public final Builder loggingLevel(String loggingLevel) {
this.loggingLevel = loggingLevel;
return this;
}
public final void setLoggingLevel(String loggingLevel) {
this.loggingLevel = loggingLevel;
}
public final Boolean getDataTraceEnabled() {
return dataTraceEnabled;
}
@Override
public final Builder dataTraceEnabled(Boolean dataTraceEnabled) {
this.dataTraceEnabled = dataTraceEnabled;
return this;
}
public final void setDataTraceEnabled(Boolean dataTraceEnabled) {
this.dataTraceEnabled = dataTraceEnabled;
}
public final Integer getThrottlingBurstLimit() {
return throttlingBurstLimit;
}
@Override
public final Builder throttlingBurstLimit(Integer throttlingBurstLimit) {
this.throttlingBurstLimit = throttlingBurstLimit;
return this;
}
public final void setThrottlingBurstLimit(Integer throttlingBurstLimit) {
this.throttlingBurstLimit = throttlingBurstLimit;
}
public final Double getThrottlingRateLimit() {
return throttlingRateLimit;
}
@Override
public final Builder throttlingRateLimit(Double throttlingRateLimit) {
this.throttlingRateLimit = throttlingRateLimit;
return this;
}
public final void setThrottlingRateLimit(Double throttlingRateLimit) {
this.throttlingRateLimit = throttlingRateLimit;
}
public final Boolean getCachingEnabled() {
return cachingEnabled;
}
@Override
public final Builder cachingEnabled(Boolean cachingEnabled) {
this.cachingEnabled = cachingEnabled;
return this;
}
public final void setCachingEnabled(Boolean cachingEnabled) {
this.cachingEnabled = cachingEnabled;
}
public final Integer getCacheTtlInSeconds() {
return cacheTtlInSeconds;
}
@Override
public final Builder cacheTtlInSeconds(Integer cacheTtlInSeconds) {
this.cacheTtlInSeconds = cacheTtlInSeconds;
return this;
}
public final void setCacheTtlInSeconds(Integer cacheTtlInSeconds) {
this.cacheTtlInSeconds = cacheTtlInSeconds;
}
public final Boolean getCacheDataEncrypted() {
return cacheDataEncrypted;
}
@Override
public final Builder cacheDataEncrypted(Boolean cacheDataEncrypted) {
this.cacheDataEncrypted = cacheDataEncrypted;
return this;
}
public final void setCacheDataEncrypted(Boolean cacheDataEncrypted) {
this.cacheDataEncrypted = cacheDataEncrypted;
}
public final Boolean getRequireAuthorizationForCacheControl() {
return requireAuthorizationForCacheControl;
}
@Override
public final Builder requireAuthorizationForCacheControl(Boolean requireAuthorizationForCacheControl) {
this.requireAuthorizationForCacheControl = requireAuthorizationForCacheControl;
return this;
}
public final void setRequireAuthorizationForCacheControl(Boolean requireAuthorizationForCacheControl) {
this.requireAuthorizationForCacheControl = requireAuthorizationForCacheControl;
}
public final String getUnauthorizedCacheControlHeaderStrategy() {
return unauthorizedCacheControlHeaderStrategy;
}
@Override
public final Builder unauthorizedCacheControlHeaderStrategy(String unauthorizedCacheControlHeaderStrategy) {
this.unauthorizedCacheControlHeaderStrategy = unauthorizedCacheControlHeaderStrategy;
return this;
}
@Override
public final Builder unauthorizedCacheControlHeaderStrategy(
UnauthorizedCacheControlHeaderStrategy unauthorizedCacheControlHeaderStrategy) {
this.unauthorizedCacheControlHeaderStrategy(unauthorizedCacheControlHeaderStrategy.toString());
return this;
}
public final void setUnauthorizedCacheControlHeaderStrategy(String unauthorizedCacheControlHeaderStrategy) {
this.unauthorizedCacheControlHeaderStrategy = unauthorizedCacheControlHeaderStrategy;
}
@Override
public MethodSetting build() {
return new MethodSetting(this);
}
}
}