Class GetMessagesResponse.Builder
- java.lang.Object
-
- pl.gsmservice.gateway.models.operations.GetMessagesResponse.Builder
-
- Enclosing class:
- GetMessagesResponse
public static final class GetMessagesResponse.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetMessagesResponsebuild()GetMessagesResponse.BuildercontentType(java.lang.String contentType)HTTP response content type for this operationGetMessagesResponse.Builderheaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)GetMessagesResponse.Buildermessages(java.util.List<Message> messages)The request was processed successfully.GetMessagesResponse.Buildermessages(java.util.Optional<? extends java.util.List<Message>> messages)The request was processed successfully.GetMessagesResponse.BuilderrawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)Raw HTTP response; suitable for custom response parsingGetMessagesResponse.BuilderstatusCode(int statusCode)HTTP response status code for this operation
-
-
-
Method Detail
-
contentType
public GetMessagesResponse.Builder contentType(java.lang.String contentType)
HTTP response content type for this operation
-
statusCode
public GetMessagesResponse.Builder statusCode(int statusCode)
HTTP response status code for this operation
-
rawResponse
public GetMessagesResponse.Builder rawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsing
-
messages
public GetMessagesResponse.Builder messages(java.util.List<Message> messages)
The request was processed successfully. Please check messages details inList<Message>elements returned inmessagesproperty.
-
messages
public GetMessagesResponse.Builder messages(java.util.Optional<? extends java.util.List<Message>> messages)
The request was processed successfully. Please check messages details inList<Message>elements returned inmessagesproperty.
-
headers
public GetMessagesResponse.Builder headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
build
public GetMessagesResponse build()
-
-