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

import com.pulumi.aws.eks.outputs.NodeGroupResourceAutoscalingGroup;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class NodeGroupResource {
    /**
     * @return List of objects containing information about AutoScaling Groups.
     * 
     */
    private @Nullable List<NodeGroupResourceAutoscalingGroup> autoscalingGroups;
    /**
     * @return Identifier of the remote access EC2 Security Group.
     * 
     */
    private @Nullable String remoteAccessSecurityGroupId;

    private NodeGroupResource() {}
    /**
     * @return List of objects containing information about AutoScaling Groups.
     * 
     */
    public List<NodeGroupResourceAutoscalingGroup> autoscalingGroups() {
        return this.autoscalingGroups == null ? List.of() : this.autoscalingGroups;
    }
    /**
     * @return Identifier of the remote access EC2 Security Group.
     * 
     */
    public Optional<String> remoteAccessSecurityGroupId() {
        return Optional.ofNullable(this.remoteAccessSecurityGroupId);
    }

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

    public static Builder builder(NodeGroupResource defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<NodeGroupResourceAutoscalingGroup> autoscalingGroups;
        private @Nullable String remoteAccessSecurityGroupId;
        public Builder() {}
        public Builder(NodeGroupResource defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.autoscalingGroups = defaults.autoscalingGroups;
    	      this.remoteAccessSecurityGroupId = defaults.remoteAccessSecurityGroupId;
        }

        @CustomType.Setter
        public Builder autoscalingGroups(@Nullable List<NodeGroupResourceAutoscalingGroup> autoscalingGroups) {
            this.autoscalingGroups = autoscalingGroups;
            return this;
        }
        public Builder autoscalingGroups(NodeGroupResourceAutoscalingGroup... autoscalingGroups) {
            return autoscalingGroups(List.of(autoscalingGroups));
        }
        @CustomType.Setter
        public Builder remoteAccessSecurityGroupId(@Nullable String remoteAccessSecurityGroupId) {
            this.remoteAccessSecurityGroupId = remoteAccessSecurityGroupId;
            return this;
        }
        public NodeGroupResource build() {
            final var o = new NodeGroupResource();
            o.autoscalingGroups = autoscalingGroups;
            o.remoteAccessSecurityGroupId = remoteAccessSecurityGroupId;
            return o;
        }
    }
}
