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

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

There is a newer version: 2.78.0
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.network.outputs;

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

@CustomType
public final class ResourceBasicsResponse {
    /**
     * @return List of IP address prefixes of the resource.
     * 
     */
    private @Nullable List addressPrefixes;
    /**
     * @return ResourceId of the Azure resource.
     * 
     */
    private @Nullable String resourceId;

    private ResourceBasicsResponse() {}
    /**
     * @return List of IP address prefixes of the resource.
     * 
     */
    public List addressPrefixes() {
        return this.addressPrefixes == null ? List.of() : this.addressPrefixes;
    }
    /**
     * @return ResourceId of the Azure resource.
     * 
     */
    public Optional resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

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

    public static Builder builder(ResourceBasicsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List addressPrefixes;
        private @Nullable String resourceId;
        public Builder() {}
        public Builder(ResourceBasicsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.addressPrefixes = defaults.addressPrefixes;
    	      this.resourceId = defaults.resourceId;
        }

        @CustomType.Setter
        public Builder addressPrefixes(@Nullable List addressPrefixes) {

            this.addressPrefixes = addressPrefixes;
            return this;
        }
        public Builder addressPrefixes(String... addressPrefixes) {
            return addressPrefixes(List.of(addressPrefixes));
        }
        @CustomType.Setter
        public Builder resourceId(@Nullable String resourceId) {

            this.resourceId = resourceId;
            return this;
        }
        public ResourceBasicsResponse build() {
            final var _resultValue = new ResourceBasicsResponse();
            _resultValue.addressPrefixes = addressPrefixes;
            _resultValue.resourceId = resourceId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy