Specifies the conditions under which data should be updated. If an update condition is specified for a request, the data will only be updated if the condition is satisfied. For example, if an attribute with a specific name and value exists, or if a specific attribute doesn't exist.

Ejemplo n.º 1
0
 /// <summary>
 /// Instantiates PutAttributesRequest with the parameterized properties
 /// </summary>
 /// <param name="domainName">The name of the domain in which to perform the operation.</param>
 /// <param name="itemName">The name of the item.</param>
 /// <param name="attributes">The list of attributes.</param>
 /// <param name="expected">The update condition which, if specified, determines whether the specified attributes will be updated or not. The update condition must be satisfied in order for this request to be processed and the attributes to be updated.</param>
 public PutAttributesRequest(string domainName, string itemName, List <ReplaceableAttribute> attributes, UpdateCondition expected)
 {
     _domainName = domainName;
     _itemName   = itemName;
     _attributes = attributes;
     _expected   = expected;
 }
 public DeleteAttributesRequest WithExpected(UpdateCondition expected)
 {
     this.expectedField = expected;
     return(this);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Instantiates DeleteAttributesRequest with the parameterized properties
 /// </summary>
 /// <param name="domainName">The name of the domain in which to perform the operation.</param>
 /// <param name="itemName">The name of the item. Similar to rows on a spreadsheet, items represent individual objects that contain one or more value-attribute pairs.</param>
 /// <param name="attributes">A list of Attributes. Similar to columns on a spreadsheet, attributes represent categories of data that can be assigned to items.</param>
 /// <param name="expected">The update condition which, if specified, determines whether the specified attributes will be deleted or not. The update condition must be satisfied in order for this request to be processed and the attributes to be deleted.</param>
 public DeleteAttributesRequest(string domainName, string itemName, List<Attribute> attributes, UpdateCondition expected)
 {
     _domainName = domainName;
     _itemName = itemName;
     _attributes = attributes;
     _expected = expected;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Sets the Expected property
 /// </summary>
 /// <param name="expected">Performs the operation if the specified attribute name and value match.</param>
 /// <returns>this instance</returns>
 public DeleteAttributesRequest WithExpected(UpdateCondition expected)
 {
     this.expectedField = expected;
     return this;
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Sets the Expected property
 /// </summary>
 /// <param name="expected">Performs the operation if the specified attribute name and value match.</param>
 /// <returns>this instance</returns>
 public PutAttributesRequest WithExpected(UpdateCondition expected)
 {
     this.expected = expected;
     return(this);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Sets the Expected property
 /// </summary>
 /// <param name="expected">Performs the operation if the specified attribute name and value match.</param>
 /// <returns>this instance</returns>
 public PutAttributesRequest WithExpected(UpdateCondition expected)
 {
     this.expected = expected;
     return this;
 }