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

com.pulumi.aws.cloudhsmv2.inputs.HsmState 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.cloudhsmv2.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class HsmState extends com.pulumi.resources.ResourceArgs {

    public static final HsmState Empty = new HsmState();

    /**
     * The IDs of AZ in which HSM module will be located. Conflicts with `subnet_id`.
     * 
     */
    @Import(name="availabilityZone")
    private @Nullable Output availabilityZone;

    /**
     * @return The IDs of AZ in which HSM module will be located. Conflicts with `subnet_id`.
     * 
     */
    public Optional> availabilityZone() {
        return Optional.ofNullable(this.availabilityZone);
    }

    /**
     * The ID of Cloud HSM v2 cluster to which HSM will be added.
     * 
     */
    @Import(name="clusterId")
    private @Nullable Output clusterId;

    /**
     * @return The ID of Cloud HSM v2 cluster to which HSM will be added.
     * 
     */
    public Optional> clusterId() {
        return Optional.ofNullable(this.clusterId);
    }

    /**
     * The id of the ENI interface allocated for HSM module.
     * 
     */
    @Import(name="hsmEniId")
    private @Nullable Output hsmEniId;

    /**
     * @return The id of the ENI interface allocated for HSM module.
     * 
     */
    public Optional> hsmEniId() {
        return Optional.ofNullable(this.hsmEniId);
    }

    /**
     * The id of the HSM module.
     * 
     */
    @Import(name="hsmId")
    private @Nullable Output hsmId;

    /**
     * @return The id of the HSM module.
     * 
     */
    public Optional> hsmId() {
        return Optional.ofNullable(this.hsmId);
    }

    /**
     * The state of the HSM module.
     * 
     */
    @Import(name="hsmState")
    private @Nullable Output hsmState;

    /**
     * @return The state of the HSM module.
     * 
     */
    public Optional> hsmState() {
        return Optional.ofNullable(this.hsmState);
    }

    /**
     * The IP address of HSM module. Must be within the CIDR of selected subnet.
     * 
     */
    @Import(name="ipAddress")
    private @Nullable Output ipAddress;

    /**
     * @return The IP address of HSM module. Must be within the CIDR of selected subnet.
     * 
     */
    public Optional> ipAddress() {
        return Optional.ofNullable(this.ipAddress);
    }

    /**
     * The ID of subnet in which HSM module will be located. Conflicts with `availability_zone`.
     * 
     */
    @Import(name="subnetId")
    private @Nullable Output subnetId;

    /**
     * @return The ID of subnet in which HSM module will be located. Conflicts with `availability_zone`.
     * 
     */
    public Optional> subnetId() {
        return Optional.ofNullable(this.subnetId);
    }

    private HsmState() {}

    private HsmState(HsmState $) {
        this.availabilityZone = $.availabilityZone;
        this.clusterId = $.clusterId;
        this.hsmEniId = $.hsmEniId;
        this.hsmId = $.hsmId;
        this.hsmState = $.hsmState;
        this.ipAddress = $.ipAddress;
        this.subnetId = $.subnetId;
    }

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

    public static final class Builder {
        private HsmState $;

        public Builder() {
            $ = new HsmState();
        }

        public Builder(HsmState defaults) {
            $ = new HsmState(Objects.requireNonNull(defaults));
        }

        /**
         * @param availabilityZone The IDs of AZ in which HSM module will be located. Conflicts with `subnet_id`.
         * 
         * @return builder
         * 
         */
        public Builder availabilityZone(@Nullable Output availabilityZone) {
            $.availabilityZone = availabilityZone;
            return this;
        }

        /**
         * @param availabilityZone The IDs of AZ in which HSM module will be located. Conflicts with `subnet_id`.
         * 
         * @return builder
         * 
         */
        public Builder availabilityZone(String availabilityZone) {
            return availabilityZone(Output.of(availabilityZone));
        }

        /**
         * @param clusterId The ID of Cloud HSM v2 cluster to which HSM will be added.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(@Nullable Output clusterId) {
            $.clusterId = clusterId;
            return this;
        }

        /**
         * @param clusterId The ID of Cloud HSM v2 cluster to which HSM will be added.
         * 
         * @return builder
         * 
         */
        public Builder clusterId(String clusterId) {
            return clusterId(Output.of(clusterId));
        }

        /**
         * @param hsmEniId The id of the ENI interface allocated for HSM module.
         * 
         * @return builder
         * 
         */
        public Builder hsmEniId(@Nullable Output hsmEniId) {
            $.hsmEniId = hsmEniId;
            return this;
        }

        /**
         * @param hsmEniId The id of the ENI interface allocated for HSM module.
         * 
         * @return builder
         * 
         */
        public Builder hsmEniId(String hsmEniId) {
            return hsmEniId(Output.of(hsmEniId));
        }

        /**
         * @param hsmId The id of the HSM module.
         * 
         * @return builder
         * 
         */
        public Builder hsmId(@Nullable Output hsmId) {
            $.hsmId = hsmId;
            return this;
        }

        /**
         * @param hsmId The id of the HSM module.
         * 
         * @return builder
         * 
         */
        public Builder hsmId(String hsmId) {
            return hsmId(Output.of(hsmId));
        }

        /**
         * @param hsmState The state of the HSM module.
         * 
         * @return builder
         * 
         */
        public Builder hsmState(@Nullable Output hsmState) {
            $.hsmState = hsmState;
            return this;
        }

        /**
         * @param hsmState The state of the HSM module.
         * 
         * @return builder
         * 
         */
        public Builder hsmState(String hsmState) {
            return hsmState(Output.of(hsmState));
        }

        /**
         * @param ipAddress The IP address of HSM module. Must be within the CIDR of selected subnet.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(@Nullable Output ipAddress) {
            $.ipAddress = ipAddress;
            return this;
        }

        /**
         * @param ipAddress The IP address of HSM module. Must be within the CIDR of selected subnet.
         * 
         * @return builder
         * 
         */
        public Builder ipAddress(String ipAddress) {
            return ipAddress(Output.of(ipAddress));
        }

        /**
         * @param subnetId The ID of subnet in which HSM module will be located. Conflicts with `availability_zone`.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(@Nullable Output subnetId) {
            $.subnetId = subnetId;
            return this;
        }

        /**
         * @param subnetId The ID of subnet in which HSM module will be located. Conflicts with `availability_zone`.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

        public HsmState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy