Class SecurityAttributeNamespace.Builder
- java.lang.Object
-
- com.oracle.bmc.securityattribute.model.SecurityAttributeNamespace.Builder
-
- Enclosing class:
- SecurityAttributeNamespace
public static class SecurityAttributeNamespace.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityAttributeNamespace
build()
SecurityAttributeNamespace.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the namespace.SecurityAttributeNamespace.Builder
copy(SecurityAttributeNamespace model)
SecurityAttributeNamespace.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.SecurityAttributeNamespace.Builder
description(String description)
The description you assign to the security attribute namespace.SecurityAttributeNamespace.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.SecurityAttributeNamespace.Builder
id(String id)
The OCID of the security attribute namespace.SecurityAttributeNamespace.Builder
isRetired(Boolean isRetired)
Indicates whether the security attribute namespace is retired.SecurityAttributeNamespace.Builder
lifecycleState(SecurityAttributeNamespace.LifecycleState lifecycleState)
The security attribute namespace’s current state.SecurityAttributeNamespace.Builder
mode(List<String> mode)
Indicates possible modes the security attributes in this namespace can be set to.SecurityAttributeNamespace.Builder
name(String name)
The name of the namespace.SecurityAttributeNamespace.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.SecurityAttributeNamespace.Builder
timeCreated(Date timeCreated)
Date and time the security attribute namespace was created, in the format defined by RFC3339.
-
-
-
Method Detail
-
id
public SecurityAttributeNamespace.Builder id(String id)
The OCID of the security attribute namespace.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public SecurityAttributeNamespace.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the namespace.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
name
public SecurityAttributeNamespace.Builder name(String name)
The name of the namespace.It must be unique across all namespaces in the tenancy and cannot be changed.
- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public SecurityAttributeNamespace.Builder description(String description)
The description you assign to the security attribute namespace.- Parameters:
description
- the value to set- Returns:
- this builder
-
freeformTags
public SecurityAttributeNamespace.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public SecurityAttributeNamespace.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
systemTags
public SecurityAttributeNamespace.Builder systemTags(Map<String,Map<String,Object>> systemTags)
System tags for this resource.Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
isRetired
public SecurityAttributeNamespace.Builder isRetired(Boolean isRetired)
Indicates whether the security attribute namespace is retired.- Parameters:
isRetired
- the value to set- Returns:
- this builder
-
mode
public SecurityAttributeNamespace.Builder mode(List<String> mode)
Indicates possible modes the security attributes in this namespace can be set to.This is not accepted from the user. Currently the supported values are enforce and audit.
- Parameters:
mode
- the value to set- Returns:
- this builder
-
lifecycleState
public SecurityAttributeNamespace.Builder lifecycleState(SecurityAttributeNamespace.LifecycleState lifecycleState)
The security attribute namespace’s current state.After creating a security attribute namespace, make sure its lifecycleState is ACTIVE before using it. After retiring a security attribute namespace, make sure its lifecycleState is INACTIVE.
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public SecurityAttributeNamespace.Builder timeCreated(Date timeCreated)
Date and time the security attribute namespace was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
build
public SecurityAttributeNamespace build()
-
copy
public SecurityAttributeNamespace.Builder copy(SecurityAttributeNamespace model)
-
-