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

com.pulumi.azurenative.avs.outputs.GetWorkloadNetworkSegmentResult Maven / Gradle / Ivy

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

import com.pulumi.azurenative.avs.outputs.WorkloadNetworkSegmentPortVifResponse;
import com.pulumi.azurenative.avs.outputs.WorkloadNetworkSegmentSubnetResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetWorkloadNetworkSegmentResult {
    /**
     * @return Gateway which to connect segment to.
     * 
     */
    private @Nullable String connectedGateway;
    /**
     * @return Display name of the segment.
     * 
     */
    private @Nullable String displayName;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Port Vif which segment is associated with.
     * 
     */
    private List portVif;
    /**
     * @return The provisioning state
     * 
     */
    private String provisioningState;
    /**
     * @return NSX revision number.
     * 
     */
    private @Nullable Double revision;
    /**
     * @return Segment status.
     * 
     */
    private String status;
    /**
     * @return Subnet which to connect segment to.
     * 
     */
    private @Nullable WorkloadNetworkSegmentSubnetResponse subnet;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetWorkloadNetworkSegmentResult() {}
    /**
     * @return Gateway which to connect segment to.
     * 
     */
    public Optional connectedGateway() {
        return Optional.ofNullable(this.connectedGateway);
    }
    /**
     * @return Display name of the segment.
     * 
     */
    public Optional displayName() {
        return Optional.ofNullable(this.displayName);
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Port Vif which segment is associated with.
     * 
     */
    public List portVif() {
        return this.portVif;
    }
    /**
     * @return The provisioning state
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return NSX revision number.
     * 
     */
    public Optional revision() {
        return Optional.ofNullable(this.revision);
    }
    /**
     * @return Segment status.
     * 
     */
    public String status() {
        return this.status;
    }
    /**
     * @return Subnet which to connect segment to.
     * 
     */
    public Optional subnet() {
        return Optional.ofNullable(this.subnet);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetWorkloadNetworkSegmentResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String connectedGateway;
        private @Nullable String displayName;
        private String id;
        private String name;
        private List portVif;
        private String provisioningState;
        private @Nullable Double revision;
        private String status;
        private @Nullable WorkloadNetworkSegmentSubnetResponse subnet;
        private String type;
        public Builder() {}
        public Builder(GetWorkloadNetworkSegmentResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.connectedGateway = defaults.connectedGateway;
    	      this.displayName = defaults.displayName;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.portVif = defaults.portVif;
    	      this.provisioningState = defaults.provisioningState;
    	      this.revision = defaults.revision;
    	      this.status = defaults.status;
    	      this.subnet = defaults.subnet;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder connectedGateway(@Nullable String connectedGateway) {

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

            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetWorkloadNetworkSegmentResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetWorkloadNetworkSegmentResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder portVif(List portVif) {
            if (portVif == null) {
              throw new MissingRequiredPropertyException("GetWorkloadNetworkSegmentResult", "portVif");
            }
            this.portVif = portVif;
            return this;
        }
        public Builder portVif(WorkloadNetworkSegmentPortVifResponse... portVif) {
            return portVif(List.of(portVif));
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetWorkloadNetworkSegmentResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder revision(@Nullable Double revision) {

            this.revision = revision;
            return this;
        }
        @CustomType.Setter
        public Builder status(String status) {
            if (status == null) {
              throw new MissingRequiredPropertyException("GetWorkloadNetworkSegmentResult", "status");
            }
            this.status = status;
            return this;
        }
        @CustomType.Setter
        public Builder subnet(@Nullable WorkloadNetworkSegmentSubnetResponse subnet) {

            this.subnet = subnet;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetWorkloadNetworkSegmentResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetWorkloadNetworkSegmentResult build() {
            final var _resultValue = new GetWorkloadNetworkSegmentResult();
            _resultValue.connectedGateway = connectedGateway;
            _resultValue.displayName = displayName;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.portVif = portVif;
            _resultValue.provisioningState = provisioningState;
            _resultValue.revision = revision;
            _resultValue.status = status;
            _resultValue.subnet = subnet;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy