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

com.pulumi.azurenative.peering.outputs.ContactDetailResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.peering.outputs;

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

@CustomType
public final class ContactDetailResponse {
    /**
     * @return The e-mail address of the contact.
     * 
     */
    private @Nullable String email;
    /**
     * @return The phone number of the contact.
     * 
     */
    private @Nullable String phone;
    /**
     * @return The role of the contact.
     * 
     */
    private @Nullable String role;

    private ContactDetailResponse() {}
    /**
     * @return The e-mail address of the contact.
     * 
     */
    public Optional email() {
        return Optional.ofNullable(this.email);
    }
    /**
     * @return The phone number of the contact.
     * 
     */
    public Optional phone() {
        return Optional.ofNullable(this.phone);
    }
    /**
     * @return The role of the contact.
     * 
     */
    public Optional role() {
        return Optional.ofNullable(this.role);
    }

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

    public static Builder builder(ContactDetailResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String email;
        private @Nullable String phone;
        private @Nullable String role;
        public Builder() {}
        public Builder(ContactDetailResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.email = defaults.email;
    	      this.phone = defaults.phone;
    	      this.role = defaults.role;
        }

        @CustomType.Setter
        public Builder email(@Nullable String email) {

            this.email = email;
            return this;
        }
        @CustomType.Setter
        public Builder phone(@Nullable String phone) {

            this.phone = phone;
            return this;
        }
        @CustomType.Setter
        public Builder role(@Nullable String role) {

            this.role = role;
            return this;
        }
        public ContactDetailResponse build() {
            final var _resultValue = new ContactDetailResponse();
            _resultValue.email = email;
            _resultValue.phone = phone;
            _resultValue.role = role;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy