Class PostPolicyV4.PostFieldsV4.Builder (2.30.1) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 2.30.1keyboard_arrow_down  
  
 
    
    
     
    
    
    
    
    
      
  
  
  
    
public   static   class  PostPolicyV4 . PostFieldsV4 . Builder  
   
  
  
  Methods
   
   
  AddCustomMetadataField(String field, String value) (deprecated) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   AddCustomMetadataField ( String   field ,   String   value )  
   
  
  
  
   
  Expires(String expires) (deprecated) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   Expires ( String   expires )  
   
  
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        expires 
        String  
       
     
  
  
   
  build() 
  
    
public   PostPolicyV4 . PostFieldsV4   build ()  
   
  
   
  setAcl(String acl) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   setAcl ( String   acl )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        acl 
        String  
       
     
  
  
   
  setCacheControl(String cacheControl) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   setCacheControl ( String   cacheControl )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        cacheControl 
        String  
       
     
  
  
   
  setContentDisposition(String contentDisposition) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   setContentDisposition ( String   contentDisposition )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        contentDisposition 
        String  
       
     
  
  
   
  setContentEncoding(String contentEncoding) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   setContentEncoding ( String   contentEncoding )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        contentEncoding 
        String  
       
     
  
  
   
  setContentLength(int contentLength) (deprecated) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   setContentLength ( int   contentLength )  
   
  
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        contentLength 
        int  
       
     
  
  
   
  setContentType(String contentType) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   setContentType ( String   contentType )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        contentType 
        String  
       
     
  
  
   
  setCustomMetadataField(String field, String value) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   setCustomMetadataField ( String   field ,   String   value )  
   
  
  
   
  setExpires(String expires) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   setExpires ( String   expires )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        expires 
        String  
       
     
  
  
   
  setSuccessActionRedirect(String successActionRedirect) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   setSuccessActionRedirect ( String   successActionRedirect )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        successActionRedirect 
        String  
       
     
  
  
   
  setSuccessActionStatus(int successActionStatus) 
  
    
public   PostPolicyV4 . PostFieldsV4 . Builder   setSuccessActionStatus ( int   successActionStatus )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        successActionStatus 
        int  
       
     
  
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  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 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]