Class DeliveryReportListRequestParameters.Builder
java.lang.Object
com.sinch.sdk.domains.sms.models.requests.DeliveryReportListRequestParameters.Builder
- Enclosing class:
DeliveryReportListRequestParameters
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setClientReference
(String clientReference) setEndDate
(Instant endDate) setPageSize
(Integer pageSize) setStartDate
(Instant startDate) setStatuses
(Collection<DeliveryReportStatus> statuses)
-
Method Details
-
setStartDate
- Parameters:
startDate
- Only list messages received at or after this date/time. Default: 24h ago- Returns:
- current builder
-
setEndDate
- Parameters:
endDate
- Only list messages received before this date/time.- Returns:
- current builder
-
setClientReference
- Parameters:
clientReference
- Client reference to include- Returns:
- current builder
-
setPage
- Parameters:
page
- The page number starting from 0.- Returns:
- current builder
-
setPageSize
- Parameters:
pageSize
- Determines the size of a page.- Returns:
- current builder
-
setStatuses
public DeliveryReportListRequestParameters.Builder setStatuses(Collection<DeliveryReportStatus> statuses) - Parameters:
statuses
- List of delivery report statuses to include- Returns:
- current builder
-
setCodes
public DeliveryReportListRequestParameters.Builder setCodes(Collection<DeliveryReportErrorCode> codes) - Parameters:
codes
- List of delivery receipt error codes to include- Returns:
- current builder
-
build
-