Class LoadSqlPlanBaselinesFromAwrDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.databasemanagement.model.LoadSqlPlanBaselinesFromAwrDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20201101") public final class LoadSqlPlanBaselinesFromAwrDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelThe details required to load plans from Automatic Workload Repository (AWR).It takes either credentials or databaseCredential. It’s recommended to provide databaseCredential
Note: Objects should always be created or deserialized using theLoadSqlPlanBaselinesFromAwrDetails.Builder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theLoadSqlPlanBaselinesFromAwrDetails.Builder, which maintain a set of all explicitly set fields calledLoadSqlPlanBaselinesFromAwrDetails.Builder.__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLoadSqlPlanBaselinesFromAwrDetails.Builder
-
Constructor Summary
Constructors Constructor Description LoadSqlPlanBaselinesFromAwrDetails(String jobName, String jobDescription, Integer beginSnapshot, Integer endSnapshot, String sqlTextFilter, Boolean isFixed, Boolean isEnabled, ManagedDatabaseCredential credentials, DatabaseCredentialDetails databaseCredential)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoadSqlPlanBaselinesFromAwrDetails.Builderbuilder()Create a new builder.booleanequals(Object o)IntegergetBeginSnapshot()The begin snapshot.ManagedDatabaseCredentialgetCredentials()DatabaseCredentialDetailsgetDatabaseCredential()IntegergetEndSnapshot()The end snapshot.BooleangetIsEnabled()Indicates whether the loaded plans are enabled (true) or not (false).BooleangetIsFixed()Indicates whether the plans are loaded as fixed plans (true) or non-fixed plans (false).StringgetJobDescription()The description of the job.StringgetJobName()The name of the database job used for loading SQL plan baselines.StringgetSqlTextFilter()A filter applied to AWR to select only qualifying plans to be loaded.inthashCode()LoadSqlPlanBaselinesFromAwrDetails.BuildertoBuilder()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
-
-
-
Constructor Detail
-
LoadSqlPlanBaselinesFromAwrDetails
@Deprecated @ConstructorProperties({"jobName","jobDescription","beginSnapshot","endSnapshot","sqlTextFilter","isFixed","isEnabled","credentials","databaseCredential"}) public LoadSqlPlanBaselinesFromAwrDetails(String jobName, String jobDescription, Integer beginSnapshot, Integer endSnapshot, String sqlTextFilter, Boolean isFixed, Boolean isEnabled, ManagedDatabaseCredential credentials, DatabaseCredentialDetails databaseCredential)
Deprecated.
-
-
Method Detail
-
builder
public static LoadSqlPlanBaselinesFromAwrDetails.Builder builder()
Create a new builder.
-
toBuilder
public LoadSqlPlanBaselinesFromAwrDetails.Builder toBuilder()
-
getJobName
public String getJobName()
The name of the database job used for loading SQL plan baselines.- Returns:
- the value
-
getJobDescription
public String getJobDescription()
The description of the job.- Returns:
- the value
-
getBeginSnapshot
public Integer getBeginSnapshot()
The begin snapshot.- Returns:
- the value
-
getEndSnapshot
public Integer getEndSnapshot()
The end snapshot.- Returns:
- the value
-
getSqlTextFilter
public String getSqlTextFilter()
A filter applied to AWR to select only qualifying plans to be loaded.By default all plans in AWR are selected. The filter can take the form of any WHERE clause predicate that can be specified against the column DBA_HIST_SQLTEXT.SQL_TEXT. An example is sql_text like ‘SELECT %’.
- Returns:
- the value
-
getIsFixed
public Boolean getIsFixed()
Indicates whether the plans are loaded as fixed plans (true) or non-fixed plans (false).By default, they are loaded as non-fixed plans.
- Returns:
- the value
-
getIsEnabled
public Boolean getIsEnabled()
Indicates whether the loaded plans are enabled (true) or not (false).By default, they are enabled.
- Returns:
- the value
-
getCredentials
public ManagedDatabaseCredential getCredentials()
-
getDatabaseCredential
public DatabaseCredentialDetails getDatabaseCredential()
-
toString
public String toString()
- Overrides:
toStringin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-