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

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

There is a newer version: 2.72.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.inputs.VirtualMachineExtensionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Specifies the security posture to be used for all virtual machines in the scale set. Minimum api-version: 2023-03-01
 * 
 */
public final class SecurityPostureReferenceArgs extends com.pulumi.resources.ResourceArgs {

    public static final SecurityPostureReferenceArgs Empty = new SecurityPostureReferenceArgs();

    /**
     * List of virtual machine extensions to exclude when applying the Security Posture.
     * 
     */
    @Import(name="excludeExtensions")
    private @Nullable Output> excludeExtensions;

    /**
     * @return List of virtual machine extensions to exclude when applying the Security Posture.
     * 
     */
    public Optional>> excludeExtensions() {
        return Optional.ofNullable(this.excludeExtensions);
    }

    /**
     * The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    private SecurityPostureReferenceArgs() {}

    private SecurityPostureReferenceArgs(SecurityPostureReferenceArgs $) {
        this.excludeExtensions = $.excludeExtensions;
        this.id = $.id;
    }

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

    public static final class Builder {
        private SecurityPostureReferenceArgs $;

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

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

        /**
         * @param excludeExtensions List of virtual machine extensions to exclude when applying the Security Posture.
         * 
         * @return builder
         * 
         */
        public Builder excludeExtensions(@Nullable Output> excludeExtensions) {
            $.excludeExtensions = excludeExtensions;
            return this;
        }

        /**
         * @param excludeExtensions List of virtual machine extensions to exclude when applying the Security Posture.
         * 
         * @return builder
         * 
         */
        public Builder excludeExtensions(List excludeExtensions) {
            return excludeExtensions(Output.of(excludeExtensions));
        }

        /**
         * @param excludeExtensions List of virtual machine extensions to exclude when applying the Security Posture.
         * 
         * @return builder
         * 
         */
        public Builder excludeExtensions(VirtualMachineExtensionArgs... excludeExtensions) {
            return excludeExtensions(List.of(excludeExtensions));
        }

        /**
         * @param id The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The security posture reference id in the form of /CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        public SecurityPostureReferenceArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy