
com.pulumi.azurenative.billing.outputs.BillingProfilePropertiesResponseBillTo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.outputs;
import com.pulumi.core.annotations.CustomType;
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;
@CustomType
public final class BillingProfilePropertiesResponseBillTo {
/**
* @return Address line 1.
*
*/
private String addressLine1;
/**
* @return Address line 2.
*
*/
private @Nullable String addressLine2;
/**
* @return Address line 3.
*
*/
private @Nullable String addressLine3;
/**
* @return Address city.
*
*/
private @Nullable String city;
/**
* @return Company name. Optional for MCA Individual (Pay-as-you-go).
*
*/
private @Nullable String companyName;
/**
* @return Country code uses ISO 3166-1 Alpha-2 format.
*
*/
private String country;
/**
* @return Address district.
*
*/
private @Nullable String district;
/**
* @return Email address.
*
*/
private @Nullable String email;
/**
* @return First name. Optional for MCA Enterprise.
*
*/
private @Nullable String firstName;
/**
* @return Indicates if the address is incomplete.
*
*/
private @Nullable Boolean isValidAddress;
/**
* @return Last name. Optional for MCA Enterprise.
*
*/
private @Nullable String lastName;
/**
* @return Middle name.
*
*/
private @Nullable String middleName;
/**
* @return Phone number.
*
*/
private @Nullable String phoneNumber;
/**
* @return Postal code.
*
*/
private @Nullable String postalCode;
/**
* @return Address region.
*
*/
private @Nullable String region;
private BillingProfilePropertiesResponseBillTo() {}
/**
* @return Address line 1.
*
*/
public String addressLine1() {
return this.addressLine1;
}
/**
* @return Address line 2.
*
*/
public Optional addressLine2() {
return Optional.ofNullable(this.addressLine2);
}
/**
* @return Address line 3.
*
*/
public Optional addressLine3() {
return Optional.ofNullable(this.addressLine3);
}
/**
* @return Address city.
*
*/
public Optional city() {
return Optional.ofNullable(this.city);
}
/**
* @return Company name. Optional for MCA Individual (Pay-as-you-go).
*
*/
public Optional companyName() {
return Optional.ofNullable(this.companyName);
}
/**
* @return Country code uses ISO 3166-1 Alpha-2 format.
*
*/
public String country() {
return this.country;
}
/**
* @return Address district.
*
*/
public Optional district() {
return Optional.ofNullable(this.district);
}
/**
* @return Email address.
*
*/
public Optional email() {
return Optional.ofNullable(this.email);
}
/**
* @return First name. Optional for MCA Enterprise.
*
*/
public Optional firstName() {
return Optional.ofNullable(this.firstName);
}
/**
* @return Indicates if the address is incomplete.
*
*/
public Optional isValidAddress() {
return Optional.ofNullable(this.isValidAddress);
}
/**
* @return Last name. Optional for MCA Enterprise.
*
*/
public Optional lastName() {
return Optional.ofNullable(this.lastName);
}
/**
* @return Middle name.
*
*/
public Optional middleName() {
return Optional.ofNullable(this.middleName);
}
/**
* @return Phone number.
*
*/
public Optional phoneNumber() {
return Optional.ofNullable(this.phoneNumber);
}
/**
* @return Postal code.
*
*/
public Optional postalCode() {
return Optional.ofNullable(this.postalCode);
}
/**
* @return Address region.
*
*/
public Optional region() {
return Optional.ofNullable(this.region);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(BillingProfilePropertiesResponseBillTo defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String addressLine1;
private @Nullable String addressLine2;
private @Nullable String addressLine3;
private @Nullable String city;
private @Nullable String companyName;
private String country;
private @Nullable String district;
private @Nullable String email;
private @Nullable String firstName;
private @Nullable Boolean isValidAddress;
private @Nullable String lastName;
private @Nullable String middleName;
private @Nullable String phoneNumber;
private @Nullable String postalCode;
private @Nullable String region;
public Builder() {}
public Builder(BillingProfilePropertiesResponseBillTo defaults) {
Objects.requireNonNull(defaults);
this.addressLine1 = defaults.addressLine1;
this.addressLine2 = defaults.addressLine2;
this.addressLine3 = defaults.addressLine3;
this.city = defaults.city;
this.companyName = defaults.companyName;
this.country = defaults.country;
this.district = defaults.district;
this.email = defaults.email;
this.firstName = defaults.firstName;
this.isValidAddress = defaults.isValidAddress;
this.lastName = defaults.lastName;
this.middleName = defaults.middleName;
this.phoneNumber = defaults.phoneNumber;
this.postalCode = defaults.postalCode;
this.region = defaults.region;
}
@CustomType.Setter
public Builder addressLine1(String addressLine1) {
if (addressLine1 == null) {
throw new MissingRequiredPropertyException("BillingProfilePropertiesResponseBillTo", "addressLine1");
}
this.addressLine1 = addressLine1;
return this;
}
@CustomType.Setter
public Builder addressLine2(@Nullable String addressLine2) {
this.addressLine2 = addressLine2;
return this;
}
@CustomType.Setter
public Builder addressLine3(@Nullable String addressLine3) {
this.addressLine3 = addressLine3;
return this;
}
@CustomType.Setter
public Builder city(@Nullable String city) {
this.city = city;
return this;
}
@CustomType.Setter
public Builder companyName(@Nullable String companyName) {
this.companyName = companyName;
return this;
}
@CustomType.Setter
public Builder country(String country) {
if (country == null) {
throw new MissingRequiredPropertyException("BillingProfilePropertiesResponseBillTo", "country");
}
this.country = country;
return this;
}
@CustomType.Setter
public Builder district(@Nullable String district) {
this.district = district;
return this;
}
@CustomType.Setter
public Builder email(@Nullable String email) {
this.email = email;
return this;
}
@CustomType.Setter
public Builder firstName(@Nullable String firstName) {
this.firstName = firstName;
return this;
}
@CustomType.Setter
public Builder isValidAddress(@Nullable Boolean isValidAddress) {
this.isValidAddress = isValidAddress;
return this;
}
@CustomType.Setter
public Builder lastName(@Nullable String lastName) {
this.lastName = lastName;
return this;
}
@CustomType.Setter
public Builder middleName(@Nullable String middleName) {
this.middleName = middleName;
return this;
}
@CustomType.Setter
public Builder phoneNumber(@Nullable String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
@CustomType.Setter
public Builder postalCode(@Nullable String postalCode) {
this.postalCode = postalCode;
return this;
}
@CustomType.Setter
public Builder region(@Nullable String region) {
this.region = region;
return this;
}
public BillingProfilePropertiesResponseBillTo build() {
final var _resultValue = new BillingProfilePropertiesResponseBillTo();
_resultValue.addressLine1 = addressLine1;
_resultValue.addressLine2 = addressLine2;
_resultValue.addressLine3 = addressLine3;
_resultValue.city = city;
_resultValue.companyName = companyName;
_resultValue.country = country;
_resultValue.district = district;
_resultValue.email = email;
_resultValue.firstName = firstName;
_resultValue.isValidAddress = isValidAddress;
_resultValue.lastName = lastName;
_resultValue.middleName = middleName;
_resultValue.phoneNumber = phoneNumber;
_resultValue.postalCode = postalCode;
_resultValue.region = region;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy