com.azure.resourcemanager.appplatform.models.ApmReference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-appplatform Show documentation
Show all versions of azure-resourcemanager-appplatform Show documentation
This package contains Microsoft Azure App Platform Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.appplatform.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* A reference to the APM.
*/
@Fluent
public final class ApmReference {
/*
* Resource Id of the APM
*/
@JsonProperty(value = "resourceId", required = true)
private String resourceId;
/**
* Creates an instance of ApmReference class.
*/
public ApmReference() {
}
/**
* Get the resourceId property: Resource Id of the APM.
*
* @return the resourceId value.
*/
public String resourceId() {
return this.resourceId;
}
/**
* Set the resourceId property: Resource Id of the APM.
*
* @param resourceId the resourceId value to set.
* @return the ApmReference object itself.
*/
public ApmReference withResourceId(String resourceId) {
this.resourceId = resourceId;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (resourceId() == null) {
throw LOGGER.logExceptionAsError(
new IllegalArgumentException("Missing required property resourceId in model ApmReference"));
}
}
private static final ClientLogger LOGGER = new ClientLogger(ApmReference.class);
}