com.pulumi.aws.identitystore.outputs.GetUserAddress Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
The 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.aws.identitystore.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetUserAddress {
/**
* @return The country that this address is in.
*
*/
private String country;
/**
* @return The name that is typically displayed when the name is shown for display.
*
*/
private String formatted;
/**
* @return The address locality.
*
*/
private String locality;
/**
* @return The postal code of the address.
*
*/
private String postalCode;
/**
* @return When `true`, this is the primary phone number associated with the user.
*
*/
private Boolean primary;
/**
* @return The region of the address.
*
*/
private String region;
/**
* @return The street of the address.
*
*/
private String streetAddress;
/**
* @return The type of phone number.
*
*/
private String type;
private GetUserAddress() {}
/**
* @return The country that this address is in.
*
*/
public String country() {
return this.country;
}
/**
* @return The name that is typically displayed when the name is shown for display.
*
*/
public String formatted() {
return this.formatted;
}
/**
* @return The address locality.
*
*/
public String locality() {
return this.locality;
}
/**
* @return The postal code of the address.
*
*/
public String postalCode() {
return this.postalCode;
}
/**
* @return When `true`, this is the primary phone number associated with the user.
*
*/
public Boolean primary() {
return this.primary;
}
/**
* @return The region of the address.
*
*/
public String region() {
return this.region;
}
/**
* @return The street of the address.
*
*/
public String streetAddress() {
return this.streetAddress;
}
/**
* @return The type of phone number.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetUserAddress defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String country;
private String formatted;
private String locality;
private String postalCode;
private Boolean primary;
private String region;
private String streetAddress;
private String type;
public Builder() {}
public Builder(GetUserAddress defaults) {
Objects.requireNonNull(defaults);
this.country = defaults.country;
this.formatted = defaults.formatted;
this.locality = defaults.locality;
this.postalCode = defaults.postalCode;
this.primary = defaults.primary;
this.region = defaults.region;
this.streetAddress = defaults.streetAddress;
this.type = defaults.type;
}
@CustomType.Setter
public Builder country(String country) {
if (country == null) {
throw new MissingRequiredPropertyException("GetUserAddress", "country");
}
this.country = country;
return this;
}
@CustomType.Setter
public Builder formatted(String formatted) {
if (formatted == null) {
throw new MissingRequiredPropertyException("GetUserAddress", "formatted");
}
this.formatted = formatted;
return this;
}
@CustomType.Setter
public Builder locality(String locality) {
if (locality == null) {
throw new MissingRequiredPropertyException("GetUserAddress", "locality");
}
this.locality = locality;
return this;
}
@CustomType.Setter
public Builder postalCode(String postalCode) {
if (postalCode == null) {
throw new MissingRequiredPropertyException("GetUserAddress", "postalCode");
}
this.postalCode = postalCode;
return this;
}
@CustomType.Setter
public Builder primary(Boolean primary) {
if (primary == null) {
throw new MissingRequiredPropertyException("GetUserAddress", "primary");
}
this.primary = primary;
return this;
}
@CustomType.Setter
public Builder region(String region) {
if (region == null) {
throw new MissingRequiredPropertyException("GetUserAddress", "region");
}
this.region = region;
return this;
}
@CustomType.Setter
public Builder streetAddress(String streetAddress) {
if (streetAddress == null) {
throw new MissingRequiredPropertyException("GetUserAddress", "streetAddress");
}
this.streetAddress = streetAddress;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetUserAddress", "type");
}
this.type = type;
return this;
}
public GetUserAddress build() {
final var _resultValue = new GetUserAddress();
_resultValue.country = country;
_resultValue.formatted = formatted;
_resultValue.locality = locality;
_resultValue.postalCode = postalCode;
_resultValue.primary = primary;
_resultValue.region = region;
_resultValue.streetAddress = streetAddress;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy