Package com.oracle.bmc.datasafe.model
Class SqlCollection.Builder
- java.lang.Object
- 
- com.oracle.bmc.datasafe.model.SqlCollection.Builder
 
- 
- Enclosing class:
- SqlCollection
 
 public static class SqlCollection.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlCollectionbuild()SqlCollection.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the SQL collection.SqlCollection.Buildercopy(SqlCollection model)SqlCollection.BuilderdbUserName(String dbUserName)The database user name.SqlCollection.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.SqlCollection.Builderdescription(String description)The description of the SQL collection.SqlCollection.BuilderdisplayName(String displayName)The display name of the SQL collection.SqlCollection.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.SqlCollection.Builderid(String id)The OCID of the SQL collection.SqlCollection.BuilderlifecycleDetails(String lifecycleDetails)Details about the current state of the SQL collection in Data Safe.SqlCollection.BuilderlifecycleState(SqlCollectionLifecycleState lifecycleState)The current state of the SQL collection.SqlCollection.BuildersqlLevel(SqlCollection.SqlLevel sqlLevel)Specifies the level of SQL that will be collected.SqlCollection.Builderstatus(SqlCollection.Status status)Specifies if the status of the SqlCollection.SqlCollection.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.SqlCollection.BuildertargetId(String targetId)The OCID of the target corresponding to the security policy deployment.SqlCollection.BuildertimeCreated(Date timeCreated)The time that the SQL collection was created, in the format defined by RFC3339.SqlCollection.BuildertimeLastStarted(Date timeLastStarted)The timestamp of the most recent SqlCollection start operation, in the format defined by RFC3339.SqlCollection.BuildertimeLastStopped(Date timeLastStopped)The timestamp of the most recent SqlCollection stop operation, in the format defined by RFC3339.SqlCollection.BuildertimeUpdated(Date timeUpdated)The last date and time the SQL collection was updated, in the format defined by RFC3339.
 
- 
- 
- 
Method Detail- 
idpublic SqlCollection.Builder id(String id) The OCID of the SQL collection.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic SqlCollection.Builder compartmentId(String compartmentId) The OCID of the compartment containing the SQL collection.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic SqlCollection.Builder displayName(String displayName) The display name of the SQL collection.- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic SqlCollection.Builder description(String description) The description of the SQL collection.- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
targetIdpublic SqlCollection.Builder targetId(String targetId) The OCID of the target corresponding to the security policy deployment.- Parameters:
- targetId- the value to set
- Returns:
- this builder
 
 - 
statuspublic SqlCollection.Builder status(SqlCollection.Status status) Specifies if the status of the SqlCollection.Enabled indicates that the collecting is in progress. - Parameters:
- status- the value to set
- Returns:
- this builder
 
 - 
dbUserNamepublic SqlCollection.Builder dbUserName(String dbUserName) The database user name.- Parameters:
- dbUserName- the value to set
- Returns:
- this builder
 
 - 
timeLastStartedpublic SqlCollection.Builder timeLastStarted(Date timeLastStarted) The timestamp of the most recent SqlCollection start operation, in the format defined by RFC3339.- Parameters:
- timeLastStarted- the value to set
- Returns:
- this builder
 
 - 
timeLastStoppedpublic SqlCollection.Builder timeLastStopped(Date timeLastStopped) The timestamp of the most recent SqlCollection stop operation, in the format defined by RFC3339.- Parameters:
- timeLastStopped- the value to set
- Returns:
- this builder
 
 - 
sqlLevelpublic SqlCollection.Builder sqlLevel(SqlCollection.SqlLevel sqlLevel) Specifies the level of SQL that will be collected.USER_ISSUED_SQL - User issued SQL statements only. ALL_SQL - Includes all SQL statements including SQL statement issued inside PL/SQL units. - Parameters:
- sqlLevel- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic SqlCollection.Builder timeCreated(Date timeCreated) The time that the SQL collection was created, in the format defined by RFC3339.- Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
timeUpdatedpublic SqlCollection.Builder timeUpdated(Date timeUpdated) The last date and time the SQL collection was updated, in the format defined by RFC3339.- Parameters:
- timeUpdated- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic SqlCollection.Builder lifecycleState(SqlCollectionLifecycleState lifecycleState) The current state of the SQL collection.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic SqlCollection.Builder lifecycleDetails(String lifecycleDetails) Details about the current state of the SQL collection in Data Safe.- Parameters:
- lifecycleDetails- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic SqlCollection.Builder freeformTags(Map<String,String> freeformTags) Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags Example: {"Department": "Finance"} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic SqlCollection.Builder definedTags(Map<String,Map<String,Object>> definedTags) Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags Example: {“Operations”: {“CostCenter”: “42”}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
systemTagspublic SqlCollection.Builder systemTags(Map<String,Map<String,Object>> systemTags) System tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}} - Parameters:
- systemTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic SqlCollection build() 
 - 
copypublic SqlCollection.Builder copy(SqlCollection model) 
 
- 
 
-