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

com.pulumi.azurenative.servicefabric.outputs.EndpointRangeDescriptionResponse 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.servicefabric.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.util.Objects;

@CustomType
public final class EndpointRangeDescriptionResponse {
    /**
     * @return End port of a range of ports
     * 
     */
    private Integer endPort;
    /**
     * @return Starting port of a range of ports
     * 
     */
    private Integer startPort;

    private EndpointRangeDescriptionResponse() {}
    /**
     * @return End port of a range of ports
     * 
     */
    public Integer endPort() {
        return this.endPort;
    }
    /**
     * @return Starting port of a range of ports
     * 
     */
    public Integer startPort() {
        return this.startPort;
    }

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

    public static Builder builder(EndpointRangeDescriptionResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Integer endPort;
        private Integer startPort;
        public Builder() {}
        public Builder(EndpointRangeDescriptionResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.endPort = defaults.endPort;
    	      this.startPort = defaults.startPort;
        }

        @CustomType.Setter
        public Builder endPort(Integer endPort) {
            if (endPort == null) {
              throw new MissingRequiredPropertyException("EndpointRangeDescriptionResponse", "endPort");
            }
            this.endPort = endPort;
            return this;
        }
        @CustomType.Setter
        public Builder startPort(Integer startPort) {
            if (startPort == null) {
              throw new MissingRequiredPropertyException("EndpointRangeDescriptionResponse", "startPort");
            }
            this.startPort = startPort;
            return this;
        }
        public EndpointRangeDescriptionResponse build() {
            final var _resultValue = new EndpointRangeDescriptionResponse();
            _resultValue.endPort = endPort;
            _resultValue.startPort = startPort;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy