// ToUpdate produces a dynamodb.UpdateItemInput value based on configured builder
ToUpdate produces a dynamodb.UpdateItemInput value based on configured builder
// ToUpdate produces a dynamodb . UpdateItemInput value based on configured builder
func (s *Builder) ToUpdate() (dynamodb.UpdateItemInput, error) {
	if s.err != nil {
		return dynamodb.UpdateItemInput{}, s.err
	}
	var query dynamodb.UpdateItemInput
	if len(s.keys) > 0 {
		query.Key = s.keys
	}
	if s.updateExpression != "" {
		query.UpdateExpression = aws.String(s.updateExpression)
	}
	if s.conditionExpression != "" {
		query.ConditionExpression = aws.String(s.conditionExpression)
	}
	if len(s.cols) > 0 {
		query.ExpressionAttributeNames = s.cols
	}
	if len(s.vals) > 0 {
		query.ExpressionAttributeValues = s.vals
	}
	if s.table != "" {
		query.TableName = aws.String(s.table)
	}
	return query, nil
}
func ( s * Builder ) ToUpdate ( ) ( dynamodb . UpdateItemInput , error ) { if s . err != nil { return dynamodb . UpdateItemInput { } , s . err } var query dynamodb . UpdateItemInput if len ( s . keys ) > 0 { query . Key = s . keys } if s . updateExpression != " " { query . UpdateExpression = aws . String ( s . updateExpression ) } if s . conditionExpression != " " { query . ConditionExpression = aws . String ( s . conditionExpression ) } if len ( s . cols ) > 0 { query . ExpressionAttributeNames = s . cols } if len ( s . vals ) > 0 { query . ExpressionAttributeValues = s . vals } if s . table != " " { query . TableName = aws . String ( s . table ) } return query , nil }
ToUpdate produces a dynamodb.UpdateItemInput value based on configured builder
ToUpdate produces a dynamodb . UpdateItemInput value based on configured builder