Send feedback
  
   
 
  
    
      Class Instance (2.28.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version 2.28.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   class  Instance   extends   InstanceInfo  
  
  
  Methods
   
  createDatabase(String arg0, Iterable<String> arg1) 
  
    
public   OperationFuture<Database , CreateDatabaseMetadata >  createDatabase ( String   arg0 ,   Iterable<String>   arg1 )  
  
  
  
  delete() 
  
  getBackup(String arg0) 
  
    
public   Backup   getBackup ( String   arg0 )  
  
    
      
        Parameter  
      
        Name Description  
      
        arg0String  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        Backup  
     
  
  getDatabase(String arg0) 
  
    
public   Database   getDatabase ( String   arg0 )  
  
    
      
        Parameter  
      
        Name Description  
      
        arg0String  
     
  
  
  getIAMPolicy() 
  
    
public   Policy   getIAMPolicy ()  
  
    
      
        Returns  
      
        Type Description  
      
        com.google.cloud.Policy  
     
  
  listBackupOperations(Options.ListOption[] arg0) 
  
    
public   Page<Operation>   listBackupOperations ( Options . ListOption []   arg0 )  
  
  
  listBackups(Options.ListOption[] arg0) 
  
    
public   Page<Backup>   listBackups ( Options . ListOption []   arg0 )  
  
  
  listDatabaseOperations(Options.ListOption[] arg0) 
  
    
public   Page<Operation>   listDatabaseOperations ( Options . ListOption []   arg0 )  
  
  
  listDatabases(Options.ListOption[] arg0) 
  
    
public   Page<Database>   listDatabases ( Options . ListOption []   arg0 )  
  
  
  reload() 
  
  
  setIAMPolicy(Policy arg0) 
  
    
public   Policy   setIAMPolicy ( Policy   arg0 )  
  
    
      
        Parameter  
      
        Name Description  
      
        arg0com.google.cloud.Policy  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        com.google.cloud.Policy  
     
  
  testIAMPermissions(Iterable<String> arg0) 
  
    
public   Iterable<String>   testIAMPermissions ( Iterable<String>   arg0 )  
  
  
  toBuilder() 
  
    
public   Instance . Builder   toBuilder ()  
  
  Overrides 
  
  update(InstanceInfo.InstanceField[] arg0) 
  
    
public   OperationFuture<Instance , UpdateInstanceMetadata >  update ( InstanceInfo . InstanceField []   arg0 )  
  
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  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-29 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]