Interface TypeImportRequest

All Superinterfaces:
ImportRequest

public interface TypeImportRequest extends ImportRequest

The request body to import Types. Contains data for Types to be created or updated in a Project.


Example to create an instance using the builder pattern

     TypeImportRequest typeImportRequest = TypeImportRequest.builder()
             .plusResources(resourcesBuilder -> resourcesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getResources

      @NotNull @Valid @NotNull @Valid List<TypeImport> getResources()

      The type import resources of this request.

      Returns:
      resources
    • setResources

      void setResources(TypeImport... resources)

      The type import resources of this request.

      Parameters:
      resources - values to be set
    • setResources

      void setResources(List<TypeImport> resources)

      The type import resources of this request.

      Parameters:
      resources - values to be set
    • of

      static TypeImportRequest of()
      factory method
      Returns:
      instance of TypeImportRequest
    • of

      static TypeImportRequest of(TypeImportRequest template)
      factory method to create a shallow copy TypeImportRequest
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of TypeImportRequest
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static TypeImportRequestBuilder builder()
      builder factory method for TypeImportRequest
      Returns:
      builder
    • builder

      static TypeImportRequestBuilder builder(TypeImportRequest template)
      create builder for TypeImportRequest instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withTypeImportRequest

      default <T> T withTypeImportRequest(Function<TypeImportRequest,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<TypeImportRequest> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference