Package com.oracle.bmc.cloudguard.model
Class SecurityPolicy.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.model.SecurityPolicy.Builder
-
- Enclosing class:
- SecurityPolicy
public static class SecurityPolicy.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityPolicybuild()SecurityPolicy.Buildercategory(String category)The category of the security policySecurityPolicy.BuildercompartmentId(String compartmentId)The OCID of the security policy’s compartmentSecurityPolicy.Buildercopy(SecurityPolicy model)SecurityPolicy.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.SecurityPolicy.Builderdescription(String description)The security policy’s descriptionSecurityPolicy.BuilderdisplayName(String displayName)The security policy’s display nameSecurityPolicy.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.SecurityPolicy.BuilderfriendlyName(String friendlyName)A shorter version of the security policy’s nameSecurityPolicy.Builderid(String id)Unique identifier that can\u2019t be changed after creationSecurityPolicy.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.SecurityPolicy.BuilderlifecycleState(LifecycleState lifecycleState)The current lifecycle state of the security policySecurityPolicy.Builderlocks(List<ResourceLock> locks)Locks associated with this resource.SecurityPolicy.Builderowner(OwnerType owner)The owner of the security policySecurityPolicy.Builderservices(List<String> services)The list of services that the security policy protectsSecurityPolicy.BuildersystemTags(Map<String,Map<String,Object>> systemTags)System tags for this resource.SecurityPolicy.BuildertimeCreated(Date timeCreated)The time the security policy was created.SecurityPolicy.BuildertimeUpdated(Date timeUpdated)The time the security policy was last updated.
-
-
-
Method Detail
-
id
public SecurityPolicy.Builder id(String id)
Unique identifier that can\u2019t be changed after creation- Parameters:
id- the value to set- Returns:
- this builder
-
friendlyName
public SecurityPolicy.Builder friendlyName(String friendlyName)
A shorter version of the security policy’s name- Parameters:
friendlyName- the value to set- Returns:
- this builder
-
displayName
public SecurityPolicy.Builder displayName(String displayName)
The security policy’s display name- Parameters:
displayName- the value to set- Returns:
- this builder
-
description
public SecurityPolicy.Builder description(String description)
The security policy’s description- Parameters:
description- the value to set- Returns:
- this builder
-
compartmentId
public SecurityPolicy.Builder compartmentId(String compartmentId)
The OCID of the security policy’s compartment- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
owner
public SecurityPolicy.Builder owner(OwnerType owner)
The owner of the security policy- Parameters:
owner- the value to set- Returns:
- this builder
-
category
public SecurityPolicy.Builder category(String category)
The category of the security policy- Parameters:
category- the value to set- Returns:
- this builder
-
services
public SecurityPolicy.Builder services(List<String> services)
The list of services that the security policy protects- Parameters:
services- the value to set- Returns:
- this builder
-
timeCreated
public SecurityPolicy.Builder timeCreated(Date timeCreated)
The time the security policy was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
timeUpdated
public SecurityPolicy.Builder timeUpdated(Date timeUpdated)
The time the security policy was last updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated- the value to set- Returns:
- this builder
-
lifecycleState
public SecurityPolicy.Builder lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the security policy- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public SecurityPolicy.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, this can be used to provide actionable information for a resource in a Failed state.
- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
locks
public SecurityPolicy.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.- Parameters:
locks- the value to set- Returns:
- this builder
-
freeformTags
public SecurityPolicy.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 SecurityPolicy.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 SecurityPolicy.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 SecurityPolicy build()
-
copy
public SecurityPolicy.Builder copy(SecurityPolicy model)
-
-