com.azure.resourcemanager.applicationinsights.models.ComponentLinkedStorageAccountsPatch Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-applicationinsights Show documentation
Show all versions of azure-resourcemanager-applicationinsights Show documentation
This package contains Microsoft Azure SDK for ApplicationInsights Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Composite Swagger for Application Insights Management Client. Package tag package-2022-04-01.
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.applicationinsights.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.applicationinsights.fluent.models.LinkedStorageAccountsProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
/** An Application Insights component linked storage accounts patch. */
@Fluent
public final class ComponentLinkedStorageAccountsPatch {
/*
* The properties of the linked storage accounts.
*/
@JsonProperty(value = "properties")
private LinkedStorageAccountsProperties innerProperties;
/**
* Get the innerProperties property: The properties of the linked storage accounts.
*
* @return the innerProperties value.
*/
private LinkedStorageAccountsProperties innerProperties() {
return this.innerProperties;
}
/**
* Get the linkedStorageAccount property: Linked storage account resource ID.
*
* @return the linkedStorageAccount value.
*/
public String linkedStorageAccount() {
return this.innerProperties() == null ? null : this.innerProperties().linkedStorageAccount();
}
/**
* Set the linkedStorageAccount property: Linked storage account resource ID.
*
* @param linkedStorageAccount the linkedStorageAccount value to set.
* @return the ComponentLinkedStorageAccountsPatch object itself.
*/
public ComponentLinkedStorageAccountsPatch withLinkedStorageAccount(String linkedStorageAccount) {
if (this.innerProperties() == null) {
this.innerProperties = new LinkedStorageAccountsProperties();
}
this.innerProperties().withLinkedStorageAccount(linkedStorageAccount);
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (innerProperties() != null) {
innerProperties().validate();
}
}
}