@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class StartSessionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
StartSessionRequest() |
Modifier and Type | Method and Description |
---|---|
StartSessionRequest |
addParametersEntry(String key,
List<String> value)
Add a single Parameters entry
|
StartSessionRequest |
clearParametersEntries()
Removes all the entries added into Parameters.
|
StartSessionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDocumentName()
The name of the SSM document you want to use to define the type of session, input parameters, or preferences for
the session.
|
Map<String,List<String>> |
getParameters()
The values you want to specify for the parameters defined in the Session document.
|
String |
getReason()
The reason for connecting to the instance.
|
String |
getTarget()
The managed node to connect to for the session.
|
int |
hashCode() |
void |
setDocumentName(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.
|
void |
setParameters(Map<String,List<String>> parameters)
The values you want to specify for the parameters defined in the Session document.
|
void |
setReason(String reason)
The reason for connecting to the instance.
|
void |
setTarget(String target)
The managed node to connect to for the session.
|
String |
toString()
Returns a string representation of this object.
|
StartSessionRequest |
withDocumentName(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.
|
StartSessionRequest |
withParameters(Map<String,List<String>> parameters)
The values you want to specify for the parameters defined in the Session document.
|
StartSessionRequest |
withReason(String reason)
The reason for connecting to the instance.
|
StartSessionRequest |
withTarget(String target)
The managed node to connect to for the session.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setTarget(String target)
The managed node to connect to for the session.
target
- The managed node to connect to for the session.public String getTarget()
The managed node to connect to for the session.
public StartSessionRequest withTarget(String target)
The managed node to connect to for the session.
target
- The managed node to connect to for the session.public void setDocumentName(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.
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.public String getDocumentName()
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 StartSessionRequest withDocumentName(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.
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.public void setReason(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.
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 String getReason()
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 StartSessionRequest withReason(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.
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 Map<String,List<String>> getParameters()
The values you want to specify for the parameters defined in the Session document.
public void setParameters(Map<String,List<String>> parameters)
The values you want to specify for the parameters defined in the Session document.
parameters
- The values you want to specify for the parameters defined in the Session document.public StartSessionRequest withParameters(Map<String,List<String>> parameters)
The values you want to specify for the parameters defined in the Session document.
parameters
- The values you want to specify for the parameters defined in the Session document.public StartSessionRequest addParametersEntry(String key, List<String> value)
public StartSessionRequest clearParametersEntries()
public String toString()
toString
in class Object
Object.toString()
public StartSessionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()