Package dev.openfga.sdk.api.model
Class UnauthenticatedResponse
- java.lang.Object
-
- dev.openfga.sdk.api.model.UnauthenticatedResponse
-
public class UnauthenticatedResponse extends java.lang.Object
UnauthenticatedResponse
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
JSON_PROPERTY_CODE
static java.lang.String
JSON_PROPERTY_MESSAGE
-
Constructor Summary
Constructors Constructor Description UnauthenticatedResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnauthenticatedResponse
code(ErrorCode code)
boolean
equals(java.lang.Object o)
Return true if this UnauthenticatedResponse object is equal to o.ErrorCode
getCode()
Get codejava.lang.String
getMessage()
Get messageint
hashCode()
UnauthenticatedResponse
message(java.lang.String message)
void
setCode(ErrorCode code)
void
setMessage(java.lang.String message)
java.lang.String
toString()
java.lang.String
toUrlQueryString()
Convert the instance into URL query string.java.lang.String
toUrlQueryString(java.lang.String prefix)
Convert the instance into URL query string.
-
-
-
Field Detail
-
JSON_PROPERTY_CODE
public static final java.lang.String JSON_PROPERTY_CODE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_MESSAGE
public static final java.lang.String JSON_PROPERTY_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
code
public UnauthenticatedResponse code(ErrorCode code)
-
getCode
@Nullable public ErrorCode getCode()
Get code- Returns:
- code
-
setCode
public void setCode(ErrorCode code)
-
message
public UnauthenticatedResponse message(java.lang.String message)
-
getMessage
@Nullable public java.lang.String getMessage()
Get message- Returns:
- message
-
setMessage
public void setMessage(java.lang.String message)
-
equals
public boolean equals(java.lang.Object o)
Return true if this UnauthenticatedResponse object is equal to o.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toUrlQueryString
public java.lang.String toUrlQueryString()
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
public java.lang.String toUrlQueryString(java.lang.String prefix)
Convert the instance into URL query string.- Parameters:
prefix
- prefix of the query string- Returns:
- URL query string
-
-