org.appng.api.rest.model

## Class Datasource

- java.lang.Object
- - org.appng.api.rest.model.Datasource

- All Implemented Interfaces:
    Serializable

      @Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
                 date="2023-03-20T12:57:47.319+01:00")
      public class Datasource
      extends Object
      implements Serializable

  A datasource, represented by either a page (of elements) or a single element.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `Datasource()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Datasource` | `addFieldsItem(Field fieldsItem)`
    `Datasource` | `addFiltersItem(Filter filtersItem)`
    `Datasource` | `addLinksItem(Link linksItem)`
    `Datasource` | `addMessagesItem(Message messagesItem)`
    `Datasource` | `addParametersItem(Parameter parametersItem)`
    `Datasource` | `addPermissionsItem(Permission permissionsItem)`
    `Datasource` | `element(Element element)`
    `boolean` | `equals(Object o)`
    `Datasource` | `fields(List<Field> fields)`
    `Datasource` | `filters(List<Filter> filters)`
    `Element` | `getElement()` A single element.
    `List<Field>` | `getFields()` A list of fields.
    `List<Filter>` | `getFilters()` A list of filters.
    `String` | `getId()` The unique ID of the datasource.
    `List<Link>` | `getLinks()` A list of links.
    `List<Message>` | `getMessages()` A list of messages.
    `Page` | `getPage()` A page of elements.
    `List<Parameter>` | `getParameters()` The parameters for the datasource.
    `List<Permission>` | `getPermissions()` The permissions for this datasource.
    `User` | `getUser()` The current user.
    `int` | `hashCode()`
    `Datasource` | `id(String id)`
    `Datasource` | `links(List<Link> links)`
    `Datasource` | `messages(List<Message> messages)`
    `Datasource` | `page(Page page)`
    `Datasource` | `parameters(List<Parameter> parameters)`
    `Datasource` | `permissions(List<Permission> permissions)`
    `void` | `setElement(Element element)`
    `void` | `setFields(List<Field> fields)`
    `void` | `setFilters(List<Filter> filters)`
    `void` | `setId(String id)`
    `void` | `setLinks(List<Link> links)`
    `void` | `setMessages(List<Message> messages)`
    `void` | `setPage(Page page)`
    `void` | `setParameters(List<Parameter> parameters)`
    `void` | `setPermissions(List<Permission> permissions)`
    `void` | `setUser(User user)`
    `String` | `toString()`
    `Datasource` | `user(User user)`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Datasource

          public Datasource()

  - ### Method Detail

    - #### id

          public Datasource id(String id)

    - #### getId

          public String getId()

      The unique ID of the datasource.
      Returns:
        id

    - #### setId

          public void setId(String id)

    - #### parameters

          public Datasource parameters(List<Parameter> parameters)

    - #### addParametersItem

          public Datasource addParametersItem(Parameter parametersItem)

    - #### getParameters

          public List<Parameter> getParameters()

      The parameters for the datasource.
      Returns:
        parameters

    - #### setParameters

          public void setParameters(List<Parameter> parameters)

    - #### user

          public Datasource user(User user)

    - #### getUser

          public User getUser()

      The current user.
      Returns:
        user

    - #### setUser

          public void setUser(User user)

    - #### links

          public Datasource links(List<Link> links)

    - #### addLinksItem

          public Datasource addLinksItem(Link linksItem)

    - #### getLinks

          public List<Link> getLinks()

      A list of links.
      Returns:
        links

    - #### setLinks

          public void setLinks(List<Link> links)

    - #### messages

          public Datasource messages(List<Message> messages)

    - #### addMessagesItem

          public Datasource addMessagesItem(Message messagesItem)

    - #### getMessages

          public List<Message> getMessages()

      A list of messages.
      Returns:
        messages

    - #### setMessages

          public void setMessages(List<Message> messages)

    - #### fields

          public Datasource fields(List<Field> fields)

    - #### addFieldsItem

          public Datasource addFieldsItem(Field fieldsItem)

    - #### getFields

          public List<Field> getFields()

      A list of fields.
      Returns:
        fields

    - #### setFields

          public void setFields(List<Field> fields)

    - #### filters

          public Datasource filters(List<Filter> filters)

    - #### addFiltersItem

          public Datasource addFiltersItem(Filter filtersItem)

    - #### getFilters

          public List<Filter> getFilters()

      A list of filters.
      Returns:
        filters

    - #### setFilters

          public void setFilters(List<Filter> filters)

    - #### page

          public Datasource page(Page page)

    - #### getPage

          public Page getPage()

      A page of elements.
      Returns:
        page

    - #### setPage

          public void setPage(Page page)

    - #### element

          public Datasource element(Element element)

    - #### getElement

          public Element getElement()

      A single element.
      Returns:
        element

    - #### setElement

          public void setElement(Element element)

    - #### permissions

          public Datasource permissions(List<Permission> permissions)

    - #### addPermissionsItem

          public Datasource addPermissionsItem(Permission permissionsItem)

    - #### getPermissions

          public List<Permission> getPermissions()

      The permissions for this datasource.
      Returns:
        permissions

    - #### setPermissions

          public void setPermissions(List<Permission> permissions)

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.