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

com.azure.resourcemanager.netapp.models.EncryptionMigrationRequest Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.

There is a newer version: 1.6.0-beta.1
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.netapp.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Encryption migration request.
 */
@Fluent
public final class EncryptionMigrationRequest {
    /*
     * virtualNetworkId
     * 
     * Identifier for the virtual network
     */
    @JsonProperty(value = "virtualNetworkId", required = true)
    private String virtualNetworkId;

    /*
     * privateEndpointId
     * 
     * Identifier of the private endpoint to reach the Azure Key Vault
     */
    @JsonProperty(value = "privateEndpointId", required = true)
    private String privateEndpointId;

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

    /**
     * Get the virtualNetworkId property: virtualNetworkId
     * 
     * Identifier for the virtual network.
     * 
     * @return the virtualNetworkId value.
     */
    public String virtualNetworkId() {
        return this.virtualNetworkId;
    }

    /**
     * Set the virtualNetworkId property: virtualNetworkId
     * 
     * Identifier for the virtual network.
     * 
     * @param virtualNetworkId the virtualNetworkId value to set.
     * @return the EncryptionMigrationRequest object itself.
     */
    public EncryptionMigrationRequest withVirtualNetworkId(String virtualNetworkId) {
        this.virtualNetworkId = virtualNetworkId;
        return this;
    }

    /**
     * Get the privateEndpointId property: privateEndpointId
     * 
     * Identifier of the private endpoint to reach the Azure Key Vault.
     * 
     * @return the privateEndpointId value.
     */
    public String privateEndpointId() {
        return this.privateEndpointId;
    }

    /**
     * Set the privateEndpointId property: privateEndpointId
     * 
     * Identifier of the private endpoint to reach the Azure Key Vault.
     * 
     * @param privateEndpointId the privateEndpointId value to set.
     * @return the EncryptionMigrationRequest object itself.
     */
    public EncryptionMigrationRequest withPrivateEndpointId(String privateEndpointId) {
        this.privateEndpointId = privateEndpointId;
        return this;
    }

    /**
     * Validates the instance.
     * 
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (virtualNetworkId() == null) {
            throw LOGGER.logExceptionAsError(new IllegalArgumentException(
                "Missing required property virtualNetworkId in model EncryptionMigrationRequest"));
        }
        if (privateEndpointId() == null) {
            throw LOGGER.logExceptionAsError(new IllegalArgumentException(
                "Missing required property privateEndpointId in model EncryptionMigrationRequest"));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(EncryptionMigrationRequest.class);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy