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

com.pulumi.azurenative.devtestlab.outputs.GetVirtualNetworkResult 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.devtestlab.outputs;

import com.pulumi.azurenative.devtestlab.outputs.ExternalSubnetResponse;
import com.pulumi.azurenative.devtestlab.outputs.SubnetOverrideResponse;
import com.pulumi.azurenative.devtestlab.outputs.SubnetResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetVirtualNetworkResult {
    /**
     * @return The allowed subnets of the virtual network.
     * 
     */
    private @Nullable List allowedSubnets;
    /**
     * @return The creation date of the virtual network.
     * 
     */
    private String createdDate;
    /**
     * @return The description of the virtual network.
     * 
     */
    private @Nullable String description;
    /**
     * @return The Microsoft.Network resource identifier of the virtual network.
     * 
     */
    private @Nullable String externalProviderResourceId;
    /**
     * @return The external subnet properties.
     * 
     */
    private List externalSubnets;
    /**
     * @return The identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return The location of the resource.
     * 
     */
    private @Nullable String location;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return The provisioning status of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The subnet overrides of the virtual network.
     * 
     */
    private @Nullable List subnetOverrides;
    /**
     * @return The tags of the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    private String uniqueIdentifier;

    private GetVirtualNetworkResult() {}
    /**
     * @return The allowed subnets of the virtual network.
     * 
     */
    public List allowedSubnets() {
        return this.allowedSubnets == null ? List.of() : this.allowedSubnets;
    }
    /**
     * @return The creation date of the virtual network.
     * 
     */
    public String createdDate() {
        return this.createdDate;
    }
    /**
     * @return The description of the virtual network.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The Microsoft.Network resource identifier of the virtual network.
     * 
     */
    public Optional externalProviderResourceId() {
        return Optional.ofNullable(this.externalProviderResourceId);
    }
    /**
     * @return The external subnet properties.
     * 
     */
    public List externalSubnets() {
        return this.externalSubnets;
    }
    /**
     * @return The identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The location of the resource.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The provisioning status of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The subnet overrides of the virtual network.
     * 
     */
    public List subnetOverrides() {
        return this.subnetOverrides == null ? List.of() : this.subnetOverrides;
    }
    /**
     * @return The tags of the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return The unique immutable identifier of a resource (Guid).
     * 
     */
    public String uniqueIdentifier() {
        return this.uniqueIdentifier;
    }

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

    public static Builder builder(GetVirtualNetworkResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List allowedSubnets;
        private String createdDate;
        private @Nullable String description;
        private @Nullable String externalProviderResourceId;
        private List externalSubnets;
        private String id;
        private @Nullable String location;
        private String name;
        private String provisioningState;
        private @Nullable List subnetOverrides;
        private @Nullable Map tags;
        private String type;
        private String uniqueIdentifier;
        public Builder() {}
        public Builder(GetVirtualNetworkResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowedSubnets = defaults.allowedSubnets;
    	      this.createdDate = defaults.createdDate;
    	      this.description = defaults.description;
    	      this.externalProviderResourceId = defaults.externalProviderResourceId;
    	      this.externalSubnets = defaults.externalSubnets;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.subnetOverrides = defaults.subnetOverrides;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
    	      this.uniqueIdentifier = defaults.uniqueIdentifier;
        }

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

            this.allowedSubnets = allowedSubnets;
            return this;
        }
        public Builder allowedSubnets(SubnetResponse... allowedSubnets) {
            return allowedSubnets(List.of(allowedSubnets));
        }
        @CustomType.Setter
        public Builder createdDate(String createdDate) {
            if (createdDate == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkResult", "createdDate");
            }
            this.createdDate = createdDate;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

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

            this.externalProviderResourceId = externalProviderResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder externalSubnets(List externalSubnets) {
            if (externalSubnets == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkResult", "externalSubnets");
            }
            this.externalSubnets = externalSubnets;
            return this;
        }
        public Builder externalSubnets(ExternalSubnetResponse... externalSubnets) {
            return externalSubnets(List.of(externalSubnets));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkResult", "id");
            }
            this.id = id;
            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("GetVirtualNetworkResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder subnetOverrides(@Nullable List subnetOverrides) {

            this.subnetOverrides = subnetOverrides;
            return this;
        }
        public Builder subnetOverrides(SubnetOverrideResponse... subnetOverrides) {
            return subnetOverrides(List.of(subnetOverrides));
        }
        @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("GetVirtualNetworkResult", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder uniqueIdentifier(String uniqueIdentifier) {
            if (uniqueIdentifier == null) {
              throw new MissingRequiredPropertyException("GetVirtualNetworkResult", "uniqueIdentifier");
            }
            this.uniqueIdentifier = uniqueIdentifier;
            return this;
        }
        public GetVirtualNetworkResult build() {
            final var _resultValue = new GetVirtualNetworkResult();
            _resultValue.allowedSubnets = allowedSubnets;
            _resultValue.createdDate = createdDate;
            _resultValue.description = description;
            _resultValue.externalProviderResourceId = externalProviderResourceId;
            _resultValue.externalSubnets = externalSubnets;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.subnetOverrides = subnetOverrides;
            _resultValue.tags = tags;
            _resultValue.type = type;
            _resultValue.uniqueIdentifier = uniqueIdentifier;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy