Class SaveSqlTuningSetAsDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.databasemanagement.model.SaveSqlTuningSetAsDetails.Builder
 
- 
- Enclosing class:
- SaveSqlTuningSetAsDetails
 
 public static class SaveSqlTuningSetAsDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SaveSqlTuningSetAsDetails.BuilderattributeList(String attributeList)Specifies the list of Sql statement attributes to return in the result.SaveSqlTuningSetAsDetails.BuilderbasicFilter(String basicFilter)Specifies the Sql predicate to filter the Sql from the Sql tuning set defined on attributes of the SQLSET_ROW.SaveSqlTuningSetAsDetailsbuild()SaveSqlTuningSetAsDetails.BuildercommitRows(Integer commitRows)Specifies whether to commit statements after DML.SaveSqlTuningSetAsDetails.Buildercopy(SaveSqlTuningSetAsDetails model)SaveSqlTuningSetAsDetails.BuildercreateNew(Integer createNew)Specifies whether to create a new Sql tuning set or not.SaveSqlTuningSetAsDetails.BuildercredentialDetails(SqlTuningSetAdminCredentialDetails credentialDetails)SaveSqlTuningSetAsDetails.BuilderdatabaseCredential(DatabaseCredentialDetails databaseCredential)SaveSqlTuningSetAsDetails.BuilderdestinationSqlTuningSetDescription(String destinationSqlTuningSetDescription)The description for the destination Sql tuning set.SaveSqlTuningSetAsDetails.BuilderdestinationSqlTuningSetName(String destinationSqlTuningSetName)The name of the destination Sql tuning set.SaveSqlTuningSetAsDetails.BuilderdestinationSqlTuningSetOwner(String destinationSqlTuningSetOwner)Owner of the destination Sql tuning set.SaveSqlTuningSetAsDetails.BuilderisIgnoreNull(Boolean isIgnoreNull)Specifies whether to update attributes when the new value is NULL.SaveSqlTuningSetAsDetails.BuilderloadOption(SaveSqlTuningSetAsDetails.LoadOption loadOption)Specifies which statements are loaded into the Sql tuning set.SaveSqlTuningSetAsDetails.Buildername(String name)The name of the Sql tuning set.SaveSqlTuningSetAsDetails.Builderowner(String owner)The owner of the Sql tuning set.SaveSqlTuningSetAsDetails.BuilderplanFilter(SaveSqlTuningSetAsDetails.PlanFilter planFilter)Specifies the plan filter.SaveSqlTuningSetAsDetails.BuilderrankingMeasure1(RankingMeasure rankingMeasure1)Specifies an ORDER BY clause on the selected Sql.SaveSqlTuningSetAsDetails.BuilderrankingMeasure2(RankingMeasure rankingMeasure2)Specifies an ORDER BY clause on the selected Sql.SaveSqlTuningSetAsDetails.BuilderrankingMeasure3(RankingMeasure rankingMeasure3)Specifies an ORDER BY clause on the selected Sql.SaveSqlTuningSetAsDetails.BuilderrecursiveSql(SaveSqlTuningSetAsDetails.RecursiveSql recursiveSql)Specifies that the filter must include recursive Sql in the Sql tuning set.SaveSqlTuningSetAsDetails.BuilderresultLimit(Integer resultLimit)The top limit Sql from the filtered source, ranked by the ranking measure.SaveSqlTuningSetAsDetails.BuilderresultPercentage(Double resultPercentage)Specifies a filter that picks the top n% according to the supplied ranking measure.SaveSqlTuningSetAsDetails.BuildershowSqlOnly(Integer showSqlOnly)Flag to indicate whether to save the Sql tuning set or just display the plsql used to save Sql tuning set.SaveSqlTuningSetAsDetails.BuilderupdateAttributes(String updateAttributes)Specifies the list of Sql statement attributes to update during a merge or update.SaveSqlTuningSetAsDetails.BuilderupdateCondition(SaveSqlTuningSetAsDetails.UpdateCondition updateCondition)Specifies when to perform the update.SaveSqlTuningSetAsDetails.BuilderupdateOption(SaveSqlTuningSetAsDetails.UpdateOption updateOption)Specifies how existing Sql statements are updated.
 
- 
- 
- 
Method Detail- 
credentialDetailspublic SaveSqlTuningSetAsDetails.Builder credentialDetails(SqlTuningSetAdminCredentialDetails credentialDetails) 
 - 
databaseCredentialpublic SaveSqlTuningSetAsDetails.Builder databaseCredential(DatabaseCredentialDetails databaseCredential) 
 - 
showSqlOnlypublic SaveSqlTuningSetAsDetails.Builder showSqlOnly(Integer showSqlOnly) Flag to indicate whether to save the Sql tuning set or just display the plsql used to save Sql tuning set.- Parameters:
- showSqlOnly- the value to set
- Returns:
- this builder
 
 - 
ownerpublic SaveSqlTuningSetAsDetails.Builder owner(String owner) The owner of the Sql tuning set.- Parameters:
- owner- the value to set
- Returns:
- this builder
 
 - 
namepublic SaveSqlTuningSetAsDetails.Builder name(String name) The name of the Sql tuning set.- Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
destinationSqlTuningSetNamepublic SaveSqlTuningSetAsDetails.Builder destinationSqlTuningSetName(String destinationSqlTuningSetName) The name of the destination Sql tuning set.- Parameters:
- destinationSqlTuningSetName- the value to set
- Returns:
- this builder
 
 - 
destinationSqlTuningSetDescriptionpublic SaveSqlTuningSetAsDetails.Builder destinationSqlTuningSetDescription(String destinationSqlTuningSetDescription) The description for the destination Sql tuning set.- Parameters:
- destinationSqlTuningSetDescription- the value to set
- Returns:
- this builder
 
 - 
destinationSqlTuningSetOwnerpublic SaveSqlTuningSetAsDetails.Builder destinationSqlTuningSetOwner(String destinationSqlTuningSetOwner) Owner of the destination Sql tuning set.- Parameters:
- destinationSqlTuningSetOwner- the value to set
- Returns:
- this builder
 
 - 
createNewpublic SaveSqlTuningSetAsDetails.Builder createNew(Integer createNew) Specifies whether to create a new Sql tuning set or not.Possible values 1 - Create a new Sql tuning set 0 - Do not create a new Sql tuning set - Parameters:
- createNew- the value to set
- Returns:
- this builder
 
 - 
basicFilterpublic SaveSqlTuningSetAsDetails.Builder basicFilter(String basicFilter) Specifies the Sql predicate to filter the Sql from the Sql tuning set defined on attributes of the SQLSET_ROW.User could use any combination of the following columns with appropriate values as Sql predicate Refer to the documentation https://docs.oracle.com/en/database/oracle/oracle-database/18/arpls/DBMS_SQLTUNE.html#GUID-1F4AFB03-7B29-46FC-B3F2-CB01EC36326C - Parameters:
- basicFilter- the value to set
- Returns:
- this builder
 
 - 
planFilterpublic SaveSqlTuningSetAsDetails.Builder planFilter(SaveSqlTuningSetAsDetails.PlanFilter planFilter) Specifies the plan filter.This parameter enables you to select a single plan when a statement has multiple plans. Refer to the documentation https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_SQLSET.html#GUID-9D995019-91AB-4B1E-9EAF-031050789B21 - Parameters:
- planFilter- the value to set
- Returns:
- this builder
 
 - 
recursiveSqlpublic SaveSqlTuningSetAsDetails.Builder recursiveSql(SaveSqlTuningSetAsDetails.RecursiveSql recursiveSql) Specifies that the filter must include recursive Sql in the Sql tuning set.- Parameters:
- recursiveSql- the value to set
- Returns:
- this builder
 
 - 
resultPercentagepublic SaveSqlTuningSetAsDetails.Builder resultPercentage(Double resultPercentage) Specifies a filter that picks the top n% according to the supplied ranking measure.Note that this parameter applies only if one ranking measure is supplied. - Parameters:
- resultPercentage- the value to set
- Returns:
- this builder
 
 - 
resultLimitpublic SaveSqlTuningSetAsDetails.Builder resultLimit(Integer resultLimit) The top limit Sql from the filtered source, ranked by the ranking measure.- Parameters:
- resultLimit- the value to set
- Returns:
- this builder
 
 - 
rankingMeasure1public SaveSqlTuningSetAsDetails.Builder rankingMeasure1(RankingMeasure rankingMeasure1) Specifies an ORDER BY clause on the selected Sql.User can specify upto three ranking measures. - Parameters:
- rankingMeasure1- the value to set
- Returns:
- this builder
 
 - 
rankingMeasure2public SaveSqlTuningSetAsDetails.Builder rankingMeasure2(RankingMeasure rankingMeasure2) Specifies an ORDER BY clause on the selected Sql.User can specify upto three ranking measures. - Parameters:
- rankingMeasure2- the value to set
- Returns:
- this builder
 
 - 
rankingMeasure3public SaveSqlTuningSetAsDetails.Builder rankingMeasure3(RankingMeasure rankingMeasure3) Specifies an ORDER BY clause on the selected Sql.User can specify upto three ranking measures. - Parameters:
- rankingMeasure3- the value to set
- Returns:
- this builder
 
 - 
attributeListpublic SaveSqlTuningSetAsDetails.Builder attributeList(String attributeList) Specifies the list of Sql statement attributes to return in the result.Note that this parameter cannot be made an enum since custom value can take a list of comma separated attribute names. Attribute list can take one of the following values. TYPICAL - Specifies BASIC plus Sql plan (without row source statistics) and without object reference list (default). BASIC - Specifies all attributes (such as execution statistics and binds) except the plans. The execution context is always part of the result. ALL - Specifies all attributes. CUSTOM - Comma-separated list of the following attribute names. - EXECUTION_STATISTICS - BIND_LIST - OBJECT_LIST - SQL_PLAN - SQL_PLAN_STATISTICS Usage examples: 1. “attributeList”: “TYPICAL” 2. “attributeList”: “ALL” 3. “attributeList”: “EXECUTION_STATISTICS,OBJECT_LIST,SQL_PLAN” - Parameters:
- attributeList- the value to set
- Returns:
- this builder
 
 - 
loadOptionpublic SaveSqlTuningSetAsDetails.Builder loadOption(SaveSqlTuningSetAsDetails.LoadOption loadOption) Specifies which statements are loaded into the Sql tuning set.The possible values are. - INSERT (default) Adds only new statements. - UPDATE Updates existing the Sql statements and ignores any new statements. - MERGE Inserts new statements and updates the information of the existing ones. - Parameters:
- loadOption- the value to set
- Returns:
- this builder
 
 - 
updateOptionpublic SaveSqlTuningSetAsDetails.Builder updateOption(SaveSqlTuningSetAsDetails.UpdateOption updateOption) Specifies how existing Sql statements are updated.This parameter is applicable only if load_option is specified with UPDATE or MERGE as an option. Update option can take one of the following values. REPLACE (default) - Updates the statement using the new statistics, bind list, object list, and so on. ACCUMULATE - Combines attributes when possible (for example, statistics such as elapsed_time), otherwise replaces the existing values (for example, module and action) with the provided values. Following Sql statement attributes can be accumulated. elapsed_time buffer_gets direct_writes disk_reads row_processed fetches executions end_of_fetch_count stat_period active_stat_period - Parameters:
- updateOption- the value to set
- Returns:
- this builder
 
 - 
updateConditionpublic SaveSqlTuningSetAsDetails.Builder updateCondition(SaveSqlTuningSetAsDetails.UpdateCondition updateCondition) Specifies when to perform the update.The procedure only performs the update when the specified condition is satisfied. The condition can refer to either the data source or destination. The condition must use the following prefixes to refer to attributes from the source or the destination: OLD \u2014 Refers to statement attributes from the SQL tuning set (destination). NEW \u2014 Refers to statement attributes from the input statements (source). NULL \u2014 No updates are performed. - Parameters:
- updateCondition- the value to set
- Returns:
- this builder
 
 - 
updateAttributespublic SaveSqlTuningSetAsDetails.Builder updateAttributes(String updateAttributes) Specifies the list of Sql statement attributes to update during a merge or update.Note that this parameter cannot be made an enum since custom value can take a list of comma separated attribute names. Update attributes can take one of the following values. NULL (default) - Specifies the content of the input cursor except the execution context. On other terms, it is equivalent to ALL without execution contexts such as module and action. BASIC - Specifies statistics and binds only. TYPICAL - Specifies BASIC with Sql plans (without row source statistics) and without an object reference list. ALL - Specifies all attributes, including the execution context attributes such as module and action. CUSTOM - List of comma separated attribute names to update EXECUTION_CONTEXT EXECUTION_STATISTICS SQL_BINDS SQL_PLAN SQL_PLAN_STATISTICS (similar to SQL_PLAN with added row source statistics) Usage examples: 1. “updateAttributes”: “TYPICAL” 2. “updateAttributes”: “BASIC” 3. “updateAttributes”: “EXECUTION_STATISTICS,SQL_PLAN_STATISTICS,SQL_PLAN” 4. “updateAttributes”: “EXECUTION_STATISTICS,SQL_PLAN” - Parameters:
- updateAttributes- the value to set
- Returns:
- this builder
 
 - 
isIgnoreNullpublic SaveSqlTuningSetAsDetails.Builder isIgnoreNull(Boolean isIgnoreNull) Specifies whether to update attributes when the new value is NULL.If TRUE, then the procedure does not update an attribute when the new value is NULL. That is, do not override with NULL values unless intentional. Possible values - true or false - Parameters:
- isIgnoreNull- the value to set
- Returns:
- this builder
 
 - 
commitRowspublic SaveSqlTuningSetAsDetails.Builder commitRows(Integer commitRows) Specifies whether to commit statements after DML.If a value is provided, then the load commits after each specified number of statements is inserted. If NULL is provided, then the load commits only once, at the end of the operation. - Parameters:
- commitRows- the value to set
- Returns:
- this builder
 
 - 
buildpublic SaveSqlTuningSetAsDetails build() 
 - 
copypublic SaveSqlTuningSetAsDetails.Builder copy(SaveSqlTuningSetAsDetails model) 
 
- 
 
-