Class PostPolicyV4.PostFieldsV4.Builder (2.17.0)

public static class PostPolicyV4.PostFieldsV4.Builder

Inheritance

java.lang.Object > PostPolicyV4.PostFieldsV4.Builder

Methods

AddCustomMetadataField(String field, String value) (deprecated)

public PostPolicyV4.PostFieldsV4.Builder AddCustomMetadataField(String field, String value)
Parameters
NameDescription
fieldString
valueString
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

Expires(String expires) (deprecated)

public PostPolicyV4.PostFieldsV4.Builder Expires(String expires)

Deprecated. Use #setExpires(String).

Parameter
NameDescription
expiresString
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

build()

public PostPolicyV4.PostFieldsV4 build()
Returns
TypeDescription
PostPolicyV4.PostFieldsV4

setAcl(String acl)

public PostPolicyV4.PostFieldsV4.Builder setAcl(String acl)
Parameter
NameDescription
aclString
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

setCacheControl(String cacheControl)

public PostPolicyV4.PostFieldsV4.Builder setCacheControl(String cacheControl)
Parameter
NameDescription
cacheControlString
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

setContentDisposition(String contentDisposition)

public PostPolicyV4.PostFieldsV4.Builder setContentDisposition(String contentDisposition)
Parameter
NameDescription
contentDispositionString
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

setContentEncoding(String contentEncoding)

public PostPolicyV4.PostFieldsV4.Builder setContentEncoding(String contentEncoding)
Parameter
NameDescription
contentEncodingString
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

setContentLength(int contentLength) (deprecated)

public PostPolicyV4.PostFieldsV4.Builder setContentLength(int contentLength)

Deprecated. Invocation of this method has no effect, because all valid HTML form fields except Content-Length can use exact matching. Use PostPolicyV4.PostConditionsV4.Builder#addContentLengthRangeCondition(int, int) to specify a range for the content-length.

Parameter
NameDescription
contentLengthint
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

setContentType(String contentType)

public PostPolicyV4.PostFieldsV4.Builder setContentType(String contentType)
Parameter
NameDescription
contentTypeString
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

setCustomMetadataField(String field, String value)

public PostPolicyV4.PostFieldsV4.Builder setCustomMetadataField(String field, String value)
Parameters
NameDescription
fieldString
valueString
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

setExpires(String expires)

public PostPolicyV4.PostFieldsV4.Builder setExpires(String expires)
Parameter
NameDescription
expiresString
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

setSuccessActionRedirect(String successActionRedirect)

public PostPolicyV4.PostFieldsV4.Builder setSuccessActionRedirect(String successActionRedirect)
Parameter
NameDescription
successActionRedirectString
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder

setSuccessActionStatus(int successActionStatus)

public PostPolicyV4.PostFieldsV4.Builder setSuccessActionStatus(int successActionStatus)
Parameter
NameDescription
successActionStatusint
Returns
TypeDescription
PostPolicyV4.PostFieldsV4.Builder