All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.ec2.outputs.LaunchTemplateCapacityReservationSpecification Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
Show newest version
// *** 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.aws.ec2.outputs.LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget;
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 LaunchTemplateCapacityReservationSpecification {
    /**
     * @return Indicates the instance's Capacity Reservation preferences. Can be `open` or `none`. (Default `none`).
     * 
     */
    private @Nullable String capacityReservationPreference;
    /**
     * @return Used to target a specific Capacity Reservation:
     * 
     */
    private @Nullable LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget;

    private LaunchTemplateCapacityReservationSpecification() {}
    /**
     * @return Indicates the instance's Capacity Reservation preferences. Can be `open` or `none`. (Default `none`).
     * 
     */
    public Optional capacityReservationPreference() {
        return Optional.ofNullable(this.capacityReservationPreference);
    }
    /**
     * @return Used to target a specific Capacity Reservation:
     * 
     */
    public Optional capacityReservationTarget() {
        return Optional.ofNullable(this.capacityReservationTarget);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(LaunchTemplateCapacityReservationSpecification defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String capacityReservationPreference;
        private @Nullable LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget;
        public Builder() {}
        public Builder(LaunchTemplateCapacityReservationSpecification defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.capacityReservationPreference = defaults.capacityReservationPreference;
    	      this.capacityReservationTarget = defaults.capacityReservationTarget;
        }

        @CustomType.Setter
        public Builder capacityReservationPreference(@Nullable String capacityReservationPreference) {

            this.capacityReservationPreference = capacityReservationPreference;
            return this;
        }
        @CustomType.Setter
        public Builder capacityReservationTarget(@Nullable LaunchTemplateCapacityReservationSpecificationCapacityReservationTarget capacityReservationTarget) {

            this.capacityReservationTarget = capacityReservationTarget;
            return this;
        }
        public LaunchTemplateCapacityReservationSpecification build() {
            final var _resultValue = new LaunchTemplateCapacityReservationSpecification();
            _resultValue.capacityReservationPreference = capacityReservationPreference;
            _resultValue.capacityReservationTarget = capacityReservationTarget;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy