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

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

@CustomType
public final class PartitionStorageDescriptorSortColumn {
    /**
     * @return The name of the column.
     * 
     */
    private String column;
    /**
     * @return Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).
     * 
     */
    private Integer sortOrder;

    private PartitionStorageDescriptorSortColumn() {}
    /**
     * @return The name of the column.
     * 
     */
    public String column() {
        return this.column;
    }
    /**
     * @return Indicates that the column is sorted in ascending order (== 1), or in descending order (==0).
     * 
     */
    public Integer sortOrder() {
        return this.sortOrder;
    }

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

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

        @CustomType.Setter
        public Builder column(String column) {
            this.column = Objects.requireNonNull(column);
            return this;
        }
        @CustomType.Setter
        public Builder sortOrder(Integer sortOrder) {
            this.sortOrder = Objects.requireNonNull(sortOrder);
            return this;
        }
        public PartitionStorageDescriptorSortColumn build() {
            final var o = new PartitionStorageDescriptorSortColumn();
            o.column = column;
            o.sortOrder = sortOrder;
            return o;
        }
    }
}
