public interface SampleDataResult
| Modifier and Type | Method and Description |
|---|---|
Optional<SampleDataFailure> |
getFailure() |
Optional<Message> |
getSampleData() |
default boolean |
isSuccess() |
static SampleDataResult |
resultFrom(Message message)
Creates a new
SampleDataResult with a successful result containing the resolved sample data. |
static SampleDataResult |
resultFrom(SampleDataFailure failure)
Creates a new
SampleDataResult with a failure result containing the associated failure |
static SampleDataResult resultFrom(Message message)
SampleDataResult with a successful result containing the resolved sample data.message - The resolved with the sample dataSampleDataResult with the resolved sample data.static SampleDataResult resultFrom(SampleDataFailure failure)
SampleDataResult with a failure result containing the associated failurefailure - The generated failure occurred trying to resolve the sample dataSampleDataResult with the SampleDataFailureOptional<SampleDataFailure> getFailure()
default boolean isSuccess()
Copyright © 2025 MuleSoft, Inc.. All rights reserved.