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

com.pulumi.azurenative.databox.outputs.ContactInfoResponse 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.databox.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ContactInfoResponse {
    /**
     * @return Contact name of the person.
     * 
     */
    private String contactName;
    /**
     * @return Mobile number of the contact person.
     * 
     */
    private @Nullable String mobile;
    /**
     * @return Phone number of the contact person.
     * 
     */
    private String phone;
    /**
     * @return Phone extension number of the contact person.
     * 
     */
    private @Nullable String phoneExtension;

    private ContactInfoResponse() {}
    /**
     * @return Contact name of the person.
     * 
     */
    public String contactName() {
        return this.contactName;
    }
    /**
     * @return Mobile number of the contact person.
     * 
     */
    public Optional mobile() {
        return Optional.ofNullable(this.mobile);
    }
    /**
     * @return Phone number of the contact person.
     * 
     */
    public String phone() {
        return this.phone;
    }
    /**
     * @return Phone extension number of the contact person.
     * 
     */
    public Optional phoneExtension() {
        return Optional.ofNullable(this.phoneExtension);
    }

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

    public static Builder builder(ContactInfoResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String contactName;
        private @Nullable String mobile;
        private String phone;
        private @Nullable String phoneExtension;
        public Builder() {}
        public Builder(ContactInfoResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.contactName = defaults.contactName;
    	      this.mobile = defaults.mobile;
    	      this.phone = defaults.phone;
    	      this.phoneExtension = defaults.phoneExtension;
        }

        @CustomType.Setter
        public Builder contactName(String contactName) {
            if (contactName == null) {
              throw new MissingRequiredPropertyException("ContactInfoResponse", "contactName");
            }
            this.contactName = contactName;
            return this;
        }
        @CustomType.Setter
        public Builder mobile(@Nullable String mobile) {

            this.mobile = mobile;
            return this;
        }
        @CustomType.Setter
        public Builder phone(String phone) {
            if (phone == null) {
              throw new MissingRequiredPropertyException("ContactInfoResponse", "phone");
            }
            this.phone = phone;
            return this;
        }
        @CustomType.Setter
        public Builder phoneExtension(@Nullable String phoneExtension) {

            this.phoneExtension = phoneExtension;
            return this;
        }
        public ContactInfoResponse build() {
            final var _resultValue = new ContactInfoResponse();
            _resultValue.contactName = contactName;
            _resultValue.mobile = mobile;
            _resultValue.phone = phone;
            _resultValue.phoneExtension = phoneExtension;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy