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 ServiceConnectorbuild()ServiceConnector.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the connector.ServiceConnector.Buildercopy(ServiceConnector model)ServiceConnector.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.ServiceConnector.Builderdescription(String description)The description of the resource.ServiceConnector.BuilderdisplayName(String displayName)A user-friendly name.ServiceConnector.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.ServiceConnector.Builderid(String id)The OCID of the connector.ServiceConnector.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current state in more detail.ServiceConnector.BuilderlifecycleState(LifecycleState lifecycleState)The current state of the connector.ServiceConnector.BuilderlifecyleDetails(String lifecyleDetails)*Please note this property is deprecated and will be removed on January 27, 2026.ServiceConnector.Buildersource(SourceDetailsResponse source)ServiceConnector.BuildersystemTags(Map<String,Map<String,Object>> systemTags)The system tags associated with this resource, if any.ServiceConnector.Buildertarget(TargetDetailsResponse target)ServiceConnector.Buildertasks(List<TaskDetailsResponse> tasks)The list of tasks.ServiceConnector.BuildertimeCreated(Date timeCreated)The date and time when the connector was created.ServiceConnector.BuildertimeUpdated(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)
-
-