SimulatorContext Class
- java.
lang. Object - microsoft.
bonsai. simulatorapi. models. SimulatorContext
- microsoft.
public class SimulatorContext
This structure is passed (as a string) to a simulator running when launched by the Socrates backend.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
collection()
Get the id of the collection. |
| String |
deploymentDetails()
Get where is this simulator deployed. |
|
Simulator |
deploymentMode()
Get possible values include: 'Unspecified', 'Hosted', 'Testing'. |
| String |
packageProperty()
Get the id of the package. |
| Purpose |
purpose()
Get the purpose value. |
| String |
simulatorClientId()
Get a simulator id generated by the client. |
|
Simulator |
withCollection(String collection)
Set the id of the collection. |
|
Simulator |
withDeploymentDetails(String deploymentDetails)
Set where is this simulator deployed. |
|
Simulator |
withDeploymentMode(SimulatorContextTypesDeploymentMode deploymentMode)
Set possible values include: 'Unspecified', 'Hosted', 'Testing'. |
|
Simulator |
withPackageProperty(String packageProperty)
Set the id of the package. |
|
Simulator |
withPurpose(Purpose purpose)
Set the purpose value. |
|
Simulator |
withSimulatorClientId(String simulatorClientId)
Set a simulator id generated by the client. |
Method Details
collection
public String collection()
Get the id of the collection.
Returns:
deploymentDetails
public String deploymentDetails()
Get where is this simulator deployed.
Returns:
deploymentMode
public SimulatorContextTypesDeploymentMode deploymentMode()
Get possible values include: 'Unspecified', 'Hosted', 'Testing'.
Returns:
packageProperty
public String packageProperty()
Get the id of the package.
Returns:
purpose
public Purpose purpose()
Get the purpose value.
Returns:
simulatorClientId
public String simulatorClientId()
Get a simulator id generated by the client.
Returns:
withCollection
public SimulatorContext withCollection(String collection)
Set the id of the collection.
Parameters:
Returns:
withDeploymentDetails
public SimulatorContext withDeploymentDetails(String deploymentDetails)
Set where is this simulator deployed.
Parameters:
Returns:
withDeploymentMode
public SimulatorContext withDeploymentMode(SimulatorContextTypesDeploymentMode deploymentMode)
Set possible values include: 'Unspecified', 'Hosted', 'Testing'.
Parameters:
Returns:
withPackageProperty
public SimulatorContext withPackageProperty(String packageProperty)
Set the id of the package.
Parameters:
Returns:
withPurpose
public SimulatorContext withPurpose(Purpose purpose)
Set the purpose value.
Parameters:
Returns:
withSimulatorClientId
public SimulatorContext withSimulatorClientId(String simulatorClientId)
Set a simulator id generated by the client.
Parameters:
Returns: