
com.pulumi.azurenative.machinelearningservices.outputs.CapacityReservationGroupResponse Maven / Gradle / Ivy
// *** 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.machinelearningservices.outputs;
import com.pulumi.azurenative.machinelearningservices.outputs.ServerlessOfferResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CapacityReservationGroupResponse {
/**
* @return Offer used by this capacity reservation group.
*
*/
private @Nullable ServerlessOfferResponse offer;
/**
* @return [Required] Specifies the amount of capacity to reserve.
*
*/
private Integer reservedCapacity;
private CapacityReservationGroupResponse() {}
/**
* @return Offer used by this capacity reservation group.
*
*/
public Optional offer() {
return Optional.ofNullable(this.offer);
}
/**
* @return [Required] Specifies the amount of capacity to reserve.
*
*/
public Integer reservedCapacity() {
return this.reservedCapacity;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CapacityReservationGroupResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ServerlessOfferResponse offer;
private Integer reservedCapacity;
public Builder() {}
public Builder(CapacityReservationGroupResponse defaults) {
Objects.requireNonNull(defaults);
this.offer = defaults.offer;
this.reservedCapacity = defaults.reservedCapacity;
}
@CustomType.Setter
public Builder offer(@Nullable ServerlessOfferResponse offer) {
this.offer = offer;
return this;
}
@CustomType.Setter
public Builder reservedCapacity(Integer reservedCapacity) {
if (reservedCapacity == null) {
throw new MissingRequiredPropertyException("CapacityReservationGroupResponse", "reservedCapacity");
}
this.reservedCapacity = reservedCapacity;
return this;
}
public CapacityReservationGroupResponse build() {
final var _resultValue = new CapacityReservationGroupResponse();
_resultValue.offer = offer;
_resultValue.reservedCapacity = reservedCapacity;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy