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

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

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

@CustomType
public final class GetLaunchTemplateBlockDeviceMapping {
    private String deviceName;
    private List ebs;
    private String noDevice;
    private String virtualName;

    private GetLaunchTemplateBlockDeviceMapping() {}
    public String deviceName() {
        return this.deviceName;
    }
    public List ebs() {
        return this.ebs;
    }
    public String noDevice() {
        return this.noDevice;
    }
    public String virtualName() {
        return this.virtualName;
    }

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

    public static Builder builder(GetLaunchTemplateBlockDeviceMapping defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String deviceName;
        private List ebs;
        private String noDevice;
        private String virtualName;
        public Builder() {}
        public Builder(GetLaunchTemplateBlockDeviceMapping defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deviceName = defaults.deviceName;
    	      this.ebs = defaults.ebs;
    	      this.noDevice = defaults.noDevice;
    	      this.virtualName = defaults.virtualName;
        }

        @CustomType.Setter
        public Builder deviceName(String deviceName) {
            if (deviceName == null) {
              throw new MissingRequiredPropertyException("GetLaunchTemplateBlockDeviceMapping", "deviceName");
            }
            this.deviceName = deviceName;
            return this;
        }
        @CustomType.Setter
        public Builder ebs(List ebs) {
            if (ebs == null) {
              throw new MissingRequiredPropertyException("GetLaunchTemplateBlockDeviceMapping", "ebs");
            }
            this.ebs = ebs;
            return this;
        }
        public Builder ebs(GetLaunchTemplateBlockDeviceMappingEb... ebs) {
            return ebs(List.of(ebs));
        }
        @CustomType.Setter
        public Builder noDevice(String noDevice) {
            if (noDevice == null) {
              throw new MissingRequiredPropertyException("GetLaunchTemplateBlockDeviceMapping", "noDevice");
            }
            this.noDevice = noDevice;
            return this;
        }
        @CustomType.Setter
        public Builder virtualName(String virtualName) {
            if (virtualName == null) {
              throw new MissingRequiredPropertyException("GetLaunchTemplateBlockDeviceMapping", "virtualName");
            }
            this.virtualName = virtualName;
            return this;
        }
        public GetLaunchTemplateBlockDeviceMapping build() {
            final var _resultValue = new GetLaunchTemplateBlockDeviceMapping();
            _resultValue.deviceName = deviceName;
            _resultValue.ebs = ebs;
            _resultValue.noDevice = noDevice;
            _resultValue.virtualName = virtualName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy