Package Avalara.SDK.model.EInvoicing.V1
Class SignatureSignature
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.SignatureSignature
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class SignatureSignature extends Object
SignatureSignature
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSignatureSignature.AlgorithmEnumHMAC algorithm for authenticationstatic classSignatureSignature.CustomTypeAdapterFactorystatic classSignatureSignature.TypeEnumGets or Sets type
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ALGORITHMstatic StringSERIALIZED_NAME_KEYstatic StringSERIALIZED_NAME_TYPE
-
Constructor Summary
Constructors Constructor Description SignatureSignature()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SignatureSignaturealgorithm(SignatureSignature.AlgorithmEnum algorithm)booleanequals(Object o)static SignatureSignaturefromJson(String jsonString)Create an instance of SignatureSignature given an JSON stringSignatureSignature.AlgorithmEnumgetAlgorithm()HMAC algorithm for authenticationStringgetKey()HMAC key for authenticationSignatureSignature.TypeEnumgetType()Get typeinthashCode()SignatureSignaturekey(String key)voidsetAlgorithm(SignatureSignature.AlgorithmEnum algorithm)voidsetKey(String key)voidsetType(SignatureSignature.TypeEnum type)StringtoJson()Convert an instance of SignatureSignature to an JSON stringStringtoString()SignatureSignaturetype(SignatureSignature.TypeEnum type)static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_KEY
public static final String SERIALIZED_NAME_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALGORITHM
public static final String SERIALIZED_NAME_ALGORITHM
- See Also:
- Constant Field Values
-
-
Method Detail
-
type
public SignatureSignature type(SignatureSignature.TypeEnum type)
-
getType
@Nonnull public SignatureSignature.TypeEnum getType()
Get type- Returns:
- type
-
setType
public void setType(SignatureSignature.TypeEnum type)
-
key
public SignatureSignature key(String key)
-
setKey
public void setKey(String key)
-
algorithm
public SignatureSignature algorithm(SignatureSignature.AlgorithmEnum algorithm)
-
getAlgorithm
@Nonnull public SignatureSignature.AlgorithmEnum getAlgorithm()
HMAC algorithm for authentication- Returns:
- algorithm
-
setAlgorithm
public void setAlgorithm(SignatureSignature.AlgorithmEnum algorithm)
-
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 SignatureSignature
-
fromJson
public static SignatureSignature fromJson(String jsonString) throws IOException
Create an instance of SignatureSignature given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SignatureSignature
- Throws:
IOException- if the JSON string is invalid with respect to SignatureSignature
-
toJson
public String toJson()
Convert an instance of SignatureSignature to an JSON string- Returns:
- JSON string
-
-