Class ExpectedValue
- Namespace
- Amazon.DynamoDBv2.DocumentModel
- Assembly
- AWSSDK.DynamoDBv2.dll
Expected state of an attribute in DynamoDB. Exists cannot be set at the same time as Comparison and Values.
public class ExpectedValue
- Inheritance
-
ExpectedValue
- Inherited Members
Constructors
ExpectedValue(ScanOperator, params Primitive[])
Constructs an ExpectedValue with a given comparison and value(s).
public ExpectedValue(ScanOperator comparison, params Primitive[] values)
Parameters
comparisonScanOperatorvaluesPrimitive[]
ExpectedValue(bool)
Constructs an ExpectedValue with a given Exists value.
public ExpectedValue(bool exists)
Parameters
existsboolFlag whether the attribute should exist or not.
Properties
Comparison
Comparison operator for the expected value.
public ScanOperator Comparison { get; }
Property Value
Exists
Flag whether the attribute should exist or not.
public bool Exists { get; set; }
Property Value
Values
Values to compare the attribute against.
public List<Primitive> Values { get; }
Property Value
Methods
ToExpectedAttributeValue()
Converts this ExpectedValue instance to Amazon.DynamoDBv2.Model.ExpectedAttributeValue This call will use the conversion specified by AWSConfigs.DynamoDBConfig.ConversionSchema
public ExpectedAttributeValue ToExpectedAttributeValue()
Returns
- ExpectedAttributeValue
Amazon.DynamoDBv2.Model.ExpectedAttributeValue
ToExpectedAttributeValue(DynamoDBEntryConversion)
Converts this ExpectedValue instance to Amazon.DynamoDBv2.Model.ExpectedAttributeValue
public ExpectedAttributeValue ToExpectedAttributeValue(DynamoDBEntryConversion conversion)
Parameters
conversionDynamoDBEntryConversionConversion to use for converting .NET values to DynamoDB values.
Returns
- ExpectedAttributeValue
Amazon.DynamoDBv2.Model.ExpectedAttributeValue
ToExpectedAttributeValue(DynamoDBEntryConversion, bool)
Converts this ExpectedValue instance to Amazon.DynamoDBv2.Model.ExpectedAttributeValue
public ExpectedAttributeValue ToExpectedAttributeValue(DynamoDBEntryConversion conversion, bool isEmptyStringValueEnabled)
Parameters
conversionDynamoDBEntryConversionConversion to use for converting .NET values to DynamoDB values.
isEmptyStringValueEnabledbool
Returns
- ExpectedAttributeValue
Amazon.DynamoDBv2.Model.ExpectedAttributeValue