Package com.oracle.bmc.cloudguard.model
Class AdhocQuery.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.model.AdhocQuery.Builder
-
- Enclosing class:
- AdhocQuery
public static class AdhocQuery.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdhocQuery.BuilderadhocQueryDetails(AdhocQueryDetails adhocQueryDetails)AdhocQuery.BuilderadhocQueryRegionalDetails(List<AdhocQueryRegionalDetails> adhocQueryRegionalDetails)Instance level status for each regionAdhocQuerybuild()AdhocQuery.BuildercompartmentId(String compartmentId)Compartment OCID of the adhoc queryAdhocQuery.Buildercopy(AdhocQuery model)AdhocQuery.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.AdhocQuery.BuildererrorMessage(String errorMessage)Error message to show on UI in case of failureAdhocQuery.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.AdhocQuery.Builderid(String id)OCID for the adhoc queryAdhocQuery.BuilderlifecycleState(LifecycleState lifecycleState)The current lifecycle state of the resource.AdhocQuery.Builderlocks(List<ResourceLock> locks)Locks associated with this resource.AdhocQuery.Builderstatus(AdhocQueryStatus status)Status of the adhoc queryAdhocQuery.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.AdhocQuery.BuildertimeCreated(Date timeCreated)The date and time the adhoc query was created.AdhocQuery.BuildertimeUpdated(Date timeUpdated)The date and time the adhoc query was updated.
-
-
-
Method Detail
-
id
public AdhocQuery.Builder id(String id)
OCID for the adhoc query- Parameters:
id- the value to set- Returns:
- this builder
-
compartmentId
public AdhocQuery.Builder compartmentId(String compartmentId)
Compartment OCID of the adhoc query- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
timeCreated
public AdhocQuery.Builder timeCreated(Date timeCreated)
The date and time the adhoc query was created.Format defined by RFC3339.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public AdhocQuery.Builder timeUpdated(Date timeUpdated)
The date and time the adhoc query was updated.Format defined by RFC3339.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
status
public AdhocQuery.Builder status(AdhocQueryStatus status)
Status of the adhoc query- Parameters:
status- the value to set- Returns:
- this builder
-
adhocQueryRegionalDetails
public AdhocQuery.Builder adhocQueryRegionalDetails(List<AdhocQueryRegionalDetails> adhocQueryRegionalDetails)
Instance level status for each region- Parameters:
adhocQueryRegionalDetails- the value to set- Returns:
- this builder
-
adhocQueryDetails
public AdhocQuery.Builder adhocQueryDetails(AdhocQueryDetails adhocQueryDetails)
-
errorMessage
public AdhocQuery.Builder errorMessage(String errorMessage)
Error message to show on UI in case of failure- Parameters:
errorMessage- the value to set- Returns:
- this builder
-
locks
public AdhocQuery.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.- Parameters:
locks- the value to set- Returns:
- this builder
-
lifecycleState
public AdhocQuery.Builder lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the resource.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
freeformTags
public AdhocQuery.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 AdhocQuery.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 AdhocQuery.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 AdhocQuery build()
-
copy
public AdhocQuery.Builder copy(AdhocQuery model)
-
-