Class BatchCreateParams.OutputExpiresAfter
- 
                    
                    
- All Implemented Interfaces:
 
public final class BatchCreateParams.OutputExpiresAfterThe expiration policy for the output and/or error file that are generated for a batch.
 
- 
                
                    
                    
- 
                                
                            
                                
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBatchCreateParams.OutputExpiresAfter.BuilderA builder for OutputExpiresAfter.
 
- 
                                
                            
                                
Method Summary
Modifier and Type Method Description final JsonValue_anchor()Anchor timestamp after which the expiration policy applies. final Longseconds()The number of seconds after the anchor time that the file will expire. final JsonField<Long>_seconds()Returns the raw JSON value of seconds. final Map<String, JsonValue>_additionalProperties()final BatchCreateParams.OutputExpiresAfter.BuildertoBuilder()final BatchCreateParams.OutputExpiresAftervalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BatchCreateParams.OutputExpiresAfter.Builderbuilder()Returns a mutable builder for constructing an instance of OutputExpiresAfter. - 
                    
                    
                    
- 
                                
                            
                                
Method Detail
- 
                                        
_anchor
final JsonValue _anchor()
Anchor timestamp after which the expiration policy applies. Supported anchors:
created_at. Note that the anchor is the file creation time, not the time the batch is created.Expected to always return the following:
JsonValue.from("created_at")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
 
- 
                                        
seconds
final Long seconds()
The number of seconds after the anchor time that the file will expire. Must be between 3600 (1 hour) and 2592000 (30 days).
 
- 
                                        
_seconds
final JsonField<Long> _seconds()
Returns the raw JSON value of seconds.
Unlike seconds, this method doesn't throw if the JSON field has an unexpected type.
 
- 
                                        
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
 
- 
                                        
toBuilder
final BatchCreateParams.OutputExpiresAfter.Builder toBuilder()
 
- 
                                        
validate
final BatchCreateParams.OutputExpiresAfter validate()
 
- 
                                        
builder
final static BatchCreateParams.OutputExpiresAfter.Builder builder()
Returns a mutable builder for constructing an instance of OutputExpiresAfter.
The following fields are required:
.seconds() 
 - 
                                        
 
 - 
                                
                            
                                
 
 - 
                    
                    
                    
 
 -