// *** 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.GetLaunchTemplateInstanceMarketOptionSpotOption;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetLaunchTemplateInstanceMarketOption {
    private String marketType;
    private List<GetLaunchTemplateInstanceMarketOptionSpotOption> spotOptions;

    private GetLaunchTemplateInstanceMarketOption() {}
    public String marketType() {
        return this.marketType;
    }
    public List<GetLaunchTemplateInstanceMarketOptionSpotOption> spotOptions() {
        return this.spotOptions;
    }

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

    public static Builder builder(GetLaunchTemplateInstanceMarketOption defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String marketType;
        private List<GetLaunchTemplateInstanceMarketOptionSpotOption> spotOptions;
        public Builder() {}
        public Builder(GetLaunchTemplateInstanceMarketOption defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.marketType = defaults.marketType;
    	      this.spotOptions = defaults.spotOptions;
        }

        @CustomType.Setter
        public Builder marketType(String marketType) {
            this.marketType = Objects.requireNonNull(marketType);
            return this;
        }
        @CustomType.Setter
        public Builder spotOptions(List<GetLaunchTemplateInstanceMarketOptionSpotOption> spotOptions) {
            this.spotOptions = Objects.requireNonNull(spotOptions);
            return this;
        }
        public Builder spotOptions(GetLaunchTemplateInstanceMarketOptionSpotOption... spotOptions) {
            return spotOptions(List.of(spotOptions));
        }
        public GetLaunchTemplateInstanceMarketOption build() {
            final var o = new GetLaunchTemplateInstanceMarketOption();
            o.marketType = marketType;
            o.spotOptions = spotOptions;
            return o;
        }
    }
}
