Package io.moov.sdk.models.operations
Class CreateTransferResponse
- java.lang.Object
-
- io.moov.sdk.models.operations.CreateTransferResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCreateTransferResponse.Builder
-
Constructor Summary
Constructors Constructor Description CreateTransferResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)CreateTransferResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Optional<? extends CreatedTransfer> createdTransfer, java.util.Optional<? extends AsyncTransfer> asyncTransfer, java.util.Optional<? extends Transfer> transfer, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<AsyncTransfer>asyncTransfer()A transfer was successfully created but an error occurred while generating the synchronous response.static CreateTransferResponse.Builderbuilder()java.lang.StringcontentType()HTTP response content type for this operationjava.util.Optional<CreatedTransfer>createdTransfer()The request completed successfully.booleanequals(java.lang.Object o)inthashCode()java.util.Map<java.lang.String,java.util.List<java.lang.String>>headers()java.net.http.HttpResponse<java.io.InputStream>rawResponse()Raw HTTP response; suitable for custom response parsingintstatusCode()HTTP response status code for this operationjava.lang.StringtoString()java.util.Optional<Transfer>transfer()The transfer was created, but rail-specific details may not be available within the 15 second timeout window.CreateTransferResponsewithAsyncTransfer(AsyncTransfer asyncTransfer)A transfer was successfully created but an error occurred while generating the synchronous response.CreateTransferResponsewithAsyncTransfer(java.util.Optional<? extends AsyncTransfer> asyncTransfer)A transfer was successfully created but an error occurred while generating the synchronous response.CreateTransferResponsewithContentType(java.lang.String contentType)HTTP response content type for this operationCreateTransferResponsewithCreatedTransfer(CreatedTransfer createdTransfer)The request completed successfully.CreateTransferResponsewithCreatedTransfer(java.util.Optional<? extends CreatedTransfer> createdTransfer)The request completed successfully.CreateTransferResponsewithHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)CreateTransferResponsewithRawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)Raw HTTP response; suitable for custom response parsingCreateTransferResponsewithStatusCode(int statusCode)HTTP response status code for this operationCreateTransferResponsewithTransfer(Transfer transfer)The transfer was created, but rail-specific details may not be available within the 15 second timeout window.CreateTransferResponsewithTransfer(java.util.Optional<? extends Transfer> transfer)The transfer was created, but rail-specific details may not be available within the 15 second timeout window.
-
-
-
Constructor Detail
-
CreateTransferResponse
public CreateTransferResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Optional<? extends CreatedTransfer> createdTransfer, java.util.Optional<? extends AsyncTransfer> asyncTransfer, java.util.Optional<? extends Transfer> transfer, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
CreateTransferResponse
public CreateTransferResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
-
Method Detail
-
contentType
public java.lang.String contentType()
HTTP response content type for this operation- Specified by:
contentTypein interfaceResponse
-
statusCode
public int statusCode()
HTTP response status code for this operation- Specified by:
statusCodein interfaceResponse
-
rawResponse
public java.net.http.HttpResponse<java.io.InputStream> rawResponse()
Raw HTTP response; suitable for custom response parsing- Specified by:
rawResponsein interfaceResponse
-
createdTransfer
public java.util.Optional<CreatedTransfer> createdTransfer()
The request completed successfully.
-
asyncTransfer
public java.util.Optional<AsyncTransfer> asyncTransfer()
A transfer was successfully created but an error occurred while generating the synchronous response. The asynchronous response object will be returned.
-
transfer
public java.util.Optional<Transfer> transfer()
The transfer was created, but rail-specific details may not be available within the 15 second timeout window.
-
headers
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers()
-
builder
public static CreateTransferResponse.Builder builder()
-
withContentType
public CreateTransferResponse withContentType(java.lang.String contentType)
HTTP response content type for this operation
-
withStatusCode
public CreateTransferResponse withStatusCode(int statusCode)
HTTP response status code for this operation
-
withRawResponse
public CreateTransferResponse withRawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsing
-
withCreatedTransfer
public CreateTransferResponse withCreatedTransfer(CreatedTransfer createdTransfer)
The request completed successfully.
-
withCreatedTransfer
public CreateTransferResponse withCreatedTransfer(java.util.Optional<? extends CreatedTransfer> createdTransfer)
The request completed successfully.
-
withAsyncTransfer
public CreateTransferResponse withAsyncTransfer(AsyncTransfer asyncTransfer)
A transfer was successfully created but an error occurred while generating the synchronous response. The asynchronous response object will be returned.
-
withAsyncTransfer
public CreateTransferResponse withAsyncTransfer(java.util.Optional<? extends AsyncTransfer> asyncTransfer)
A transfer was successfully created but an error occurred while generating the synchronous response. The asynchronous response object will be returned.
-
withTransfer
public CreateTransferResponse withTransfer(Transfer transfer)
The transfer was created, but rail-specific details may not be available within the 15 second timeout window.
-
withTransfer
public CreateTransferResponse withTransfer(java.util.Optional<? extends Transfer> transfer)
The transfer was created, but rail-specific details may not be available within the 15 second timeout window.
-
withHeaders
public CreateTransferResponse withHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-