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

com.pulumi.azurenative.security.DefenderForStorageArgs 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.security;

import com.pulumi.azurenative.security.inputs.DefenderForStorageSettingPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DefenderForStorageArgs Empty = new DefenderForStorageArgs();

    /**
     * Defender for Storage resource properties.
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return Defender for Storage resource properties.
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The identifier of the resource.
     * 
     */
    @Import(name="resourceId", required=true)
    private Output resourceId;

    /**
     * @return The identifier of the resource.
     * 
     */
    public Output resourceId() {
        return this.resourceId;
    }

    /**
     * Defender for Storage setting name.
     * 
     */
    @Import(name="settingName")
    private @Nullable Output settingName;

    /**
     * @return Defender for Storage setting name.
     * 
     */
    public Optional> settingName() {
        return Optional.ofNullable(this.settingName);
    }

    private DefenderForStorageArgs() {}

    private DefenderForStorageArgs(DefenderForStorageArgs $) {
        this.properties = $.properties;
        this.resourceId = $.resourceId;
        this.settingName = $.settingName;
    }

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

    public static final class Builder {
        private DefenderForStorageArgs $;

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

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

        /**
         * @param properties Defender for Storage resource properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties Defender for Storage resource properties.
         * 
         * @return builder
         * 
         */
        public Builder properties(DefenderForStorageSettingPropertiesArgs properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param resourceId The identifier of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The identifier of the resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        /**
         * @param settingName Defender for Storage setting name.
         * 
         * @return builder
         * 
         */
        public Builder settingName(@Nullable Output settingName) {
            $.settingName = settingName;
            return this;
        }

        /**
         * @param settingName Defender for Storage setting name.
         * 
         * @return builder
         * 
         */
        public Builder settingName(String settingName) {
            return settingName(Output.of(settingName));
        }

        public DefenderForStorageArgs build() {
            if ($.resourceId == null) {
                throw new MissingRequiredPropertyException("DefenderForStorageArgs", "resourceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy