Class ServiceConnector.Builder
- java.lang.Object
-
- com.oracle.bmc.sch.model.ServiceConnector.Builder
-
- Enclosing class:
- ServiceConnector
public static class ServiceConnector.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceConnector
build()
ServiceConnector.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing the connector.ServiceConnector.Builder
copy(ServiceConnector model)
ServiceConnector.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.ServiceConnector.Builder
description(String description)
The description of the resource.ServiceConnector.Builder
displayName(String displayName)
A user-friendly name.ServiceConnector.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.ServiceConnector.Builder
id(String id)
The OCID of the connector.ServiceConnector.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.ServiceConnector.Builder
lifecycleState(LifecycleState lifecycleState)
The current state of the connector.ServiceConnector.Builder
lifecyleDetails(String lifecyleDetails)
*Please note this property is deprecated and will be removed on January 27, 2026.ServiceConnector.Builder
source(SourceDetailsResponse source)
ServiceConnector.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
The system tags associated with this resource, if any.ServiceConnector.Builder
target(TargetDetailsResponse target)
ServiceConnector.Builder
tasks(List<TaskDetailsResponse> tasks)
The list of tasks.ServiceConnector.Builder
timeCreated(Date timeCreated)
The date and time when the connector was created.ServiceConnector.Builder
timeUpdated(Date timeUpdated)
The date and time when the connector was updated.
-
-
-
Method Detail
-
id
public ServiceConnector.Builder id(String id)
The OCID of the connector.- Parameters:
id
- the value to set- Returns:
- this builder
-
displayName
public ServiceConnector.Builder displayName(String displayName)
A user-friendly name.It does not have to be unique, and it is changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
description
public ServiceConnector.Builder description(String description)
The description of the resource.Avoid entering confidential information.
- Parameters:
description
- the value to set- Returns:
- this builder
-
compartmentId
public ServiceConnector.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the connector.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public ServiceConnector.Builder timeCreated(Date timeCreated)
The date and time when the connector was created.Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public ServiceConnector.Builder timeUpdated(Date timeUpdated)
The date and time when the connector was updated.Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public ServiceConnector.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the connector.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleDetails
public ServiceConnector.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.For example, the message might provide actionable information for a resource in a FAILED state.
- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
lifecyleDetails
public ServiceConnector.Builder lifecyleDetails(String lifecyleDetails)
*Please note this property is deprecated and will be removed on January 27, 2026.Use lifecycleDetails instead.* A message describing the current state in more detail. For example, the message might provide actionable information for a resource in a FAILED state.
- Parameters:
lifecyleDetails
- the value to set- Returns:
- this builder
-
source
public ServiceConnector.Builder source(SourceDetailsResponse source)
-
tasks
public ServiceConnector.Builder tasks(List<TaskDetailsResponse> tasks)
The list of tasks.- Parameters:
tasks
- the value to set- Returns:
- this builder
-
target
public ServiceConnector.Builder target(TargetDetailsResponse target)
-
freeformTags
public ServiceConnector.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 ServiceConnector.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 ServiceConnector.Builder systemTags(Map<String,Map<String,Object>> systemTags)
The system tags associated with this resource, if any.The system tags are set by Oracle Cloud Infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public ServiceConnector build()
-
copy
public ServiceConnector.Builder copy(ServiceConnector model)
-
-