public static class StartSqlTuningTaskDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
public StartSqlTuningTaskDetails.Builder taskName(String taskName)
The name of the SQL tuning task. The name is unique per user in a database, and it is case-sensitive.
taskName
- the value to setpublic StartSqlTuningTaskDetails.Builder taskDescription(String taskDescription)
The description of the SQL tuning task.
taskDescription
- the value to setpublic StartSqlTuningTaskDetails.Builder credentialDetails(SqlTuningTaskCredentialDetails credentialDetails)
public StartSqlTuningTaskDetails.Builder databaseCredential(DatabaseCredentialDetails databaseCredential)
public StartSqlTuningTaskDetails.Builder totalTimeLimitInMinutes(Integer totalTimeLimitInMinutes)
The time limit for running the SQL tuning task.
totalTimeLimitInMinutes
- the value to setpublic StartSqlTuningTaskDetails.Builder scope(StartSqlTuningTaskDetails.Scope scope)
The scope for the SQL tuning task. For LIMITED scope, the SQL profile recommendation is excluded, so the task is executed faster. For COMPREHENSIVE scope, the SQL profile recommendation is included.
scope
- the value to setpublic StartSqlTuningTaskDetails.Builder statementTimeLimitInMinutes(Integer statementTimeLimitInMinutes)
The time limit per SQL statement (in minutes). This is for a task with the COMPREHENSIVE scope. The time limit per SQL statement should not be more than the total time limit.
statementTimeLimitInMinutes
- the value to setpublic StartSqlTuningTaskDetails.Builder sqlTuningSet(SqlTuningSetInput sqlTuningSet)
public StartSqlTuningTaskDetails.Builder sqlDetails(List<SqlTuningTaskSqlDetail> sqlDetails)
The details of the SQL statement on which tuning is performed. To obtain the details of the SQL statement, you must provide either the sqlTuningSet or the tuple of sqlDetails/timeStarted/timeEnded.
sqlDetails
- the value to setpublic StartSqlTuningTaskDetails.Builder timeStarted(Date timeStarted)
The start time of the period in which SQL statements are running.
timeStarted
- the value to setpublic StartSqlTuningTaskDetails.Builder timeEnded(Date timeEnded)
The end time of the period in which SQL statements are running.
timeEnded
- the value to setpublic StartSqlTuningTaskDetails build()
public StartSqlTuningTaskDetails.Builder copy(StartSqlTuningTaskDetails model)
Copyright © 2016–2024. All rights reserved.