AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

The Amazon.DynamoDBv2.DocumentModel.NameBuilder class is responsible for building attribute names for DynamoDB expressions. It allows the creation of conditions based on attribute names and supports various comparison, logical, and function-based operations.

Inheritance Hierarchy

System.Object
  Amazon.DynamoDBv2.DocumentModel.OperandBuilder
    Amazon.DynamoDBv2.DocumentModel.NameBuilder

Namespace: Amazon.DynamoDBv2.DocumentModel
Assembly: AWSSDK.DynamoDBv2.dll
Version: 3.x.y.z

Syntax

C#
public class NameBuilder : OperandBuilder

The NameBuilder type exposes the following members

Methods

Note:

Asynchronous operations (methods ending with Async) in the table below are for .NET 4.7.2 or higher.

NameDescription
Public Method AttributeExists()

Creates a condition to check if the current attribute exists in the DynamoDB item.

Public Method AttributeNotExists()

Public Method AttributeType(DynamoDBAttributeType)

Creates a condition to check if the current attribute has a specific DynamoDB attribute type.

Public Method BeginsWith(DynamoDBEntry)

Creates a condition to check if the current attribute's value begins with a specified prefix.

Public Method Between(DynamoDBEntry, DynamoDBEntry)

Creates a condition to check if the current attribute's value is between two specified values.

Public Method Contains(DynamoDBEntry)

Creates a condition to check if the current attribute's value contains a specified substring or value.

Public Method Equal(DynamoDBEntry)

Creates an equal condition between the current attribute and the specified value.

Public Method GreaterThan(DynamoDBEntry)

Creates a greater-than condition between the current attribute and the specified value.

Public Method GreaterThanOrEqual(DynamoDBEntry)

Creates a greater-than-or-equal condition between the current attribute and the specified value.

Public Method IfNotExists(DynamoDBEntry)

Creates an "IfNotExists" operation for the current attribute, which sets the attribute to the specified value if it does not already exist.

Public Method In(DynamoDBEntry, DynamoDBEntry[])

Creates a condition to check if the current attribute's value is in a specified set of values.

Public Method LessThan(DynamoDBEntry)

Creates a less-than condition between the current attribute and the specified value.

Public Method LessThanOrEqual(DynamoDBEntry)

Creates a less-than-or-equal condition between the current attribute and the specified value.

Public Method ListAppend(DynamoDBEntry)

Creates a "ListAppend" operation for the current attribute, which appends the specified value to a list attribute.

Public Method Minus(DynamoDBEntry)

Creates a "Minus" operation for the current attribute, which subtracts the specified value from the attribute.

Public Method Static Method New(string)

Creates a new instance of the Amazon.DynamoDBv2.DocumentModel.NameBuilder class with the specified attribute name.

Public Method NotEqual(DynamoDBEntry)

Creates a not-equal condition between the current attribute and the specified value.

Public Method Plus(DynamoDBEntry)

Creates a "Plus" operation for the current attribute, which adds the specified value to the attribute.

Public Method WithName(string)

Adds an attribute name to the condition.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer