public static class SecurityPolicy.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SecurityPolicy |
build() |
SecurityPolicy.Builder |
category(String category)
The category of the security policy
|
SecurityPolicy.Builder |
compartmentId(String compartmentId)
The OCID of the security policy’s compartment
|
SecurityPolicy.Builder |
copy(SecurityPolicy model) |
SecurityPolicy.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
SecurityPolicy.Builder |
description(String description)
The security policy’s description
|
SecurityPolicy.Builder |
displayName(String displayName)
The security policy’s display name
|
SecurityPolicy.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
SecurityPolicy.Builder |
friendlyName(String friendlyName)
A shorter version of the security policy’s name
|
SecurityPolicy.Builder |
id(String id)
Unique identifier that can’t be changed after creation
|
SecurityPolicy.Builder |
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.
|
SecurityPolicy.Builder |
lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the security policy
|
SecurityPolicy.Builder |
locks(List<ResourceLock> locks)
Locks associated with this resource.
|
SecurityPolicy.Builder |
owner(OwnerType owner)
The owner of the security policy
|
SecurityPolicy.Builder |
services(List<String> services)
The list of services that the security policy protects
|
SecurityPolicy.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.
|
SecurityPolicy.Builder |
timeCreated(Date timeCreated)
The time the security policy was created.
|
SecurityPolicy.Builder |
timeUpdated(Date timeUpdated)
The time the security policy was last updated.
|
public SecurityPolicy.Builder id(String id)
Unique identifier that can’t be changed after creation
id
- the value to setpublic SecurityPolicy.Builder friendlyName(String friendlyName)
A shorter version of the security policy’s name
friendlyName
- the value to setpublic SecurityPolicy.Builder displayName(String displayName)
The security policy’s display name
displayName
- the value to setpublic SecurityPolicy.Builder description(String description)
The security policy’s description
description
- the value to setpublic SecurityPolicy.Builder compartmentId(String compartmentId)
The OCID of the security policy’s compartment
compartmentId
- the value to setpublic SecurityPolicy.Builder owner(OwnerType owner)
The owner of the security policy
owner
- the value to setpublic SecurityPolicy.Builder category(String category)
The category of the security policy
category
- the value to setpublic SecurityPolicy.Builder services(List<String> services)
The list of services that the security policy protects
services
- the value to setpublic SecurityPolicy.Builder timeCreated(Date timeCreated)
The time the security policy was created. An RFC3339 formatted datetime string.
timeCreated
- the value to setpublic SecurityPolicy.Builder timeUpdated(Date timeUpdated)
The time the security policy was last updated. An RFC3339 formatted datetime string.
timeUpdated
- the value to setpublic SecurityPolicy.Builder lifecycleState(LifecycleState lifecycleState)
The current lifecycle state of the security policy
lifecycleState
- the value to setpublic 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.
lifecycleDetails
- the value to setpublic SecurityPolicy.Builder locks(List<ResourceLock> locks)
Locks associated with this resource.
locks
- the value to setpublic 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.
freeformTags
- the value to setpublic 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"}}
definedTags
- the value to setpublic 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"}}
systemTags
- the value to setpublic SecurityPolicy build()
public SecurityPolicy.Builder copy(SecurityPolicy model)
Copyright © 2016–2024. All rights reserved.