java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.Sdk
public record Sdk(tech.deplant.java4ever.binding.Context context, Integer debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, ExplorerConfig explorerConfig, EnvironmentConfig environmentConfig)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSdk(tech.deplant.java4ever.binding.Context context, Integer debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, ExplorerConfig explorerConfig, EnvironmentConfig environmentConfig) Creates an instance of aSdkrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Sdk.Builderbuilder()tech.deplant.java4ever.binding.Client.ClientConfigReturns the value of theclientConfigrecord component.tech.deplant.java4ever.binding.Contextcontext()Returns the value of thecontextrecord component.<T> TconvertMap(Map<String, Object> inputMap, Class<T> outputClass) Returns the value of thedebugTreeTimeoutrecord component.<T> Tdeserialize(String inputString, Class<T> outputClass) String[]Returns the value of theenvironmentConfigrecord component.final booleanIndicates whether some other object is "equal to" this one.tech.deplant.java4ever.binding.Tvm.ExecutionOptionsReturns the value of theexplorerConfigrecord component.final inthashCode()Returns a hash code value for this object.com.fasterxml.jackson.databind.JsonNodeparseStruct(Object struct) voidsaveContract(String name, OwnedContract contract) voidsaveKeys(String name, Credentials keys) final StringtoString()Returns a string representation of this record class.version()
-
Constructor Details
-
Sdk
public Sdk(tech.deplant.java4ever.binding.Context context, Integer debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, ExplorerConfig explorerConfig, EnvironmentConfig environmentConfig) Creates an instance of aSdkrecord class.- Parameters:
context- the value for thecontextrecord componentdebugTreeTimeout- the value for thedebugTreeTimeoutrecord componentclientConfig- the value for theclientConfigrecord componentexplorerConfig- the value for theexplorerConfigrecord componentenvironmentConfig- the value for theenvironmentConfigrecord component
-
-
Method Details
-
builder
-
endpoints
-
version
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
convertMap
-
parseStruct
public com.fasterxml.jackson.databind.JsonNode parseStruct(Object struct) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
deserialize
public <T> T deserialize(String inputString, Class<T> outputClass) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
serialize
public String serialize(Object inputObject) throws com.fasterxml.jackson.core.JsonProcessingException - Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
saveContract
- Throws:
IOException
-
saveKeys
- Throws:
IOException
-
executionOptions
public tech.deplant.java4ever.binding.Tvm.ExecutionOptions executionOptions() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
context
public tech.deplant.java4ever.binding.Context context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
debugTreeTimeout
Returns the value of thedebugTreeTimeoutrecord component.- Returns:
- the value of the
debugTreeTimeoutrecord component
-
clientConfig
public tech.deplant.java4ever.binding.Client.ClientConfig clientConfig()Returns the value of theclientConfigrecord component.- Returns:
- the value of the
clientConfigrecord component
-
explorerConfig
Returns the value of theexplorerConfigrecord component.- Returns:
- the value of the
explorerConfigrecord component
-
environmentConfig
Returns the value of theenvironmentConfigrecord component.- Returns:
- the value of the
environmentConfigrecord component
-