Class CreateList

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.14.0") 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(@Nullable List<Object> elements)
    • addElementsItem

      public CreateList addElementsItem(Object elementsItem)
    • getElements

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

      public void setElements(@Nullable List<Object> elements)
    • optionalIndices

      public CreateList optionalIndices(@Nullable 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(@Nullable 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