com.pulumi.aws.ec2.outputs.InstanceCreditSpecification 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 java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class InstanceCreditSpecification {
/**
* @return Credit option for CPU usage. Valid values include `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.
*
*/
private @Nullable String cpuCredits;
private InstanceCreditSpecification() {}
/**
* @return Credit option for CPU usage. Valid values include `standard` or `unlimited`. T3 instances are launched as unlimited by default. T2 instances are launched as standard by default.
*
*/
public Optional cpuCredits() {
return Optional.ofNullable(this.cpuCredits);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(InstanceCreditSpecification defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String cpuCredits;
public Builder() {}
public Builder(InstanceCreditSpecification defaults) {
Objects.requireNonNull(defaults);
this.cpuCredits = defaults.cpuCredits;
}
@CustomType.Setter
public Builder cpuCredits(@Nullable String cpuCredits) {
this.cpuCredits = cpuCredits;
return this;
}
public InstanceCreditSpecification build() {
final var _resultValue = new InstanceCreditSpecification();
_resultValue.cpuCredits = cpuCredits;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy