Package com.oracle.bmc.cloudguard.model
Class DataSource.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.model.DataSource.Builder
-
- Enclosing class:
- DataSource
public static class DataSource.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSource
build()
DataSource.Builder
compartmentId(String compartmentId)
Compartment OCID of data sourceDataSource.Builder
copy(DataSource model)
DataSource.Builder
dataSourceDetails(DataSourceDetails dataSourceDetails)
DataSource.Builder
dataSourceDetectorMappingInfo(List<DataSourceMappingInfo> dataSourceDetectorMappingInfo)
Information about the detector recipe and rule attachedDataSource.Builder
dataSourceFeedProvider(DataSourceFeedProvider dataSourceFeedProvider)
Possible type of dataSourceFeed Provider(LoggingQuery)DataSource.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.DataSource.Builder
displayName(String displayName)
Display name of the data sourceDataSource.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.DataSource.Builder
id(String id)
OCID for the data sourceDataSource.Builder
lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the resource.DataSource.Builder
locks(List<ResourceLock> locks)
Locks associated with this resource.DataSource.Builder
regionStatusDetail(List<RegionStatusDetail> regionStatusDetail)
Information about the region and status of query replicationDataSource.Builder
status(DataSourceStatus status)
Enablement status of the data sourceDataSource.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.DataSource.Builder
timeCreated(Date timeCreated)
The date and time the Data source was created.DataSource.Builder
timeUpdated(Date timeUpdated)
The date and time the data source was updated.
-
-
-
Method Detail
-
id
public DataSource.Builder id(String id)
OCID for the data source- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public DataSource.Builder displayName(String displayName)
Display name of the data source- Parameters:
displayName
- the value to set- Returns:
- this builder
-
dataSourceFeedProvider
public DataSource.Builder dataSourceFeedProvider(DataSourceFeedProvider dataSourceFeedProvider)
Possible type of dataSourceFeed Provider(LoggingQuery)- Parameters:
dataSourceFeedProvider
- the value to set- Returns:
- this builder
-
compartmentId
public DataSource.Builder compartmentId(String compartmentId)
Compartment OCID of data source- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
dataSourceDetails
public DataSource.Builder dataSourceDetails(DataSourceDetails dataSourceDetails)
-
timeCreated
public DataSource.Builder timeCreated(Date timeCreated)
The date and time the Data source was created.Format defined by RFC3339.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public DataSource.Builder timeUpdated(Date timeUpdated)
The date and time the data source was updated.Format defined by RFC3339.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
status
public DataSource.Builder status(DataSourceStatus status)
Enablement status of the data source- Parameters:
status
- the value to set- Returns:
- this builder
-
dataSourceDetectorMappingInfo
public DataSource.Builder dataSourceDetectorMappingInfo(List<DataSourceMappingInfo> dataSourceDetectorMappingInfo)
Information about the detector recipe and rule attached- Parameters:
dataSourceDetectorMappingInfo
- the value to set- Returns:
- this builder
-
regionStatusDetail
public DataSource.Builder regionStatusDetail(List<RegionStatusDetail> regionStatusDetail)
Information about the region and status of query replication- Parameters:
regionStatusDetail
- the value to set- Returns:
- this builder
-
lifecycleState
public DataSource.Builder lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the resource.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
locks
public DataSource.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.- Parameters:
locks
- the value to set- Returns:
- this builder
-
freeformTags
public DataSource.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
Avoid entering confidential information.
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public DataSource.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public DataSource.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. System tags can be viewed by users, but can only be created by the system.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public DataSource build()
-
copy
public DataSource.Builder copy(DataSource model)
-
-