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

com.pulumi.aws.ec2.outputs.SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget 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.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget {
    /**
     * @return ID of the Capacity Reservation in which to run the instance.
     * 
     */
    private @Nullable String capacityReservationId;
    /**
     * @return ARN of the Capacity Reservation resource group in which to run the instance.
     * 
     */
    private @Nullable String capacityReservationResourceGroupArn;

    private SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget() {}
    /**
     * @return ID of the Capacity Reservation in which to run the instance.
     * 
     */
    public Optional capacityReservationId() {
        return Optional.ofNullable(this.capacityReservationId);
    }
    /**
     * @return ARN of the Capacity Reservation resource group in which to run the instance.
     * 
     */
    public Optional capacityReservationResourceGroupArn() {
        return Optional.ofNullable(this.capacityReservationResourceGroupArn);
    }

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

    public static Builder builder(SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String capacityReservationId;
        private @Nullable String capacityReservationResourceGroupArn;
        public Builder() {}
        public Builder(SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.capacityReservationId = defaults.capacityReservationId;
    	      this.capacityReservationResourceGroupArn = defaults.capacityReservationResourceGroupArn;
        }

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

            this.capacityReservationId = capacityReservationId;
            return this;
        }
        @CustomType.Setter
        public Builder capacityReservationResourceGroupArn(@Nullable String capacityReservationResourceGroupArn) {

            this.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn;
            return this;
        }
        public SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget build() {
            final var _resultValue = new SpotInstanceRequestCapacityReservationSpecificationCapacityReservationTarget();
            _resultValue.capacityReservationId = capacityReservationId;
            _resultValue.capacityReservationResourceGroupArn = capacityReservationResourceGroupArn;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy