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

com.pulumi.azurenative.insights.outputs.GetActionGroupResult Maven / Gradle / Ivy

// *** 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.insights.outputs;

import com.pulumi.azurenative.insights.outputs.ArmRoleReceiverResponse;
import com.pulumi.azurenative.insights.outputs.AutomationRunbookReceiverResponse;
import com.pulumi.azurenative.insights.outputs.AzureAppPushReceiverResponse;
import com.pulumi.azurenative.insights.outputs.AzureFunctionReceiverResponse;
import com.pulumi.azurenative.insights.outputs.EmailReceiverResponse;
import com.pulumi.azurenative.insights.outputs.EventHubReceiverResponse;
import com.pulumi.azurenative.insights.outputs.ItsmReceiverResponse;
import com.pulumi.azurenative.insights.outputs.LogicAppReceiverResponse;
import com.pulumi.azurenative.insights.outputs.SmsReceiverResponse;
import com.pulumi.azurenative.insights.outputs.VoiceReceiverResponse;
import com.pulumi.azurenative.insights.outputs.WebhookReceiverResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class GetActionGroupResult {
    /**
     * @return The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
     * 
     */
    private @Nullable List armRoleReceivers;
    /**
     * @return The list of AutomationRunbook receivers that are part of this action group.
     * 
     */
    private @Nullable List automationRunbookReceivers;
    /**
     * @return The list of AzureAppPush receivers that are part of this action group.
     * 
     */
    private @Nullable List azureAppPushReceivers;
    /**
     * @return The list of azure function receivers that are part of this action group.
     * 
     */
    private @Nullable List azureFunctionReceivers;
    /**
     * @return The list of email receivers that are part of this action group.
     * 
     */
    private @Nullable List emailReceivers;
    /**
     * @return Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications.
     * 
     */
    private Boolean enabled;
    /**
     * @return The list of event hub receivers that are part of this action group.
     * 
     */
    private @Nullable List eventHubReceivers;
    /**
     * @return The short name of the action group. This will be used in SMS messages.
     * 
     */
    private String groupShortName;
    /**
     * @return Azure resource Id
     * 
     */
    private String id;
    /**
     * @return The list of ITSM receivers that are part of this action group.
     * 
     */
    private @Nullable List itsmReceivers;
    /**
     * @return Resource location
     * 
     */
    private String location;
    /**
     * @return The list of logic app receivers that are part of this action group.
     * 
     */
    private @Nullable List logicAppReceivers;
    /**
     * @return Azure resource name
     * 
     */
    private String name;
    /**
     * @return The list of SMS receivers that are part of this action group.
     * 
     */
    private @Nullable List smsReceivers;
    /**
     * @return Resource tags
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Azure resource type
     * 
     */
    private String type;
    /**
     * @return The list of voice receivers that are part of this action group.
     * 
     */
    private @Nullable List voiceReceivers;
    /**
     * @return The list of webhook receivers that are part of this action group.
     * 
     */
    private @Nullable List webhookReceivers;

    private GetActionGroupResult() {}
    /**
     * @return The list of ARM role receivers that are part of this action group. Roles are Azure RBAC roles and only built-in roles are supported.
     * 
     */
    public List armRoleReceivers() {
        return this.armRoleReceivers == null ? List.of() : this.armRoleReceivers;
    }
    /**
     * @return The list of AutomationRunbook receivers that are part of this action group.
     * 
     */
    public List automationRunbookReceivers() {
        return this.automationRunbookReceivers == null ? List.of() : this.automationRunbookReceivers;
    }
    /**
     * @return The list of AzureAppPush receivers that are part of this action group.
     * 
     */
    public List azureAppPushReceivers() {
        return this.azureAppPushReceivers == null ? List.of() : this.azureAppPushReceivers;
    }
    /**
     * @return The list of azure function receivers that are part of this action group.
     * 
     */
    public List azureFunctionReceivers() {
        return this.azureFunctionReceivers == null ? List.of() : this.azureFunctionReceivers;
    }
    /**
     * @return The list of email receivers that are part of this action group.
     * 
     */
    public List emailReceivers() {
        return this.emailReceivers == null ? List.of() : this.emailReceivers;
    }
    /**
     * @return Indicates whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications.
     * 
     */
    public Boolean enabled() {
        return this.enabled;
    }
    /**
     * @return The list of event hub receivers that are part of this action group.
     * 
     */
    public List eventHubReceivers() {
        return this.eventHubReceivers == null ? List.of() : this.eventHubReceivers;
    }
    /**
     * @return The short name of the action group. This will be used in SMS messages.
     * 
     */
    public String groupShortName() {
        return this.groupShortName;
    }
    /**
     * @return Azure resource Id
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The list of ITSM receivers that are part of this action group.
     * 
     */
    public List itsmReceivers() {
        return this.itsmReceivers == null ? List.of() : this.itsmReceivers;
    }
    /**
     * @return Resource location
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The list of logic app receivers that are part of this action group.
     * 
     */
    public List logicAppReceivers() {
        return this.logicAppReceivers == null ? List.of() : this.logicAppReceivers;
    }
    /**
     * @return Azure resource name
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The list of SMS receivers that are part of this action group.
     * 
     */
    public List smsReceivers() {
        return this.smsReceivers == null ? List.of() : this.smsReceivers;
    }
    /**
     * @return Resource tags
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Azure resource type
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The list of voice receivers that are part of this action group.
     * 
     */
    public List voiceReceivers() {
        return this.voiceReceivers == null ? List.of() : this.voiceReceivers;
    }
    /**
     * @return The list of webhook receivers that are part of this action group.
     * 
     */
    public List webhookReceivers() {
        return this.webhookReceivers == null ? List.of() : this.webhookReceivers;
    }

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

    public static Builder builder(GetActionGroupResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List armRoleReceivers;
        private @Nullable List automationRunbookReceivers;
        private @Nullable List azureAppPushReceivers;
        private @Nullable List azureFunctionReceivers;
        private @Nullable List emailReceivers;
        private Boolean enabled;
        private @Nullable List eventHubReceivers;
        private String groupShortName;
        private String id;
        private @Nullable List itsmReceivers;
        private String location;
        private @Nullable List logicAppReceivers;
        private String name;
        private @Nullable List smsReceivers;
        private @Nullable Map tags;
        private String type;
        private @Nullable List voiceReceivers;
        private @Nullable List webhookReceivers;
        public Builder() {}
        public Builder(GetActionGroupResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.armRoleReceivers = defaults.armRoleReceivers;
    	      this.automationRunbookReceivers = defaults.automationRunbookReceivers;
    	      this.azureAppPushReceivers = defaults.azureAppPushReceivers;
    	      this.azureFunctionReceivers = defaults.azureFunctionReceivers;
    	      this.emailReceivers = defaults.emailReceivers;
    	      this.enabled = defaults.enabled;
    	      this.eventHubReceivers = defaults.eventHubReceivers;
    	      this.groupShortName = defaults.groupShortName;
    	      this.id = defaults.id;
    	      this.itsmReceivers = defaults.itsmReceivers;
    	      this.location = defaults.location;
    	      this.logicAppReceivers = defaults.logicAppReceivers;
    	      this.name = defaults.name;
    	      this.smsReceivers = defaults.smsReceivers;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.voiceReceivers = defaults.voiceReceivers;
    	      this.webhookReceivers = defaults.webhookReceivers;
        }

        @CustomType.Setter
        public Builder armRoleReceivers(@Nullable List armRoleReceivers) {

            this.armRoleReceivers = armRoleReceivers;
            return this;
        }
        public Builder armRoleReceivers(ArmRoleReceiverResponse... armRoleReceivers) {
            return armRoleReceivers(List.of(armRoleReceivers));
        }
        @CustomType.Setter
        public Builder automationRunbookReceivers(@Nullable List automationRunbookReceivers) {

            this.automationRunbookReceivers = automationRunbookReceivers;
            return this;
        }
        public Builder automationRunbookReceivers(AutomationRunbookReceiverResponse... automationRunbookReceivers) {
            return automationRunbookReceivers(List.of(automationRunbookReceivers));
        }
        @CustomType.Setter
        public Builder azureAppPushReceivers(@Nullable List azureAppPushReceivers) {

            this.azureAppPushReceivers = azureAppPushReceivers;
            return this;
        }
        public Builder azureAppPushReceivers(AzureAppPushReceiverResponse... azureAppPushReceivers) {
            return azureAppPushReceivers(List.of(azureAppPushReceivers));
        }
        @CustomType.Setter
        public Builder azureFunctionReceivers(@Nullable List azureFunctionReceivers) {

            this.azureFunctionReceivers = azureFunctionReceivers;
            return this;
        }
        public Builder azureFunctionReceivers(AzureFunctionReceiverResponse... azureFunctionReceivers) {
            return azureFunctionReceivers(List.of(azureFunctionReceivers));
        }
        @CustomType.Setter
        public Builder emailReceivers(@Nullable List emailReceivers) {

            this.emailReceivers = emailReceivers;
            return this;
        }
        public Builder emailReceivers(EmailReceiverResponse... emailReceivers) {
            return emailReceivers(List.of(emailReceivers));
        }
        @CustomType.Setter
        public Builder enabled(Boolean enabled) {
            if (enabled == null) {
              throw new MissingRequiredPropertyException("GetActionGroupResult", "enabled");
            }
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder eventHubReceivers(@Nullable List eventHubReceivers) {

            this.eventHubReceivers = eventHubReceivers;
            return this;
        }
        public Builder eventHubReceivers(EventHubReceiverResponse... eventHubReceivers) {
            return eventHubReceivers(List.of(eventHubReceivers));
        }
        @CustomType.Setter
        public Builder groupShortName(String groupShortName) {
            if (groupShortName == null) {
              throw new MissingRequiredPropertyException("GetActionGroupResult", "groupShortName");
            }
            this.groupShortName = groupShortName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetActionGroupResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder itsmReceivers(@Nullable List itsmReceivers) {

            this.itsmReceivers = itsmReceivers;
            return this;
        }
        public Builder itsmReceivers(ItsmReceiverResponse... itsmReceivers) {
            return itsmReceivers(List.of(itsmReceivers));
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetActionGroupResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder logicAppReceivers(@Nullable List logicAppReceivers) {

            this.logicAppReceivers = logicAppReceivers;
            return this;
        }
        public Builder logicAppReceivers(LogicAppReceiverResponse... logicAppReceivers) {
            return logicAppReceivers(List.of(logicAppReceivers));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetActionGroupResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder smsReceivers(@Nullable List smsReceivers) {

            this.smsReceivers = smsReceivers;
            return this;
        }
        public Builder smsReceivers(SmsReceiverResponse... smsReceivers) {
            return smsReceivers(List.of(smsReceivers));
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetActionGroupResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder voiceReceivers(@Nullable List voiceReceivers) {

            this.voiceReceivers = voiceReceivers;
            return this;
        }
        public Builder voiceReceivers(VoiceReceiverResponse... voiceReceivers) {
            return voiceReceivers(List.of(voiceReceivers));
        }
        @CustomType.Setter
        public Builder webhookReceivers(@Nullable List webhookReceivers) {

            this.webhookReceivers = webhookReceivers;
            return this;
        }
        public Builder webhookReceivers(WebhookReceiverResponse... webhookReceivers) {
            return webhookReceivers(List.of(webhookReceivers));
        }
        public GetActionGroupResult build() {
            final var _resultValue = new GetActionGroupResult();
            _resultValue.armRoleReceivers = armRoleReceivers;
            _resultValue.automationRunbookReceivers = automationRunbookReceivers;
            _resultValue.azureAppPushReceivers = azureAppPushReceivers;
            _resultValue.azureFunctionReceivers = azureFunctionReceivers;
            _resultValue.emailReceivers = emailReceivers;
            _resultValue.enabled = enabled;
            _resultValue.eventHubReceivers = eventHubReceivers;
            _resultValue.groupShortName = groupShortName;
            _resultValue.id = id;
            _resultValue.itsmReceivers = itsmReceivers;
            _resultValue.location = location;
            _resultValue.logicAppReceivers = logicAppReceivers;
            _resultValue.name = name;
            _resultValue.smsReceivers = smsReceivers;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.voiceReceivers = voiceReceivers;
            _resultValue.webhookReceivers = webhookReceivers;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy