Class CreateList

java.lang.Object
co.permify.sdk.model.CreateList

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CreateList extends Object
A list creation expression. Lists may either be homogenous, e.g. `[1, 2, 3]`, or heterogeneous, e.g. `dyn([1, 'hello', 2.0])`
  • Field Details

  • Constructor Details

    • CreateList

      public CreateList()
  • Method Details

    • elements

      public CreateList elements(List<Expr> elements)
    • addElementsItem

      public CreateList addElementsItem(Expr elementsItem)
    • getElements

      @Nullable public List<Expr> getElements()
      The elements part of the list.
      Returns:
      elements
    • setElements

      public void setElements(List<Expr> elements)
    • optionalIndices

      public CreateList optionalIndices(List<Integer> optionalIndices)
    • addOptionalIndicesItem

      public CreateList addOptionalIndicesItem(Integer optionalIndicesItem)
    • getOptionalIndices

      @Nullable public List<Integer> getOptionalIndices()
      The indices within the elements list which are marked as optional elements. When an optional-typed value is present, the value it contains is included in the list. If the optional-typed value is absent, the list element is omitted from the CreateList result.
      Returns:
      optionalIndices
    • setOptionalIndices

      public void setOptionalIndices(List<Integer> optionalIndices)
    • equals

      public boolean equals(Object o)
      Return true if this CreateList object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toUrlQueryString

      public String toUrlQueryString()
      Convert the instance into URL query string.
      Returns:
      URL query string
    • toUrlQueryString

      public String toUrlQueryString(String prefix)
      Convert the instance into URL query string.
      Parameters:
      prefix - prefix of the query string
      Returns:
      URL query string