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

com.azure.resourcemanager.timeseriesinsights.models.Gen2StorageConfigurationOutput Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for TimeSeriesInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Time Series Insights client. Package tag package-2020-05-15.

The 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.timeseriesinsights.models;

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

/**
 * The storage configuration provides the non-secret connection details about the customer storage account that is used
 * to store the environment's data.
 */
@Fluent
public final class Gen2StorageConfigurationOutput {
    /*
     * The name of the storage account that will hold the environment's Gen2 data.
     */
    @JsonProperty(value = "accountName", required = true)
    private String accountName;

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

    /**
     * Get the accountName property: The name of the storage account that will hold the environment's Gen2 data.
     *
     * @return the accountName value.
     */
    public String accountName() {
        return this.accountName;
    }

    /**
     * Set the accountName property: The name of the storage account that will hold the environment's Gen2 data.
     *
     * @param accountName the accountName value to set.
     * @return the Gen2StorageConfigurationOutput object itself.
     */
    public Gen2StorageConfigurationOutput withAccountName(String accountName) {
        this.accountName = accountName;
        return this;
    }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy