// *** 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.medialive.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ChannelEncoderSettingsTimecodeConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final ChannelEncoderSettingsTimecodeConfigArgs Empty = new ChannelEncoderSettingsTimecodeConfigArgs();

    /**
     * The source for the timecode that will be associated with the events outputs.
     * 
     */
    @Import(name="source", required=true)
    private Output<String> source;

    /**
     * @return The source for the timecode that will be associated with the events outputs.
     * 
     */
    public Output<String> source() {
        return this.source;
    }

    /**
     * Threshold in frames beyond which output timecode is resynchronized to the input timecode.
     * 
     */
    @Import(name="syncThreshold")
    private @Nullable Output<Integer> syncThreshold;

    /**
     * @return Threshold in frames beyond which output timecode is resynchronized to the input timecode.
     * 
     */
    public Optional<Output<Integer>> syncThreshold() {
        return Optional.ofNullable(this.syncThreshold);
    }

    private ChannelEncoderSettingsTimecodeConfigArgs() {}

    private ChannelEncoderSettingsTimecodeConfigArgs(ChannelEncoderSettingsTimecodeConfigArgs $) {
        this.source = $.source;
        this.syncThreshold = $.syncThreshold;
    }

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

    public static final class Builder {
        private ChannelEncoderSettingsTimecodeConfigArgs $;

        public Builder() {
            $ = new ChannelEncoderSettingsTimecodeConfigArgs();
        }

        public Builder(ChannelEncoderSettingsTimecodeConfigArgs defaults) {
            $ = new ChannelEncoderSettingsTimecodeConfigArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param source The source for the timecode that will be associated with the events outputs.
         * 
         * @return builder
         * 
         */
        public Builder source(Output<String> source) {
            $.source = source;
            return this;
        }

        /**
         * @param source The source for the timecode that will be associated with the events outputs.
         * 
         * @return builder
         * 
         */
        public Builder source(String source) {
            return source(Output.of(source));
        }

        /**
         * @param syncThreshold Threshold in frames beyond which output timecode is resynchronized to the input timecode.
         * 
         * @return builder
         * 
         */
        public Builder syncThreshold(@Nullable Output<Integer> syncThreshold) {
            $.syncThreshold = syncThreshold;
            return this;
        }

        /**
         * @param syncThreshold Threshold in frames beyond which output timecode is resynchronized to the input timecode.
         * 
         * @return builder
         * 
         */
        public Builder syncThreshold(Integer syncThreshold) {
            return syncThreshold(Output.of(syncThreshold));
        }

        public ChannelEncoderSettingsTimecodeConfigArgs build() {
            $.source = Objects.requireNonNull($.source, "expected parameter 'source' to be non-null");
            return $;
        }
    }

}
