Class LoadSqlPlanBaselinesFromAwrDetails


  • @Generated(value="OracleSDKGenerator",
               comments="API Version: 20201101")
    public final class LoadSqlPlanBaselinesFromAwrDetails
    extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
    The 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 the LoadSqlPlanBaselinesFromAwrDetails.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 the LoadSqlPlanBaselinesFromAwrDetails.Builder, which maintain a set of all explicitly set fields called LoadSqlPlanBaselinesFromAwrDetails.Builder.__explicitlySet__. The hashCode() and equals(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).

    • Method Detail

      • 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
      • toString

        public String toString()
        Overrides:
        toString in class com.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:
        equals in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel