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

com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceEncryptionConfigExtended 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;

/**
 * The BackupResourceEncryptionConfigExtended model.
 */
@Fluent
public final class BackupResourceEncryptionConfigExtended extends BackupResourceEncryptionConfig {
    /*
     * User Assigned Identity Id
     */
    @JsonProperty(value = "userAssignedIdentity")
    private String userAssignedIdentity;

    /*
     * bool to indicate whether to use system Assigned Identity or not
     */
    @JsonProperty(value = "useSystemAssignedIdentity")
    private Boolean useSystemAssignedIdentity;

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

    /**
     * Get the userAssignedIdentity property: User Assigned Identity Id.
     * 
     * @return the userAssignedIdentity value.
     */
    public String userAssignedIdentity() {
        return this.userAssignedIdentity;
    }

    /**
     * Set the userAssignedIdentity property: User Assigned Identity Id.
     * 
     * @param userAssignedIdentity the userAssignedIdentity value to set.
     * @return the BackupResourceEncryptionConfigExtended object itself.
     */
    public BackupResourceEncryptionConfigExtended withUserAssignedIdentity(String userAssignedIdentity) {
        this.userAssignedIdentity = userAssignedIdentity;
        return this;
    }

    /**
     * Get the useSystemAssignedIdentity property: bool to indicate whether to use system Assigned Identity or not.
     * 
     * @return the useSystemAssignedIdentity value.
     */
    public Boolean useSystemAssignedIdentity() {
        return this.useSystemAssignedIdentity;
    }

    /**
     * Set the useSystemAssignedIdentity property: bool to indicate whether to use system Assigned Identity or not.
     * 
     * @param useSystemAssignedIdentity the useSystemAssignedIdentity value to set.
     * @return the BackupResourceEncryptionConfigExtended object itself.
     */
    public BackupResourceEncryptionConfigExtended withUseSystemAssignedIdentity(Boolean useSystemAssignedIdentity) {
        this.useSystemAssignedIdentity = useSystemAssignedIdentity;
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public BackupResourceEncryptionConfigExtended withEncryptionAtRestType(EncryptionAtRestType encryptionAtRestType) {
        super.withEncryptionAtRestType(encryptionAtRestType);
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public BackupResourceEncryptionConfigExtended withKeyUri(String keyUri) {
        super.withKeyUri(keyUri);
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public BackupResourceEncryptionConfigExtended withSubscriptionId(String subscriptionId) {
        super.withSubscriptionId(subscriptionId);
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public BackupResourceEncryptionConfigExtended withLastUpdateStatus(LastUpdateStatus lastUpdateStatus) {
        super.withLastUpdateStatus(lastUpdateStatus);
        return this;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public BackupResourceEncryptionConfigExtended
        withInfrastructureEncryptionState(InfrastructureEncryptionState infrastructureEncryptionState) {
        super.withInfrastructureEncryptionState(infrastructureEncryptionState);
        return this;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy