Class CreateOrReplaceRelationshipOptions

java.lang.Object
com.azure.digitaltwins.core.models.CreateOrReplaceRelationshipOptions

public final class CreateOrReplaceRelationshipOptions extends Object
  • Constructor Details

    • CreateOrReplaceRelationshipOptions

      public CreateOrReplaceRelationshipOptions()
  • Method Details

    • getIfNoneMatch

      public String getIfNoneMatch()
      Get the ifNoneMatch property If-Non-Match header makes the request method conditional on a recipient cache or origin server either not having any current representation of the target resource. Acceptable values are null or "*". If IfNonMatch option is null the service will replace the existing entity with the new entity. If IfNonMatch option is "*" the service will reject the request if the entity already exists.
      Returns:
      the ifNoneMatch value.
    • setIfNoneMatch

      public CreateOrReplaceRelationshipOptions setIfNoneMatch(String ifNoneMatch)
      Set the ifNoneMatch property. If-Non-Match header makes the request method conditional on a recipient cache or origin server either not having any current representation of the target resource. Acceptable values are null or "*". If IfNonMatch option is null the service will replace the existing entity with the new entity. If IfNonMatch option is "*" the service will reject the request if the entity already exists.
      Parameters:
      ifNoneMatch - the ifNoneMatch value to set.
      Returns:
      the CreateOrReplaceRelationshipOptions object itself.