Skip to content

User Defined Models

smehta-veeva edited this page Jun 9, 2021 · 1 revision

Example Settings

This UDM represents the Json field of a vSDK Setting record object from vault. It is defined as a User-defined model using the @UserDefinedModelInfo annotation.

@UserDefinedModelInfo()
public interface ExampleSettings extends UserDefinedModel

The values of Json field of the vSDK Setting record are defined as model properties using the @UserDefinedProperty annotation.

@UserDefinedProperty(name = "batch_size")
BigDecimal getBatchSize();
void setBatchSize(BigDecimal batchSize);

SettingRecordModel

This UDM represents a single vsdk_setting__c record from a remote vault. It is defined as a User-defined model using the @UserDefinedModelInfo annotation.

SettingQueryResponseModel

This UDM represents the VQL query response with data from Vault. It is defined as a User-defined model using the @UserDefinedModelInfo annotation. The include UserDefinedPropertyInclude.NON_NULL enum specifies that this field is included in the JSON only when not null.

@UserDefinedModelInfo(include = UserDefinedPropertyInclude.NON_NULL)
Clone this wiki locally