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

com.microsoft.azure.management.sql.implementation.BackupLongTermRetentionPolicyInner Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure Sql Management SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 *
 * Code generated by Microsoft (R) AutoRest Code Generator.
 */

package com.microsoft.azure.management.sql.implementation;

import com.microsoft.azure.management.sql.BackupLongTermRetentionPolicyState;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.ProxyResource;

/**
 * A backup long term retention policy.
 */
@JsonFlatten
public class BackupLongTermRetentionPolicyInner extends ProxyResource {
    /**
     * The geo-location where the resource lives.
     */
    @JsonProperty(value = "location", access = JsonProperty.Access.WRITE_ONLY)
    private String location;

    /**
     * The status of the backup long term retention policy. Possible values
     * include: 'Disabled', 'Enabled'.
     */
    @JsonProperty(value = "properties.state", required = true)
    private BackupLongTermRetentionPolicyState state;

    /**
     * The azure recovery services backup protection policy resource id.
     */
    @JsonProperty(value = "properties.recoveryServicesBackupPolicyResourceId", required = true)
    private String recoveryServicesBackupPolicyResourceId;

    /**
     * Get the geo-location where the resource lives.
     *
     * @return the location value
     */
    public String location() {
        return this.location;
    }

    /**
     * Get the status of the backup long term retention policy. Possible values include: 'Disabled', 'Enabled'.
     *
     * @return the state value
     */
    public BackupLongTermRetentionPolicyState state() {
        return this.state;
    }

    /**
     * Set the status of the backup long term retention policy. Possible values include: 'Disabled', 'Enabled'.
     *
     * @param state the state value to set
     * @return the BackupLongTermRetentionPolicyInner object itself.
     */
    public BackupLongTermRetentionPolicyInner withState(BackupLongTermRetentionPolicyState state) {
        this.state = state;
        return this;
    }

    /**
     * Get the azure recovery services backup protection policy resource id.
     *
     * @return the recoveryServicesBackupPolicyResourceId value
     */
    public String recoveryServicesBackupPolicyResourceId() {
        return this.recoveryServicesBackupPolicyResourceId;
    }

    /**
     * Set the azure recovery services backup protection policy resource id.
     *
     * @param recoveryServicesBackupPolicyResourceId the recoveryServicesBackupPolicyResourceId value to set
     * @return the BackupLongTermRetentionPolicyInner object itself.
     */
    public BackupLongTermRetentionPolicyInner withRecoveryServicesBackupPolicyResourceId(String recoveryServicesBackupPolicyResourceId) {
        this.recoveryServicesBackupPolicyResourceId = recoveryServicesBackupPolicyResourceId;
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy