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

com.pulumi.azurenative.domainregistration.inputs.AddressArgs 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.domainregistration.inputs;

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


/**
 * Address information for domain registration.
 * 
 */
public final class AddressArgs extends com.pulumi.resources.ResourceArgs {

    public static final AddressArgs Empty = new AddressArgs();

    /**
     * First line of an Address.
     * 
     */
    @Import(name="address1", required=true)
    private Output address1;

    /**
     * @return First line of an Address.
     * 
     */
    public Output address1() {
        return this.address1;
    }

    /**
     * The second line of the Address. Optional.
     * 
     */
    @Import(name="address2")
    private @Nullable Output address2;

    /**
     * @return The second line of the Address. Optional.
     * 
     */
    public Optional> address2() {
        return Optional.ofNullable(this.address2);
    }

    /**
     * The city for the address.
     * 
     */
    @Import(name="city", required=true)
    private Output city;

    /**
     * @return The city for the address.
     * 
     */
    public Output city() {
        return this.city;
    }

    /**
     * The country for the address.
     * 
     */
    @Import(name="country", required=true)
    private Output country;

    /**
     * @return The country for the address.
     * 
     */
    public Output country() {
        return this.country;
    }

    /**
     * The postal code for the address.
     * 
     */
    @Import(name="postalCode", required=true)
    private Output postalCode;

    /**
     * @return The postal code for the address.
     * 
     */
    public Output postalCode() {
        return this.postalCode;
    }

    /**
     * The state or province for the address.
     * 
     */
    @Import(name="state", required=true)
    private Output state;

    /**
     * @return The state or province for the address.
     * 
     */
    public Output state() {
        return this.state;
    }

    private AddressArgs() {}

    private AddressArgs(AddressArgs $) {
        this.address1 = $.address1;
        this.address2 = $.address2;
        this.city = $.city;
        this.country = $.country;
        this.postalCode = $.postalCode;
        this.state = $.state;
    }

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

    public static final class Builder {
        private AddressArgs $;

        public Builder() {
            $ = new AddressArgs();
        }

        public Builder(AddressArgs defaults) {
            $ = new AddressArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param address1 First line of an Address.
         * 
         * @return builder
         * 
         */
        public Builder address1(Output address1) {
            $.address1 = address1;
            return this;
        }

        /**
         * @param address1 First line of an Address.
         * 
         * @return builder
         * 
         */
        public Builder address1(String address1) {
            return address1(Output.of(address1));
        }

        /**
         * @param address2 The second line of the Address. Optional.
         * 
         * @return builder
         * 
         */
        public Builder address2(@Nullable Output address2) {
            $.address2 = address2;
            return this;
        }

        /**
         * @param address2 The second line of the Address. Optional.
         * 
         * @return builder
         * 
         */
        public Builder address2(String address2) {
            return address2(Output.of(address2));
        }

        /**
         * @param city The city for the address.
         * 
         * @return builder
         * 
         */
        public Builder city(Output city) {
            $.city = city;
            return this;
        }

        /**
         * @param city The city for the address.
         * 
         * @return builder
         * 
         */
        public Builder city(String city) {
            return city(Output.of(city));
        }

        /**
         * @param country The country for the address.
         * 
         * @return builder
         * 
         */
        public Builder country(Output country) {
            $.country = country;
            return this;
        }

        /**
         * @param country The country for the address.
         * 
         * @return builder
         * 
         */
        public Builder country(String country) {
            return country(Output.of(country));
        }

        /**
         * @param postalCode The postal code for the address.
         * 
         * @return builder
         * 
         */
        public Builder postalCode(Output postalCode) {
            $.postalCode = postalCode;
            return this;
        }

        /**
         * @param postalCode The postal code for the address.
         * 
         * @return builder
         * 
         */
        public Builder postalCode(String postalCode) {
            return postalCode(Output.of(postalCode));
        }

        /**
         * @param state The state or province for the address.
         * 
         * @return builder
         * 
         */
        public Builder state(Output state) {
            $.state = state;
            return this;
        }

        /**
         * @param state The state or province for the address.
         * 
         * @return builder
         * 
         */
        public Builder state(String state) {
            return state(Output.of(state));
        }

        public AddressArgs build() {
            if ($.address1 == null) {
                throw new MissingRequiredPropertyException("AddressArgs", "address1");
            }
            if ($.city == null) {
                throw new MissingRequiredPropertyException("AddressArgs", "city");
            }
            if ($.country == null) {
                throw new MissingRequiredPropertyException("AddressArgs", "country");
            }
            if ($.postalCode == null) {
                throw new MissingRequiredPropertyException("AddressArgs", "postalCode");
            }
            if ($.state == null) {
                throw new MissingRequiredPropertyException("AddressArgs", "state");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy