Class OriginRequest.S3Compatible
-
- All Implemented Interfaces:
public final class OriginRequest.S3Compatible
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classOriginRequest.S3Compatible.BuilderA builder for S3Compatible.
-
Method Summary
Modifier and Type Method Description final StringaccessKey()Access key for the bucket. final Stringbucket()S3 bucket name. final Stringendpoint()Custom S3-compatible endpoint. final Stringname()Display name of the origin. final StringsecretKey()Secret key for the bucket. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("S3_COMPATIBLE")final Optional<String>baseUrlForCanonicalHeader()URL used in the Canonical header (if enabled). final Optional<Boolean>includeCanonicalHeader()Whether to send a Canonical header. final Optional<String>prefix()Path prefix inside the bucket. final Optional<Boolean>s3ForcePathStyle()Use path-style S3 URLs? final JsonField<String>_accessKey()Returns the raw JSON value of accessKey. final JsonField<String>_bucket()Returns the raw JSON value of bucket. final JsonField<String>_endpoint()Returns the raw JSON value of endpoint. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_secretKey()Returns the raw JSON value of secretKey. final JsonField<String>_baseUrlForCanonicalHeader()Returns the raw JSON value of baseUrlForCanonicalHeader. final JsonField<Boolean>_includeCanonicalHeader()Returns the raw JSON value of includeCanonicalHeader. final JsonField<String>_prefix()Returns the raw JSON value of prefix. final JsonField<Boolean>_s3ForcePathStyle()Returns the raw JSON value of s3ForcePathStyle. final Map<String, JsonValue>_additionalProperties()final OriginRequest.S3Compatible.BuildertoBuilder()final OriginRequest.S3Compatiblevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static OriginRequest.S3Compatible.Builderbuilder()Returns a mutable builder for constructing an instance of S3Compatible. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("S3_COMPATIBLE")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.
-
s3ForcePathStyle
final Optional<Boolean> s3ForcePathStyle()
Use path-style S3 URLs?
-
_accessKey
final JsonField<String> _accessKey()
Returns the raw JSON value of accessKey.
Unlike accessKey, this method doesn't throw if the JSON field has an unexpected type.
-
_bucket
final JsonField<String> _bucket()
Returns the raw JSON value of bucket.
Unlike bucket, this method doesn't throw if the JSON field has an unexpected type.
-
_endpoint
final JsonField<String> _endpoint()
Returns the raw JSON value of endpoint.
Unlike endpoint, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_secretKey
final JsonField<String> _secretKey()
Returns the raw JSON value of secretKey.
Unlike secretKey, 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.
-
_prefix
final JsonField<String> _prefix()
Returns the raw JSON value of prefix.
Unlike prefix, this method doesn't throw if the JSON field has an unexpected type.
-
_s3ForcePathStyle
final JsonField<Boolean> _s3ForcePathStyle()
Returns the raw JSON value of s3ForcePathStyle.
Unlike s3ForcePathStyle, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final OriginRequest.S3Compatible.Builder toBuilder()
-
validate
final OriginRequest.S3Compatible validate()
-
builder
final static OriginRequest.S3Compatible.Builder builder()
Returns a mutable builder for constructing an instance of S3Compatible.
The following fields are required:
.accessKey() .bucket() .endpoint() .name() .secretKey()
-
-
-
-