Package com.oracle.bmc.bastion.model
Class Session.Builder
- java.lang.Object
-
- com.oracle.bmc.bastion.model.Session.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Session.BuilderbastionId(String bastionId)The unique identifier (OCID) of the bastion that is hosting this session.Session.BuilderbastionName(String bastionName)The name of the bastion that is hosting this session.Session.BuilderbastionPublicHostKeyInfo(String bastionPublicHostKeyInfo)The public key of the bastion host.Session.BuilderbastionUserName(String bastionUserName)The username that the session uses to connect to the target resource.Sessionbuild()Session.Buildercopy(Session model)Session.BuilderdisplayName(String displayName)The name of the session.Session.Builderid(String id)The unique identifier (OCID) of the session, which can’t be changed after creation.Session.BuilderkeyDetails(PublicKeyDetails keyDetails)Session.BuilderkeyType(Session.KeyType keyType)The type of the key used to connect to the session.Session.BuilderlifecycleDetails(String lifecycleDetails)A message describing the current session state in more detail.Session.BuilderlifecycleState(SessionLifecycleState lifecycleState)The current state of the session.Session.BuildersessionTtlInSeconds(Integer sessionTtlInSeconds)The amount of time the session can remain active.Session.BuildersshMetadata(Map<String,String> sshMetadata)The connection message for the session.Session.BuildertargetResourceDetails(TargetResourceDetails targetResourceDetails)Session.BuildertimeCreated(Date timeCreated)The time the session was created.Session.BuildertimeUpdated(Date timeUpdated)The time the session was updated.
-
-
-
Method Detail
-
id
public Session.Builder id(String id)
The unique identifier (OCID) of the session, which can’t be changed after creation.- Parameters:
id- the value to set- Returns:
- this builder
-
displayName
public Session.Builder displayName(String displayName)
The name of the session.- Parameters:
displayName- the value to set- Returns:
- this builder
-
bastionId
public Session.Builder bastionId(String bastionId)
The unique identifier (OCID) of the bastion that is hosting this session.- Parameters:
bastionId- the value to set- Returns:
- this builder
-
bastionName
public Session.Builder bastionName(String bastionName)
The name of the bastion that is hosting this session.- Parameters:
bastionName- the value to set- Returns:
- this builder
-
bastionUserName
public Session.Builder bastionUserName(String bastionUserName)
The username that the session uses to connect to the target resource.- Parameters:
bastionUserName- the value to set- Returns:
- this builder
-
targetResourceDetails
public Session.Builder targetResourceDetails(TargetResourceDetails targetResourceDetails)
-
sshMetadata
public Session.Builder sshMetadata(Map<String,String> sshMetadata)
The connection message for the session.- Parameters:
sshMetadata- the value to set- Returns:
- this builder
-
keyType
public Session.Builder keyType(Session.KeyType keyType)
The type of the key used to connect to the session.PUB is a standard public key in OpenSSH format.
- Parameters:
keyType- the value to set- Returns:
- this builder
-
keyDetails
public Session.Builder keyDetails(PublicKeyDetails keyDetails)
-
bastionPublicHostKeyInfo
public Session.Builder bastionPublicHostKeyInfo(String bastionPublicHostKeyInfo)
The public key of the bastion host.You can use this to verify that you’re connecting to the correct bastion.
- Parameters:
bastionPublicHostKeyInfo- the value to set- Returns:
- this builder
-
timeCreated
public Session.Builder timeCreated(Date timeCreated)
The time the session 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 Session.Builder timeUpdated(Date timeUpdated)
The time the session 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 Session.Builder lifecycleState(SessionLifecycleState lifecycleState)
The current state of the session.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
lifecycleDetails
public Session.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current session state in more detail.- Parameters:
lifecycleDetails- the value to set- Returns:
- this builder
-
sessionTtlInSeconds
public Session.Builder sessionTtlInSeconds(Integer sessionTtlInSeconds)
The amount of time the session can remain active.- Parameters:
sessionTtlInSeconds- the value to set- Returns:
- this builder
-
build
public Session build()
-
copy
public Session.Builder copy(Session model)
-
-