Interface StartSessionRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, CopyableBuilder<StartSessionRequest.Builder,StartSessionRequest>, SdkBuilder<StartSessionRequest.Builder,StartSessionRequest>, SdkPojo, SdkRequest.Builder, SsmRequest.Builder
Enclosing class:
StartSessionRequest

public static interface StartSessionRequest.Builder extends SsmRequest.Builder, SdkPojo, CopyableBuilder<StartSessionRequest.Builder,StartSessionRequest>
  • Method Details

    • target

      The managed node to connect to for the session.

      Parameters:
      target - The managed node to connect to for the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • documentName

      StartSessionRequest.Builder documentName(String documentName)

      The name of the SSM document you want to use to define the type of session, input parameters, or preferences for the session. For example, SSM-SessionManagerRunShell. You can call the GetDocument API to verify the document exists before attempting to start a session. If no document name is provided, a shell to the managed node is launched by default. For more information, see Start a session in the Amazon Web Services Systems Manager User Guide.

      Parameters:
      documentName - The name of the SSM document you want to use to define the type of session, input parameters, or preferences for the session. For example, SSM-SessionManagerRunShell. You can call the GetDocument API to verify the document exists before attempting to start a session. If no document name is provided, a shell to the managed node is launched by default. For more information, see Start a session in the Amazon Web Services Systems Manager User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • reason

      The reason for connecting to the instance. This value is included in the details for the Amazon CloudWatch Events event created when you start the session.

      Parameters:
      reason - The reason for connecting to the instance. This value is included in the details for the Amazon CloudWatch Events event created when you start the session.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • parameters

      StartSessionRequest.Builder parameters(Map<String,? extends Collection<String>> parameters)

      The values you want to specify for the parameters defined in the Session document.

      Parameters:
      parameters - The values you want to specify for the parameters defined in the Session document.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      StartSessionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.