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

com.pulumi.azurenative.insights.outputs.GetTenantActionGroupResult 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.insights.outputs;

import com.pulumi.azurenative.insights.outputs.AzureAppPushReceiverResponse;
import com.pulumi.azurenative.insights.outputs.EmailReceiverResponse;
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 GetTenantActionGroupResult {
    /**
     * @return The list of AzureAppPush receivers that are part of this tenant action group.
     * 
     */
    private @Nullable List azureAppPushReceivers;
    /**
     * @return The list of email receivers that are part of this tenant action group.
     * 
     */
    private @Nullable List emailReceivers;
    /**
     * @return Indicates whether this tenant action group is enabled. If a tenant action group is not enabled, then none of its receivers will receive communications.
     * 
     */
    private Boolean enabled;
    /**
     * @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 Resource location
     * 
     */
    private String location;
    /**
     * @return Azure resource name
     * 
     */
    private String name;
    /**
     * @return The list of SMS receivers that are part of this tenant 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 tenant action group.
     * 
     */
    private @Nullable List voiceReceivers;
    /**
     * @return The list of webhook receivers that are part of this tenant action group.
     * 
     */
    private @Nullable List webhookReceivers;

    private GetTenantActionGroupResult() {}
    /**
     * @return The list of AzureAppPush receivers that are part of this tenant action group.
     * 
     */
    public List azureAppPushReceivers() {
        return this.azureAppPushReceivers == null ? List.of() : this.azureAppPushReceivers;
    }
    /**
     * @return The list of email receivers that are part of this tenant action group.
     * 
     */
    public List emailReceivers() {
        return this.emailReceivers == null ? List.of() : this.emailReceivers;
    }
    /**
     * @return Indicates whether this tenant action group is enabled. If a tenant action group is not enabled, then none of its receivers will receive communications.
     * 
     */
    public Boolean enabled() {
        return this.enabled;
    }
    /**
     * @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 Resource location
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Azure resource name
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The list of SMS receivers that are part of this tenant 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 tenant action group.
     * 
     */
    public List voiceReceivers() {
        return this.voiceReceivers == null ? List.of() : this.voiceReceivers;
    }
    /**
     * @return The list of webhook receivers that are part of this tenant action group.
     * 
     */
    public List webhookReceivers() {
        return this.webhookReceivers == null ? List.of() : this.webhookReceivers;
    }

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

    public static Builder builder(GetTenantActionGroupResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List azureAppPushReceivers;
        private @Nullable List emailReceivers;
        private Boolean enabled;
        private String groupShortName;
        private String id;
        private String location;
        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(GetTenantActionGroupResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.azureAppPushReceivers = defaults.azureAppPushReceivers;
    	      this.emailReceivers = defaults.emailReceivers;
    	      this.enabled = defaults.enabled;
    	      this.groupShortName = defaults.groupShortName;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      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 azureAppPushReceivers(@Nullable List azureAppPushReceivers) {

            this.azureAppPushReceivers = azureAppPushReceivers;
            return this;
        }
        public Builder azureAppPushReceivers(AzureAppPushReceiverResponse... azureAppPushReceivers) {
            return azureAppPushReceivers(List.of(azureAppPushReceivers));
        }
        @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("GetTenantActionGroupResult", "enabled");
            }
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder groupShortName(String groupShortName) {
            if (groupShortName == null) {
              throw new MissingRequiredPropertyException("GetTenantActionGroupResult", "groupShortName");
            }
            this.groupShortName = groupShortName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetTenantActionGroupResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetTenantActionGroupResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetTenantActionGroupResult", "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("GetTenantActionGroupResult", "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 GetTenantActionGroupResult build() {
            final var _resultValue = new GetTenantActionGroupResult();
            _resultValue.azureAppPushReceivers = azureAppPushReceivers;
            _resultValue.emailReceivers = emailReceivers;
            _resultValue.enabled = enabled;
            _resultValue.groupShortName = groupShortName;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.smsReceivers = smsReceivers;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.voiceReceivers = voiceReceivers;
            _resultValue.webhookReceivers = webhookReceivers;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy