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

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

There is a newer version: 2.89.2
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.azurenative.network.outputs.SubResourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetVirtualHubBgpConnectionResult {
    /**
     * @return The current state of the VirtualHub to Peer.
     * 
     */
    private String connectionState;
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    private String etag;
    /**
     * @return The reference to the HubVirtualNetworkConnection resource.
     * 
     */
    private @Nullable SubResourceResponse hubVirtualNetworkConnection;
    /**
     * @return Resource ID.
     * 
     */
    private @Nullable String id;
    /**
     * @return Name of the connection.
     * 
     */
    private @Nullable String name;
    /**
     * @return Peer ASN.
     * 
     */
    private @Nullable Double peerAsn;
    /**
     * @return Peer IP.
     * 
     */
    private @Nullable String peerIp;
    /**
     * @return The provisioning state of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return Connection type.
     * 
     */
    private String type;

    private GetVirtualHubBgpConnectionResult() {}
    /**
     * @return The current state of the VirtualHub to Peer.
     * 
     */
    public String connectionState() {
        return this.connectionState;
    }
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    public String etag() {
        return this.etag;
    }
    /**
     * @return The reference to the HubVirtualNetworkConnection resource.
     * 
     */
    public Optional hubVirtualNetworkConnection() {
        return Optional.ofNullable(this.hubVirtualNetworkConnection);
    }
    /**
     * @return Resource ID.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return Name of the connection.
     * 
     */
    public Optional name() {
        return Optional.ofNullable(this.name);
    }
    /**
     * @return Peer ASN.
     * 
     */
    public Optional peerAsn() {
        return Optional.ofNullable(this.peerAsn);
    }
    /**
     * @return Peer IP.
     * 
     */
    public Optional peerIp() {
        return Optional.ofNullable(this.peerIp);
    }
    /**
     * @return The provisioning state of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Connection type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetVirtualHubBgpConnectionResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String connectionState;
        private String etag;
        private @Nullable SubResourceResponse hubVirtualNetworkConnection;
        private @Nullable String id;
        private @Nullable String name;
        private @Nullable Double peerAsn;
        private @Nullable String peerIp;
        private String provisioningState;
        private String type;
        public Builder() {}
        public Builder(GetVirtualHubBgpConnectionResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.connectionState = defaults.connectionState;
    	      this.etag = defaults.etag;
    	      this.hubVirtualNetworkConnection = defaults.hubVirtualNetworkConnection;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.peerAsn = defaults.peerAsn;
    	      this.peerIp = defaults.peerIp;
    	      this.provisioningState = defaults.provisioningState;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder connectionState(String connectionState) {
            if (connectionState == null) {
              throw new MissingRequiredPropertyException("GetVirtualHubBgpConnectionResult", "connectionState");
            }
            this.connectionState = connectionState;
            return this;
        }
        @CustomType.Setter
        public Builder etag(String etag) {
            if (etag == null) {
              throw new MissingRequiredPropertyException("GetVirtualHubBgpConnectionResult", "etag");
            }
            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder hubVirtualNetworkConnection(@Nullable SubResourceResponse hubVirtualNetworkConnection) {

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

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

            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder peerAsn(@Nullable Double peerAsn) {

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

            this.peerIp = peerIp;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetVirtualHubBgpConnectionResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetVirtualHubBgpConnectionResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetVirtualHubBgpConnectionResult build() {
            final var _resultValue = new GetVirtualHubBgpConnectionResult();
            _resultValue.connectionState = connectionState;
            _resultValue.etag = etag;
            _resultValue.hubVirtualNetworkConnection = hubVirtualNetworkConnection;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.peerAsn = peerAsn;
            _resultValue.peerIp = peerIp;
            _resultValue.provisioningState = provisioningState;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy