com.pulumi.aws.sagemaker.outputs.EndpointConfigurationShadowProductionVariantManagedInstanceScaling 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.sagemaker.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EndpointConfigurationShadowProductionVariantManagedInstanceScaling {
/**
* @return The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in traffic.
*
*/
private @Nullable Integer maxInstanceCount;
/**
* @return The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in traffic.
*
*/
private @Nullable Integer minInstanceCount;
/**
* @return Indicates whether managed instance scaling is enabled. Valid values are `ENABLED` and `DISABLED`.
*
*/
private @Nullable String status;
private EndpointConfigurationShadowProductionVariantManagedInstanceScaling() {}
/**
* @return The maximum number of instances that the endpoint can provision when it scales up to accommodate an increase in traffic.
*
*/
public Optional maxInstanceCount() {
return Optional.ofNullable(this.maxInstanceCount);
}
/**
* @return The minimum number of instances that the endpoint must retain when it scales down to accommodate a decrease in traffic.
*
*/
public Optional minInstanceCount() {
return Optional.ofNullable(this.minInstanceCount);
}
/**
* @return Indicates whether managed instance scaling is enabled. Valid values are `ENABLED` and `DISABLED`.
*
*/
public Optional status() {
return Optional.ofNullable(this.status);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EndpointConfigurationShadowProductionVariantManagedInstanceScaling defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Integer maxInstanceCount;
private @Nullable Integer minInstanceCount;
private @Nullable String status;
public Builder() {}
public Builder(EndpointConfigurationShadowProductionVariantManagedInstanceScaling defaults) {
Objects.requireNonNull(defaults);
this.maxInstanceCount = defaults.maxInstanceCount;
this.minInstanceCount = defaults.minInstanceCount;
this.status = defaults.status;
}
@CustomType.Setter
public Builder maxInstanceCount(@Nullable Integer maxInstanceCount) {
this.maxInstanceCount = maxInstanceCount;
return this;
}
@CustomType.Setter
public Builder minInstanceCount(@Nullable Integer minInstanceCount) {
this.minInstanceCount = minInstanceCount;
return this;
}
@CustomType.Setter
public Builder status(@Nullable String status) {
this.status = status;
return this;
}
public EndpointConfigurationShadowProductionVariantManagedInstanceScaling build() {
final var _resultValue = new EndpointConfigurationShadowProductionVariantManagedInstanceScaling();
_resultValue.maxInstanceCount = maxInstanceCount;
_resultValue.minInstanceCount = minInstanceCount;
_resultValue.status = status;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy