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