Class BackupInstance


  • public final class BackupInstance
    extends Object
    Backup Instance.
    • Constructor Detail

      • BackupInstance

        public BackupInstance()
    • Method Detail

      • friendlyName

        public String friendlyName()
        Get the friendlyName property: Gets or sets the Backup Instance friendly name.
        Returns:
        the friendlyName value.
      • withFriendlyName

        public BackupInstance withFriendlyName​(String friendlyName)
        Set the friendlyName property: Gets or sets the Backup Instance friendly name.
        Parameters:
        friendlyName - the friendlyName value to set.
        Returns:
        the BackupInstance object itself.
      • dataSourceInfo

        public Datasource dataSourceInfo()
        Get the dataSourceInfo property: Datasource Gets or sets the data source information.
        Returns:
        the dataSourceInfo value.
      • withDataSourceInfo

        public BackupInstance withDataSourceInfo​(Datasource dataSourceInfo)
        Set the dataSourceInfo property: Datasource Gets or sets the data source information.
        Parameters:
        dataSourceInfo - the dataSourceInfo value to set.
        Returns:
        the BackupInstance object itself.
      • dataSourceSetInfo

        public DatasourceSet dataSourceSetInfo()
        Get the dataSourceSetInfo property: DatasourceSet Gets or sets the data source set information.
        Returns:
        the dataSourceSetInfo value.
      • withDataSourceSetInfo

        public BackupInstance withDataSourceSetInfo​(DatasourceSet dataSourceSetInfo)
        Set the dataSourceSetInfo property: DatasourceSet Gets or sets the data source set information.
        Parameters:
        dataSourceSetInfo - the dataSourceSetInfo value to set.
        Returns:
        the BackupInstance object itself.
      • policyInfo

        public PolicyInfo policyInfo()
        Get the policyInfo property: PolicyInfo Gets or sets the policy information.
        Returns:
        the policyInfo value.
      • withPolicyInfo

        public BackupInstance withPolicyInfo​(PolicyInfo policyInfo)
        Set the policyInfo property: PolicyInfo Gets or sets the policy information.
        Parameters:
        policyInfo - the policyInfo value to set.
        Returns:
        the BackupInstance object itself.
      • protectionStatus

        public ProtectionStatusDetails protectionStatus()
        Get the protectionStatus property: ProtectionStatusDetails Specifies the protection status of the resource.
        Returns:
        the protectionStatus value.
      • currentProtectionState

        public CurrentProtectionState currentProtectionState()
        Get the currentProtectionState property: Specifies the current protection state of the resource.
        Returns:
        the currentProtectionState value.
      • protectionErrorDetails

        public UserFacingError protectionErrorDetails()
        Get the protectionErrorDetails property: Specifies the protection error of the resource.
        Returns:
        the protectionErrorDetails value.
      • provisioningState

        public String provisioningState()
        Get the provisioningState property: Specifies the provisioning state of the resource i.e. provisioning/updating/Succeeded/Failed.
        Returns:
        the provisioningState value.
      • datasourceAuthCredentials

        public AuthCredentials datasourceAuthCredentials()
        Get the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.
        Returns:
        the datasourceAuthCredentials value.
      • withDatasourceAuthCredentials

        public BackupInstance withDatasourceAuthCredentials​(AuthCredentials datasourceAuthCredentials)
        Set the datasourceAuthCredentials property: Credentials to use to authenticate with data source provider.
        Parameters:
        datasourceAuthCredentials - the datasourceAuthCredentials value to set.
        Returns:
        the BackupInstance object itself.
      • objectType

        public String objectType()
        Get the objectType property: The objectType property.
        Returns:
        the objectType value.
      • withObjectType

        public BackupInstance withObjectType​(String objectType)
        Set the objectType property: The objectType property.
        Parameters:
        objectType - the objectType value to set.
        Returns:
        the BackupInstance object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.