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