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

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

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

/** The request payload for rejecting the call. */
@Fluent
public final class RejectCallRequestInternal {
    /*
     * The context associated with the call.
     */
    @JsonProperty(value = "incomingCallContext", required = true)
    private String incomingCallContext;

    /*
     * The rejection reason.
     */
    @JsonProperty(value = "callRejectReason")
    private CallRejectReasonInternal callRejectReason;

    /**
     * Get the incomingCallContext property: The context associated with the call.
     *
     * @return the incomingCallContext value.
     */
    public String getIncomingCallContext() {
        return this.incomingCallContext;
    }

    /**
     * Set the incomingCallContext property: The context associated with the call.
     *
     * @param incomingCallContext the incomingCallContext value to set.
     * @return the RejectCallRequestInternal object itself.
     */
    public RejectCallRequestInternal setIncomingCallContext(String incomingCallContext) {
        this.incomingCallContext = incomingCallContext;
        return this;
    }

    /**
     * Get the callRejectReason property: The rejection reason.
     *
     * @return the callRejectReason value.
     */
    public CallRejectReasonInternal getCallRejectReason() {
        return this.callRejectReason;
    }

    /**
     * Set the callRejectReason property: The rejection reason.
     *
     * @param callRejectReason the callRejectReason value to set.
     * @return the RejectCallRequestInternal object itself.
     */
    public RejectCallRequestInternal setCallRejectReason(CallRejectReasonInternal callRejectReason) {
        this.callRejectReason = callRejectReason;
        return this;
    }
}
