public static class VirtualService.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
VirtualService |
build() |
VirtualService.Builder |
compartmentId(String compartmentId)
The OCID of the
compartment.
|
VirtualService.Builder |
copy(VirtualService model) |
VirtualService.Builder |
defaultRoutingPolicy(DefaultVirtualServiceRoutingPolicy defaultRoutingPolicy) |
VirtualService.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
VirtualService.Builder |
description(String description)
Description of the resource.
|
VirtualService.Builder |
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.
|
VirtualService.Builder |
hosts(List<String> hosts)
The DNS hostnames of the virtual service that is used by its callers.
|
VirtualService.Builder |
id(String id)
Unique identifier that is immutable on creation.
|
VirtualService.Builder |
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.
|
VirtualService.Builder |
lifecycleState(VirtualService.LifecycleState lifecycleState)
The current state of the Resource.
|
VirtualService.Builder |
meshId(String meshId)
The OCID of the service mesh in which this virtual service is created.
|
VirtualService.Builder |
mtls(MutualTransportLayerSecurity mtls) |
VirtualService.Builder |
name(String name)
A user-friendly name.
|
VirtualService.Builder |
systemTags(Map<String,Map<String,Object>> systemTags)
Usage of system tag keys.
|
VirtualService.Builder |
timeCreated(Date timeCreated)
The time when this resource was created in an RFC3339 formatted datetime string.
|
VirtualService.Builder |
timeUpdated(Date timeUpdated)
The time when this resource was updated in an RFC3339 formatted datetime string.
|
public VirtualService.Builder id(String id)
Unique identifier that is immutable on creation.
id
- the value to setpublic VirtualService.Builder compartmentId(String compartmentId)
The OCID of the compartment.
compartmentId
- the value to setpublic VirtualService.Builder meshId(String meshId)
The OCID of the service mesh in which this virtual service is created.
meshId
- the value to setpublic VirtualService.Builder name(String name)
A user-friendly name. The name has to be unique within the same service mesh and cannot be changed after creation. Avoid entering confidential information.
Example: My unique resource name
name
- the value to setpublic VirtualService.Builder description(String description)
Description of the resource. It can be changed after creation. Avoid entering confidential information.
Example: This is my new resource
description
- the value to setpublic VirtualService.Builder defaultRoutingPolicy(DefaultVirtualServiceRoutingPolicy defaultRoutingPolicy)
public VirtualService.Builder hosts(List<String> hosts)
The DNS hostnames of the virtual service that is used by its callers. Wildcard hostnames are supported in the prefix form. Examples of valid hostnames are “www.example.com”, “*.example.com”, “*.com”. Can be omitted if the virtual service will only have TCP virtual deployments.
hosts
- the value to setpublic VirtualService.Builder mtls(MutualTransportLayerSecurity mtls)
public VirtualService.Builder timeCreated(Date timeCreated)
The time when this resource was created in an RFC3339 formatted datetime string.
timeCreated
- the value to setpublic VirtualService.Builder timeUpdated(Date timeUpdated)
The time when this resource was updated in an RFC3339 formatted datetime string.
timeUpdated
- the value to setpublic VirtualService.Builder lifecycleState(VirtualService.LifecycleState lifecycleState)
The current state of the Resource.
lifecycleState
- the value to setpublic VirtualService.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.
lifecycleDetails
- the value to setpublic VirtualService.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"}
freeformTags
- the value to setpublic VirtualService.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 VirtualService.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"}}
systemTags
- the value to setpublic VirtualService build()
public VirtualService.Builder copy(VirtualService model)
Copyright © 2016–2024. All rights reserved.