java.lang.Object
java.lang.Record
tech.deplant.java4ever.framework.Sdk
public record Sdk(tech.deplant.java4ever.binding.Context context, long debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, ExplorerConfig explorerConfig, EnvironmentConfig environmentConfig)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSdk(tech.deplant.java4ever.binding.Context context, long debugTreeTimeout, tech.deplant.java4ever.binding.Client.ClientConfig clientConfig, ExplorerConfig explorerConfig, EnvironmentConfig environmentConfig) Creates an instance of aSdkrecord class. -
Method Summary
Modifier and TypeMethodDescriptiontech.deplant.java4ever.binding.Client.ClientConfigReturns the value of theclientConfigrecord component.tech.deplant.java4ever.binding.Contextcontext()Returns the value of thecontextrecord component.longReturns the value of thedebugTreeTimeoutrecord component.String[]Returns the value of theenvironmentConfigrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexplorerConfigrecord component.final inthashCode()Returns a hash code value for this object.com.fasterxml.jackson.databind.ObjectMappermapper()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, long 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
-
endpoints
-
version
- Throws:
tech.deplant.java4ever.binding.EverSdkException
-
mapper
public com.fasterxml.jackson.databind.ObjectMapper mapper() -
saveContract
- Throws:
IOException
-
saveKeys
- Throws:
IOException
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
context
public tech.deplant.java4ever.binding.Context context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
debugTreeTimeout
public long 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
-