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

com.pulumi.azurenative.peering.outputs.GetPeeringResult 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.peering.outputs;

import com.pulumi.azurenative.peering.outputs.PeeringPropertiesDirectResponse;
import com.pulumi.azurenative.peering.outputs.PeeringPropertiesExchangeResponse;
import com.pulumi.azurenative.peering.outputs.PeeringSkuResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetPeeringResult {
    /**
     * @return The properties that define a direct peering.
     * 
     */
    private @Nullable PeeringPropertiesDirectResponse direct;
    /**
     * @return The properties that define an exchange peering.
     * 
     */
    private @Nullable PeeringPropertiesExchangeResponse exchange;
    /**
     * @return The ID of the resource.
     * 
     */
    private String id;
    /**
     * @return The kind of the peering.
     * 
     */
    private String kind;
    /**
     * @return The location of the resource.
     * 
     */
    private String location;
    /**
     * @return The name of the resource.
     * 
     */
    private String name;
    /**
     * @return The location of the peering.
     * 
     */
    private @Nullable String peeringLocation;
    /**
     * @return The provisioning state of the resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The SKU that defines the tier and kind of the peering.
     * 
     */
    private PeeringSkuResponse sku;
    /**
     * @return The resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return The type of the resource.
     * 
     */
    private String type;

    private GetPeeringResult() {}
    /**
     * @return The properties that define a direct peering.
     * 
     */
    public Optional direct() {
        return Optional.ofNullable(this.direct);
    }
    /**
     * @return The properties that define an exchange peering.
     * 
     */
    public Optional exchange() {
        return Optional.ofNullable(this.exchange);
    }
    /**
     * @return The ID of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The kind of the peering.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return The location of the resource.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return The name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The location of the peering.
     * 
     */
    public Optional peeringLocation() {
        return Optional.ofNullable(this.peeringLocation);
    }
    /**
     * @return The provisioning state of the resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The SKU that defines the tier and kind of the peering.
     * 
     */
    public PeeringSkuResponse sku() {
        return this.sku;
    }
    /**
     * @return The resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return The type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetPeeringResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable PeeringPropertiesDirectResponse direct;
        private @Nullable PeeringPropertiesExchangeResponse exchange;
        private String id;
        private String kind;
        private String location;
        private String name;
        private @Nullable String peeringLocation;
        private String provisioningState;
        private PeeringSkuResponse sku;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetPeeringResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.direct = defaults.direct;
    	      this.exchange = defaults.exchange;
    	      this.id = defaults.id;
    	      this.kind = defaults.kind;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.peeringLocation = defaults.peeringLocation;
    	      this.provisioningState = defaults.provisioningState;
    	      this.sku = defaults.sku;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder direct(@Nullable PeeringPropertiesDirectResponse direct) {

            this.direct = direct;
            return this;
        }
        @CustomType.Setter
        public Builder exchange(@Nullable PeeringPropertiesExchangeResponse exchange) {

            this.exchange = exchange;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetPeeringResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("GetPeeringResult", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("GetPeeringResult", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetPeeringResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder peeringLocation(@Nullable String peeringLocation) {

            this.peeringLocation = peeringLocation;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetPeeringResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder sku(PeeringSkuResponse sku) {
            if (sku == null) {
              throw new MissingRequiredPropertyException("GetPeeringResult", "sku");
            }
            this.sku = sku;
            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("GetPeeringResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetPeeringResult build() {
            final var _resultValue = new GetPeeringResult();
            _resultValue.direct = direct;
            _resultValue.exchange = exchange;
            _resultValue.id = id;
            _resultValue.kind = kind;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.peeringLocation = peeringLocation;
            _resultValue.provisioningState = provisioningState;
            _resultValue.sku = sku;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy