Interface Session.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Session.Builder,
,Session> SdkBuilder<Session.Builder,
,Session> SdkPojo
- Enclosing class:
Session
-
Method Summary
Modifier and TypeMethodDescriptionReserved for future use.documentName
(String documentName) The name of the Session Manager SSM document used to define the parameters and plugin settings for the session.The date and time, in ISO-8601 Extended format, when the session was terminated.maxSessionDuration
(String maxSessionDuration) The maximum duration of a session before it terminates.default Session.Builder
outputUrl
(Consumer<SessionManagerOutputUrl.Builder> outputUrl) Reserved for future use.outputUrl
(SessionManagerOutputUrl outputUrl) Reserved for future use.The ID of the Amazon Web Services user that started the session.The reason for connecting to the instance.The ID of the session.The date and time, in ISO-8601 Extended format, when the session began.The status of the session.status
(SessionStatus status) The status of the session.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, sdkFields
-
Method Details
-
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
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
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:
-
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:
-
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
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
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
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
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
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
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
Reserved for future use.
This is a convenience method that creates an instance of theSessionManagerOutputUrl.Builder
avoiding the need to create one manually viaSessionManagerOutputUrl.builder()
.When the
Consumer
completes,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:
-
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.
-