com.azure.resourcemanager.cosmos.fluent.models.SqlUserDefinedFunctionGetProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-cosmos Show documentation
Show all versions of azure-resourcemanager-cosmos Show documentation
This package contains Microsoft Azure CosmosDB 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.cosmos.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.resourcemanager.cosmos.models.SqlUserDefinedFunctionGetPropertiesResource;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* The properties of an Azure Cosmos DB userDefinedFunction.
*/
@Fluent
public final class SqlUserDefinedFunctionGetProperties {
/*
* The resource property.
*/
@JsonProperty(value = "resource")
private SqlUserDefinedFunctionGetPropertiesResource resource;
/**
* Creates an instance of SqlUserDefinedFunctionGetProperties class.
*/
public SqlUserDefinedFunctionGetProperties() {
}
/**
* Get the resource property: The resource property.
*
* @return the resource value.
*/
public SqlUserDefinedFunctionGetPropertiesResource resource() {
return this.resource;
}
/**
* Set the resource property: The resource property.
*
* @param resource the resource value to set.
* @return the SqlUserDefinedFunctionGetProperties object itself.
*/
public SqlUserDefinedFunctionGetProperties withResource(SqlUserDefinedFunctionGetPropertiesResource resource) {
this.resource = resource;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (resource() != null) {
resource().validate();
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy