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

com.pulumi.azurenative.security.SecurityContactArgs 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.SecurityContactPropertiesAlertNotificationsArgs;
import com.pulumi.azurenative.security.inputs.SecurityContactPropertiesNotificationsByRoleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SecurityContactArgs Empty = new SecurityContactArgs();

    /**
     * Defines whether to send email notifications about new security alerts
     * 
     */
    @Import(name="alertNotifications")
    private @Nullable Output alertNotifications;

    /**
     * @return Defines whether to send email notifications about new security alerts
     * 
     */
    public Optional> alertNotifications() {
        return Optional.ofNullable(this.alertNotifications);
    }

    /**
     * List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
     * 
     */
    @Import(name="emails")
    private @Nullable Output emails;

    /**
     * @return List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
     * 
     */
    public Optional> emails() {
        return Optional.ofNullable(this.emails);
    }

    /**
     * Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
     * 
     */
    @Import(name="notificationsByRole")
    private @Nullable Output notificationsByRole;

    /**
     * @return Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
     * 
     */
    public Optional> notificationsByRole() {
        return Optional.ofNullable(this.notificationsByRole);
    }

    /**
     * The security contact's phone number
     * 
     */
    @Import(name="phone")
    private @Nullable Output phone;

    /**
     * @return The security contact's phone number
     * 
     */
    public Optional> phone() {
        return Optional.ofNullable(this.phone);
    }

    /**
     * Name of the security contact object
     * 
     */
    @Import(name="securityContactName")
    private @Nullable Output securityContactName;

    /**
     * @return Name of the security contact object
     * 
     */
    public Optional> securityContactName() {
        return Optional.ofNullable(this.securityContactName);
    }

    private SecurityContactArgs() {}

    private SecurityContactArgs(SecurityContactArgs $) {
        this.alertNotifications = $.alertNotifications;
        this.emails = $.emails;
        this.notificationsByRole = $.notificationsByRole;
        this.phone = $.phone;
        this.securityContactName = $.securityContactName;
    }

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

    public static final class Builder {
        private SecurityContactArgs $;

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

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

        /**
         * @param alertNotifications Defines whether to send email notifications about new security alerts
         * 
         * @return builder
         * 
         */
        public Builder alertNotifications(@Nullable Output alertNotifications) {
            $.alertNotifications = alertNotifications;
            return this;
        }

        /**
         * @param alertNotifications Defines whether to send email notifications about new security alerts
         * 
         * @return builder
         * 
         */
        public Builder alertNotifications(SecurityContactPropertiesAlertNotificationsArgs alertNotifications) {
            return alertNotifications(Output.of(alertNotifications));
        }

        /**
         * @param emails List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
         * 
         * @return builder
         * 
         */
        public Builder emails(@Nullable Output emails) {
            $.emails = emails;
            return this;
        }

        /**
         * @param emails List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact.
         * 
         * @return builder
         * 
         */
        public Builder emails(String emails) {
            return emails(Output.of(emails));
        }

        /**
         * @param notificationsByRole Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
         * 
         * @return builder
         * 
         */
        public Builder notificationsByRole(@Nullable Output notificationsByRole) {
            $.notificationsByRole = notificationsByRole;
            return this;
        }

        /**
         * @param notificationsByRole Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription.
         * 
         * @return builder
         * 
         */
        public Builder notificationsByRole(SecurityContactPropertiesNotificationsByRoleArgs notificationsByRole) {
            return notificationsByRole(Output.of(notificationsByRole));
        }

        /**
         * @param phone The security contact's phone number
         * 
         * @return builder
         * 
         */
        public Builder phone(@Nullable Output phone) {
            $.phone = phone;
            return this;
        }

        /**
         * @param phone The security contact's phone number
         * 
         * @return builder
         * 
         */
        public Builder phone(String phone) {
            return phone(Output.of(phone));
        }

        /**
         * @param securityContactName Name of the security contact object
         * 
         * @return builder
         * 
         */
        public Builder securityContactName(@Nullable Output securityContactName) {
            $.securityContactName = securityContactName;
            return this;
        }

        /**
         * @param securityContactName Name of the security contact object
         * 
         * @return builder
         * 
         */
        public Builder securityContactName(String securityContactName) {
            return securityContactName(Output.of(securityContactName));
        }

        public SecurityContactArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy