Package com.oracle.bmc.cloudguard.model
Class SecurityPolicySummary.Builder
- java.lang.Object
-
- com.oracle.bmc.cloudguard.model.SecurityPolicySummary.Builder
-
- Enclosing class:
- SecurityPolicySummary
public static class SecurityPolicySummary.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityPolicySummary
build()
SecurityPolicySummary.Builder
category(String category)
The category of the security policySecurityPolicySummary.Builder
compartmentId(String compartmentId)
The OCID of the security policy’s compartmentSecurityPolicySummary.Builder
copy(SecurityPolicySummary model)
SecurityPolicySummary.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.SecurityPolicySummary.Builder
description(String description)
The security policy’s descriptionSecurityPolicySummary.Builder
displayName(String displayName)
The security policy’s display nameSecurityPolicySummary.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.SecurityPolicySummary.Builder
friendlyName(String friendlyName)
A shorter version of the security policy’s nameSecurityPolicySummary.Builder
id(String id)
Unique identifier that can\u2019t be changed after creationSecurityPolicySummary.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.SecurityPolicySummary.Builder
lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the security policySecurityPolicySummary.Builder
owner(OwnerType owner)
The owner of the security policySecurityPolicySummary.Builder
services(List<String> services)
The list of services that the security policy protectsSecurityPolicySummary.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.SecurityPolicySummary.Builder
timeCreated(Date timeCreated)
The date and time the security policy was created.SecurityPolicySummary.Builder
timeUpdated(Date timeUpdated)
The date and time the security policy was last updated.
-
-
-
Method Detail
-
id
public SecurityPolicySummary.Builder id(String id)
Unique identifier that can\u2019t be changed after creation- Parameters:
id
- the value to set- Returns:
- this builder
-
friendlyName
public SecurityPolicySummary.Builder friendlyName(String friendlyName)
A shorter version of the security policy’s name- Parameters:
friendlyName
- the value to set- Returns:
- this builder
-
displayName
public SecurityPolicySummary.Builder displayName(String displayName)
The security policy’s display name- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public SecurityPolicySummary.Builder description(String description)
The security policy’s description- Parameters:
description
- the value to set- Returns:
- this builder
-
compartmentId
public SecurityPolicySummary.Builder compartmentId(String compartmentId)
The OCID of the security policy’s compartment- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
owner
public SecurityPolicySummary.Builder owner(OwnerType owner)
The owner of the security policy- Parameters:
owner
- the value to set- Returns:
- this builder
-
category
public SecurityPolicySummary.Builder category(String category)
The category of the security policy- Parameters:
category
- the value to set- Returns:
- this builder
-
services
public SecurityPolicySummary.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 SecurityPolicySummary.Builder timeCreated(Date timeCreated)
The date and time the security policy was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public SecurityPolicySummary.Builder timeUpdated(Date timeUpdated)
The date and time the security policy was last updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public SecurityPolicySummary.Builder lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the security policy- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public SecurityPolicySummary.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 policy in the Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public SecurityPolicySummary.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 SecurityPolicySummary.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 SecurityPolicySummary.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 SecurityPolicySummary build()
-
copy
public SecurityPolicySummary.Builder copy(SecurityPolicySummary model)
-
-