// ToPut produces a dynamodb.PutItemInput value based on configured builder
ToPut produces a dynamodb.PutItemInput value based on configured builder
// ToPut produces a dynamodb . PutItemInput value based on configured builder
func (s *Builder) ToPut(item interface{}) (dynamodb.PutItemInput, error) {
	if s.err != nil {
		return dynamodb.PutItemInput{}, s.err
	}
	var query dynamodb.PutItemInput
	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)
	}
	var err error
	query.Item, err = dynamodbattribute.MarshalMap(item)
	return query, err
}
func ( s * Builder ) ToPut ( item interface { } ) ( dynamodb . PutItemInput , error ) { if s . err != nil { return dynamodb . PutItemInput { } , s . err } var query dynamodb . PutItemInput 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 ) } var err error query . Item , err = dynamodbattribute . MarshalMap ( item ) return query , err }
ToPut produces a dynamodb.PutItemInput value based on configured builder
ToPut produces a dynamodb . PutItemInput value based on configured builder