Class SendSmsResponse
- java.lang.Object
-
- pl.gsmservice.gateway.models.operations.SendSmsResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSendSmsResponse.Builder
-
Constructor Summary
Constructors Constructor Description SendSmsResponse(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)SendSmsResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Optional<? extends java.util.List<Message>> messages, 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 static SendSmsResponse.Builderbuilder()java.lang.StringcontentType()HTTP response content type for this operationbooleanequals(java.lang.Object o)inthashCode()java.util.Map<java.lang.String,java.util.List<java.lang.String>>headers()java.util.Optional<java.util.List<Message>>messages()The request was processed successfully.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()SendSmsResponsewithContentType(java.lang.String contentType)HTTP response content type for this operationSendSmsResponsewithHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)SendSmsResponsewithMessages(java.util.List<Message> messages)The request was processed successfully.SendSmsResponsewithMessages(java.util.Optional<? extends java.util.List<Message>> messages)The request was processed successfully.SendSmsResponsewithRawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)Raw HTTP response; suitable for custom response parsingSendSmsResponsewithStatusCode(int statusCode)HTTP response status code for this operation
-
-
-
Constructor Detail
-
SendSmsResponse
public SendSmsResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Optional<? extends java.util.List<Message>> messages, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
SendSmsResponse
public SendSmsResponse(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
-
messages
public java.util.Optional<java.util.List<Message>> messages()
The request was processed successfully. Please check statuses of particular messages in eachMessageobject.
-
headers
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers()
-
builder
public static SendSmsResponse.Builder builder()
-
withContentType
public SendSmsResponse withContentType(java.lang.String contentType)
HTTP response content type for this operation
-
withStatusCode
public SendSmsResponse withStatusCode(int statusCode)
HTTP response status code for this operation
-
withRawResponse
public SendSmsResponse withRawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsing
-
withMessages
public SendSmsResponse withMessages(java.util.List<Message> messages)
The request was processed successfully. Please check statuses of particular messages in eachMessageobject.
-
withMessages
public SendSmsResponse withMessages(java.util.Optional<? extends java.util.List<Message>> messages)
The request was processed successfully. Please check statuses of particular messages in eachMessageobject.
-
withHeaders
public SendSmsResponse 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
-
-