Class DataGoogleSqlBackupRun.Builder

    • Method Detail

      • create

        @Stability(Stable)
        public static DataGoogleSqlBackupRun.Builder create​(software.constructs.Construct scope,
                                                            String id)
        Parameters:
        scope - The scope in which to define this construct. This parameter is required.
        id - The scoped construct ID. This parameter is required.
        Returns:
        a new instance of DataGoogleSqlBackupRun.Builder.
      • connection

        @Stability(Experimental)
        public DataGoogleSqlBackupRun.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public DataGoogleSqlBackupRun.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public DataGoogleSqlBackupRun.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public DataGoogleSqlBackupRun.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public DataGoogleSqlBackupRun.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public DataGoogleSqlBackupRun.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public DataGoogleSqlBackupRun.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • provisioners

        @Stability(Experimental)
        public DataGoogleSqlBackupRun.Builder provisioners​(List<? extends Object> provisioners)
        Parameters:
        provisioners - This parameter is required.
        Returns:
        this
      • instance

        @Stability(Stable)
        public DataGoogleSqlBackupRun.Builder instance​(String instance)
        Name of the database instance.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/sql_backup_run#instance DataGoogleSqlBackupRun#instance}

        Parameters:
        instance - Name of the database instance. This parameter is required.
        Returns:
        this
      • backupId

        @Stability(Stable)
        public DataGoogleSqlBackupRun.Builder backupId​(Number backupId)
        The identifier for this backup run.

        Unique only for a specific Cloud SQL instance. If left empty and multiple backups exist for the instance, most_recent must be set to true. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/sql_backup_run#backup_id DataGoogleSqlBackupRun#backup_id}

        Parameters:
        backupId - The identifier for this backup run. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public DataGoogleSqlBackupRun.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/sql_backup_run#id DataGoogleSqlBackupRun#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/sql_backup_run#id DataGoogleSqlBackupRun#id}. This parameter is required.
        Returns:
        this
      • mostRecent

        @Stability(Stable)
        public DataGoogleSqlBackupRun.Builder mostRecent​(Boolean mostRecent)
        Toggles use of the most recent backup run if multiple backups exist for a Cloud SQL instance.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/sql_backup_run#most_recent DataGoogleSqlBackupRun#most_recent}

        Parameters:
        mostRecent - Toggles use of the most recent backup run if multiple backups exist for a Cloud SQL instance. This parameter is required.
        Returns:
        this
      • mostRecent

        @Stability(Stable)
        public DataGoogleSqlBackupRun.Builder mostRecent​(com.hashicorp.cdktf.IResolvable mostRecent)
        Toggles use of the most recent backup run if multiple backups exist for a Cloud SQL instance.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/sql_backup_run#most_recent DataGoogleSqlBackupRun#most_recent}

        Parameters:
        mostRecent - Toggles use of the most recent backup run if multiple backups exist for a Cloud SQL instance. This parameter is required.
        Returns:
        this
      • project

        @Stability(Stable)
        public DataGoogleSqlBackupRun.Builder project​(String project)
        Project ID of the project that contains the instance.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/data-sources/sql_backup_run#project DataGoogleSqlBackupRun#project}

        Parameters:
        project - Project ID of the project that contains the instance. This parameter is required.
        Returns:
        this