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

com.sinch.sdk.domains.numbers.models.v1.ScheduledSmsProvisioning Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/*
 * Numbers | Sinch
 *
 * OpenAPI document version: 1.0.2
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * Do not edit the class manually.
 */

package com.sinch.sdk.domains.numbers.models.v1;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import java.time.Instant;
import java.util.List;

/**
 * Represents the ongoing or failed scheduled provisioning job. This field will be empty if both the
 * was successfully provisioned into the SMS platform and linked to the 10DLC campaign.
 */
@JsonDeserialize(builder = ScheduledSmsProvisioningImpl.Builder.class)
public interface ScheduledSmsProvisioning {

  /**
   * The SMS service plan that the scheduled provisioning job will configured with the number.
   *
   * @return servicePlanId
   * @readOnly This field is returned by the server and cannot be modified
   */
  String getServicePlanId();

  /**
   * TCR campaign ID that the scheduled provisioning job will configure with the number.
   *
   * @return campaignId
   * @readOnly This field is returned by the server and cannot be modified
   */
  String getCampaignId();

  /**
   * Get status
   *
   * @return status
   */
  ProvisioningStatus getStatus();

  /**
   * Timestamp when the status was last updated.
   *
   * @return lastUpdatedTime
   * @readOnly This field is returned by the server and cannot be modified
   */
  Instant getLastUpdatedTime();

  /**
   * Get errorCodes
   *
   * @return errorCodes
   * @readOnly This field is returned by the server and cannot be modified
   */
  List getErrorCodes();

  /**
   * Getting builder
   *
   * @return New Builder instance
   */
  static Builder builder() {
    return new ScheduledSmsProvisioningImpl.Builder();
  }

  /** Dedicated Builder */
  interface Builder {

    /**
     * see getter
     *
     * @param servicePlanId see getter
     * @return Current builder
     * @see #getServicePlanId
     * @readOnly This field is returned by the server and cannot be modified
     */
    Builder setServicePlanId(String servicePlanId);

    /**
     * see getter
     *
     * @param campaignId see getter
     * @return Current builder
     * @see #getCampaignId
     * @readOnly This field is returned by the server and cannot be modified
     */
    Builder setCampaignId(String campaignId);

    /**
     * see getter
     *
     * @param status see getter
     * @return Current builder
     * @see #getStatus
     */
    Builder setStatus(ProvisioningStatus status);

    /**
     * see getter
     *
     * @param lastUpdatedTime see getter
     * @return Current builder
     * @see #getLastUpdatedTime
     * @readOnly This field is returned by the server and cannot be modified
     */
    Builder setLastUpdatedTime(Instant lastUpdatedTime);

    /**
     * see getter
     *
     * @param errorCodes see getter
     * @return Current builder
     * @see #getErrorCodes
     * @readOnly This field is returned by the server and cannot be modified
     */
    Builder setErrorCodes(List errorCodes);

    /**
     * Create instance
     *
     * @return The instance build with current builder values
     */
    ScheduledSmsProvisioning build();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy