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

com.azure.resourcemanager.netapp.models.MountTargetProperties 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.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Mount target properties. */
@Fluent
public final class MountTargetProperties {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(MountTargetProperties.class);

    /*
     * UUID v4 used to identify the MountTarget
     */
    @JsonProperty(value = "mountTargetId", access = JsonProperty.Access.WRITE_ONLY)
    private String mountTargetId;

    /*
     * UUID v4 used to identify the MountTarget
     */
    @JsonProperty(value = "fileSystemId", required = true)
    private String fileSystemId;

    /*
     * The mount target's IPv4 address
     */
    @JsonProperty(value = "ipAddress", access = JsonProperty.Access.WRITE_ONLY)
    private String ipAddress;

    /*
     * The SMB server's Fully Qualified Domain Name, FQDN
     */
    @JsonProperty(value = "smbServerFqdn")
    private String smbServerFqdn;

    /**
     * Get the mountTargetId property: UUID v4 used to identify the MountTarget.
     *
     * @return the mountTargetId value.
     */
    public String mountTargetId() {
        return this.mountTargetId;
    }

    /**
     * Get the fileSystemId property: UUID v4 used to identify the MountTarget.
     *
     * @return the fileSystemId value.
     */
    public String fileSystemId() {
        return this.fileSystemId;
    }

    /**
     * Set the fileSystemId property: UUID v4 used to identify the MountTarget.
     *
     * @param fileSystemId the fileSystemId value to set.
     * @return the MountTargetProperties object itself.
     */
    public MountTargetProperties withFileSystemId(String fileSystemId) {
        this.fileSystemId = fileSystemId;
        return this;
    }

    /**
     * Get the ipAddress property: The mount target's IPv4 address.
     *
     * @return the ipAddress value.
     */
    public String ipAddress() {
        return this.ipAddress;
    }

    /**
     * Get the smbServerFqdn property: The SMB server's Fully Qualified Domain Name, FQDN.
     *
     * @return the smbServerFqdn value.
     */
    public String smbServerFqdn() {
        return this.smbServerFqdn;
    }

    /**
     * Set the smbServerFqdn property: The SMB server's Fully Qualified Domain Name, FQDN.
     *
     * @param smbServerFqdn the smbServerFqdn value to set.
     * @return the MountTargetProperties object itself.
     */
    public MountTargetProperties withSmbServerFqdn(String smbServerFqdn) {
        this.smbServerFqdn = smbServerFqdn;
        return this;
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy