com.pulumi.azurenative.sql.outputs.GetWorkloadGroupResult 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.sql.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetWorkloadGroupResult {
/**
* @return Resource ID.
*
*/
private String id;
/**
* @return The workload group importance level.
*
*/
private @Nullable String importance;
/**
* @return The workload group cap percentage resource.
*
*/
private Integer maxResourcePercent;
/**
* @return The workload group request maximum grant percentage.
*
*/
private @Nullable Double maxResourcePercentPerRequest;
/**
* @return The workload group minimum percentage resource.
*
*/
private Integer minResourcePercent;
/**
* @return The workload group request minimum grant percentage.
*
*/
private Double minResourcePercentPerRequest;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return The workload group query execution timeout.
*
*/
private @Nullable Integer queryExecutionTimeout;
/**
* @return Resource type.
*
*/
private String type;
private GetWorkloadGroupResult() {}
/**
* @return Resource ID.
*
*/
public String id() {
return this.id;
}
/**
* @return The workload group importance level.
*
*/
public Optional importance() {
return Optional.ofNullable(this.importance);
}
/**
* @return The workload group cap percentage resource.
*
*/
public Integer maxResourcePercent() {
return this.maxResourcePercent;
}
/**
* @return The workload group request maximum grant percentage.
*
*/
public Optional maxResourcePercentPerRequest() {
return Optional.ofNullable(this.maxResourcePercentPerRequest);
}
/**
* @return The workload group minimum percentage resource.
*
*/
public Integer minResourcePercent() {
return this.minResourcePercent;
}
/**
* @return The workload group request minimum grant percentage.
*
*/
public Double minResourcePercentPerRequest() {
return this.minResourcePercentPerRequest;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The workload group query execution timeout.
*
*/
public Optional queryExecutionTimeout() {
return Optional.ofNullable(this.queryExecutionTimeout);
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetWorkloadGroupResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable String importance;
private Integer maxResourcePercent;
private @Nullable Double maxResourcePercentPerRequest;
private Integer minResourcePercent;
private Double minResourcePercentPerRequest;
private String name;
private @Nullable Integer queryExecutionTimeout;
private String type;
public Builder() {}
public Builder(GetWorkloadGroupResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.importance = defaults.importance;
this.maxResourcePercent = defaults.maxResourcePercent;
this.maxResourcePercentPerRequest = defaults.maxResourcePercentPerRequest;
this.minResourcePercent = defaults.minResourcePercent;
this.minResourcePercentPerRequest = defaults.minResourcePercentPerRequest;
this.name = defaults.name;
this.queryExecutionTimeout = defaults.queryExecutionTimeout;
this.type = defaults.type;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetWorkloadGroupResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder importance(@Nullable String importance) {
this.importance = importance;
return this;
}
@CustomType.Setter
public Builder maxResourcePercent(Integer maxResourcePercent) {
if (maxResourcePercent == null) {
throw new MissingRequiredPropertyException("GetWorkloadGroupResult", "maxResourcePercent");
}
this.maxResourcePercent = maxResourcePercent;
return this;
}
@CustomType.Setter
public Builder maxResourcePercentPerRequest(@Nullable Double maxResourcePercentPerRequest) {
this.maxResourcePercentPerRequest = maxResourcePercentPerRequest;
return this;
}
@CustomType.Setter
public Builder minResourcePercent(Integer minResourcePercent) {
if (minResourcePercent == null) {
throw new MissingRequiredPropertyException("GetWorkloadGroupResult", "minResourcePercent");
}
this.minResourcePercent = minResourcePercent;
return this;
}
@CustomType.Setter
public Builder minResourcePercentPerRequest(Double minResourcePercentPerRequest) {
if (minResourcePercentPerRequest == null) {
throw new MissingRequiredPropertyException("GetWorkloadGroupResult", "minResourcePercentPerRequest");
}
this.minResourcePercentPerRequest = minResourcePercentPerRequest;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetWorkloadGroupResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder queryExecutionTimeout(@Nullable Integer queryExecutionTimeout) {
this.queryExecutionTimeout = queryExecutionTimeout;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetWorkloadGroupResult", "type");
}
this.type = type;
return this;
}
public GetWorkloadGroupResult build() {
final var _resultValue = new GetWorkloadGroupResult();
_resultValue.id = id;
_resultValue.importance = importance;
_resultValue.maxResourcePercent = maxResourcePercent;
_resultValue.maxResourcePercentPerRequest = maxResourcePercentPerRequest;
_resultValue.minResourcePercent = minResourcePercent;
_resultValue.minResourcePercentPerRequest = minResourcePercentPerRequest;
_resultValue.name = name;
_resultValue.queryExecutionTimeout = queryExecutionTimeout;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy