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

com.pulumi.azurenative.azurestackhci.SecuritySettingArgs 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.azurestackhci;

import com.pulumi.azurenative.azurestackhci.enums.ComplianceAssignmentType;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SecuritySettingArgs Empty = new SecuritySettingArgs();

    /**
     * The name of the cluster.
     * 
     */
    @Import(name="clusterName", required=true)
    private Output clusterName;

    /**
     * @return The name of the cluster.
     * 
     */
    public Output clusterName() {
        return this.clusterName;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Secured Core Compliance Assignment
     * 
     */
    @Import(name="securedCoreComplianceAssignment")
    private @Nullable Output> securedCoreComplianceAssignment;

    /**
     * @return Secured Core Compliance Assignment
     * 
     */
    public Optional>> securedCoreComplianceAssignment() {
        return Optional.ofNullable(this.securedCoreComplianceAssignment);
    }

    /**
     * Name of security setting
     * 
     */
    @Import(name="securitySettingsName")
    private @Nullable Output securitySettingsName;

    /**
     * @return Name of security setting
     * 
     */
    public Optional> securitySettingsName() {
        return Optional.ofNullable(this.securitySettingsName);
    }

    private SecuritySettingArgs() {}

    private SecuritySettingArgs(SecuritySettingArgs $) {
        this.clusterName = $.clusterName;
        this.resourceGroupName = $.resourceGroupName;
        this.securedCoreComplianceAssignment = $.securedCoreComplianceAssignment;
        this.securitySettingsName = $.securitySettingsName;
    }

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

    public static final class Builder {
        private SecuritySettingArgs $;

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

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

        /**
         * @param clusterName The name of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(Output clusterName) {
            $.clusterName = clusterName;
            return this;
        }

        /**
         * @param clusterName The name of the cluster.
         * 
         * @return builder
         * 
         */
        public Builder clusterName(String clusterName) {
            return clusterName(Output.of(clusterName));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param securedCoreComplianceAssignment Secured Core Compliance Assignment
         * 
         * @return builder
         * 
         */
        public Builder securedCoreComplianceAssignment(@Nullable Output> securedCoreComplianceAssignment) {
            $.securedCoreComplianceAssignment = securedCoreComplianceAssignment;
            return this;
        }

        /**
         * @param securedCoreComplianceAssignment Secured Core Compliance Assignment
         * 
         * @return builder
         * 
         */
        public Builder securedCoreComplianceAssignment(Either securedCoreComplianceAssignment) {
            return securedCoreComplianceAssignment(Output.of(securedCoreComplianceAssignment));
        }

        /**
         * @param securedCoreComplianceAssignment Secured Core Compliance Assignment
         * 
         * @return builder
         * 
         */
        public Builder securedCoreComplianceAssignment(String securedCoreComplianceAssignment) {
            return securedCoreComplianceAssignment(Either.ofLeft(securedCoreComplianceAssignment));
        }

        /**
         * @param securedCoreComplianceAssignment Secured Core Compliance Assignment
         * 
         * @return builder
         * 
         */
        public Builder securedCoreComplianceAssignment(ComplianceAssignmentType securedCoreComplianceAssignment) {
            return securedCoreComplianceAssignment(Either.ofRight(securedCoreComplianceAssignment));
        }

        /**
         * @param securitySettingsName Name of security setting
         * 
         * @return builder
         * 
         */
        public Builder securitySettingsName(@Nullable Output securitySettingsName) {
            $.securitySettingsName = securitySettingsName;
            return this;
        }

        /**
         * @param securitySettingsName Name of security setting
         * 
         * @return builder
         * 
         */
        public Builder securitySettingsName(String securitySettingsName) {
            return securitySettingsName(Output.of(securitySettingsName));
        }

        public SecuritySettingArgs build() {
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("SecuritySettingArgs", "clusterName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SecuritySettingArgs", "resourceGroupName");
            }
            $.securedCoreComplianceAssignment = Codegen.stringProp("securedCoreComplianceAssignment").left(ComplianceAssignmentType.class).output().arg($.securedCoreComplianceAssignment).def("Audit").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy