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

com.pulumi.azurenative.devices.outputs.IotHubDefinitionDescriptionResponse Maven / Gradle / Ivy

// *** 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.devices.outputs;

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

@CustomType
public final class IotHubDefinitionDescriptionResponse {
    /**
     * @return weight to apply for a given iot h.
     * 
     */
    private @Nullable Integer allocationWeight;
    /**
     * @return flag for applying allocationPolicy or not for a given iot hub.
     * 
     */
    private @Nullable Boolean applyAllocationPolicy;
    /**
     * @return Connection string of the IoT hub.
     * 
     */
    private String connectionString;
    /**
     * @return ARM region of the IoT hub.
     * 
     */
    private String location;
    /**
     * @return Host name of the IoT hub.
     * 
     */
    private String name;

    private IotHubDefinitionDescriptionResponse() {}
    /**
     * @return weight to apply for a given iot h.
     * 
     */
    public Optional allocationWeight() {
        return Optional.ofNullable(this.allocationWeight);
    }
    /**
     * @return flag for applying allocationPolicy or not for a given iot hub.
     * 
     */
    public Optional applyAllocationPolicy() {
        return Optional.ofNullable(this.applyAllocationPolicy);
    }
    /**
     * @return Connection string of the IoT hub.
     * 
     */
    public String connectionString() {
        return this.connectionString;
    }
    /**
     * @return ARM region of the IoT hub.
     * 
     */
    public String location() {
        return this.location;
    }
    /**
     * @return Host name of the IoT hub.
     * 
     */
    public String name() {
        return this.name;
    }

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

    public static Builder builder(IotHubDefinitionDescriptionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer allocationWeight;
        private @Nullable Boolean applyAllocationPolicy;
        private String connectionString;
        private String location;
        private String name;
        public Builder() {}
        public Builder(IotHubDefinitionDescriptionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allocationWeight = defaults.allocationWeight;
    	      this.applyAllocationPolicy = defaults.applyAllocationPolicy;
    	      this.connectionString = defaults.connectionString;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
        }

        @CustomType.Setter
        public Builder allocationWeight(@Nullable Integer allocationWeight) {

            this.allocationWeight = allocationWeight;
            return this;
        }
        @CustomType.Setter
        public Builder applyAllocationPolicy(@Nullable Boolean applyAllocationPolicy) {

            this.applyAllocationPolicy = applyAllocationPolicy;
            return this;
        }
        @CustomType.Setter
        public Builder connectionString(String connectionString) {
            if (connectionString == null) {
              throw new MissingRequiredPropertyException("IotHubDefinitionDescriptionResponse", "connectionString");
            }
            this.connectionString = connectionString;
            return this;
        }
        @CustomType.Setter
        public Builder location(String location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("IotHubDefinitionDescriptionResponse", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("IotHubDefinitionDescriptionResponse", "name");
            }
            this.name = name;
            return this;
        }
        public IotHubDefinitionDescriptionResponse build() {
            final var _resultValue = new IotHubDefinitionDescriptionResponse();
            _resultValue.allocationWeight = allocationWeight;
            _resultValue.applyAllocationPolicy = applyAllocationPolicy;
            _resultValue.connectionString = connectionString;
            _resultValue.location = location;
            _resultValue.name = name;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy