Package Avalara.SDK.model.EInvoicing.V1
Class HmacSignatureValue
- java.lang.Object
-
- Avalara.SDK.model.EInvoicing.V1.HmacSignatureValue
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.7.0") public class HmacSignatureValue extends Object
HmacSignatureValue
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHmacSignatureValue.AlgorithmEnumThe algorithm used to create the signature.static classHmacSignatureValue.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_ALGORITHMstatic StringSERIALIZED_NAME_VALUE
-
Constructor Summary
Constructors Constructor Description HmacSignatureValue()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HmacSignatureValuealgorithm(HmacSignatureValue.AlgorithmEnum algorithm)booleanequals(Object o)static HmacSignatureValuefromJson(String jsonString)Create an instance of HmacSignatureValue given an JSON stringHmacSignatureValue.AlgorithmEnumgetAlgorithm()The algorithm used to create the signature.StringgetValue()Signature of the message.inthashCode()voidsetAlgorithm(HmacSignatureValue.AlgorithmEnum algorithm)voidsetValue(String value)StringtoJson()Convert an instance of HmacSignatureValue to an JSON stringStringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues foundHmacSignatureValuevalue(String value)
-
-
-
Field Detail
-
SERIALIZED_NAME_ALGORITHM
public static final String SERIALIZED_NAME_ALGORITHM
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_VALUE
public static final String SERIALIZED_NAME_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
algorithm
public HmacSignatureValue algorithm(HmacSignatureValue.AlgorithmEnum algorithm)
-
getAlgorithm
@Nonnull public HmacSignatureValue.AlgorithmEnum getAlgorithm()
The algorithm used to create the signature.- Returns:
- algorithm
-
setAlgorithm
public void setAlgorithm(HmacSignatureValue.AlgorithmEnum algorithm)
-
value
public HmacSignatureValue value(String value)
-
setValue
public void setValue(String value)
-
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 HmacSignatureValue
-
fromJson
public static HmacSignatureValue fromJson(String jsonString) throws IOException
Create an instance of HmacSignatureValue given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of HmacSignatureValue
- Throws:
IOException- if the JSON string is invalid with respect to HmacSignatureValue
-
toJson
public String toJson()
Convert an instance of HmacSignatureValue to an JSON string- Returns:
- JSON string
-
-