com.pulumi.aws.ec2.outputs.FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud 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.aws.ec2.outputs;
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 FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib {
/**
* @return The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.
*
*/
private @Nullable Integer max;
/**
* @return The minimum amount of memory, in MiB. To specify no minimum limit, specify `0`.
*
*/
private Integer min;
private FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib() {}
/**
* @return The maximum amount of memory, in MiB. To specify no maximum limit, omit this parameter.
*
*/
public Optional max() {
return Optional.ofNullable(this.max);
}
/**
* @return The minimum amount of memory, in MiB. To specify no minimum limit, specify `0`.
*
*/
public Integer min() {
return this.min;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer max;
private Integer min;
public Builder() {}
public Builder(FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib defaults) {
Objects.requireNonNull(defaults);
this.max = defaults.max;
this.min = defaults.min;
}
@CustomType.Setter
public Builder max(@Nullable Integer max) {
this.max = max;
return this;
}
@CustomType.Setter
public Builder min(Integer min) {
if (min == null) {
throw new MissingRequiredPropertyException("FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib", "min");
}
this.min = min;
return this;
}
public FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib build() {
final var _resultValue = new FleetLaunchTemplateConfigOverrideInstanceRequirementsMemoryMib();
_resultValue.max = max;
_resultValue.min = min;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy