All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.sqladmin.model.CloneContext.html Maven / Gradle / Ivy

The newest version!






CloneContext (Cloud SQL Admin API v1-rev20241108-2.0.0)












com.google.api.services.sqladmin.model

Class CloneContext

    • Constructor Detail

      • CloneContext

        public CloneContext()
    • Method Detail

      • getAllocatedIpRange

        public String getAllocatedIpRange()
        The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google- managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
        Returns:
        value or null for none
      • setAllocatedIpRange

        public CloneContext setAllocatedIpRange(String allocatedIpRange)
        The name of the allocated ip range for the private ip Cloud SQL instance. For example: "google- managed-services-default". If set, the cloned instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
        Parameters:
        allocatedIpRange - allocatedIpRange or null for none
      • getBinLogCoordinates

        public BinLogCoordinates getBinLogCoordinates()
        Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.
        Returns:
        value or null for none
      • setBinLogCoordinates

        public CloneContext setBinLogCoordinates(BinLogCoordinates binLogCoordinates)
        Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.
        Parameters:
        binLogCoordinates - binLogCoordinates or null for none
      • getDatabaseNames

        public List<String> getDatabaseNames()
        (SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.
        Returns:
        value or null for none
      • setDatabaseNames

        public CloneContext setDatabaseNames(List<String> databaseNames)
        (SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.
        Parameters:
        databaseNames - databaseNames or null for none
      • getDestinationInstanceName

        public String getDestinationInstanceName()
        Name of the Cloud SQL instance to be created as a clone.
        Returns:
        value or null for none
      • setDestinationInstanceName

        public CloneContext setDestinationInstanceName(String destinationInstanceName)
        Name of the Cloud SQL instance to be created as a clone.
        Parameters:
        destinationInstanceName - destinationInstanceName or null for none
      • getKind

        public String getKind()
        This is always `sql#cloneContext`.
        Returns:
        value or null for none
      • setKind

        public CloneContext setKind(String kind)
        This is always `sql#cloneContext`.
        Parameters:
        kind - kind or null for none
      • getPitrTimestampMs

        public Long getPitrTimestampMs()
        Reserved for future use.
        Returns:
        value or null for none
      • setPitrTimestampMs

        public CloneContext setPitrTimestampMs(Long pitrTimestampMs)
        Reserved for future use.
        Parameters:
        pitrTimestampMs - pitrTimestampMs or null for none
      • getPointInTime

        public String getPointInTime()
        Timestamp, if specified, identifies the time to which the source instance is cloned.
        Returns:
        value or null for none
      • setPointInTime

        public CloneContext setPointInTime(String pointInTime)
        Timestamp, if specified, identifies the time to which the source instance is cloned.
        Parameters:
        pointInTime - pointInTime or null for none
      • getPreferredSecondaryZone

        public String getPreferredSecondaryZone()
        Optional. Copy clone and point-in-time recovery clone of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field. This field applies to all DB types.
        Returns:
        value or null for none
      • setPreferredSecondaryZone

        public CloneContext setPreferredSecondaryZone(String preferredSecondaryZone)
        Optional. Copy clone and point-in-time recovery clone of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field. This field applies to all DB types.
        Parameters:
        preferredSecondaryZone - preferredSecondaryZone or null for none
      • getPreferredZone

        public String getPreferredZone()
        Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance. This field applies to all DB types.
        Returns:
        value or null for none
      • setPreferredZone

        public CloneContext setPreferredZone(String preferredZone)
        Optional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance. This field applies to all DB types.
        Parameters:
        preferredZone - preferredZone or null for none
      • set

        public CloneContext set(String fieldName,
                                Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public CloneContext clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy