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

com.pulumi.azurenative.security.GovernanceAssignmentArgs 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.GovernanceAssignmentAdditionalDataArgs;
import com.pulumi.azurenative.security.inputs.GovernanceEmailNotificationArgs;
import com.pulumi.azurenative.security.inputs.RemediationEtaArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final GovernanceAssignmentArgs Empty = new GovernanceAssignmentArgs();

    /**
     * The additional data for the governance assignment - e.g. links to ticket (optional), see example
     * 
     */
    @Import(name="additionalData")
    private @Nullable Output additionalData;

    /**
     * @return The additional data for the governance assignment - e.g. links to ticket (optional), see example
     * 
     */
    public Optional> additionalData() {
        return Optional.ofNullable(this.additionalData);
    }

    /**
     * The Assessment Key - A unique key for the assessment type
     * 
     */
    @Import(name="assessmentName", required=true)
    private Output assessmentName;

    /**
     * @return The Assessment Key - A unique key for the assessment type
     * 
     */
    public Output assessmentName() {
        return this.assessmentName;
    }

    /**
     * The governance assignment key - the assessment key of the required governance assignment
     * 
     */
    @Import(name="assignmentKey")
    private @Nullable Output assignmentKey;

    /**
     * @return The governance assignment key - the assessment key of the required governance assignment
     * 
     */
    public Optional> assignmentKey() {
        return Optional.ofNullable(this.assignmentKey);
    }

    /**
     * The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
     * 
     */
    @Import(name="governanceEmailNotification")
    private @Nullable Output governanceEmailNotification;

    /**
     * @return The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
     * 
     */
    public Optional> governanceEmailNotification() {
        return Optional.ofNullable(this.governanceEmailNotification);
    }

    /**
     * Defines whether there is a grace period on the governance assignment
     * 
     */
    @Import(name="isGracePeriod")
    private @Nullable Output isGracePeriod;

    /**
     * @return Defines whether there is a grace period on the governance assignment
     * 
     */
    public Optional> isGracePeriod() {
        return Optional.ofNullable(this.isGracePeriod);
    }

    /**
     * The Owner for the governance assignment - e.g. user{@literal @}contoso.com - see example
     * 
     */
    @Import(name="owner")
    private @Nullable Output owner;

    /**
     * @return The Owner for the governance assignment - e.g. user{@literal @}contoso.com - see example
     * 
     */
    public Optional> owner() {
        return Optional.ofNullable(this.owner);
    }

    /**
     * The remediation due-date - after this date Secure Score will be affected (in case of  active grace-period)
     * 
     */
    @Import(name="remediationDueDate", required=true)
    private Output remediationDueDate;

    /**
     * @return The remediation due-date - after this date Secure Score will be affected (in case of  active grace-period)
     * 
     */
    public Output remediationDueDate() {
        return this.remediationDueDate;
    }

    /**
     * The ETA (estimated time of arrival) for remediation (optional), see example
     * 
     */
    @Import(name="remediationEta")
    private @Nullable Output remediationEta;

    /**
     * @return The ETA (estimated time of arrival) for remediation (optional), see example
     * 
     */
    public Optional> remediationEta() {
        return Optional.ofNullable(this.remediationEta);
    }

    /**
     * The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
     * 
     */
    public Output scope() {
        return this.scope;
    }

    private GovernanceAssignmentArgs() {}

    private GovernanceAssignmentArgs(GovernanceAssignmentArgs $) {
        this.additionalData = $.additionalData;
        this.assessmentName = $.assessmentName;
        this.assignmentKey = $.assignmentKey;
        this.governanceEmailNotification = $.governanceEmailNotification;
        this.isGracePeriod = $.isGracePeriod;
        this.owner = $.owner;
        this.remediationDueDate = $.remediationDueDate;
        this.remediationEta = $.remediationEta;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private GovernanceAssignmentArgs $;

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

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

        /**
         * @param additionalData The additional data for the governance assignment - e.g. links to ticket (optional), see example
         * 
         * @return builder
         * 
         */
        public Builder additionalData(@Nullable Output additionalData) {
            $.additionalData = additionalData;
            return this;
        }

        /**
         * @param additionalData The additional data for the governance assignment - e.g. links to ticket (optional), see example
         * 
         * @return builder
         * 
         */
        public Builder additionalData(GovernanceAssignmentAdditionalDataArgs additionalData) {
            return additionalData(Output.of(additionalData));
        }

        /**
         * @param assessmentName The Assessment Key - A unique key for the assessment type
         * 
         * @return builder
         * 
         */
        public Builder assessmentName(Output assessmentName) {
            $.assessmentName = assessmentName;
            return this;
        }

        /**
         * @param assessmentName The Assessment Key - A unique key for the assessment type
         * 
         * @return builder
         * 
         */
        public Builder assessmentName(String assessmentName) {
            return assessmentName(Output.of(assessmentName));
        }

        /**
         * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment
         * 
         * @return builder
         * 
         */
        public Builder assignmentKey(@Nullable Output assignmentKey) {
            $.assignmentKey = assignmentKey;
            return this;
        }

        /**
         * @param assignmentKey The governance assignment key - the assessment key of the required governance assignment
         * 
         * @return builder
         * 
         */
        public Builder assignmentKey(String assignmentKey) {
            return assignmentKey(Output.of(assignmentKey));
        }

        /**
         * @param governanceEmailNotification The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
         * 
         * @return builder
         * 
         */
        public Builder governanceEmailNotification(@Nullable Output governanceEmailNotification) {
            $.governanceEmailNotification = governanceEmailNotification;
            return this;
        }

        /**
         * @param governanceEmailNotification The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners
         * 
         * @return builder
         * 
         */
        public Builder governanceEmailNotification(GovernanceEmailNotificationArgs governanceEmailNotification) {
            return governanceEmailNotification(Output.of(governanceEmailNotification));
        }

        /**
         * @param isGracePeriod Defines whether there is a grace period on the governance assignment
         * 
         * @return builder
         * 
         */
        public Builder isGracePeriod(@Nullable Output isGracePeriod) {
            $.isGracePeriod = isGracePeriod;
            return this;
        }

        /**
         * @param isGracePeriod Defines whether there is a grace period on the governance assignment
         * 
         * @return builder
         * 
         */
        public Builder isGracePeriod(Boolean isGracePeriod) {
            return isGracePeriod(Output.of(isGracePeriod));
        }

        /**
         * @param owner The Owner for the governance assignment - e.g. user{@literal @}contoso.com - see example
         * 
         * @return builder
         * 
         */
        public Builder owner(@Nullable Output owner) {
            $.owner = owner;
            return this;
        }

        /**
         * @param owner The Owner for the governance assignment - e.g. user{@literal @}contoso.com - see example
         * 
         * @return builder
         * 
         */
        public Builder owner(String owner) {
            return owner(Output.of(owner));
        }

        /**
         * @param remediationDueDate The remediation due-date - after this date Secure Score will be affected (in case of  active grace-period)
         * 
         * @return builder
         * 
         */
        public Builder remediationDueDate(Output remediationDueDate) {
            $.remediationDueDate = remediationDueDate;
            return this;
        }

        /**
         * @param remediationDueDate The remediation due-date - after this date Secure Score will be affected (in case of  active grace-period)
         * 
         * @return builder
         * 
         */
        public Builder remediationDueDate(String remediationDueDate) {
            return remediationDueDate(Output.of(remediationDueDate));
        }

        /**
         * @param remediationEta The ETA (estimated time of arrival) for remediation (optional), see example
         * 
         * @return builder
         * 
         */
        public Builder remediationEta(@Nullable Output remediationEta) {
            $.remediationEta = remediationEta;
            return this;
        }

        /**
         * @param remediationEta The ETA (estimated time of arrival) for remediation (optional), see example
         * 
         * @return builder
         * 
         */
        public Builder remediationEta(RemediationEtaArgs remediationEta) {
            return remediationEta(Output.of(remediationEta));
        }

        /**
         * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The scope of the Governance assignments. Valid scopes are: subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        public GovernanceAssignmentArgs build() {
            if ($.assessmentName == null) {
                throw new MissingRequiredPropertyException("GovernanceAssignmentArgs", "assessmentName");
            }
            if ($.remediationDueDate == null) {
                throw new MissingRequiredPropertyException("GovernanceAssignmentArgs", "remediationDueDate");
            }
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("GovernanceAssignmentArgs", "scope");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy