Class PostPolicyV4.PostConditionsV4.Builder (2.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
public static class PostPolicyV4.PostConditionsV4.Builder
Static Methods
newBuilder()
public static PostPolicyV4.PostConditionsV4.Builder newBuilder()
Returns
Methods
addAclCondition(PostPolicyV4.ConditionV4Type type, String acl)
public PostPolicyV4.PostConditionsV4.Builder addAclCondition(PostPolicyV4.ConditionV4Type type, String acl)
Parameters
Returns
addBucketCondition(PostPolicyV4.ConditionV4Type type, String bucket)
public PostPolicyV4.PostConditionsV4.Builder addBucketCondition(PostPolicyV4.ConditionV4Type type, String bucket)
Parameters
Returns
addCacheControlCondition(PostPolicyV4.ConditionV4Type type, String cacheControl)
public PostPolicyV4.PostConditionsV4.Builder addCacheControlCondition(PostPolicyV4.ConditionV4Type type, String cacheControl)
Parameters
Returns
addContentDispositionCondition(PostPolicyV4.ConditionV4Type type, String contentDisposition)
public PostPolicyV4.PostConditionsV4.Builder addContentDispositionCondition(PostPolicyV4.ConditionV4Type type, String contentDisposition)
Parameters
Returns
addContentEncodingCondition(PostPolicyV4.ConditionV4Type type, String contentEncoding)
public PostPolicyV4.PostConditionsV4.Builder addContentEncodingCondition(PostPolicyV4.ConditionV4Type type, String contentEncoding)
Parameters
Returns
addContentLengthCondition(PostPolicyV4.ConditionV4Type type, int contentLength) (deprecated)
public PostPolicyV4.PostConditionsV4.Builder addContentLengthCondition(PostPolicyV4.ConditionV4Type type, int contentLength)
Parameters
Returns
addContentLengthRangeCondition(int min, int max)
public PostPolicyV4.PostConditionsV4.Builder addContentLengthRangeCondition(int min, int max)
Parameters
Name |
Description |
min |
int
|
max |
int
|
Returns
addContentTypeCondition(PostPolicyV4.ConditionV4Type type, String contentType)
public PostPolicyV4.PostConditionsV4.Builder addContentTypeCondition(PostPolicyV4.ConditionV4Type type, String contentType)
Parameters
Returns
addExpiresCondition(PostPolicyV4.ConditionV4Type type, String expires) (deprecated)
public PostPolicyV4.PostConditionsV4.Builder addExpiresCondition(PostPolicyV4.ConditionV4Type type, String expires)
Parameters
Returns
addExpiresCondition(PostPolicyV4.ConditionV4Type type, long expires) (deprecated)
public PostPolicyV4.PostConditionsV4.Builder addExpiresCondition(PostPolicyV4.ConditionV4Type type, long expires)
Parameters
Returns
addExpiresCondition(String expires)
public PostPolicyV4.PostConditionsV4.Builder addExpiresCondition(String expires)
Parameter
Name |
Description |
expires |
String
|
Returns
addExpiresCondition(long expires)
public PostPolicyV4.PostConditionsV4.Builder addExpiresCondition(long expires)
Parameter
Name |
Description |
expires |
long
|
Returns
addKeyCondition(PostPolicyV4.ConditionV4Type type, String key)
public PostPolicyV4.PostConditionsV4.Builder addKeyCondition(PostPolicyV4.ConditionV4Type type, String key)
Parameters
Returns
addSuccessActionRedirectUrlCondition(PostPolicyV4.ConditionV4Type type, String successActionRedirectUrl)
public PostPolicyV4.PostConditionsV4.Builder addSuccessActionRedirectUrlCondition(PostPolicyV4.ConditionV4Type type, String successActionRedirectUrl)
Parameters
Returns
addSuccessActionStatusCondition(PostPolicyV4.ConditionV4Type type, int status) (deprecated)
public PostPolicyV4.PostConditionsV4.Builder addSuccessActionStatusCondition(PostPolicyV4.ConditionV4Type type, int status)
Parameters
Returns
addSuccessActionStatusCondition(int status)
public PostPolicyV4.PostConditionsV4.Builder addSuccessActionStatusCondition(int status)
Parameter
Name |
Description |
status |
int
|
Returns
build()
public PostPolicyV4.PostConditionsV4 build()
Returns
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-10 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-10 UTC."}