Package com.oracle.bmc.cloudguard.model
Class TargetSummary.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.model.TargetSummary.Builder
-
- Enclosing class:
- TargetSummary
public static class TargetSummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetSummarybuild()TargetSummary.BuildercompartmentId(String compartmentId)Compartment OCID where the resource is createdTargetSummary.Buildercopy(TargetSummary model)TargetSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.TargetSummary.BuilderdisplayName(String displayName)Target display nameTargetSummary.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.TargetSummary.Builderid(String id)Unique identifier for target that can’t be changed after creationTargetSummary.BuilderlifecycleState(LifecycleState lifecycleState)The current lifecycle state of the resourceTargetSummary.BuilderlifecyleDetails(String lifecyleDetails)A message describing the current state in more detail.TargetSummary.BuilderrecipeCount(Integer recipeCount)Total number of recipes attached to targetTargetSummary.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.TargetSummary.BuildertargetResourceId(String targetResourceId)Resource ID which the target uses to monitorTargetSummary.BuildertargetResourceType(TargetResourceType targetResourceType)Type of resource that’s associated with the target(compartment/HCMCloud/ERPCloud)TargetSummary.BuildertimeCreated(Date timeCreated)The date and time the target was created.TargetSummary.BuildertimeUpdated(Date timeUpdated)The date and time the target was last updated.
-
-
-
Method Detail
-
id
public TargetSummary.Builder id(String id)
Unique identifier for target that can’t be changed after creation- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public TargetSummary.Builder displayName(String displayName)
Target display name- Parameters:
displayName- the value to set- Returns:
- this builder
-
compartmentId
public TargetSummary.Builder compartmentId(String compartmentId)
Compartment OCID where the resource is created- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
targetResourceType
public TargetSummary.Builder targetResourceType(TargetResourceType targetResourceType)
Type of resource that’s associated with the target(compartment/HCMCloud/ERPCloud)- Parameters:
targetResourceType- the value to set- Returns:
- this builder
-
targetResourceId
public TargetSummary.Builder targetResourceId(String targetResourceId)
Resource ID which the target uses to monitor- Parameters:
targetResourceId- the value to set- Returns:
- this builder
-
recipeCount
public TargetSummary.Builder recipeCount(Integer recipeCount)
Total number of recipes attached to target- Parameters:
recipeCount- the value to set- Returns:
- this builder
-
timeCreated
public TargetSummary.Builder timeCreated(Date timeCreated)
The date and time the target was created.Format defined by RFC3339.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public TargetSummary.Builder timeUpdated(Date timeUpdated)
The date and time the target was last updated.Format defined by RFC3339.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public TargetSummary.Builder lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the resource- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecyleDetails
public TargetSummary.Builder lifecyleDetails(String lifecyleDetails)
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in Failed state. [DEPRECATE]
- Parameters:
lifecyleDetails- the value to set- Returns:
- this builder
-
freeformTags
public TargetSummary.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 TargetSummary.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 TargetSummary.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 TargetSummary build()
-
copy
public TargetSummary.Builder copy(TargetSummary model)
-
-