Class SecurityAttribute.Builder
- java.lang.Object
-
- com.oracle.bmc.securityattribute.model.SecurityAttribute.Builder
-
- Enclosing class:
- SecurityAttribute
public static class SecurityAttribute.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityAttribute
build()
SecurityAttribute.Builder
compartmentId(String compartmentId)
The OCID of the compartment that contains the security attribute definition.SecurityAttribute.Builder
copy(SecurityAttribute model)
SecurityAttribute.Builder
description(String description)
The description of the security attribute.SecurityAttribute.Builder
id(String id)
The OCID of the security attribute definition.SecurityAttribute.Builder
isRetired(Boolean isRetired)
Indicates whether the security attribute is retired.SecurityAttribute.Builder
lifecycleState(SecurityAttribute.LifecycleState lifecycleState)
The security attribute’s current state.SecurityAttribute.Builder
name(String name)
The name assigned to the security attribute during creation.SecurityAttribute.Builder
securityAttributeNamespaceId(String securityAttributeNamespaceId)
The OCID of the security attribute namespace that contains the security attribute definition.SecurityAttribute.Builder
securityAttributeNamespaceName(String securityAttributeNamespaceName)
The name of the security attribute namespace that contains the security attribute.SecurityAttribute.Builder
timeCreated(Date timeCreated)
Date and time the security attribute was created, in the format defined by RFC3339.SecurityAttribute.Builder
type(String type)
The data type of the security attribute.SecurityAttribute.Builder
validator(BaseSecurityAttributeValidator validator)
-
-
-
Method Detail
-
compartmentId
public SecurityAttribute.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the security attribute definition.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
securityAttributeNamespaceId
public SecurityAttribute.Builder securityAttributeNamespaceId(String securityAttributeNamespaceId)
The OCID of the security attribute namespace that contains the security attribute definition.- Parameters:
securityAttributeNamespaceId
- the value to set- Returns:
- this builder
-
securityAttributeNamespaceName
public SecurityAttribute.Builder securityAttributeNamespaceName(String securityAttributeNamespaceName)
The name of the security attribute namespace that contains the security attribute.- Parameters:
securityAttributeNamespaceName
- the value to set- Returns:
- this builder
-
id
public SecurityAttribute.Builder id(String id)
The OCID of the security attribute definition.- Parameters:
id
- the value to set- Returns:
- this builder
-
name
public SecurityAttribute.Builder name(String name)
The name assigned to the security attribute during creation.This is the security attribute key. The name must be unique within the security attribute namespace and cannot be changed.
- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public SecurityAttribute.Builder description(String description)
The description of the security attribute.- Parameters:
description
- the value to set- Returns:
- this builder
-
type
public SecurityAttribute.Builder type(String type)
The data type of the security attribute.- Parameters:
type
- the value to set- Returns:
- this builder
-
isRetired
public SecurityAttribute.Builder isRetired(Boolean isRetired)
Indicates whether the security attribute is retired.- Parameters:
isRetired
- the value to set- Returns:
- this builder
-
lifecycleState
public SecurityAttribute.Builder lifecycleState(SecurityAttribute.LifecycleState lifecycleState)
The security attribute’s current state.After creating a security attribute, make sure its lifecycleState is ACTIVE before using it. After retiring a security attribute, make sure its lifecycleState is INACTIVE before using it. If you delete a security attribute, you cannot delete another security attribute until the deleted tag’s lifecycleState changes from DELETING to DELETED.
- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
timeCreated
public SecurityAttribute.Builder timeCreated(Date timeCreated)
Date and time the security attribute was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
validator
public SecurityAttribute.Builder validator(BaseSecurityAttributeValidator validator)
-
build
public SecurityAttribute build()
-
copy
public SecurityAttribute.Builder copy(SecurityAttribute model)
-
-