Package com.oracle.bmc.servicemesh.model
Class VirtualDeployment.Builder
- java.lang.Object
-
- com.oracle.bmc.servicemesh.model.VirtualDeployment.Builder
-
- Enclosing class:
- VirtualDeployment
public static class VirtualDeployment.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualDeployment.Builder
accessLogging(AccessLoggingConfiguration accessLogging)
VirtualDeployment
build()
VirtualDeployment.Builder
compartmentId(String compartmentId)
The OCID of the compartment.VirtualDeployment.Builder
copy(VirtualDeployment model)
VirtualDeployment.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.VirtualDeployment.Builder
description(String description)
Description of the resource.VirtualDeployment.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.VirtualDeployment.Builder
id(String id)
Unique identifier that is immutable on creation.VirtualDeployment.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.VirtualDeployment.Builder
lifecycleState(VirtualDeployment.LifecycleState lifecycleState)
The current state of the Resource.VirtualDeployment.Builder
listeners(List<VirtualDeploymentListener> listeners)
The listeners for the virtual deploymentVirtualDeployment.Builder
name(String name)
A user-friendly name.VirtualDeployment.Builder
serviceDiscovery(ServiceDiscoveryConfiguration serviceDiscovery)
VirtualDeployment.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.VirtualDeployment.Builder
timeCreated(Date timeCreated)
The time when this resource was created in an RFC3339 formatted datetime string.VirtualDeployment.Builder
timeUpdated(Date timeUpdated)
The time when this resource was updated in an RFC3339 formatted datetime string.VirtualDeployment.Builder
virtualServiceId(String virtualServiceId)
The OCID of the virtual service in which this virtual deployment is created.
-
-
-
Method Detail
-
id
public VirtualDeployment.Builder id(String id)
Unique identifier that is immutable on creation.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public VirtualDeployment.Builder compartmentId(String compartmentId)
The OCID of the compartment.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
virtualServiceId
public VirtualDeployment.Builder virtualServiceId(String virtualServiceId)
The OCID of the virtual service in which this virtual deployment is created.- Parameters:
virtualServiceId
- the value to set- Returns:
- this builder
-
name
public VirtualDeployment.Builder name(String name)
A user-friendly name.The name must be unique within the same virtual service and cannot be changed after creation. Avoid entering confidential information.
Example: My unique resource name
- Parameters:
name
- the value to set- Returns:
- this builder
-
description
public VirtualDeployment.Builder description(String description)
Description of the resource.It can be changed after creation. Avoid entering confidential information.
Example: This is my new resource
- Parameters:
description
- the value to set- Returns:
- this builder
-
serviceDiscovery
public VirtualDeployment.Builder serviceDiscovery(ServiceDiscoveryConfiguration serviceDiscovery)
-
listeners
public VirtualDeployment.Builder listeners(List<VirtualDeploymentListener> listeners)
The listeners for the virtual deployment- Parameters:
listeners
- the value to set- Returns:
- this builder
-
accessLogging
public VirtualDeployment.Builder accessLogging(AccessLoggingConfiguration accessLogging)
-
timeCreated
public VirtualDeployment.Builder timeCreated(Date timeCreated)
The time when this resource was created in an RFC3339 formatted datetime string.- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public VirtualDeployment.Builder timeUpdated(Date timeUpdated)
The time when this resource was updated in an RFC3339 formatted datetime string.- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public VirtualDeployment.Builder lifecycleState(VirtualDeployment.LifecycleState lifecycleState)
The current state of the Resource.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public VirtualDeployment.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, can be used to provide actionable information for a resource in a Failed state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
freeformTags
public VirtualDeployment.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”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public VirtualDeployment.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
-
systemTags
public VirtualDeployment.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public VirtualDeployment build()
-
copy
public VirtualDeployment.Builder copy(VirtualDeployment model)
-
-