Class PostPolicyV4.PostFieldsV4.Builder (2.9.3)

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
Name Description
field String
value String
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder

Expires(String expires) (deprecated)

public PostPolicyV4.PostFieldsV4.Builder Expires(String expires)

Deprecated. Use #setExpires(String).

Parameter
Name Description
expires String
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder

build()

public PostPolicyV4.PostFieldsV4 build()
Returns
Type Description
PostPolicyV4.PostFieldsV4

setAcl(String acl)

public PostPolicyV4.PostFieldsV4.Builder setAcl(String acl)
Parameter
Name Description
acl String
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder

setCacheControl(String cacheControl)

public PostPolicyV4.PostFieldsV4.Builder setCacheControl(String cacheControl)
Parameter
Name Description
cacheControl String
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder

setContentDisposition(String contentDisposition)

public PostPolicyV4.PostFieldsV4.Builder setContentDisposition(String contentDisposition)
Parameter
Name Description
contentDisposition String
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder

setContentEncoding(String contentEncoding)

public PostPolicyV4.PostFieldsV4.Builder setContentEncoding(String contentEncoding)
Parameter
Name Description
contentEncoding String
Returns
Type Description
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
Name Description
contentLength int
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder

setContentType(String contentType)

public PostPolicyV4.PostFieldsV4.Builder setContentType(String contentType)
Parameter
Name Description
contentType String
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder

setCustomMetadataField(String field, String value)

public PostPolicyV4.PostFieldsV4.Builder setCustomMetadataField(String field, String value)
Parameters
Name Description
field String
value String
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder

setExpires(String expires)

public PostPolicyV4.PostFieldsV4.Builder setExpires(String expires)
Parameter
Name Description
expires String
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder

setSuccessActionRedirect(String successActionRedirect)

public PostPolicyV4.PostFieldsV4.Builder setSuccessActionRedirect(String successActionRedirect)
Parameter
Name Description
successActionRedirect String
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder

setSuccessActionStatus(int successActionStatus)

public PostPolicyV4.PostFieldsV4.Builder setSuccessActionStatus(int successActionStatus)
Parameter
Name Description
successActionStatus int
Returns
Type Description
PostPolicyV4.PostFieldsV4.Builder