// 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.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The RecognizeCompleted model. */
@Fluent
public final class RecognizeCompleted {
    /*
     * Operation context
     */
    @JsonProperty(value = "operationContext")
    private String operationContext;

    /*
     * Determines the sub-type pf the recognize operation
     */
    @JsonProperty(value = "recognitionType")
    private RecognitionType recognitionType;

    /*
     * Defines the result for RecognitionType = Dtmf
     */
    @JsonProperty(value = "collectTonesResult")
    private CollectTonesResult collectTonesResult;

    /*
     * Defines the code, sub-code and message for the operation
     */
    @JsonProperty(value = "resultInfo")
    private ResultInformation resultInfo;

    /*
     * The type property.
     */
    @JsonProperty(value = "type")
    private AcsEventTypeInternal type;

    /*
     * Call connection ID.
     */
    @JsonProperty(value = "callConnectionId")
    private String callConnectionId;

    /*
     * Server call ID.
     */
    @JsonProperty(value = "serverCallId")
    private String serverCallId;

    /*
     * Correlation ID for event to call correlation. Also called ChainId for
     * skype chain ID.
     */
    @JsonProperty(value = "correlationId")
    private String correlationId;

    /**
     * Get the operationContext property: Operation context.
     *
     * @return the operationContext value.
     */
    public String getOperationContext() {
        return this.operationContext;
    }

    /**
     * Set the operationContext property: Operation context.
     *
     * @param operationContext the operationContext value to set.
     * @return the RecognizeCompleted object itself.
     */
    public RecognizeCompleted setOperationContext(String operationContext) {
        this.operationContext = operationContext;
        return this;
    }

    /**
     * Get the recognitionType property: Determines the sub-type pf the recognize operation.
     *
     * @return the recognitionType value.
     */
    public RecognitionType getRecognitionType() {
        return this.recognitionType;
    }

    /**
     * Set the recognitionType property: Determines the sub-type pf the recognize operation.
     *
     * @param recognitionType the recognitionType value to set.
     * @return the RecognizeCompleted object itself.
     */
    public RecognizeCompleted setRecognitionType(RecognitionType recognitionType) {
        this.recognitionType = recognitionType;
        return this;
    }

    /**
     * Get the collectTonesResult property: Defines the result for RecognitionType = Dtmf.
     *
     * @return the collectTonesResult value.
     */
    public CollectTonesResult getCollectTonesResult() {
        return this.collectTonesResult;
    }

    /**
     * Set the collectTonesResult property: Defines the result for RecognitionType = Dtmf.
     *
     * @param collectTonesResult the collectTonesResult value to set.
     * @return the RecognizeCompleted object itself.
     */
    public RecognizeCompleted setCollectTonesResult(CollectTonesResult collectTonesResult) {
        this.collectTonesResult = collectTonesResult;
        return this;
    }

    /**
     * Get the resultInfo property: Defines the code, sub-code and message for the operation.
     *
     * @return the resultInfo value.
     */
    public ResultInformation getResultInfo() {
        return this.resultInfo;
    }

    /**
     * Set the resultInfo property: Defines the code, sub-code and message for the operation.
     *
     * @param resultInfo the resultInfo value to set.
     * @return the RecognizeCompleted object itself.
     */
    public RecognizeCompleted setResultInfo(ResultInformation resultInfo) {
        this.resultInfo = resultInfo;
        return this;
    }

    /**
     * Get the type property: The type property.
     *
     * @return the type value.
     */
    public AcsEventTypeInternal getType() {
        return this.type;
    }

    /**
     * Set the type property: The type property.
     *
     * @param type the type value to set.
     * @return the RecognizeCompleted object itself.
     */
    public RecognizeCompleted setType(AcsEventTypeInternal type) {
        this.type = type;
        return this;
    }

    /**
     * Get the callConnectionId property: Call connection ID.
     *
     * @return the callConnectionId value.
     */
    public String getCallConnectionId() {
        return this.callConnectionId;
    }

    /**
     * Set the callConnectionId property: Call connection ID.
     *
     * @param callConnectionId the callConnectionId value to set.
     * @return the RecognizeCompleted object itself.
     */
    public RecognizeCompleted setCallConnectionId(String callConnectionId) {
        this.callConnectionId = callConnectionId;
        return this;
    }

    /**
     * Get the serverCallId property: Server call ID.
     *
     * @return the serverCallId value.
     */
    public String getServerCallId() {
        return this.serverCallId;
    }

    /**
     * Set the serverCallId property: Server call ID.
     *
     * @param serverCallId the serverCallId value to set.
     * @return the RecognizeCompleted object itself.
     */
    public RecognizeCompleted setServerCallId(String serverCallId) {
        this.serverCallId = serverCallId;
        return this;
    }

    /**
     * Get the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
     * ID.
     *
     * @return the correlationId value.
     */
    public String getCorrelationId() {
        return this.correlationId;
    }

    /**
     * Set the correlationId property: Correlation ID for event to call correlation. Also called ChainId for skype chain
     * ID.
     *
     * @param correlationId the correlationId value to set.
     * @return the RecognizeCompleted object itself.
     */
    public RecognizeCompleted setCorrelationId(String correlationId) {
        this.correlationId = correlationId;
        return this;
    }
}
