Interface ObjectMetadataRequest.Builder

Enclosing interface:
ObjectMetadataRequest

public static interface ObjectMetadataRequest.Builder
Creates an instance of ObjectMetadataRequest.
  • Method Details

    • withObjectName

      ObjectMetadataRequest.Builder withObjectName(String objectName)
      Optional: Sets the object name. Request must include either an object name or an object prefix, but not both. If both are provided, only the object name will be used.
      Parameters:
      objectName - name of the object to retrieve metadata of. Cannot be null or empty. Object must exist. For example, product__v.
      Returns:
      this ObjectMetadataRequest.Builder
    • withObjectPrefix

      ObjectMetadataRequest.Builder withObjectPrefix(String objectPrefix)
      Optional: Sets the object prefix. Request must include either an object name or an object prefix, but not both. If both are provided, only the object name will be used.
      Parameters:
      objectPrefix - prefix of the object to retrieve metadata of. Cannot be null or empty. Object must exist. For example, 00P.
      Returns:
      this ObjectMetadataRequest.Builder
    • build

      Validates and retrieves a completed ObjectMetadataRequest.
      Returns:
      this completed ObjectMetadataRequest