ToneInfoInternal.java

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

package com.azure.communication.callingserver.implementation.models;

import com.azure.communication.callingserver.models.ToneValue;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The information about the tone. */
@Fluent
public final class ToneInfoInternal {
    /*
     * The sequence id which can be used to determine if the same tone was
     * played multiple times or if any tones were missed.
     */
    @JsonProperty(value = "sequenceId", required = true)
    private int sequenceId;

    /*
     * The tone value.
     */
    @JsonProperty(value = "tone", required = true)
    private ToneValue tone;

    /**
     * Get the sequenceId property: The sequence id which can be used to determine if the same tone was played multiple
     * times or if any tones were missed.
     *
     * @return the sequenceId value.
     */
    public int getSequenceId() {
        return this.sequenceId;
    }

    /**
     * Set the sequenceId property: The sequence id which can be used to determine if the same tone was played multiple
     * times or if any tones were missed.
     *
     * @param sequenceId the sequenceId value to set.
     * @return the ToneInfoInternal object itself.
     */
    public ToneInfoInternal setSequenceId(int sequenceId) {
        this.sequenceId = sequenceId;
        return this;
    }

    /**
     * Get the tone property: The tone value.
     *
     * @return the tone value.
     */
    public ToneValue getTone() {
        return this.tone;
    }

    /**
     * Set the tone property: The tone value.
     *
     * @param tone the tone value to set.
     * @return the ToneInfoInternal object itself.
     */
    public ToneInfoInternal setTone(ToneValue tone) {
        this.tone = tone;
        return this;
    }
}