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

com.azure.resourcemanager.recoveryservicesbackup.models.SnapshotBackupAdditionalDetails Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for RecoveryServicesBackup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package tag package-2024-04.

There is a newer version: 1.5.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicesbackup.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Snapshot Backup related fields for WorkloadType SaPHanaSystem.
 */
@Fluent
public final class SnapshotBackupAdditionalDetails {
    /*
     * The instantRpRetentionRangeInDays property.
     */
    @JsonProperty(value = "instantRpRetentionRangeInDays")
    private Integer instantRpRetentionRangeInDays;

    /*
     * The instantRPDetails property.
     */
    @JsonProperty(value = "instantRPDetails")
    private String instantRPDetails;

    /*
     * User assigned managed identity details
     */
    @JsonProperty(value = "userAssignedManagedIdentityDetails")
    private UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails;

    /**
     * Creates an instance of SnapshotBackupAdditionalDetails class.
     */
    public SnapshotBackupAdditionalDetails() {
    }

    /**
     * Get the instantRpRetentionRangeInDays property: The instantRpRetentionRangeInDays property.
     * 
     * @return the instantRpRetentionRangeInDays value.
     */
    public Integer instantRpRetentionRangeInDays() {
        return this.instantRpRetentionRangeInDays;
    }

    /**
     * Set the instantRpRetentionRangeInDays property: The instantRpRetentionRangeInDays property.
     * 
     * @param instantRpRetentionRangeInDays the instantRpRetentionRangeInDays value to set.
     * @return the SnapshotBackupAdditionalDetails object itself.
     */
    public SnapshotBackupAdditionalDetails withInstantRpRetentionRangeInDays(Integer instantRpRetentionRangeInDays) {
        this.instantRpRetentionRangeInDays = instantRpRetentionRangeInDays;
        return this;
    }

    /**
     * Get the instantRPDetails property: The instantRPDetails property.
     * 
     * @return the instantRPDetails value.
     */
    public String instantRPDetails() {
        return this.instantRPDetails;
    }

    /**
     * Set the instantRPDetails property: The instantRPDetails property.
     * 
     * @param instantRPDetails the instantRPDetails value to set.
     * @return the SnapshotBackupAdditionalDetails object itself.
     */
    public SnapshotBackupAdditionalDetails withInstantRPDetails(String instantRPDetails) {
        this.instantRPDetails = instantRPDetails;
        return this;
    }

    /**
     * Get the userAssignedManagedIdentityDetails property: User assigned managed identity details.
     * 
     * @return the userAssignedManagedIdentityDetails value.
     */
    public UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails() {
        return this.userAssignedManagedIdentityDetails;
    }

    /**
     * Set the userAssignedManagedIdentityDetails property: User assigned managed identity details.
     * 
     * @param userAssignedManagedIdentityDetails the userAssignedManagedIdentityDetails value to set.
     * @return the SnapshotBackupAdditionalDetails object itself.
     */
    public SnapshotBackupAdditionalDetails
        withUserAssignedManagedIdentityDetails(UserAssignedManagedIdentityDetails userAssignedManagedIdentityDetails) {
        this.userAssignedManagedIdentityDetails = userAssignedManagedIdentityDetails;
        return this;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (userAssignedManagedIdentityDetails() != null) {
            userAssignedManagedIdentityDetails().validate();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy