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

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

@CustomType
public final class GetReceivedLicenseConsumptionConfigurationBorrowConfiguration {
    /**
     * @return Indicates whether early check-ins are allowed.
     * 
     */
    private Boolean allowEarlyCheckIn;
    /**
     * @return Maximum time for the provisional configuration, in minutes.
     * 
     */
    private Integer maxTimeToLiveInMinutes;

    private GetReceivedLicenseConsumptionConfigurationBorrowConfiguration() {}
    /**
     * @return Indicates whether early check-ins are allowed.
     * 
     */
    public Boolean allowEarlyCheckIn() {
        return this.allowEarlyCheckIn;
    }
    /**
     * @return Maximum time for the provisional configuration, in minutes.
     * 
     */
    public Integer maxTimeToLiveInMinutes() {
        return this.maxTimeToLiveInMinutes;
    }

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

    public static Builder builder(GetReceivedLicenseConsumptionConfigurationBorrowConfiguration defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean allowEarlyCheckIn;
        private Integer maxTimeToLiveInMinutes;
        public Builder() {}
        public Builder(GetReceivedLicenseConsumptionConfigurationBorrowConfiguration defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowEarlyCheckIn = defaults.allowEarlyCheckIn;
    	      this.maxTimeToLiveInMinutes = defaults.maxTimeToLiveInMinutes;
        }

        @CustomType.Setter
        public Builder allowEarlyCheckIn(Boolean allowEarlyCheckIn) {
            this.allowEarlyCheckIn = Objects.requireNonNull(allowEarlyCheckIn);
            return this;
        }
        @CustomType.Setter
        public Builder maxTimeToLiveInMinutes(Integer maxTimeToLiveInMinutes) {
            this.maxTimeToLiveInMinutes = Objects.requireNonNull(maxTimeToLiveInMinutes);
            return this;
        }
        public GetReceivedLicenseConsumptionConfigurationBorrowConfiguration build() {
            final var o = new GetReceivedLicenseConsumptionConfigurationBorrowConfiguration();
            o.allowEarlyCheckIn = allowEarlyCheckIn;
            o.maxTimeToLiveInMinutes = maxTimeToLiveInMinutes;
            return o;
        }
    }
}
