Interface Session.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Session.Builder,Session>,SdkBuilder<Session.Builder,Session>,SdkPojo
- Enclosing class:
- Session
@Mutable @NotThreadSafe public static interface Session.Builder extends SdkPojo, CopyableBuilder<Session.Builder,Session>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Session.BuilderaccessType(String accessType)Standardaccess type is the default for Session Manager sessions.Session.BuilderaccessType(AccessType accessType)Standardaccess type is the default for Session Manager sessions.Session.Builderdetails(String details)Reserved for future use.Session.BuilderdocumentName(String documentName)The name of the Session Manager SSM document used to define the parameters and plugin settings for the session.Session.BuilderendDate(Instant endDate)The date and time, in ISO-8601 Extended format, when the session was terminated.Session.BuildermaxSessionDuration(String maxSessionDuration)The maximum duration of a session before it terminates.default Session.BuilderoutputUrl(Consumer<SessionManagerOutputUrl.Builder> outputUrl)Reserved for future use.Session.BuilderoutputUrl(SessionManagerOutputUrl outputUrl)Reserved for future use.Session.Builderowner(String owner)The ID of the Amazon Web Services user that started the session.Session.Builderreason(String reason)The reason for connecting to the instance.Session.BuildersessionId(String sessionId)The ID of the session.Session.BuilderstartDate(Instant startDate)The date and time, in ISO-8601 Extended format, when the session began.Session.Builderstatus(String status)The status of the session.Session.Builderstatus(SessionStatus status)The status of the session.Session.Buildertarget(String target)The managed node that the Session Manager session connected to.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
sessionId
Session.Builder sessionId(String sessionId)
The ID of the session.
- Parameters:
sessionId- The ID of the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
Session.Builder target(String target)
The managed node that the Session Manager session connected to.
- Parameters:
target- The managed node that the Session Manager session connected to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
Session.Builder status(String status)
The status of the session. For example, "Connected" or "Terminated".
- Parameters:
status- The status of the session. For example, "Connected" or "Terminated".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SessionStatus,SessionStatus
-
status
Session.Builder status(SessionStatus status)
The status of the session. For example, "Connected" or "Terminated".
- Parameters:
status- The status of the session. For example, "Connected" or "Terminated".- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SessionStatus,SessionStatus
-
startDate
Session.Builder startDate(Instant startDate)
The date and time, in ISO-8601 Extended format, when the session began.
- Parameters:
startDate- The date and time, in ISO-8601 Extended format, when the session began.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
endDate
Session.Builder endDate(Instant endDate)
The date and time, in ISO-8601 Extended format, when the session was terminated.
- Parameters:
endDate- The date and time, in ISO-8601 Extended format, when the session was terminated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
documentName
Session.Builder documentName(String documentName)
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session. For example,
SSM-SessionManagerRunShell.- Parameters:
documentName- The name of the Session Manager SSM document used to define the parameters and plugin settings for the session. For example,SSM-SessionManagerRunShell.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
owner
Session.Builder owner(String owner)
The ID of the Amazon Web Services user that started the session.
- Parameters:
owner- The ID of the Amazon Web Services user that started the session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reason
Session.Builder reason(String reason)
The reason for connecting to the instance.
- Parameters:
reason- The reason for connecting to the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
details
Session.Builder details(String details)
Reserved for future use.
- Parameters:
details- Reserved for future use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputUrl
Session.Builder outputUrl(SessionManagerOutputUrl outputUrl)
Reserved for future use.
- Parameters:
outputUrl- Reserved for future use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputUrl
default Session.Builder outputUrl(Consumer<SessionManagerOutputUrl.Builder> outputUrl)
Reserved for future use.
This is a convenience method that creates an instance of theSessionManagerOutputUrl.Builderavoiding the need to create one manually viaSessionManagerOutputUrl.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooutputUrl(SessionManagerOutputUrl).- Parameters:
outputUrl- a consumer that will call methods onSessionManagerOutputUrl.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
outputUrl(SessionManagerOutputUrl)
-
maxSessionDuration
Session.Builder maxSessionDuration(String maxSessionDuration)
The maximum duration of a session before it terminates.
- Parameters:
maxSessionDuration- The maximum duration of a session before it terminates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessType
Session.Builder accessType(String accessType)
Standardaccess type is the default for Session Manager sessions.JustInTimeis the access type for Just-in-time node access.- Parameters:
accessType-Standardaccess type is the default for Session Manager sessions.JustInTimeis the access type for Just-in-time node access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AccessType,AccessType
-
accessType
Session.Builder accessType(AccessType accessType)
Standardaccess type is the default for Session Manager sessions.JustInTimeis the access type for Just-in-time node access.- Parameters:
accessType-Standardaccess type is the default for Session Manager sessions.JustInTimeis the access type for Just-in-time node access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AccessType,AccessType
-
-