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 SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll 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- 
idpublic SecurityPolicy.Builder id(String id) Unique identifier that can\u2019t be changed after creation- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
friendlyNamepublic SecurityPolicy.Builder friendlyName(String friendlyName) A shorter version of the security policy’s name- Parameters:
- friendlyName- the value to set
- Returns:
- this builder
 
 - 
displayNamepublic SecurityPolicy.Builder displayName(String displayName) The security policy’s display name- Parameters:
- displayName- the value to set
- Returns:
- this builder
 
 - 
descriptionpublic SecurityPolicy.Builder description(String description) The security policy’s description- Parameters:
- description- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic SecurityPolicy.Builder compartmentId(String compartmentId) The OCID of the security policy’s compartment- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
ownerpublic SecurityPolicy.Builder owner(OwnerType owner) The owner of the security policy- Parameters:
- owner- the value to set
- Returns:
- this builder
 
 - 
categorypublic SecurityPolicy.Builder category(String category) The category of the security policy- Parameters:
- category- the value to set
- Returns:
- this builder
 
 - 
servicespublic SecurityPolicy.Builder services(List<String> services) The list of services that the security policy protects- Parameters:
- services- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic 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
 
 - 
timeUpdatedpublic 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
 
 - 
lifecycleStatepublic SecurityPolicy.Builder lifecycleState(LifecycleState lifecycleState) The current lifecycle state of the security policy- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
lifecycleDetailspublic 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
 
 - 
lockspublic SecurityPolicy.Builder locks(List<ResourceLock> locks) Locks associated with this resource.- Parameters:
- locks- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic 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
 
 - 
definedTagspublic 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
 
 - 
systemTagspublic 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
 
 - 
buildpublic SecurityPolicy build() 
 - 
copypublic SecurityPolicy.Builder copy(SecurityPolicy model) 
 
- 
 
-