Package com.oracle.bmc.datacatalog.model
Class Connection.Builder
- java.lang.Object
-
- com.oracle.bmc.datacatalog.model.Connection.Builder
-
- Enclosing class:
- Connection
public static class Connection.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
build()
Connection.Builder
copy(Connection model)
Connection.Builder
createdById(String createdById)
OCID of the user who created the connection.Connection.Builder
customPropertyMembers(List<CustomPropertyGetUsage> customPropertyMembers)
The list of customized properties along with the values for this objectConnection.Builder
dataAssetKey(String dataAssetKey)
Unique key of the parent data asset.Connection.Builder
description(String description)
A description of the connection.Connection.Builder
displayName(String displayName)
A user-friendly display name.Connection.Builder
externalKey(String externalKey)
Unique external key of this object from the source system.Connection.Builder
isDefault(Boolean isDefault)
Indicates whether this connection is the default connection.Connection.Builder
key(String key)
Unique connection key that is immutable.Connection.Builder
lifecycleState(LifecycleState lifecycleState)
The current state of the connection.Connection.Builder
properties(Map<String,Map<String,String>> properties)
A map of maps that contains the properties which are specific to the connection type.Connection.Builder
timeCreated(Date timeCreated)
The date and time the connection was created, in the format defined by RFC3339.Connection.Builder
timeStatusUpdated(Date timeStatusUpdated)
Time that the connections status was last updated.Connection.Builder
timeUpdated(Date timeUpdated)
The last time that any change was made to the connection.Connection.Builder
typeKey(String typeKey)
The key of the object type.Connection.Builder
updatedById(String updatedById)
OCID of the user who modified the connection.Connection.Builder
uri(String uri)
URI to the connection instance in the API.
-
-
-
Method Detail
-
key
public Connection.Builder key(String key)
Unique connection key that is immutable.- Parameters:
key
- the value to set- Returns:
- this builder
-
description
public Connection.Builder description(String description)
A description of the connection.- Parameters:
description
- the value to set- Returns:
- this builder
-
displayName
public Connection.Builder displayName(String displayName)
A user-friendly display name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
timeCreated
public Connection.Builder timeCreated(Date timeCreated)
The date and time the connection was created, in the format defined by RFC3339.Example: 2019-03-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Connection.Builder timeUpdated(Date timeUpdated)
The last time that any change was made to the connection.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
createdById
public Connection.Builder createdById(String createdById)
OCID of the user who created the connection.- Parameters:
createdById
- the value to set- Returns:
- this builder
-
updatedById
public Connection.Builder updatedById(String updatedById)
OCID of the user who modified the connection.- Parameters:
updatedById
- the value to set- Returns:
- this builder
-
customPropertyMembers
public Connection.Builder customPropertyMembers(List<CustomPropertyGetUsage> customPropertyMembers)
The list of customized properties along with the values for this object- Parameters:
customPropertyMembers
- the value to set- Returns:
- this builder
-
properties
public Connection.Builder properties(Map<String,Map<String,String>> properties)
A map of maps that contains the properties which are specific to the connection type.Each connection type definition defines it’s set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most connections have required properties within the “default” category. Example: {“properties”: { “default”: { “username”: “user1”}}}
- Parameters:
properties
- the value to set- Returns:
- this builder
-
externalKey
public Connection.Builder externalKey(String externalKey)
Unique external key of this object from the source system.- Parameters:
externalKey
- the value to set- Returns:
- this builder
-
timeStatusUpdated
public Connection.Builder timeStatusUpdated(Date timeStatusUpdated)
Time that the connections status was last updated.An RFC3339 formatted datetime string.
- Parameters:
timeStatusUpdated
- the value to set- Returns:
- this builder
-
lifecycleState
public Connection.Builder lifecycleState(LifecycleState lifecycleState)
The current state of the connection.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
isDefault
public Connection.Builder isDefault(Boolean isDefault)
Indicates whether this connection is the default connection.- Parameters:
isDefault
- the value to set- Returns:
- this builder
-
dataAssetKey
public Connection.Builder dataAssetKey(String dataAssetKey)
Unique key of the parent data asset.- Parameters:
dataAssetKey
- the value to set- Returns:
- this builder
-
typeKey
public Connection.Builder typeKey(String typeKey)
The key of the object type.Type key’s can be found via the ‘/types’ endpoint.
- Parameters:
typeKey
- the value to set- Returns:
- this builder
-
uri
public Connection.Builder uri(String uri)
URI to the connection instance in the API.- Parameters:
uri
- the value to set- Returns:
- this builder
-
build
public Connection build()
-
copy
public Connection.Builder copy(Connection model)
-
-