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

com.pulumi.alicloud.slb.outputs.GetServerGroupsSlbServerGroupServer 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 GetServerGroupsSlbServerGroupServer {
    /**
     * @return ID of the attached ECS instance.
     * 
     */
    private String instanceId;
    /**
     * @return Weight associated to the ECS instance.
     * 
     */
    private Integer weight;

    private GetServerGroupsSlbServerGroupServer() {}
    /**
     * @return ID of the attached ECS instance.
     * 
     */
    public String instanceId() {
        return this.instanceId;
    }
    /**
     * @return Weight associated to the ECS instance.
     * 
     */
    public Integer weight() {
        return this.weight;
    }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy