@Generated(value="software.amazon.awssdk:codegen") public final class StartSessionRequest extends SsmRequest implements ToCopyableBuilder<StartSessionRequest.Builder,StartSessionRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
StartSessionRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static StartSessionRequest.Builder |
builder() |
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.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasParameters()
For responses, this returns true if the service returned a value for the Parameters property.
|
Map<String,List<String>> |
parameters()
The values you want to specify for the parameters defined in the Session document.
|
String |
reason()
The reason for connecting to the instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends StartSessionRequest.Builder> |
serializableBuilderClass() |
String |
target()
The managed node to connect to for the session.
|
StartSessionRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String target()
The managed node to connect to for the session.
public final 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.
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.public final String 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.
public final boolean hasParameters()
isEmpty()
method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,List<String>> parameters()
The values you want to specify for the parameters defined in the Session document.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasParameters()
method.
public StartSessionRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<StartSessionRequest.Builder,StartSessionRequest>
toBuilder
in class SsmRequest
public static StartSessionRequest.Builder builder()
public static Class<? extends StartSessionRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2022. All rights reserved.