Class OriginRequest.WebProxy
-
- All Implemented Interfaces:
public final class OriginRequest.WebProxy
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOriginRequest.WebProxy.BuilderA builder for WebProxy.
-
Method Summary
Modifier and Type Method Description final Stringname()Display name of the origin. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("WEB_PROXY")final Optional<String>baseUrlForCanonicalHeader()URL used in the Canonical header (if enabled). final Optional<Boolean>includeCanonicalHeader()Whether to send a Canonical header. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_baseUrlForCanonicalHeader()Returns the raw JSON value of baseUrlForCanonicalHeader. final JsonField<Boolean>_includeCanonicalHeader()Returns the raw JSON value of includeCanonicalHeader. final Map<String, JsonValue>_additionalProperties()final OriginRequest.WebProxy.BuildertoBuilder()final OriginRequest.WebProxyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OriginRequest.WebProxy.Builderbuilder()Returns a mutable builder for constructing an instance of WebProxy. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("WEB_PROXY")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
baseUrlForCanonicalHeader
final Optional<String> baseUrlForCanonicalHeader()
URL used in the Canonical header (if enabled).
-
includeCanonicalHeader
final Optional<Boolean> includeCanonicalHeader()
Whether to send a Canonical header.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_baseUrlForCanonicalHeader
final JsonField<String> _baseUrlForCanonicalHeader()
Returns the raw JSON value of baseUrlForCanonicalHeader.
Unlike baseUrlForCanonicalHeader, this method doesn't throw if the JSON field has an unexpected type.
-
_includeCanonicalHeader
final JsonField<Boolean> _includeCanonicalHeader()
Returns the raw JSON value of includeCanonicalHeader.
Unlike includeCanonicalHeader, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OriginRequest.WebProxy.Builder toBuilder()
-
validate
final OriginRequest.WebProxy validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static OriginRequest.WebProxy.Builder builder()
Returns a mutable builder for constructing an instance of WebProxy.
The following fields are required:
.name()
-
-
-
-