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

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

import com.pulumi.azurenative.security.inputs.AssignedComponentItemArgs;
import com.pulumi.azurenative.security.inputs.AssignedStandardItemArgs;
import com.pulumi.azurenative.security.inputs.AssignmentPropertiesAdditionalDataArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AssignmentArgs Empty = new AssignmentArgs();

    /**
     * Additional data about the assignment
     * 
     */
    @Import(name="additionalData")
    private @Nullable Output additionalData;

    /**
     * @return Additional data about the assignment
     * 
     */
    public Optional> additionalData() {
        return Optional.ofNullable(this.additionalData);
    }

    /**
     * Component item with key as applied to this standard assignment over the given scope
     * 
     */
    @Import(name="assignedComponent")
    private @Nullable Output assignedComponent;

    /**
     * @return Component item with key as applied to this standard assignment over the given scope
     * 
     */
    public Optional> assignedComponent() {
        return Optional.ofNullable(this.assignedComponent);
    }

    /**
     * Standard item with key as applied to this standard assignment over the given scope
     * 
     */
    @Import(name="assignedStandard")
    private @Nullable Output assignedStandard;

    /**
     * @return Standard item with key as applied to this standard assignment over the given scope
     * 
     */
    public Optional> assignedStandard() {
        return Optional.ofNullable(this.assignedStandard);
    }

    /**
     * The security assignment key - unique key for the standard assignment
     * 
     */
    @Import(name="assignmentId")
    private @Nullable Output assignmentId;

    /**
     * @return The security assignment key - unique key for the standard assignment
     * 
     */
    public Optional> assignmentId() {
        return Optional.ofNullable(this.assignmentId);
    }

    /**
     * description of the standardAssignment
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return description of the standardAssignment
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * display name of the standardAssignment
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return display name of the standardAssignment
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * expected effect of this assignment (Disable/Exempt/etc)
     * 
     */
    @Import(name="effect")
    private @Nullable Output effect;

    /**
     * @return expected effect of this assignment (Disable/Exempt/etc)
     * 
     */
    public Optional> effect() {
        return Optional.ofNullable(this.effect);
    }

    /**
     * Expiration date of this assignment as a full ISO date
     * 
     */
    @Import(name="expiresOn")
    private @Nullable Output expiresOn;

    /**
     * @return Expiration date of this assignment as a full ISO date
     * 
     */
    public Optional> expiresOn() {
        return Optional.ofNullable(this.expiresOn);
    }

    /**
     * Kind of the resource
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Kind of the resource
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Location where the resource is stored
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Location where the resource is stored
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output metadata;

    /**
     * @return The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
     * 
     */
    public Optional> metadata() {
        return Optional.ofNullable(this.metadata);
    }

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

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

    /**
     * Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    /**
     * A list of key value pairs that describe the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A list of key value pairs that describe the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private AssignmentArgs() {}

    private AssignmentArgs(AssignmentArgs $) {
        this.additionalData = $.additionalData;
        this.assignedComponent = $.assignedComponent;
        this.assignedStandard = $.assignedStandard;
        this.assignmentId = $.assignmentId;
        this.description = $.description;
        this.displayName = $.displayName;
        this.effect = $.effect;
        this.expiresOn = $.expiresOn;
        this.kind = $.kind;
        this.location = $.location;
        this.metadata = $.metadata;
        this.resourceGroupName = $.resourceGroupName;
        this.scope = $.scope;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private AssignmentArgs $;

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

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

        /**
         * @param additionalData Additional data about the assignment
         * 
         * @return builder
         * 
         */
        public Builder additionalData(@Nullable Output additionalData) {
            $.additionalData = additionalData;
            return this;
        }

        /**
         * @param additionalData Additional data about the assignment
         * 
         * @return builder
         * 
         */
        public Builder additionalData(AssignmentPropertiesAdditionalDataArgs additionalData) {
            return additionalData(Output.of(additionalData));
        }

        /**
         * @param assignedComponent Component item with key as applied to this standard assignment over the given scope
         * 
         * @return builder
         * 
         */
        public Builder assignedComponent(@Nullable Output assignedComponent) {
            $.assignedComponent = assignedComponent;
            return this;
        }

        /**
         * @param assignedComponent Component item with key as applied to this standard assignment over the given scope
         * 
         * @return builder
         * 
         */
        public Builder assignedComponent(AssignedComponentItemArgs assignedComponent) {
            return assignedComponent(Output.of(assignedComponent));
        }

        /**
         * @param assignedStandard Standard item with key as applied to this standard assignment over the given scope
         * 
         * @return builder
         * 
         */
        public Builder assignedStandard(@Nullable Output assignedStandard) {
            $.assignedStandard = assignedStandard;
            return this;
        }

        /**
         * @param assignedStandard Standard item with key as applied to this standard assignment over the given scope
         * 
         * @return builder
         * 
         */
        public Builder assignedStandard(AssignedStandardItemArgs assignedStandard) {
            return assignedStandard(Output.of(assignedStandard));
        }

        /**
         * @param assignmentId The security assignment key - unique key for the standard assignment
         * 
         * @return builder
         * 
         */
        public Builder assignmentId(@Nullable Output assignmentId) {
            $.assignmentId = assignmentId;
            return this;
        }

        /**
         * @param assignmentId The security assignment key - unique key for the standard assignment
         * 
         * @return builder
         * 
         */
        public Builder assignmentId(String assignmentId) {
            return assignmentId(Output.of(assignmentId));
        }

        /**
         * @param description description of the standardAssignment
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description description of the standardAssignment
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param displayName display name of the standardAssignment
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName display name of the standardAssignment
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param effect expected effect of this assignment (Disable/Exempt/etc)
         * 
         * @return builder
         * 
         */
        public Builder effect(@Nullable Output effect) {
            $.effect = effect;
            return this;
        }

        /**
         * @param effect expected effect of this assignment (Disable/Exempt/etc)
         * 
         * @return builder
         * 
         */
        public Builder effect(String effect) {
            return effect(Output.of(effect));
        }

        /**
         * @param expiresOn Expiration date of this assignment as a full ISO date
         * 
         * @return builder
         * 
         */
        public Builder expiresOn(@Nullable Output expiresOn) {
            $.expiresOn = expiresOn;
            return this;
        }

        /**
         * @param expiresOn Expiration date of this assignment as a full ISO date
         * 
         * @return builder
         * 
         */
        public Builder expiresOn(String expiresOn) {
            return expiresOn(Output.of(expiresOn));
        }

        /**
         * @param kind Kind of the resource
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Kind of the resource
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param location Location where the resource is stored
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Location where the resource is stored
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param metadata The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata The assignment metadata. Metadata is an open ended object and is typically a collection of key value pairs.
         * 
         * @return builder
         * 
         */
        public Builder metadata(Object metadata) {
            return metadata(Output.of(metadata));
        }

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

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

        /**
         * @param scope Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope Scope to which the standardAssignment applies - can be a subscription path or a resource group under that subscription
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param tags A list of key value pairs that describe the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A list of key value pairs that describe the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

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

}