@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Session extends Object implements Serializable, Cloneable, StructuredPojo
Describes a streaming session.
| Constructor and Description | 
|---|
| Session() | 
| Modifier and Type | Method and Description | 
|---|---|
| Session | clone() | 
| boolean | equals(Object obj) | 
| String | getAuthenticationType()
 The authentication method. | 
| String | getConnectionState()
 Specifies whether a user is connected to the streaming session. | 
| String | getFleetName()
 The name of the fleet for the streaming session. | 
| String | getId()
 The identifier of the streaming session. | 
| String | getInstanceId()
 The identifier for the instance hosting the session. | 
| Date | getMaxExpirationTime()
 The time when the streaming session is set to expire. | 
| NetworkAccessConfiguration | getNetworkAccessConfiguration()
 The network details for the streaming session. | 
| String | getStackName()
 The name of the stack for the streaming session. | 
| Date | getStartTime()
 The time when a streaming instance is dedicated for the user. | 
| String | getState()
 The current state of the streaming session. | 
| String | getUserId()
 The identifier of the user for whom the session was created. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setAuthenticationType(AuthenticationType authenticationType)
 The authentication method. | 
| void | setAuthenticationType(String authenticationType)
 The authentication method. | 
| void | setConnectionState(SessionConnectionState connectionState)
 Specifies whether a user is connected to the streaming session. | 
| void | setConnectionState(String connectionState)
 Specifies whether a user is connected to the streaming session. | 
| void | setFleetName(String fleetName)
 The name of the fleet for the streaming session. | 
| void | setId(String id)
 The identifier of the streaming session. | 
| void | setInstanceId(String instanceId)
 The identifier for the instance hosting the session. | 
| void | setMaxExpirationTime(Date maxExpirationTime)
 The time when the streaming session is set to expire. | 
| void | setNetworkAccessConfiguration(NetworkAccessConfiguration networkAccessConfiguration)
 The network details for the streaming session. | 
| void | setStackName(String stackName)
 The name of the stack for the streaming session. | 
| void | setStartTime(Date startTime)
 The time when a streaming instance is dedicated for the user. | 
| void | setState(SessionState state)
 The current state of the streaming session. | 
| void | setState(String state)
 The current state of the streaming session. | 
| void | setUserId(String userId)
 The identifier of the user for whom the session was created. | 
| String | toString()Returns a string representation of this object. | 
| Session | withAuthenticationType(AuthenticationType authenticationType)
 The authentication method. | 
| Session | withAuthenticationType(String authenticationType)
 The authentication method. | 
| Session | withConnectionState(SessionConnectionState connectionState)
 Specifies whether a user is connected to the streaming session. | 
| Session | withConnectionState(String connectionState)
 Specifies whether a user is connected to the streaming session. | 
| Session | withFleetName(String fleetName)
 The name of the fleet for the streaming session. | 
| Session | withId(String id)
 The identifier of the streaming session. | 
| Session | withInstanceId(String instanceId)
 The identifier for the instance hosting the session. | 
| Session | withMaxExpirationTime(Date maxExpirationTime)
 The time when the streaming session is set to expire. | 
| Session | withNetworkAccessConfiguration(NetworkAccessConfiguration networkAccessConfiguration)
 The network details for the streaming session. | 
| Session | withStackName(String stackName)
 The name of the stack for the streaming session. | 
| Session | withStartTime(Date startTime)
 The time when a streaming instance is dedicated for the user. | 
| Session | withState(SessionState state)
 The current state of the streaming session. | 
| Session | withState(String state)
 The current state of the streaming session. | 
| Session | withUserId(String userId)
 The identifier of the user for whom the session was created. | 
public void setId(String id)
The identifier of the streaming session.
id - The identifier of the streaming session.public String getId()
The identifier of the streaming session.
public Session withId(String id)
The identifier of the streaming session.
id - The identifier of the streaming session.public void setUserId(String userId)
The identifier of the user for whom the session was created.
userId - The identifier of the user for whom the session was created.public String getUserId()
The identifier of the user for whom the session was created.
public Session withUserId(String userId)
The identifier of the user for whom the session was created.
userId - The identifier of the user for whom the session was created.public void setStackName(String stackName)
The name of the stack for the streaming session.
stackName - The name of the stack for the streaming session.public String getStackName()
The name of the stack for the streaming session.
public Session withStackName(String stackName)
The name of the stack for the streaming session.
stackName - The name of the stack for the streaming session.public void setFleetName(String fleetName)
The name of the fleet for the streaming session.
fleetName - The name of the fleet for the streaming session.public String getFleetName()
The name of the fleet for the streaming session.
public Session withFleetName(String fleetName)
The name of the fleet for the streaming session.
fleetName - The name of the fleet for the streaming session.public void setState(String state)
The current state of the streaming session.
state - The current state of the streaming session.SessionStatepublic String getState()
The current state of the streaming session.
SessionStatepublic Session withState(String state)
The current state of the streaming session.
state - The current state of the streaming session.SessionStatepublic void setState(SessionState state)
The current state of the streaming session.
state - The current state of the streaming session.SessionStatepublic Session withState(SessionState state)
The current state of the streaming session.
state - The current state of the streaming session.SessionStatepublic void setConnectionState(String connectionState)
Specifies whether a user is connected to the streaming session.
connectionState - Specifies whether a user is connected to the streaming session.SessionConnectionStatepublic String getConnectionState()
Specifies whether a user is connected to the streaming session.
SessionConnectionStatepublic Session withConnectionState(String connectionState)
Specifies whether a user is connected to the streaming session.
connectionState - Specifies whether a user is connected to the streaming session.SessionConnectionStatepublic void setConnectionState(SessionConnectionState connectionState)
Specifies whether a user is connected to the streaming session.
connectionState - Specifies whether a user is connected to the streaming session.SessionConnectionStatepublic Session withConnectionState(SessionConnectionState connectionState)
Specifies whether a user is connected to the streaming session.
connectionState - Specifies whether a user is connected to the streaming session.SessionConnectionStatepublic void setStartTime(Date startTime)
The time when a streaming instance is dedicated for the user.
startTime - The time when a streaming instance is dedicated for the user.public Date getStartTime()
The time when a streaming instance is dedicated for the user.
public Session withStartTime(Date startTime)
The time when a streaming instance is dedicated for the user.
startTime - The time when a streaming instance is dedicated for the user.public void setMaxExpirationTime(Date maxExpirationTime)
 The time when the streaming session is set to expire. This time is based on the
 MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming session
 can run. A streaming session might end earlier than the time specified in SessionMaxExpirationTime,
 when the DisconnectTimeOutInSeconds elapses or the user chooses to end his or her session. If the
 DisconnectTimeOutInSeconds elapses, or the user chooses to end his or her session, the streaming
 instance is terminated and the streaming session ends.
 
maxExpirationTime - The time when the streaming session is set to expire. This time is based on the
        MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming
        session can run. A streaming session might end earlier than the time specified in
        SessionMaxExpirationTime, when the DisconnectTimeOutInSeconds elapses or the
        user chooses to end his or her session. If the DisconnectTimeOutInSeconds elapses, or the
        user chooses to end his or her session, the streaming instance is terminated and the streaming session
        ends.public Date getMaxExpirationTime()
 The time when the streaming session is set to expire. This time is based on the
 MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming session
 can run. A streaming session might end earlier than the time specified in SessionMaxExpirationTime,
 when the DisconnectTimeOutInSeconds elapses or the user chooses to end his or her session. If the
 DisconnectTimeOutInSeconds elapses, or the user chooses to end his or her session, the streaming
 instance is terminated and the streaming session ends.
 
MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming
         session can run. A streaming session might end earlier than the time specified in
         SessionMaxExpirationTime, when the DisconnectTimeOutInSeconds elapses or the
         user chooses to end his or her session. If the DisconnectTimeOutInSeconds elapses, or the
         user chooses to end his or her session, the streaming instance is terminated and the streaming session
         ends.public Session withMaxExpirationTime(Date maxExpirationTime)
 The time when the streaming session is set to expire. This time is based on the
 MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming session
 can run. A streaming session might end earlier than the time specified in SessionMaxExpirationTime,
 when the DisconnectTimeOutInSeconds elapses or the user chooses to end his or her session. If the
 DisconnectTimeOutInSeconds elapses, or the user chooses to end his or her session, the streaming
 instance is terminated and the streaming session ends.
 
maxExpirationTime - The time when the streaming session is set to expire. This time is based on the
        MaxUserDurationinSeconds value, which determines the maximum length of time that a streaming
        session can run. A streaming session might end earlier than the time specified in
        SessionMaxExpirationTime, when the DisconnectTimeOutInSeconds elapses or the
        user chooses to end his or her session. If the DisconnectTimeOutInSeconds elapses, or the
        user chooses to end his or her session, the streaming instance is terminated and the streaming session
        ends.public void setAuthenticationType(String authenticationType)
 The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
 federation (SAML).
 
authenticationType - The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
        federation (SAML).AuthenticationTypepublic String getAuthenticationType()
 The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
 federation (SAML).
 
API) or SAML 2.0
         federation (SAML).AuthenticationTypepublic Session withAuthenticationType(String authenticationType)
 The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
 federation (SAML).
 
authenticationType - The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
        federation (SAML).AuthenticationTypepublic void setAuthenticationType(AuthenticationType authenticationType)
 The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
 federation (SAML).
 
authenticationType - The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
        federation (SAML).AuthenticationTypepublic Session withAuthenticationType(AuthenticationType authenticationType)
 The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
 federation (SAML).
 
authenticationType - The authentication method. The user is authenticated using a streaming URL (API) or SAML 2.0
        federation (SAML).AuthenticationTypepublic void setNetworkAccessConfiguration(NetworkAccessConfiguration networkAccessConfiguration)
The network details for the streaming session.
networkAccessConfiguration - The network details for the streaming session.public NetworkAccessConfiguration getNetworkAccessConfiguration()
The network details for the streaming session.
public Session withNetworkAccessConfiguration(NetworkAccessConfiguration networkAccessConfiguration)
The network details for the streaming session.
networkAccessConfiguration - The network details for the streaming session.public void setInstanceId(String instanceId)
The identifier for the instance hosting the session.
instanceId - The identifier for the instance hosting the session.public String getInstanceId()
The identifier for the instance hosting the session.
public Session withInstanceId(String instanceId)
The identifier for the instance hosting the session.
instanceId - The identifier for the instance hosting the session.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.