com.pulumi.aws.ec2.outputs.GetInstanceMaintenanceOption 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.String;
import java.util.Objects;
@CustomType
public final class GetInstanceMaintenanceOption {
/**
* @return Automatic recovery behavior of the instance.
*
*/
private String autoRecovery;
private GetInstanceMaintenanceOption() {}
/**
* @return Automatic recovery behavior of the instance.
*
*/
public String autoRecovery() {
return this.autoRecovery;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetInstanceMaintenanceOption defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String autoRecovery;
public Builder() {}
public Builder(GetInstanceMaintenanceOption defaults) {
Objects.requireNonNull(defaults);
this.autoRecovery = defaults.autoRecovery;
}
@CustomType.Setter
public Builder autoRecovery(String autoRecovery) {
if (autoRecovery == null) {
throw new MissingRequiredPropertyException("GetInstanceMaintenanceOption", "autoRecovery");
}
this.autoRecovery = autoRecovery;
return this;
}
public GetInstanceMaintenanceOption build() {
final var _resultValue = new GetInstanceMaintenanceOption();
_resultValue.autoRecovery = autoRecovery;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy