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

com.pulumi.aws.identitystore.outputs.UserAddresses Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.60.0-alpha.1731982519
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.aws.identitystore.outputs;

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

@CustomType
public final class UserAddresses {
    /**
     * @return The country that this address is in.
     * 
     */
    private @Nullable String country;
    /**
     * @return The name that is typically displayed when the address is shown for display.
     * 
     */
    private @Nullable String formatted;
    /**
     * @return The address locality.
     * 
     */
    private @Nullable String locality;
    /**
     * @return The postal code of the address.
     * 
     */
    private @Nullable String postalCode;
    /**
     * @return When `true`, this is the primary address associated with the user.
     * 
     */
    private @Nullable Boolean primary;
    /**
     * @return The region of the address.
     * 
     */
    private @Nullable String region;
    /**
     * @return The street of the address.
     * 
     */
    private @Nullable String streetAddress;
    /**
     * @return The type of address.
     * 
     */
    private @Nullable String type;

    private UserAddresses() {}
    /**
     * @return The country that this address is in.
     * 
     */
    public Optional country() {
        return Optional.ofNullable(this.country);
    }
    /**
     * @return The name that is typically displayed when the address is shown for display.
     * 
     */
    public Optional formatted() {
        return Optional.ofNullable(this.formatted);
    }
    /**
     * @return The address locality.
     * 
     */
    public Optional locality() {
        return Optional.ofNullable(this.locality);
    }
    /**
     * @return The postal code of the address.
     * 
     */
    public Optional postalCode() {
        return Optional.ofNullable(this.postalCode);
    }
    /**
     * @return When `true`, this is the primary address associated with the user.
     * 
     */
    public Optional primary() {
        return Optional.ofNullable(this.primary);
    }
    /**
     * @return The region of the address.
     * 
     */
    public Optional region() {
        return Optional.ofNullable(this.region);
    }
    /**
     * @return The street of the address.
     * 
     */
    public Optional streetAddress() {
        return Optional.ofNullable(this.streetAddress);
    }
    /**
     * @return The type of address.
     * 
     */
    public Optional type() {
        return Optional.ofNullable(this.type);
    }

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

    public static Builder builder(UserAddresses defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String country;
        private @Nullable String formatted;
        private @Nullable String locality;
        private @Nullable String postalCode;
        private @Nullable Boolean primary;
        private @Nullable String region;
        private @Nullable String streetAddress;
        private @Nullable String type;
        public Builder() {}
        public Builder(UserAddresses 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(@Nullable String country) {

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

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

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

            this.postalCode = postalCode;
            return this;
        }
        @CustomType.Setter
        public Builder primary(@Nullable Boolean primary) {

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

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

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

            this.type = type;
            return this;
        }
        public UserAddresses build() {
            final var _resultValue = new UserAddresses();
            _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