Package Avalara.SDK.model.A1099.V2
Class AuthorizedApiRequestModel
- java.lang.Object
-
- Avalara.SDK.model.A1099.V2.AuthorizedApiRequestModel
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class AuthorizedApiRequestModel extends Object
AuthorizedApiRequestModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAuthorizedApiRequestModel.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_PATHstatic StringSERIALIZED_NAME_TTL
-
Constructor Summary
Constructors Constructor Description AuthorizedApiRequestModel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static AuthorizedApiRequestModelfromJson(String jsonString)Create an instance of AuthorizedApiRequestModel given an JSON stringStringgetPath()The path and query of the API request you want to pre-authorize, omitting the leading /api/IntegergetTtl()Seconds until this AuthorizedApiRequest should expire, 3600 if omitted; values greater than 86400 will not be honoredinthashCode()AuthorizedApiRequestModelpath(String path)voidsetPath(String path)voidsetTtl(Integer ttl)StringtoJson()Convert an instance of AuthorizedApiRequestModel to an JSON stringStringtoString()AuthorizedApiRequestModelttl(Integer ttl)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_PATH
public static final String SERIALIZED_NAME_PATH
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TTL
public static final String SERIALIZED_NAME_TTL
- See Also:
- Constant Field Values
-
-
Method Detail
-
path
public AuthorizedApiRequestModel path(String path)
-
getPath
@Nullable public String getPath()
The path and query of the API request you want to pre-authorize, omitting the leading /api/- Returns:
- path
-
setPath
public void setPath(String path)
-
ttl
public AuthorizedApiRequestModel ttl(Integer ttl)
-
getTtl
@Nullable public Integer getTtl()
Seconds until this AuthorizedApiRequest should expire, 3600 if omitted; values greater than 86400 will not be honored- Returns:
- ttl
-
setTtl
public void setTtl(Integer ttl)
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to AuthorizedApiRequestModel
-
fromJson
public static AuthorizedApiRequestModel fromJson(String jsonString) throws IOException
Create an instance of AuthorizedApiRequestModel given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of AuthorizedApiRequestModel
- Throws:
IOException- if the JSON string is invalid with respect to AuthorizedApiRequestModel
-
toJson
public String toJson()
Convert an instance of AuthorizedApiRequestModel to an JSON string- Returns:
- JSON string
-
-