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

com.pulumi.azurenative.hdinsight.outputs.IPConfigurationResponse 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.hdinsight.outputs;

import com.pulumi.azurenative.hdinsight.outputs.ResourceIdResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class IPConfigurationResponse {
    /**
     * @return The private link IP configuration id.
     * 
     */
    private String id;
    /**
     * @return The name of private link IP configuration.
     * 
     */
    private String name;
    /**
     * @return Indicates whether this IP configuration is primary for the corresponding NIC.
     * 
     */
    private @Nullable Boolean primary;
    /**
     * @return The IP address.
     * 
     */
    private @Nullable String privateIPAddress;
    /**
     * @return The method that private IP address is allocated.
     * 
     */
    private @Nullable String privateIPAllocationMethod;
    /**
     * @return The private link configuration provisioning state, which only appears in the response.
     * 
     */
    private String provisioningState;
    /**
     * @return The subnet resource id.
     * 
     */
    private @Nullable ResourceIdResponse subnet;
    /**
     * @return The type of the private link IP configuration.
     * 
     */
    private String type;

    private IPConfigurationResponse() {}
    /**
     * @return The private link IP configuration id.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return The name of private link IP configuration.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Indicates whether this IP configuration is primary for the corresponding NIC.
     * 
     */
    public Optional primary() {
        return Optional.ofNullable(this.primary);
    }
    /**
     * @return The IP address.
     * 
     */
    public Optional privateIPAddress() {
        return Optional.ofNullable(this.privateIPAddress);
    }
    /**
     * @return The method that private IP address is allocated.
     * 
     */
    public Optional privateIPAllocationMethod() {
        return Optional.ofNullable(this.privateIPAllocationMethod);
    }
    /**
     * @return The private link configuration provisioning state, which only appears in the response.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The subnet resource id.
     * 
     */
    public Optional subnet() {
        return Optional.ofNullable(this.subnet);
    }
    /**
     * @return The type of the private link IP configuration.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(IPConfigurationResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private String name;
        private @Nullable Boolean primary;
        private @Nullable String privateIPAddress;
        private @Nullable String privateIPAllocationMethod;
        private String provisioningState;
        private @Nullable ResourceIdResponse subnet;
        private String type;
        public Builder() {}
        public Builder(IPConfigurationResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.primary = defaults.primary;
    	      this.privateIPAddress = defaults.privateIPAddress;
    	      this.privateIPAllocationMethod = defaults.privateIPAllocationMethod;
    	      this.provisioningState = defaults.provisioningState;
    	      this.subnet = defaults.subnet;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("IPConfigurationResponse", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("IPConfigurationResponse", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder primary(@Nullable Boolean primary) {

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

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

            this.privateIPAllocationMethod = privateIPAllocationMethod;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("IPConfigurationResponse", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder subnet(@Nullable ResourceIdResponse subnet) {

            this.subnet = subnet;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("IPConfigurationResponse", "type");
            }
            this.type = type;
            return this;
        }
        public IPConfigurationResponse build() {
            final var _resultValue = new IPConfigurationResponse();
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.primary = primary;
            _resultValue.privateIPAddress = privateIPAddress;
            _resultValue.privateIPAllocationMethod = privateIPAllocationMethod;
            _resultValue.provisioningState = provisioningState;
            _resultValue.subnet = subnet;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy