
com.pulumi.azurenative.documentdb.outputs.SqlUserDefinedFunctionGetPropertiesResponseResource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.documentdb.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class SqlUserDefinedFunctionGetPropertiesResponseResource {
/**
* @return Body of the User Defined Function
*
*/
private @Nullable String body;
/**
* @return A system generated property representing the resource etag required for optimistic concurrency control.
*
*/
private String etag;
/**
* @return Name of the Cosmos DB SQL userDefinedFunction
*
*/
private String id;
/**
* @return A system generated property. A unique identifier.
*
*/
private String rid;
/**
* @return A system generated property that denotes the last updated timestamp of the resource.
*
*/
private Double ts;
private SqlUserDefinedFunctionGetPropertiesResponseResource() {}
/**
* @return Body of the User Defined Function
*
*/
public Optional body() {
return Optional.ofNullable(this.body);
}
/**
* @return A system generated property representing the resource etag required for optimistic concurrency control.
*
*/
public String etag() {
return this.etag;
}
/**
* @return Name of the Cosmos DB SQL userDefinedFunction
*
*/
public String id() {
return this.id;
}
/**
* @return A system generated property. A unique identifier.
*
*/
public String rid() {
return this.rid;
}
/**
* @return A system generated property that denotes the last updated timestamp of the resource.
*
*/
public Double ts() {
return this.ts;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SqlUserDefinedFunctionGetPropertiesResponseResource defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String body;
private String etag;
private String id;
private String rid;
private Double ts;
public Builder() {}
public Builder(SqlUserDefinedFunctionGetPropertiesResponseResource defaults) {
Objects.requireNonNull(defaults);
this.body = defaults.body;
this.etag = defaults.etag;
this.id = defaults.id;
this.rid = defaults.rid;
this.ts = defaults.ts;
}
@CustomType.Setter
public Builder body(@Nullable String body) {
this.body = body;
return this;
}
@CustomType.Setter
public Builder etag(String etag) {
if (etag == null) {
throw new MissingRequiredPropertyException("SqlUserDefinedFunctionGetPropertiesResponseResource", "etag");
}
this.etag = etag;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("SqlUserDefinedFunctionGetPropertiesResponseResource", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder rid(String rid) {
if (rid == null) {
throw new MissingRequiredPropertyException("SqlUserDefinedFunctionGetPropertiesResponseResource", "rid");
}
this.rid = rid;
return this;
}
@CustomType.Setter
public Builder ts(Double ts) {
if (ts == null) {
throw new MissingRequiredPropertyException("SqlUserDefinedFunctionGetPropertiesResponseResource", "ts");
}
this.ts = ts;
return this;
}
public SqlUserDefinedFunctionGetPropertiesResponseResource build() {
final var _resultValue = new SqlUserDefinedFunctionGetPropertiesResponseResource();
_resultValue.body = body;
_resultValue.etag = etag;
_resultValue.id = id;
_resultValue.rid = rid;
_resultValue.ts = ts;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy