// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.analytics.synapse.artifacts.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Self referenced tumbling window trigger dependency. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("SelfDependencyTumblingWindowTriggerReference")
@Fluent
public final class SelfDependencyTumblingWindowTriggerReference extends DependencyReference {
    /*
     * Timespan applied to the start time of a tumbling window when evaluating dependency.
     */
    @JsonProperty(value = "offset", required = true)
    private String offset;

    /*
     * The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be
     * used.
     */
    @JsonProperty(value = "size")
    private String size;

    /** Creates an instance of SelfDependencyTumblingWindowTriggerReference class. */
    public SelfDependencyTumblingWindowTriggerReference() {}

    /**
     * Get the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency.
     *
     * @return the offset value.
     */
    public String getOffset() {
        return this.offset;
    }

    /**
     * Set the offset property: Timespan applied to the start time of a tumbling window when evaluating dependency.
     *
     * @param offset the offset value to set.
     * @return the SelfDependencyTumblingWindowTriggerReference object itself.
     */
    public SelfDependencyTumblingWindowTriggerReference setOffset(String offset) {
        this.offset = offset;
        return this;
    }

    /**
     * Get the size property: The size of the window when evaluating the dependency. If undefined the frequency of the
     * tumbling window will be used.
     *
     * @return the size value.
     */
    public String getSize() {
        return this.size;
    }

    /**
     * Set the size property: The size of the window when evaluating the dependency. If undefined the frequency of the
     * tumbling window will be used.
     *
     * @param size the size value to set.
     * @return the SelfDependencyTumblingWindowTriggerReference object itself.
     */
    public SelfDependencyTumblingWindowTriggerReference setSize(String size) {
        this.size = size;
        return this;
    }
}
