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

com.pulumi.azure.monitoring.outputs.ActionGroupVoiceReceiver 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.azure.monitoring.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class ActionGroupVoiceReceiver {
    /**
     * @return The country code of the voice receiver.
     * 
     */
    private String countryCode;
    /**
     * @return The name of the voice receiver.
     * 
     */
    private String name;
    /**
     * @return The phone number of the voice receiver.
     * 
     */
    private String phoneNumber;

    private ActionGroupVoiceReceiver() {}
    /**
     * @return The country code of the voice receiver.
     * 
     */
    public String countryCode() {
        return this.countryCode;
    }
    /**
     * @return The name of the voice receiver.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The phone number of the voice receiver.
     * 
     */
    public String phoneNumber() {
        return this.phoneNumber;
    }

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

    public static Builder builder(ActionGroupVoiceReceiver defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String countryCode;
        private String name;
        private String phoneNumber;
        public Builder() {}
        public Builder(ActionGroupVoiceReceiver defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.countryCode = defaults.countryCode;
    	      this.name = defaults.name;
    	      this.phoneNumber = defaults.phoneNumber;
        }

        @CustomType.Setter
        public Builder countryCode(String countryCode) {
            if (countryCode == null) {
              throw new MissingRequiredPropertyException("ActionGroupVoiceReceiver", "countryCode");
            }
            this.countryCode = countryCode;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("ActionGroupVoiceReceiver", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder phoneNumber(String phoneNumber) {
            if (phoneNumber == null) {
              throw new MissingRequiredPropertyException("ActionGroupVoiceReceiver", "phoneNumber");
            }
            this.phoneNumber = phoneNumber;
            return this;
        }
        public ActionGroupVoiceReceiver build() {
            final var _resultValue = new ActionGroupVoiceReceiver();
            _resultValue.countryCode = countryCode;
            _resultValue.name = name;
            _resultValue.phoneNumber = phoneNumber;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy