@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Session extends Object implements Serializable, Cloneable, StructuredPojo
Information about a Session Manager connection to a managed node.
Constructor and Description |
---|
Session() |
Modifier and Type | Method and Description |
---|---|
Session |
clone() |
boolean |
equals(Object obj) |
String |
getDetails()
Reserved for future use.
|
String |
getDocumentName()
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session.
|
Date |
getEndDate()
The date and time, in ISO-8601 Extended format, when the session was terminated.
|
String |
getMaxSessionDuration()
The maximum duration of a session before it terminates.
|
SessionManagerOutputUrl |
getOutputUrl()
Reserved for future use.
|
String |
getOwner()
The ID of the Amazon Web Services user that started the session.
|
String |
getReason()
The reason for connecting to the instance.
|
String |
getSessionId()
The ID of the session.
|
Date |
getStartDate()
The date and time, in ISO-8601 Extended format, when the session began.
|
String |
getStatus()
The status of the session.
|
String |
getTarget()
The managed node that the Session Manager session connected to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDetails(String details)
Reserved for future use.
|
void |
setDocumentName(String documentName)
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session.
|
void |
setEndDate(Date endDate)
The date and time, in ISO-8601 Extended format, when the session was terminated.
|
void |
setMaxSessionDuration(String maxSessionDuration)
The maximum duration of a session before it terminates.
|
void |
setOutputUrl(SessionManagerOutputUrl outputUrl)
Reserved for future use.
|
void |
setOwner(String owner)
The ID of the Amazon Web Services user that started the session.
|
void |
setReason(String reason)
The reason for connecting to the instance.
|
void |
setSessionId(String sessionId)
The ID of the session.
|
void |
setStartDate(Date startDate)
The date and time, in ISO-8601 Extended format, when the session began.
|
void |
setStatus(String status)
The status of the session.
|
void |
setTarget(String target)
The managed node that the Session Manager session connected to.
|
String |
toString()
Returns a string representation of this object.
|
Session |
withDetails(String details)
Reserved for future use.
|
Session |
withDocumentName(String documentName)
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session.
|
Session |
withEndDate(Date endDate)
The date and time, in ISO-8601 Extended format, when the session was terminated.
|
Session |
withMaxSessionDuration(String maxSessionDuration)
The maximum duration of a session before it terminates.
|
Session |
withOutputUrl(SessionManagerOutputUrl outputUrl)
Reserved for future use.
|
Session |
withOwner(String owner)
The ID of the Amazon Web Services user that started the session.
|
Session |
withReason(String reason)
The reason for connecting to the instance.
|
Session |
withSessionId(String sessionId)
The ID of the session.
|
Session |
withStartDate(Date startDate)
The date and time, in ISO-8601 Extended format, when the session began.
|
Session |
withStatus(SessionStatus status)
The status of the session.
|
Session |
withStatus(String status)
The status of the session.
|
Session |
withTarget(String target)
The managed node that the Session Manager session connected to.
|
public void setSessionId(String sessionId)
The ID of the session.
sessionId
- The ID of the session.public String getSessionId()
The ID of the session.
public Session withSessionId(String sessionId)
The ID of the session.
sessionId
- The ID of the session.public void setTarget(String target)
The managed node that the Session Manager session connected to.
target
- The managed node that the Session Manager session connected to.public String getTarget()
The managed node that the Session Manager session connected to.
public Session withTarget(String target)
The managed node that the Session Manager session connected to.
target
- The managed node that the Session Manager session connected to.public void setStatus(String status)
The status of the session. For example, "Connected" or "Terminated".
status
- The status of the session. For example, "Connected" or "Terminated".SessionStatus
public String getStatus()
The status of the session. For example, "Connected" or "Terminated".
SessionStatus
public Session withStatus(String status)
The status of the session. For example, "Connected" or "Terminated".
status
- The status of the session. For example, "Connected" or "Terminated".SessionStatus
public Session withStatus(SessionStatus status)
The status of the session. For example, "Connected" or "Terminated".
status
- The status of the session. For example, "Connected" or "Terminated".SessionStatus
public void setStartDate(Date startDate)
The date and time, in ISO-8601 Extended format, when the session began.
startDate
- The date and time, in ISO-8601 Extended format, when the session began.public Date getStartDate()
The date and time, in ISO-8601 Extended format, when the session began.
public Session withStartDate(Date startDate)
The date and time, in ISO-8601 Extended format, when the session began.
startDate
- The date and time, in ISO-8601 Extended format, when the session began.public void setEndDate(Date endDate)
The date and time, in ISO-8601 Extended format, when the session was terminated.
endDate
- The date and time, in ISO-8601 Extended format, when the session was terminated.public Date getEndDate()
The date and time, in ISO-8601 Extended format, when the session was terminated.
public Session withEndDate(Date endDate)
The date and time, in ISO-8601 Extended format, when the session was terminated.
endDate
- The date and time, in ISO-8601 Extended format, when the session was terminated.public void setDocumentName(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
.
documentName
- The name of the Session Manager SSM document used to define the parameters and plugin settings for the
session. For example, SSM-SessionManagerRunShell
.public String getDocumentName()
The name of the Session Manager SSM document used to define the parameters and plugin settings for the session.
For example, SSM-SessionManagerRunShell
.
SSM-SessionManagerRunShell
.public Session withDocumentName(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
.
documentName
- The name of the Session Manager SSM document used to define the parameters and plugin settings for the
session. For example, SSM-SessionManagerRunShell
.public void setOwner(String owner)
The ID of the Amazon Web Services user that started the session.
owner
- The ID of the Amazon Web Services user that started the session.public String getOwner()
The ID of the Amazon Web Services user that started the session.
public Session withOwner(String owner)
The ID of the Amazon Web Services user that started the session.
owner
- The ID of the Amazon Web Services user that started the session.public void setReason(String reason)
The reason for connecting to the instance.
reason
- The reason for connecting to the instance.public String getReason()
The reason for connecting to the instance.
public Session withReason(String reason)
The reason for connecting to the instance.
reason
- The reason for connecting to the instance.public void setDetails(String details)
Reserved for future use.
details
- Reserved for future use.public String getDetails()
Reserved for future use.
public Session withDetails(String details)
Reserved for future use.
details
- Reserved for future use.public void setOutputUrl(SessionManagerOutputUrl outputUrl)
Reserved for future use.
outputUrl
- Reserved for future use.public SessionManagerOutputUrl getOutputUrl()
Reserved for future use.
public Session withOutputUrl(SessionManagerOutputUrl outputUrl)
Reserved for future use.
outputUrl
- Reserved for future use.public void setMaxSessionDuration(String maxSessionDuration)
The maximum duration of a session before it terminates.
maxSessionDuration
- The maximum duration of a session before it terminates.public String getMaxSessionDuration()
The maximum duration of a session before it terminates.
public Session withMaxSessionDuration(String maxSessionDuration)
The maximum duration of a session before it terminates.
maxSessionDuration
- The maximum duration of a session before it terminates.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.