All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.infobip.model.CallsBulkCall Maven / Gradle / Ivy

The newest version!
/*
 * This class is auto generated from the Infobip OpenAPI specification
 * through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
 * powered by the OpenAPI Generator (https://openapi-generator.tech).
 *
 * Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
 * or contact us @ [email protected].
 */

package com.infobip.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;

/**
 * Bulk call list.
 */
public class CallsBulkCall {

    private String callsConfigurationId;

    private Platform platform;

    private String callId;

    private String externalId;

    private String from;

    private CallsBulkEndpoint endpoint;

    private CallsActionStatus status;

    private String reason;

    /**
     * Sets callsConfigurationId.
     * 

* Field description: * Calls Configuration ID. * * @param callsConfigurationId * @return This {@link CallsBulkCall instance}. */ public CallsBulkCall callsConfigurationId(String callsConfigurationId) { this.callsConfigurationId = callsConfigurationId; return this; } /** * Returns callsConfigurationId. *

* Field description: * Calls Configuration ID. * * @return callsConfigurationId */ @JsonProperty("callsConfigurationId") public String getCallsConfigurationId() { return callsConfigurationId; } /** * Sets callsConfigurationId. *

* Field description: * Calls Configuration ID. * * @param callsConfigurationId */ @JsonProperty("callsConfigurationId") public void setCallsConfigurationId(String callsConfigurationId) { this.callsConfigurationId = callsConfigurationId; } /** * Sets platform. * * @param platform * @return This {@link CallsBulkCall instance}. */ public CallsBulkCall platform(Platform platform) { this.platform = platform; return this; } /** * Returns platform. * * @return platform */ @JsonProperty("platform") public Platform getPlatform() { return platform; } /** * Sets platform. * * @param platform */ @JsonProperty("platform") public void setPlatform(Platform platform) { this.platform = platform; } /** * Sets callId. *

* Field description: * Unique call ID. * * @param callId * @return This {@link CallsBulkCall instance}. */ public CallsBulkCall callId(String callId) { this.callId = callId; return this; } /** * Returns callId. *

* Field description: * Unique call ID. * * @return callId */ @JsonProperty("callId") public String getCallId() { return callId; } /** * Sets callId. *

* Field description: * Unique call ID. * * @param callId */ @JsonProperty("callId") public void setCallId(String callId) { this.callId = callId; } /** * Sets externalId. *

* Field description: * Client-defined call ID. * * @param externalId * @return This {@link CallsBulkCall instance}. */ public CallsBulkCall externalId(String externalId) { this.externalId = externalId; return this; } /** * Returns externalId. *

* Field description: * Client-defined call ID. * * @return externalId */ @JsonProperty("externalId") public String getExternalId() { return externalId; } /** * Sets externalId. *

* Field description: * Client-defined call ID. * * @param externalId */ @JsonProperty("externalId") public void setExternalId(String externalId) { this.externalId = externalId; } /** * Sets from. *

* Field description: * Caller identifier. * * @param from * @return This {@link CallsBulkCall instance}. */ public CallsBulkCall from(String from) { this.from = from; return this; } /** * Returns from. *

* Field description: * Caller identifier. * * @return from */ @JsonProperty("from") public String getFrom() { return from; } /** * Sets from. *

* Field description: * Caller identifier. * * @param from */ @JsonProperty("from") public void setFrom(String from) { this.from = from; } /** * Sets endpoint. * * @param endpoint * @return This {@link CallsBulkCall instance}. */ public CallsBulkCall endpoint(CallsBulkEndpoint endpoint) { this.endpoint = endpoint; return this; } /** * Returns endpoint. * * @return endpoint */ @JsonProperty("endpoint") public CallsBulkEndpoint getEndpoint() { return endpoint; } /** * Sets endpoint. * * @param endpoint */ @JsonProperty("endpoint") public void setEndpoint(CallsBulkEndpoint endpoint) { this.endpoint = endpoint; } /** * Sets status. * * @param status * @return This {@link CallsBulkCall instance}. */ public CallsBulkCall status(CallsActionStatus status) { this.status = status; return this; } /** * Returns status. * * @return status */ @JsonProperty("status") public CallsActionStatus getStatus() { return status; } /** * Sets status. * * @param status */ @JsonProperty("status") public void setStatus(CallsActionStatus status) { this.status = status; } /** * Sets reason. *

* Field description: * Failure reason in human-readable format. * * @param reason * @return This {@link CallsBulkCall instance}. */ public CallsBulkCall reason(String reason) { this.reason = reason; return this; } /** * Returns reason. *

* Field description: * Failure reason in human-readable format. * * @return reason */ @JsonProperty("reason") public String getReason() { return reason; } /** * Sets reason. *

* Field description: * Failure reason in human-readable format. * * @param reason */ @JsonProperty("reason") public void setReason(String reason) { this.reason = reason; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } CallsBulkCall callsBulkCall = (CallsBulkCall) o; return Objects.equals(this.callsConfigurationId, callsBulkCall.callsConfigurationId) && Objects.equals(this.platform, callsBulkCall.platform) && Objects.equals(this.callId, callsBulkCall.callId) && Objects.equals(this.externalId, callsBulkCall.externalId) && Objects.equals(this.from, callsBulkCall.from) && Objects.equals(this.endpoint, callsBulkCall.endpoint) && Objects.equals(this.status, callsBulkCall.status) && Objects.equals(this.reason, callsBulkCall.reason); } @Override public int hashCode() { return Objects.hash(callsConfigurationId, platform, callId, externalId, from, endpoint, status, reason); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class CallsBulkCall {") .append(newLine) .append(" callsConfigurationId: ") .append(toIndentedString(callsConfigurationId)) .append(newLine) .append(" platform: ") .append(toIndentedString(platform)) .append(newLine) .append(" callId: ") .append(toIndentedString(callId)) .append(newLine) .append(" externalId: ") .append(toIndentedString(externalId)) .append(newLine) .append(" from: ") .append(toIndentedString(from)) .append(newLine) .append(" endpoint: ") .append(toIndentedString(endpoint)) .append(newLine) .append(" status: ") .append(toIndentedString(status)) .append(newLine) .append(" reason: ") .append(toIndentedString(reason)) .append(newLine) .append("}") .toString(); } private String toIndentedString(Object o) { if (o == null) { return "null"; } String lineSeparator = System.lineSeparator(); String lineSeparatorFollowedByIndentation = lineSeparator + " "; return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy