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

com.pulumi.azurenative.network.outputs.GetIpAllocationResult Maven / Gradle / Ivy

// *** 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.network.outputs;

import com.pulumi.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetIpAllocationResult {
    /**
     * @return IpAllocation tags.
     * 
     */
    private @Nullable Map allocationTags;
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    private String etag;
    /**
     * @return Resource ID.
     * 
     */
    private @Nullable String id;
    /**
     * @return The IPAM allocation ID.
     * 
     */
    private @Nullable String ipamAllocationId;
    /**
     * @return Resource location.
     * 
     */
    private @Nullable String location;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The address prefix for the IpAllocation.
     * 
     */
    private @Nullable String prefix;
    /**
     * @return The address prefix length for the IpAllocation.
     * 
     */
    private @Nullable Integer prefixLength;
    /**
     * @return The address prefix Type for the IpAllocation.
     * 
     */
    private @Nullable String prefixType;
    /**
     * @return The Subnet that using the prefix of this IpAllocation resource.
     * 
     */
    private SubResourceResponse subnet;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Resource type.
     * 
     */
    private String type;
    /**
     * @return The VirtualNetwork that using the prefix of this IpAllocation resource.
     * 
     */
    private SubResourceResponse virtualNetwork;

    private GetIpAllocationResult() {}
    /**
     * @return IpAllocation tags.
     * 
     */
    public Map allocationTags() {
        return this.allocationTags == null ? Map.of() : this.allocationTags;
    }
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    public String etag() {
        return this.etag;
    }
    /**
     * @return Resource ID.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return The IPAM allocation ID.
     * 
     */
    public Optional ipamAllocationId() {
        return Optional.ofNullable(this.ipamAllocationId);
    }
    /**
     * @return Resource location.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The address prefix for the IpAllocation.
     * 
     */
    public Optional prefix() {
        return Optional.ofNullable(this.prefix);
    }
    /**
     * @return The address prefix length for the IpAllocation.
     * 
     */
    public Optional prefixLength() {
        return Optional.ofNullable(this.prefixLength);
    }
    /**
     * @return The address prefix Type for the IpAllocation.
     * 
     */
    public Optional prefixType() {
        return Optional.ofNullable(this.prefixType);
    }
    /**
     * @return The Subnet that using the prefix of this IpAllocation resource.
     * 
     */
    public SubResourceResponse subnet() {
        return this.subnet;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The VirtualNetwork that using the prefix of this IpAllocation resource.
     * 
     */
    public SubResourceResponse virtualNetwork() {
        return this.virtualNetwork;
    }

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

    public static Builder builder(GetIpAllocationResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Map allocationTags;
        private String etag;
        private @Nullable String id;
        private @Nullable String ipamAllocationId;
        private @Nullable String location;
        private String name;
        private @Nullable String prefix;
        private @Nullable Integer prefixLength;
        private @Nullable String prefixType;
        private SubResourceResponse subnet;
        private @Nullable Map tags;
        private String type;
        private SubResourceResponse virtualNetwork;
        public Builder() {}
        public Builder(GetIpAllocationResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allocationTags = defaults.allocationTags;
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.ipamAllocationId = defaults.ipamAllocationId;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.prefix = defaults.prefix;
    	      this.prefixLength = defaults.prefixLength;
    	      this.prefixType = defaults.prefixType;
    	      this.subnet = defaults.subnet;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.virtualNetwork = defaults.virtualNetwork;
        }

        @CustomType.Setter
        public Builder allocationTags(@Nullable Map allocationTags) {

            this.allocationTags = allocationTags;
            return this;
        }
        @CustomType.Setter
        public Builder etag(String etag) {
            if (etag == null) {
              throw new MissingRequiredPropertyException("GetIpAllocationResult", "etag");
            }
            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

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

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

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetIpAllocationResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder prefix(@Nullable String prefix) {

            this.prefix = prefix;
            return this;
        }
        @CustomType.Setter
        public Builder prefixLength(@Nullable Integer prefixLength) {

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

            this.prefixType = prefixType;
            return this;
        }
        @CustomType.Setter
        public Builder subnet(SubResourceResponse subnet) {
            if (subnet == null) {
              throw new MissingRequiredPropertyException("GetIpAllocationResult", "subnet");
            }
            this.subnet = subnet;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetIpAllocationResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder virtualNetwork(SubResourceResponse virtualNetwork) {
            if (virtualNetwork == null) {
              throw new MissingRequiredPropertyException("GetIpAllocationResult", "virtualNetwork");
            }
            this.virtualNetwork = virtualNetwork;
            return this;
        }
        public GetIpAllocationResult build() {
            final var _resultValue = new GetIpAllocationResult();
            _resultValue.allocationTags = allocationTags;
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.ipamAllocationId = ipamAllocationId;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.prefix = prefix;
            _resultValue.prefixLength = prefixLength;
            _resultValue.prefixType = prefixType;
            _resultValue.subnet = subnet;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.virtualNetwork = virtualNetwork;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy