Class PingResponse
- java.lang.Object
-
- pl.gsmservice.gateway.models.operations.async.PingResponse
-
- All Implemented Interfaces:
AsyncResponse
public class PingResponse extends java.lang.Object implements AsyncResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPingResponse.Builder
-
Constructor Summary
Constructors Constructor Description PingResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<Blob> rawResponse)PingResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<Blob> rawResponse, java.util.Optional<? extends PingResponse> pingResponse)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PingResponse.Builderbuilder()java.lang.StringcontentType()HTTP response content type for this operationbooleanequals(java.lang.Object o)inthashCode()java.util.Optional<PingResponse>pingResponse()API service is availablejava.net.http.HttpResponse<Blob>rawResponse()Raw HTTP response; suitable for custom response parsingintstatusCode()HTTP response status code for this operationjava.lang.StringtoString()PingResponsewithContentType(java.lang.String contentType)HTTP response content type for this operationPingResponsewithPingResponse(java.util.Optional<? extends PingResponse> pingResponse)API service is availablePingResponsewithPingResponse(PingResponse pingResponse)API service is availablePingResponsewithRawResponse(java.net.http.HttpResponse<Blob> rawResponse)Raw HTTP response; suitable for custom response parsingPingResponsewithStatusCode(int statusCode)HTTP response status code for this operation
-
-
-
Constructor Detail
-
PingResponse
public PingResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<Blob> rawResponse, java.util.Optional<? extends PingResponse> pingResponse)
-
PingResponse
public PingResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<Blob> rawResponse)
-
-
Method Detail
-
contentType
public java.lang.String contentType()
HTTP response content type for this operation- Specified by:
contentTypein interfaceAsyncResponse
-
statusCode
public int statusCode()
HTTP response status code for this operation- Specified by:
statusCodein interfaceAsyncResponse
-
rawResponse
public java.net.http.HttpResponse<Blob> rawResponse()
Raw HTTP response; suitable for custom response parsing- Specified by:
rawResponsein interfaceAsyncResponse
-
pingResponse
public java.util.Optional<PingResponse> pingResponse()
API service is available
-
builder
public static PingResponse.Builder builder()
-
withContentType
public PingResponse withContentType(java.lang.String contentType)
HTTP response content type for this operation
-
withStatusCode
public PingResponse withStatusCode(int statusCode)
HTTP response status code for this operation
-
withRawResponse
public PingResponse withRawResponse(java.net.http.HttpResponse<Blob> rawResponse)
Raw HTTP response; suitable for custom response parsing
-
withPingResponse
public PingResponse withPingResponse(PingResponse pingResponse)
API service is available
-
withPingResponse
public PingResponse withPingResponse(java.util.Optional<? extends PingResponse> pingResponse)
API service is available
-
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
-
-