com.pulumi.aws.lambda.outputs.FunctionSnapStart 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.lambda.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class FunctionSnapStart {
/**
* @return Conditions where snap start is enabled. Valid values are `PublishedVersions`.
*
*/
private String applyOn;
/**
* @return Optimization status of the snap start configuration. Valid values are `On` and `Off`.
*
*/
private @Nullable String optimizationStatus;
private FunctionSnapStart() {}
/**
* @return Conditions where snap start is enabled. Valid values are `PublishedVersions`.
*
*/
public String applyOn() {
return this.applyOn;
}
/**
* @return Optimization status of the snap start configuration. Valid values are `On` and `Off`.
*
*/
public Optional optimizationStatus() {
return Optional.ofNullable(this.optimizationStatus);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(FunctionSnapStart defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String applyOn;
private @Nullable String optimizationStatus;
public Builder() {}
public Builder(FunctionSnapStart defaults) {
Objects.requireNonNull(defaults);
this.applyOn = defaults.applyOn;
this.optimizationStatus = defaults.optimizationStatus;
}
@CustomType.Setter
public Builder applyOn(String applyOn) {
if (applyOn == null) {
throw new MissingRequiredPropertyException("FunctionSnapStart", "applyOn");
}
this.applyOn = applyOn;
return this;
}
@CustomType.Setter
public Builder optimizationStatus(@Nullable String optimizationStatus) {
this.optimizationStatus = optimizationStatus;
return this;
}
public FunctionSnapStart build() {
final var _resultValue = new FunctionSnapStart();
_resultValue.applyOn = applyOn;
_resultValue.optimizationStatus = optimizationStatus;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy