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

com.pulumi.alicloud.slb.outputs.GetLoadBalancersBalancerBackendServer Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.slb.outputs;

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

@CustomType
public final class GetLoadBalancersBalancerBackendServer {
    private String description;
    private String serverId;
    private String type;
    private Integer weight;

    private GetLoadBalancersBalancerBackendServer() {}
    public String description() {
        return this.description;
    }
    public String serverId() {
        return this.serverId;
    }
    public String type() {
        return this.type;
    }
    public Integer weight() {
        return this.weight;
    }

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

    public static Builder builder(GetLoadBalancersBalancerBackendServer defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String description;
        private String serverId;
        private String type;
        private Integer weight;
        public Builder() {}
        public Builder(GetLoadBalancersBalancerBackendServer defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.serverId = defaults.serverId;
    	      this.type = defaults.type;
    	      this.weight = defaults.weight;
        }

        @CustomType.Setter
        public Builder description(String description) {
            if (description == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancersBalancerBackendServer", "description");
            }
            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder serverId(String serverId) {
            if (serverId == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancersBalancerBackendServer", "serverId");
            }
            this.serverId = serverId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancersBalancerBackendServer", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder weight(Integer weight) {
            if (weight == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancersBalancerBackendServer", "weight");
            }
            this.weight = weight;
            return this;
        }
        public GetLoadBalancersBalancerBackendServer build() {
            final var _resultValue = new GetLoadBalancersBalancerBackendServer();
            _resultValue.description = description;
            _resultValue.serverId = serverId;
            _resultValue.type = type;
            _resultValue.weight = weight;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy