Interface PutOperation.Builder

  • Method Details

    • entity

      PutOperation.Builder entity(Entity entity)

      Names the edge to write in entity.edgeId. Required for an edge. Omit it to write a node: a node's ID comes from its properties, so AWS Context ignores entity.nodeId. ListChangeSetOperations returns a node put's entity.nodeId as a placeholder of the form ~operations/<index>, which isn't the node's ID in the agent context.

      Parameters:
      entity - Names the edge to write in entity.edgeId. Required for an edge. Omit it to write a node: a node's ID comes from its properties, so AWS Context ignores entity.nodeId. ListChangeSetOperations returns a node put's entity.nodeId as a placeholder of the form ~operations/<index>, which isn't the node's ID in the agent context.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • entity

      default PutOperation.Builder entity(Consumer<Entity.Builder> entity)

      Names the edge to write in entity.edgeId. Required for an edge. Omit it to write a node: a node's ID comes from its properties, so AWS Context ignores entity.nodeId. ListChangeSetOperations returns a node put's entity.nodeId as a placeholder of the form ~operations/<index>, which isn't the node's ID in the agent context.

      This is a convenience method that creates an instance of the Entity.Builder avoiding the need to create one manually via Entity.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to entity(Entity).

      Parameters:
      entity - a consumer that will call methods on Entity.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • properties

      PutOperation.Builder properties(Map<String,AnyValue> properties)

      Up to 50 properties. {} when there are none. A node requires nodeType. An edge requires edgeType. ListChangeSetOperations returns the operation's properties as stored, plus edgeType on an edge and the recorded nodeType / nodeName on a node (a written nodeType, or a name under nodeName, name, title or displayName, wins), in key order after those. AWS Context doesn't list stored keys that aren't customer content (aws:*, ~*, and an edge's identity keys), or a property cut by the 50-entry cap. UpdateChangeSet cannot remove such an item.

      Parameters:
      properties - Up to 50 properties. {} when there are none. A node requires nodeType. An edge requires edgeType. ListChangeSetOperations returns the operation's properties as stored, plus edgeType on an edge and the recorded nodeType / nodeName on a node (a written nodeType, or a name under nodeName, name, title or displayName, wins), in key order after those. AWS Context doesn't list stored keys that aren't customer content ( aws:*, ~*, and an edge's identity keys), or a property cut by the 50-entry cap. UpdateChangeSet cannot remove such an item.
      Returns:
      Returns a reference to this object so that method calls can be chained together.