Class ChangeSetOperation
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ChangeSetOperation.Builder,ChangeSetOperation>
One operation of a change set. Exactly one member is set. CreateChangeSet takes it as the operation to
write, ListChangeSetOperations returns it, and UpdateChangeSet takes it to name an
operation to remove. Operation values are customer content. A member set beside an unknown one is used and the
unknown one is ignored, as an authorization member is ignored. An item with no member set, or two, is
refused with ValidationException. A client built from an older model receives a member it does not know
as an unknown member.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic enum -
Method Summary
Modifier and TypeMethodDescriptionstatic ChangeSetOperation.Builderbuilder()final DeleteOperationdelete()Removes a node or edge.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.static ChangeSetOperationfromDelete(Consumer<DeleteOperation.Builder> delete) Create an instance of this class withdelete()initialized to the given value.static ChangeSetOperationfromDelete(DeleteOperation delete) Create an instance of this class withdelete()initialized to the given value.static ChangeSetOperationCreate an instance of this class withput()initialized to the given value.static ChangeSetOperationfromPut(PutOperation put) Create an instance of this class withput()initialized to the given value.static ChangeSetOperationfromUpdate(Consumer<UpdateOperation.Builder> update) Create an instance of this class withupdate()initialized to the given value.static ChangeSetOperationfromUpdate(UpdateOperation update) Create an instance of this class withupdate()initialized to the given value.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final PutOperationput()Writes a node or edge in full.static Class<? extends ChangeSetOperation.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.type()Retrieve an enum value representing which member of this object is populated.final UpdateOperationupdate()Changes the properties of a node or edge.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
put
Writes a node or edge in full. Creates it if it does not exist.
- Returns:
- Writes a node or edge in full. Creates it if it does not exist.
-
update
Changes the properties of a node or edge. Like
put, it creates a node that doesn't exist, and every reader of the agent context can read the node unless the request specifiesaccessControlConfig.- Returns:
- Changes the properties of a node or edge. Like
put, it creates a node that doesn't exist, and every reader of the agent context can read the node unless the request specifiesaccessControlConfig.
-
delete
Removes a node or edge. A deleted node takes its unowned edges.
- Returns:
- Removes a node or edge. A deleted node takes its unowned edges.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ChangeSetOperation.Builder,ChangeSetOperation> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
fromPut
Create an instance of this class withput()initialized to the given value.Writes a node or edge in full. Creates it if it does not exist.
- Parameters:
put- Writes a node or edge in full. Creates it if it does not exist.
-
fromPut
Create an instance of this class withput()initialized to the given value.Writes a node or edge in full. Creates it if it does not exist.
- Parameters:
put- Writes a node or edge in full. Creates it if it does not exist.
-
fromUpdate
Create an instance of this class withupdate()initialized to the given value.Changes the properties of a node or edge. Like
put, it creates a node that doesn't exist, and every reader of the agent context can read the node unless the request specifiesaccessControlConfig.- Parameters:
update- Changes the properties of a node or edge. Likeput, it creates a node that doesn't exist, and every reader of the agent context can read the node unless the request specifiesaccessControlConfig.
-
fromUpdate
Create an instance of this class withupdate()initialized to the given value.Changes the properties of a node or edge. Like
put, it creates a node that doesn't exist, and every reader of the agent context can read the node unless the request specifiesaccessControlConfig.- Parameters:
update- Changes the properties of a node or edge. Likeput, it creates a node that doesn't exist, and every reader of the agent context can read the node unless the request specifiesaccessControlConfig.
-
fromDelete
Create an instance of this class withdelete()initialized to the given value.Removes a node or edge. A deleted node takes its unowned edges.
- Parameters:
delete- Removes a node or edge. A deleted node takes its unowned edges.
-
fromDelete
Create an instance of this class withdelete()initialized to the given value.Removes a node or edge. A deleted node takes its unowned edges.
- Parameters:
delete- Removes a node or edge. A deleted node takes its unowned edges.
-
type
Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will beChangeSetOperation.Type.UNKNOWN_TO_SDK_VERSIONif the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will beChangeSetOperation.Type.UNKNOWN_TO_SDK_VERSIONif zero members are set, andnullif more than one member is set. -
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-