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

com.pulumi.aws.elb.outputs.GetLoadBalancerResult 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.aws.elb.outputs;

import com.pulumi.aws.elb.outputs.GetLoadBalancerAccessLogs;
import com.pulumi.aws.elb.outputs.GetLoadBalancerHealthCheck;
import com.pulumi.aws.elb.outputs.GetLoadBalancerListener;
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.List;
import java.util.Map;
import java.util.Objects;

@CustomType
public final class GetLoadBalancerResult {
    private GetLoadBalancerAccessLogs accessLogs;
    private String arn;
    private List availabilityZones;
    private Boolean connectionDraining;
    private Integer connectionDrainingTimeout;
    private Boolean crossZoneLoadBalancing;
    private String desyncMitigationMode;
    private String dnsName;
    private GetLoadBalancerHealthCheck healthCheck;
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    private Integer idleTimeout;
    private List instances;
    private Boolean internal;
    private List listeners;
    private String name;
    private List securityGroups;
    private String sourceSecurityGroup;
    private String sourceSecurityGroupId;
    private List subnets;
    private Map tags;
    private String zoneId;

    private GetLoadBalancerResult() {}
    public GetLoadBalancerAccessLogs accessLogs() {
        return this.accessLogs;
    }
    public String arn() {
        return this.arn;
    }
    public List availabilityZones() {
        return this.availabilityZones;
    }
    public Boolean connectionDraining() {
        return this.connectionDraining;
    }
    public Integer connectionDrainingTimeout() {
        return this.connectionDrainingTimeout;
    }
    public Boolean crossZoneLoadBalancing() {
        return this.crossZoneLoadBalancing;
    }
    public String desyncMitigationMode() {
        return this.desyncMitigationMode;
    }
    public String dnsName() {
        return this.dnsName;
    }
    public GetLoadBalancerHealthCheck healthCheck() {
        return this.healthCheck;
    }
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    public Integer idleTimeout() {
        return this.idleTimeout;
    }
    public List instances() {
        return this.instances;
    }
    public Boolean internal() {
        return this.internal;
    }
    public List listeners() {
        return this.listeners;
    }
    public String name() {
        return this.name;
    }
    public List securityGroups() {
        return this.securityGroups;
    }
    public String sourceSecurityGroup() {
        return this.sourceSecurityGroup;
    }
    public String sourceSecurityGroupId() {
        return this.sourceSecurityGroupId;
    }
    public List subnets() {
        return this.subnets;
    }
    public Map tags() {
        return this.tags;
    }
    public String zoneId() {
        return this.zoneId;
    }

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

    public static Builder builder(GetLoadBalancerResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private GetLoadBalancerAccessLogs accessLogs;
        private String arn;
        private List availabilityZones;
        private Boolean connectionDraining;
        private Integer connectionDrainingTimeout;
        private Boolean crossZoneLoadBalancing;
        private String desyncMitigationMode;
        private String dnsName;
        private GetLoadBalancerHealthCheck healthCheck;
        private String id;
        private Integer idleTimeout;
        private List instances;
        private Boolean internal;
        private List listeners;
        private String name;
        private List securityGroups;
        private String sourceSecurityGroup;
        private String sourceSecurityGroupId;
        private List subnets;
        private Map tags;
        private String zoneId;
        public Builder() {}
        public Builder(GetLoadBalancerResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accessLogs = defaults.accessLogs;
    	      this.arn = defaults.arn;
    	      this.availabilityZones = defaults.availabilityZones;
    	      this.connectionDraining = defaults.connectionDraining;
    	      this.connectionDrainingTimeout = defaults.connectionDrainingTimeout;
    	      this.crossZoneLoadBalancing = defaults.crossZoneLoadBalancing;
    	      this.desyncMitigationMode = defaults.desyncMitigationMode;
    	      this.dnsName = defaults.dnsName;
    	      this.healthCheck = defaults.healthCheck;
    	      this.id = defaults.id;
    	      this.idleTimeout = defaults.idleTimeout;
    	      this.instances = defaults.instances;
    	      this.internal = defaults.internal;
    	      this.listeners = defaults.listeners;
    	      this.name = defaults.name;
    	      this.securityGroups = defaults.securityGroups;
    	      this.sourceSecurityGroup = defaults.sourceSecurityGroup;
    	      this.sourceSecurityGroupId = defaults.sourceSecurityGroupId;
    	      this.subnets = defaults.subnets;
    	      this.tags = defaults.tags;
    	      this.zoneId = defaults.zoneId;
        }

        @CustomType.Setter
        public Builder accessLogs(GetLoadBalancerAccessLogs accessLogs) {
            if (accessLogs == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "accessLogs");
            }
            this.accessLogs = accessLogs;
            return this;
        }
        @CustomType.Setter
        public Builder arn(String arn) {
            if (arn == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "arn");
            }
            this.arn = arn;
            return this;
        }
        @CustomType.Setter
        public Builder availabilityZones(List availabilityZones) {
            if (availabilityZones == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "availabilityZones");
            }
            this.availabilityZones = availabilityZones;
            return this;
        }
        public Builder availabilityZones(String... availabilityZones) {
            return availabilityZones(List.of(availabilityZones));
        }
        @CustomType.Setter
        public Builder connectionDraining(Boolean connectionDraining) {
            if (connectionDraining == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "connectionDraining");
            }
            this.connectionDraining = connectionDraining;
            return this;
        }
        @CustomType.Setter
        public Builder connectionDrainingTimeout(Integer connectionDrainingTimeout) {
            if (connectionDrainingTimeout == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "connectionDrainingTimeout");
            }
            this.connectionDrainingTimeout = connectionDrainingTimeout;
            return this;
        }
        @CustomType.Setter
        public Builder crossZoneLoadBalancing(Boolean crossZoneLoadBalancing) {
            if (crossZoneLoadBalancing == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "crossZoneLoadBalancing");
            }
            this.crossZoneLoadBalancing = crossZoneLoadBalancing;
            return this;
        }
        @CustomType.Setter
        public Builder desyncMitigationMode(String desyncMitigationMode) {
            if (desyncMitigationMode == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "desyncMitigationMode");
            }
            this.desyncMitigationMode = desyncMitigationMode;
            return this;
        }
        @CustomType.Setter
        public Builder dnsName(String dnsName) {
            if (dnsName == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "dnsName");
            }
            this.dnsName = dnsName;
            return this;
        }
        @CustomType.Setter
        public Builder healthCheck(GetLoadBalancerHealthCheck healthCheck) {
            if (healthCheck == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "healthCheck");
            }
            this.healthCheck = healthCheck;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder idleTimeout(Integer idleTimeout) {
            if (idleTimeout == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "idleTimeout");
            }
            this.idleTimeout = idleTimeout;
            return this;
        }
        @CustomType.Setter
        public Builder instances(List instances) {
            if (instances == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "instances");
            }
            this.instances = instances;
            return this;
        }
        public Builder instances(String... instances) {
            return instances(List.of(instances));
        }
        @CustomType.Setter
        public Builder internal(Boolean internal) {
            if (internal == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "internal");
            }
            this.internal = internal;
            return this;
        }
        @CustomType.Setter
        public Builder listeners(List listeners) {
            if (listeners == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "listeners");
            }
            this.listeners = listeners;
            return this;
        }
        public Builder listeners(GetLoadBalancerListener... listeners) {
            return listeners(List.of(listeners));
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder securityGroups(List securityGroups) {
            if (securityGroups == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "securityGroups");
            }
            this.securityGroups = securityGroups;
            return this;
        }
        public Builder securityGroups(String... securityGroups) {
            return securityGroups(List.of(securityGroups));
        }
        @CustomType.Setter
        public Builder sourceSecurityGroup(String sourceSecurityGroup) {
            if (sourceSecurityGroup == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "sourceSecurityGroup");
            }
            this.sourceSecurityGroup = sourceSecurityGroup;
            return this;
        }
        @CustomType.Setter
        public Builder sourceSecurityGroupId(String sourceSecurityGroupId) {
            if (sourceSecurityGroupId == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "sourceSecurityGroupId");
            }
            this.sourceSecurityGroupId = sourceSecurityGroupId;
            return this;
        }
        @CustomType.Setter
        public Builder subnets(List subnets) {
            if (subnets == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "subnets");
            }
            this.subnets = subnets;
            return this;
        }
        public Builder subnets(String... subnets) {
            return subnets(List.of(subnets));
        }
        @CustomType.Setter
        public Builder tags(Map tags) {
            if (tags == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "tags");
            }
            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder zoneId(String zoneId) {
            if (zoneId == null) {
              throw new MissingRequiredPropertyException("GetLoadBalancerResult", "zoneId");
            }
            this.zoneId = zoneId;
            return this;
        }
        public GetLoadBalancerResult build() {
            final var _resultValue = new GetLoadBalancerResult();
            _resultValue.accessLogs = accessLogs;
            _resultValue.arn = arn;
            _resultValue.availabilityZones = availabilityZones;
            _resultValue.connectionDraining = connectionDraining;
            _resultValue.connectionDrainingTimeout = connectionDrainingTimeout;
            _resultValue.crossZoneLoadBalancing = crossZoneLoadBalancing;
            _resultValue.desyncMitigationMode = desyncMitigationMode;
            _resultValue.dnsName = dnsName;
            _resultValue.healthCheck = healthCheck;
            _resultValue.id = id;
            _resultValue.idleTimeout = idleTimeout;
            _resultValue.instances = instances;
            _resultValue.internal = internal;
            _resultValue.listeners = listeners;
            _resultValue.name = name;
            _resultValue.securityGroups = securityGroups;
            _resultValue.sourceSecurityGroup = sourceSecurityGroup;
            _resultValue.sourceSecurityGroupId = sourceSecurityGroupId;
            _resultValue.subnets = subnets;
            _resultValue.tags = tags;
            _resultValue.zoneId = zoneId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy