Class HasPayloadLinkResultItem

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class HasPayloadLinkResultItem
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “A class containing the result of HasPayloadLinks action.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • error

        protected String error
      • hasLink

        protected Boolean hasLink
      • payloadId

        protected String payloadId
      • sourcesNextLink

        protected String sourcesNextLink
    • Constructor Detail

      • HasPayloadLinkResultItem

        protected HasPayloadLinkResultItem()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getError

        public Optional<String> getError()
        “Exception information indicates if check for this item was successful or not. Empty string for no error.”
        Returns:
        property error
      • withError

        public HasPayloadLinkResultItem withError​(String error)
        Returns an immutable copy of this with just the error field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Exception information indicates if check for this item was successful or not. Empty string for no error.”

        Parameters:
        error - new value of error field (as defined in service metadata)
        Returns:
        immutable copy of this with just the error field changed
      • getHasLink

        public Optional<Boolean> getHasLink()
        “Indicate whether a payload has any link or not.”
        Returns:
        property hasLink
      • withHasLink

        public HasPayloadLinkResultItem withHasLink​(Boolean hasLink)
        Returns an immutable copy of this with just the hasLink field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Indicate whether a payload has any link or not.”

        Parameters:
        hasLink - new value of hasLink field (as defined in service metadata)
        Returns:
        immutable copy of this with just the hasLink field changed
      • getPayloadId

        public Optional<String> getPayloadId()
        “Key of the Payload, In the format of Guid.”
        Returns:
        property payloadId
      • withPayloadId

        public HasPayloadLinkResultItem withPayloadId​(String payloadId)
        Returns an immutable copy of this with just the payloadId field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Key of the Payload, In the format of Guid.”

        Parameters:
        payloadId - new value of payloadId field (as defined in service metadata)
        Returns:
        immutable copy of this with just the payloadId field changed
      • getSources

        public com.github.davidmoten.odata.client.CollectionPage<DeviceAndAppManagementAssignmentSource> getSources()
        “The reason where the link comes from.”
        Returns:
        property sources
      • getSources

        public com.github.davidmoten.odata.client.CollectionPage<DeviceAndAppManagementAssignmentSource> getSources​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The reason where the link comes from.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property sources
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
      • builder

        public static HasPayloadLinkResultItem.Builder builder()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class