Class PostPolicyV4.PostConditionsV4.Builder (2.22.5)

public static class PostPolicyV4.PostConditionsV4.Builder

Inheritance

java.lang.Object > PostPolicyV4.PostConditionsV4.Builder

Static Methods

newBuilder()

public static PostPolicyV4.PostConditionsV4.Builder newBuilder()
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

Methods

addAclCondition(PostPolicyV4.ConditionV4Type type, String acl)

public PostPolicyV4.PostConditionsV4.Builder addAclCondition(PostPolicyV4.ConditionV4Type type, String acl)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
aclString
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addBucketCondition(PostPolicyV4.ConditionV4Type type, String bucket)

public PostPolicyV4.PostConditionsV4.Builder addBucketCondition(PostPolicyV4.ConditionV4Type type, String bucket)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
bucketString
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addCacheControlCondition(PostPolicyV4.ConditionV4Type type, String cacheControl)

public PostPolicyV4.PostConditionsV4.Builder addCacheControlCondition(PostPolicyV4.ConditionV4Type type, String cacheControl)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
cacheControlString
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addContentDispositionCondition(PostPolicyV4.ConditionV4Type type, String contentDisposition)

public PostPolicyV4.PostConditionsV4.Builder addContentDispositionCondition(PostPolicyV4.ConditionV4Type type, String contentDisposition)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
contentDispositionString
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addContentEncodingCondition(PostPolicyV4.ConditionV4Type type, String contentEncoding)

public PostPolicyV4.PostConditionsV4.Builder addContentEncodingCondition(PostPolicyV4.ConditionV4Type type, String contentEncoding)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
contentEncodingString
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addContentLengthCondition(PostPolicyV4.ConditionV4Type type, int contentLength) (deprecated)

public PostPolicyV4.PostConditionsV4.Builder addContentLengthCondition(PostPolicyV4.ConditionV4Type type, int contentLength)

Deprecated. Invocation of this method has no effect. Use #addContentLengthRangeCondition(int, int) to specify a range for the content-length.

Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
contentLengthint
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addContentLengthRangeCondition(int min, int max)

public PostPolicyV4.PostConditionsV4.Builder addContentLengthRangeCondition(int min, int max)
Parameters
NameDescription
minint
maxint
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addContentTypeCondition(PostPolicyV4.ConditionV4Type type, String contentType)

public PostPolicyV4.PostConditionsV4.Builder addContentTypeCondition(PostPolicyV4.ConditionV4Type type, String contentType)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
contentTypeString
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addExpiresCondition(PostPolicyV4.ConditionV4Type type, String expires) (deprecated)

public PostPolicyV4.PostConditionsV4.Builder addExpiresCondition(PostPolicyV4.ConditionV4Type type, String expires)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
expiresString
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addExpiresCondition(PostPolicyV4.ConditionV4Type type, long expires) (deprecated)

public PostPolicyV4.PostConditionsV4.Builder addExpiresCondition(PostPolicyV4.ConditionV4Type type, long expires)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
expireslong
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addExpiresCondition(String expires)

public PostPolicyV4.PostConditionsV4.Builder addExpiresCondition(String expires)
Parameter
NameDescription
expiresString
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addExpiresCondition(long expires)

public PostPolicyV4.PostConditionsV4.Builder addExpiresCondition(long expires)
Parameter
NameDescription
expireslong
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addKeyCondition(PostPolicyV4.ConditionV4Type type, String key)

public PostPolicyV4.PostConditionsV4.Builder addKeyCondition(PostPolicyV4.ConditionV4Type type, String key)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
keyString
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addSuccessActionRedirectUrlCondition(PostPolicyV4.ConditionV4Type type, String successActionRedirectUrl)

public PostPolicyV4.PostConditionsV4.Builder addSuccessActionRedirectUrlCondition(PostPolicyV4.ConditionV4Type type, String successActionRedirectUrl)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
successActionRedirectUrlString
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addSuccessActionStatusCondition(PostPolicyV4.ConditionV4Type type, int status) (deprecated)

public PostPolicyV4.PostConditionsV4.Builder addSuccessActionStatusCondition(PostPolicyV4.ConditionV4Type type, int status)
Parameters
NameDescription
typePostPolicyV4.ConditionV4Type
statusint
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

addSuccessActionStatusCondition(int status)

public PostPolicyV4.PostConditionsV4.Builder addSuccessActionStatusCondition(int status)
Parameter
NameDescription
statusint
Returns
TypeDescription
PostPolicyV4.PostConditionsV4.Builder

build()

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