com.pulumi.alicloud.opensearch.outputs.AppGroupQuota Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud 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.alicloud.opensearch.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AppGroupQuota {
/**
* @return Computing resources. Unit: LCU.
*
*/
private Integer computeResource;
/**
* @return Storage Size. Unit: GB.
*
*/
private Integer docSize;
/**
* @return Search request. Unit: times/second.
*
*/
private @Nullable Integer qps;
/**
* @return Specification. Valid values:
* * `opensearch.share.junior`: Entry-level.
* * `opensearch.share.common`: Shared universal.
* * `opensearch.share.compute`: Shared computing.
* * `opensearch.share.storage`: Shared storage type.
* * `opensearch.private.common`: Exclusive universal type.
* * `opensearch.private.compute`: Exclusive computing type.
* * `opensearch.private.storage`: Exclusive storage type
*
*/
private String spec;
private AppGroupQuota() {}
/**
* @return Computing resources. Unit: LCU.
*
*/
public Integer computeResource() {
return this.computeResource;
}
/**
* @return Storage Size. Unit: GB.
*
*/
public Integer docSize() {
return this.docSize;
}
/**
* @return Search request. Unit: times/second.
*
*/
public Optional qps() {
return Optional.ofNullable(this.qps);
}
/**
* @return Specification. Valid values:
* * `opensearch.share.junior`: Entry-level.
* * `opensearch.share.common`: Shared universal.
* * `opensearch.share.compute`: Shared computing.
* * `opensearch.share.storage`: Shared storage type.
* * `opensearch.private.common`: Exclusive universal type.
* * `opensearch.private.compute`: Exclusive computing type.
* * `opensearch.private.storage`: Exclusive storage type
*
*/
public String spec() {
return this.spec;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AppGroupQuota defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private Integer computeResource;
private Integer docSize;
private @Nullable Integer qps;
private String spec;
public Builder() {}
public Builder(AppGroupQuota defaults) {
Objects.requireNonNull(defaults);
this.computeResource = defaults.computeResource;
this.docSize = defaults.docSize;
this.qps = defaults.qps;
this.spec = defaults.spec;
}
@CustomType.Setter
public Builder computeResource(Integer computeResource) {
if (computeResource == null) {
throw new MissingRequiredPropertyException("AppGroupQuota", "computeResource");
}
this.computeResource = computeResource;
return this;
}
@CustomType.Setter
public Builder docSize(Integer docSize) {
if (docSize == null) {
throw new MissingRequiredPropertyException("AppGroupQuota", "docSize");
}
this.docSize = docSize;
return this;
}
@CustomType.Setter
public Builder qps(@Nullable Integer qps) {
this.qps = qps;
return this;
}
@CustomType.Setter
public Builder spec(String spec) {
if (spec == null) {
throw new MissingRequiredPropertyException("AppGroupQuota", "spec");
}
this.spec = spec;
return this;
}
public AppGroupQuota build() {
final var _resultValue = new AppGroupQuota();
_resultValue.computeResource = computeResource;
_resultValue.docSize = docSize;
_resultValue.qps = qps;
_resultValue.spec = spec;
return _resultValue;
}
}
}