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

com.pulumi.azurenative.billing.inputs.BillingProfilePropertiesBillToArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.billing.inputs;

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


/**
 * Billing address.
 * 
 */
public final class BillingProfilePropertiesBillToArgs extends com.pulumi.resources.ResourceArgs {

    public static final BillingProfilePropertiesBillToArgs Empty = new BillingProfilePropertiesBillToArgs();

    /**
     * Address line 1.
     * 
     */
    @Import(name="addressLine1", required=true)
    private Output addressLine1;

    /**
     * @return Address line 1.
     * 
     */
    public Output addressLine1() {
        return this.addressLine1;
    }

    /**
     * Address line 2.
     * 
     */
    @Import(name="addressLine2")
    private @Nullable Output addressLine2;

    /**
     * @return Address line 2.
     * 
     */
    public Optional> addressLine2() {
        return Optional.ofNullable(this.addressLine2);
    }

    /**
     * Address line 3.
     * 
     */
    @Import(name="addressLine3")
    private @Nullable Output addressLine3;

    /**
     * @return Address line 3.
     * 
     */
    public Optional> addressLine3() {
        return Optional.ofNullable(this.addressLine3);
    }

    /**
     * Address city.
     * 
     */
    @Import(name="city")
    private @Nullable Output city;

    /**
     * @return Address city.
     * 
     */
    public Optional> city() {
        return Optional.ofNullable(this.city);
    }

    /**
     * Company name. Optional for MCA Individual (Pay-as-you-go).
     * 
     */
    @Import(name="companyName")
    private @Nullable Output companyName;

    /**
     * @return Company name. Optional for MCA Individual (Pay-as-you-go).
     * 
     */
    public Optional> companyName() {
        return Optional.ofNullable(this.companyName);
    }

    /**
     * Country code uses ISO 3166-1 Alpha-2 format.
     * 
     */
    @Import(name="country", required=true)
    private Output country;

    /**
     * @return Country code uses ISO 3166-1 Alpha-2 format.
     * 
     */
    public Output country() {
        return this.country;
    }

    /**
     * Address district.
     * 
     */
    @Import(name="district")
    private @Nullable Output district;

    /**
     * @return Address district.
     * 
     */
    public Optional> district() {
        return Optional.ofNullable(this.district);
    }

    /**
     * Email address.
     * 
     */
    @Import(name="email")
    private @Nullable Output email;

    /**
     * @return Email address.
     * 
     */
    public Optional> email() {
        return Optional.ofNullable(this.email);
    }

    /**
     * First name. Optional for MCA Enterprise.
     * 
     */
    @Import(name="firstName")
    private @Nullable Output firstName;

    /**
     * @return First name. Optional for MCA Enterprise.
     * 
     */
    public Optional> firstName() {
        return Optional.ofNullable(this.firstName);
    }

    /**
     * Indicates if the address is incomplete.
     * 
     */
    @Import(name="isValidAddress")
    private @Nullable Output isValidAddress;

    /**
     * @return Indicates if the address is incomplete.
     * 
     */
    public Optional> isValidAddress() {
        return Optional.ofNullable(this.isValidAddress);
    }

    /**
     * Last name. Optional for MCA Enterprise.
     * 
     */
    @Import(name="lastName")
    private @Nullable Output lastName;

    /**
     * @return Last name. Optional for MCA Enterprise.
     * 
     */
    public Optional> lastName() {
        return Optional.ofNullable(this.lastName);
    }

    /**
     * Middle name.
     * 
     */
    @Import(name="middleName")
    private @Nullable Output middleName;

    /**
     * @return Middle name.
     * 
     */
    public Optional> middleName() {
        return Optional.ofNullable(this.middleName);
    }

    /**
     * Phone number.
     * 
     */
    @Import(name="phoneNumber")
    private @Nullable Output phoneNumber;

    /**
     * @return Phone number.
     * 
     */
    public Optional> phoneNumber() {
        return Optional.ofNullable(this.phoneNumber);
    }

    /**
     * Postal code.
     * 
     */
    @Import(name="postalCode")
    private @Nullable Output postalCode;

    /**
     * @return Postal code.
     * 
     */
    public Optional> postalCode() {
        return Optional.ofNullable(this.postalCode);
    }

    /**
     * Address region.
     * 
     */
    @Import(name="region")
    private @Nullable Output region;

    /**
     * @return Address region.
     * 
     */
    public Optional> region() {
        return Optional.ofNullable(this.region);
    }

    private BillingProfilePropertiesBillToArgs() {}

    private BillingProfilePropertiesBillToArgs(BillingProfilePropertiesBillToArgs $) {
        this.addressLine1 = $.addressLine1;
        this.addressLine2 = $.addressLine2;
        this.addressLine3 = $.addressLine3;
        this.city = $.city;
        this.companyName = $.companyName;
        this.country = $.country;
        this.district = $.district;
        this.email = $.email;
        this.firstName = $.firstName;
        this.isValidAddress = $.isValidAddress;
        this.lastName = $.lastName;
        this.middleName = $.middleName;
        this.phoneNumber = $.phoneNumber;
        this.postalCode = $.postalCode;
        this.region = $.region;
    }

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

    public static final class Builder {
        private BillingProfilePropertiesBillToArgs $;

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

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

        /**
         * @param addressLine1 Address line 1.
         * 
         * @return builder
         * 
         */
        public Builder addressLine1(Output addressLine1) {
            $.addressLine1 = addressLine1;
            return this;
        }

        /**
         * @param addressLine1 Address line 1.
         * 
         * @return builder
         * 
         */
        public Builder addressLine1(String addressLine1) {
            return addressLine1(Output.of(addressLine1));
        }

        /**
         * @param addressLine2 Address line 2.
         * 
         * @return builder
         * 
         */
        public Builder addressLine2(@Nullable Output addressLine2) {
            $.addressLine2 = addressLine2;
            return this;
        }

        /**
         * @param addressLine2 Address line 2.
         * 
         * @return builder
         * 
         */
        public Builder addressLine2(String addressLine2) {
            return addressLine2(Output.of(addressLine2));
        }

        /**
         * @param addressLine3 Address line 3.
         * 
         * @return builder
         * 
         */
        public Builder addressLine3(@Nullable Output addressLine3) {
            $.addressLine3 = addressLine3;
            return this;
        }

        /**
         * @param addressLine3 Address line 3.
         * 
         * @return builder
         * 
         */
        public Builder addressLine3(String addressLine3) {
            return addressLine3(Output.of(addressLine3));
        }

        /**
         * @param city Address city.
         * 
         * @return builder
         * 
         */
        public Builder city(@Nullable Output city) {
            $.city = city;
            return this;
        }

        /**
         * @param city Address city.
         * 
         * @return builder
         * 
         */
        public Builder city(String city) {
            return city(Output.of(city));
        }

        /**
         * @param companyName Company name. Optional for MCA Individual (Pay-as-you-go).
         * 
         * @return builder
         * 
         */
        public Builder companyName(@Nullable Output companyName) {
            $.companyName = companyName;
            return this;
        }

        /**
         * @param companyName Company name. Optional for MCA Individual (Pay-as-you-go).
         * 
         * @return builder
         * 
         */
        public Builder companyName(String companyName) {
            return companyName(Output.of(companyName));
        }

        /**
         * @param country Country code uses ISO 3166-1 Alpha-2 format.
         * 
         * @return builder
         * 
         */
        public Builder country(Output country) {
            $.country = country;
            return this;
        }

        /**
         * @param country Country code uses ISO 3166-1 Alpha-2 format.
         * 
         * @return builder
         * 
         */
        public Builder country(String country) {
            return country(Output.of(country));
        }

        /**
         * @param district Address district.
         * 
         * @return builder
         * 
         */
        public Builder district(@Nullable Output district) {
            $.district = district;
            return this;
        }

        /**
         * @param district Address district.
         * 
         * @return builder
         * 
         */
        public Builder district(String district) {
            return district(Output.of(district));
        }

        /**
         * @param email Email address.
         * 
         * @return builder
         * 
         */
        public Builder email(@Nullable Output email) {
            $.email = email;
            return this;
        }

        /**
         * @param email Email address.
         * 
         * @return builder
         * 
         */
        public Builder email(String email) {
            return email(Output.of(email));
        }

        /**
         * @param firstName First name. Optional for MCA Enterprise.
         * 
         * @return builder
         * 
         */
        public Builder firstName(@Nullable Output firstName) {
            $.firstName = firstName;
            return this;
        }

        /**
         * @param firstName First name. Optional for MCA Enterprise.
         * 
         * @return builder
         * 
         */
        public Builder firstName(String firstName) {
            return firstName(Output.of(firstName));
        }

        /**
         * @param isValidAddress Indicates if the address is incomplete.
         * 
         * @return builder
         * 
         */
        public Builder isValidAddress(@Nullable Output isValidAddress) {
            $.isValidAddress = isValidAddress;
            return this;
        }

        /**
         * @param isValidAddress Indicates if the address is incomplete.
         * 
         * @return builder
         * 
         */
        public Builder isValidAddress(Boolean isValidAddress) {
            return isValidAddress(Output.of(isValidAddress));
        }

        /**
         * @param lastName Last name. Optional for MCA Enterprise.
         * 
         * @return builder
         * 
         */
        public Builder lastName(@Nullable Output lastName) {
            $.lastName = lastName;
            return this;
        }

        /**
         * @param lastName Last name. Optional for MCA Enterprise.
         * 
         * @return builder
         * 
         */
        public Builder lastName(String lastName) {
            return lastName(Output.of(lastName));
        }

        /**
         * @param middleName Middle name.
         * 
         * @return builder
         * 
         */
        public Builder middleName(@Nullable Output middleName) {
            $.middleName = middleName;
            return this;
        }

        /**
         * @param middleName Middle name.
         * 
         * @return builder
         * 
         */
        public Builder middleName(String middleName) {
            return middleName(Output.of(middleName));
        }

        /**
         * @param phoneNumber Phone number.
         * 
         * @return builder
         * 
         */
        public Builder phoneNumber(@Nullable Output phoneNumber) {
            $.phoneNumber = phoneNumber;
            return this;
        }

        /**
         * @param phoneNumber Phone number.
         * 
         * @return builder
         * 
         */
        public Builder phoneNumber(String phoneNumber) {
            return phoneNumber(Output.of(phoneNumber));
        }

        /**
         * @param postalCode Postal code.
         * 
         * @return builder
         * 
         */
        public Builder postalCode(@Nullable Output postalCode) {
            $.postalCode = postalCode;
            return this;
        }

        /**
         * @param postalCode Postal code.
         * 
         * @return builder
         * 
         */
        public Builder postalCode(String postalCode) {
            return postalCode(Output.of(postalCode));
        }

        /**
         * @param region Address region.
         * 
         * @return builder
         * 
         */
        public Builder region(@Nullable Output region) {
            $.region = region;
            return this;
        }

        /**
         * @param region Address region.
         * 
         * @return builder
         * 
         */
        public Builder region(String region) {
            return region(Output.of(region));
        }

        public BillingProfilePropertiesBillToArgs build() {
            if ($.addressLine1 == null) {
                throw new MissingRequiredPropertyException("BillingProfilePropertiesBillToArgs", "addressLine1");
            }
            if ($.country == null) {
                throw new MissingRequiredPropertyException("BillingProfilePropertiesBillToArgs", "country");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy