Class UpdateResourceRequest

    • Constructor Detail

      • UpdateResourceRequest

        public UpdateResourceRequest()
    • Method Detail

      • setRestApiId

        public void setRestApiId​(String restApiId)

        The RestApi identifier for the Resource resource.

        Parameters:
        restApiId - The RestApi identifier for the Resource resource.
      • withRestApiId

        public UpdateResourceRequest withRestApiId​(String restApiId)

        The RestApi identifier for the Resource resource.

        Parameters:
        restApiId - The RestApi identifier for the Resource resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setResourceId

        public void setResourceId​(String resourceId)

        The identifier of the Resource resource.

        Parameters:
        resourceId - The identifier of the Resource resource.
      • getResourceId

        public String getResourceId()

        The identifier of the Resource resource.

        Returns:
        The identifier of the Resource resource.
      • withResourceId

        public UpdateResourceRequest withResourceId​(String resourceId)

        The identifier of the Resource resource.

        Parameters:
        resourceId - The identifier of the Resource resource.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getPatchOperations

        public List<PatchOperation> getPatchOperations()

        A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

        Returns:
        A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
      • setPatchOperations

        public void setPatchOperations​(Collection<PatchOperation> patchOperations)

        A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

        Parameters:
        patchOperations - A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
      • withPatchOperations

        public UpdateResourceRequest withPatchOperations​(PatchOperation... patchOperations)

        A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

        NOTE: This method appends the values to the existing list (if any). Use setPatchOperations(java.util.Collection) or withPatchOperations(java.util.Collection) if you want to override the existing values.

        Parameters:
        patchOperations - A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withPatchOperations

        public UpdateResourceRequest withPatchOperations​(Collection<PatchOperation> patchOperations)

        A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.

        Parameters:
        patchOperations - A list of operations describing the updates to apply to the specified resource. The patches are applied in the order specified in the list.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object