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

com.pulumi.azurenative.compute.inputs.DiskSecurityProfileArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.compute.inputs;

import com.pulumi.azurenative.compute.enums.DiskSecurityTypes;
import com.pulumi.core.Either;
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;


/**
 * Contains the security related information for the resource.
 * 
 */
public final class DiskSecurityProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final DiskSecurityProfileArgs Empty = new DiskSecurityProfileArgs();

    /**
     * ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
     * 
     */
    @Import(name="secureVMDiskEncryptionSetId")
    private @Nullable Output secureVMDiskEncryptionSetId;

    /**
     * @return ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
     * 
     */
    public Optional> secureVMDiskEncryptionSetId() {
        return Optional.ofNullable(this.secureVMDiskEncryptionSetId);
    }

    /**
     * Specifies the SecurityType of the VM. Applicable for OS disks only.
     * 
     */
    @Import(name="securityType")
    private @Nullable Output> securityType;

    /**
     * @return Specifies the SecurityType of the VM. Applicable for OS disks only.
     * 
     */
    public Optional>> securityType() {
        return Optional.ofNullable(this.securityType);
    }

    private DiskSecurityProfileArgs() {}

    private DiskSecurityProfileArgs(DiskSecurityProfileArgs $) {
        this.secureVMDiskEncryptionSetId = $.secureVMDiskEncryptionSetId;
        this.securityType = $.securityType;
    }

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

    public static final class Builder {
        private DiskSecurityProfileArgs $;

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

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

        /**
         * @param secureVMDiskEncryptionSetId ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
         * 
         * @return builder
         * 
         */
        public Builder secureVMDiskEncryptionSetId(@Nullable Output secureVMDiskEncryptionSetId) {
            $.secureVMDiskEncryptionSetId = secureVMDiskEncryptionSetId;
            return this;
        }

        /**
         * @param secureVMDiskEncryptionSetId ResourceId of the disk encryption set associated to Confidential VM supported disk encrypted with customer managed key
         * 
         * @return builder
         * 
         */
        public Builder secureVMDiskEncryptionSetId(String secureVMDiskEncryptionSetId) {
            return secureVMDiskEncryptionSetId(Output.of(secureVMDiskEncryptionSetId));
        }

        /**
         * @param securityType Specifies the SecurityType of the VM. Applicable for OS disks only.
         * 
         * @return builder
         * 
         */
        public Builder securityType(@Nullable Output> securityType) {
            $.securityType = securityType;
            return this;
        }

        /**
         * @param securityType Specifies the SecurityType of the VM. Applicable for OS disks only.
         * 
         * @return builder
         * 
         */
        public Builder securityType(Either securityType) {
            return securityType(Output.of(securityType));
        }

        /**
         * @param securityType Specifies the SecurityType of the VM. Applicable for OS disks only.
         * 
         * @return builder
         * 
         */
        public Builder securityType(String securityType) {
            return securityType(Either.ofLeft(securityType));
        }

        /**
         * @param securityType Specifies the SecurityType of the VM. Applicable for OS disks only.
         * 
         * @return builder
         * 
         */
        public Builder securityType(DiskSecurityTypes securityType) {
            return securityType(Either.ofRight(securityType));
        }

        public DiskSecurityProfileArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy