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

com.pulumi.azurenative.security.StandardAssignmentArgs 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.enums.Effect;
import com.pulumi.azurenative.security.inputs.AssignedStandardItemArgs;
import com.pulumi.azurenative.security.inputs.StandardAssignmentPropertiesAttestationDataArgs;
import com.pulumi.azurenative.security.inputs.StandardAssignmentPropertiesExemptionDataArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final StandardAssignmentArgs Empty = new StandardAssignmentArgs();

    /**
     * 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);
    }

    /**
     * Additional data about assignment that has Attest effect
     * 
     */
    @Import(name="attestationData")
    private @Nullable Output attestationData;

    /**
     * @return Additional data about assignment that has Attest effect
     * 
     */
    public Optional> attestationData() {
        return Optional.ofNullable(this.attestationData);
    }

    /**
     * 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 (Audit/Exempt/Attest)
     * 
     */
    @Import(name="effect")
    private @Nullable Output> effect;

    /**
     * @return Expected effect of this assignment (Audit/Exempt/Attest)
     * 
     */
    public Optional>> effect() {
        return Optional.ofNullable(this.effect);
    }

    /**
     * Excluded scopes, filter out the descendants of the scope (on management scopes)
     * 
     */
    @Import(name="excludedScopes")
    private @Nullable Output> excludedScopes;

    /**
     * @return Excluded scopes, filter out the descendants of the scope (on management scopes)
     * 
     */
    public Optional>> excludedScopes() {
        return Optional.ofNullable(this.excludedScopes);
    }

    /**
     * Additional data about assignment that has Exempt effect
     * 
     */
    @Import(name="exemptionData")
    private @Nullable Output exemptionData;

    /**
     * @return Additional data about assignment that has Exempt effect
     * 
     */
    public Optional> exemptionData() {
        return Optional.ofNullable(this.exemptionData);
    }

    /**
     * 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);
    }

    /**
     * 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;
    }

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

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

    private StandardAssignmentArgs() {}

    private StandardAssignmentArgs(StandardAssignmentArgs $) {
        this.assignedStandard = $.assignedStandard;
        this.attestationData = $.attestationData;
        this.description = $.description;
        this.displayName = $.displayName;
        this.effect = $.effect;
        this.excludedScopes = $.excludedScopes;
        this.exemptionData = $.exemptionData;
        this.expiresOn = $.expiresOn;
        this.resourceId = $.resourceId;
        this.standardAssignmentName = $.standardAssignmentName;
    }

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

    public static final class Builder {
        private StandardAssignmentArgs $;

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

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

        /**
         * @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 attestationData Additional data about assignment that has Attest effect
         * 
         * @return builder
         * 
         */
        public Builder attestationData(@Nullable Output attestationData) {
            $.attestationData = attestationData;
            return this;
        }

        /**
         * @param attestationData Additional data about assignment that has Attest effect
         * 
         * @return builder
         * 
         */
        public Builder attestationData(StandardAssignmentPropertiesAttestationDataArgs attestationData) {
            return attestationData(Output.of(attestationData));
        }

        /**
         * @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 (Audit/Exempt/Attest)
         * 
         * @return builder
         * 
         */
        public Builder effect(@Nullable Output> effect) {
            $.effect = effect;
            return this;
        }

        /**
         * @param effect Expected effect of this assignment (Audit/Exempt/Attest)
         * 
         * @return builder
         * 
         */
        public Builder effect(Either effect) {
            return effect(Output.of(effect));
        }

        /**
         * @param effect Expected effect of this assignment (Audit/Exempt/Attest)
         * 
         * @return builder
         * 
         */
        public Builder effect(String effect) {
            return effect(Either.ofLeft(effect));
        }

        /**
         * @param effect Expected effect of this assignment (Audit/Exempt/Attest)
         * 
         * @return builder
         * 
         */
        public Builder effect(Effect effect) {
            return effect(Either.ofRight(effect));
        }

        /**
         * @param excludedScopes Excluded scopes, filter out the descendants of the scope (on management scopes)
         * 
         * @return builder
         * 
         */
        public Builder excludedScopes(@Nullable Output> excludedScopes) {
            $.excludedScopes = excludedScopes;
            return this;
        }

        /**
         * @param excludedScopes Excluded scopes, filter out the descendants of the scope (on management scopes)
         * 
         * @return builder
         * 
         */
        public Builder excludedScopes(List excludedScopes) {
            return excludedScopes(Output.of(excludedScopes));
        }

        /**
         * @param excludedScopes Excluded scopes, filter out the descendants of the scope (on management scopes)
         * 
         * @return builder
         * 
         */
        public Builder excludedScopes(String... excludedScopes) {
            return excludedScopes(List.of(excludedScopes));
        }

        /**
         * @param exemptionData Additional data about assignment that has Exempt effect
         * 
         * @return builder
         * 
         */
        public Builder exemptionData(@Nullable Output exemptionData) {
            $.exemptionData = exemptionData;
            return this;
        }

        /**
         * @param exemptionData Additional data about assignment that has Exempt effect
         * 
         * @return builder
         * 
         */
        public Builder exemptionData(StandardAssignmentPropertiesExemptionDataArgs exemptionData) {
            return exemptionData(Output.of(exemptionData));
        }

        /**
         * @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 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 standardAssignmentName The standard assignments assignment key - unique key for the standard assignment
         * 
         * @return builder
         * 
         */
        public Builder standardAssignmentName(@Nullable Output standardAssignmentName) {
            $.standardAssignmentName = standardAssignmentName;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy