Class StartTask
- java.lang.Object
-
- com.microsoft.azure.management.batch.StartTask
-
public class StartTask extends Object
A task which is run when a compute node joins a pool in the Azure Batch service, or when the compute node is rebooted or reimaged.
-
-
Constructor Summary
Constructors Constructor Description StartTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcommandLine()Get the commandLine value.List<EnvironmentSetting>environmentSettings()Get the environmentSettings value.IntegermaxTaskRetryCount()Get the maxTaskRetryCount value.List<ResourceFile>resourceFiles()Get the resourceFiles value.UserIdentityuserIdentity()Get the userIdentity value.BooleanwaitForSuccess()Get the waitForSuccess value.StartTaskwithCommandLine(String commandLine)Set the commandLine value.StartTaskwithEnvironmentSettings(List<EnvironmentSetting> environmentSettings)Set the environmentSettings value.StartTaskwithMaxTaskRetryCount(Integer maxTaskRetryCount)Set the maxTaskRetryCount value.StartTaskwithResourceFiles(List<ResourceFile> resourceFiles)Set the resourceFiles value.StartTaskwithUserIdentity(UserIdentity userIdentity)Set the userIdentity value.StartTaskwithWaitForSuccess(Boolean waitForSuccess)Set the waitForSuccess value.
-
-
-
Method Detail
-
commandLine
public String commandLine()
Get the commandLine value.- Returns:
- the commandLine value
-
withCommandLine
public StartTask withCommandLine(String commandLine)
Set the commandLine value.- Parameters:
commandLine- the commandLine value to set- Returns:
- the StartTask object itself.
-
resourceFiles
public List<ResourceFile> resourceFiles()
Get the resourceFiles value.- Returns:
- the resourceFiles value
-
withResourceFiles
public StartTask withResourceFiles(List<ResourceFile> resourceFiles)
Set the resourceFiles value.- Parameters:
resourceFiles- the resourceFiles value to set- Returns:
- the StartTask object itself.
-
environmentSettings
public List<EnvironmentSetting> environmentSettings()
Get the environmentSettings value.- Returns:
- the environmentSettings value
-
withEnvironmentSettings
public StartTask withEnvironmentSettings(List<EnvironmentSetting> environmentSettings)
Set the environmentSettings value.- Parameters:
environmentSettings- the environmentSettings value to set- Returns:
- the StartTask object itself.
-
userIdentity
public UserIdentity userIdentity()
Get the userIdentity value.- Returns:
- the userIdentity value
-
withUserIdentity
public StartTask withUserIdentity(UserIdentity userIdentity)
Set the userIdentity value.- Parameters:
userIdentity- the userIdentity value to set- Returns:
- the StartTask object itself.
-
maxTaskRetryCount
public Integer maxTaskRetryCount()
Get the maxTaskRetryCount value.- Returns:
- the maxTaskRetryCount value
-
withMaxTaskRetryCount
public StartTask withMaxTaskRetryCount(Integer maxTaskRetryCount)
Set the maxTaskRetryCount value.- Parameters:
maxTaskRetryCount- the maxTaskRetryCount value to set- Returns:
- the StartTask object itself.
-
waitForSuccess
public Boolean waitForSuccess()
Get the waitForSuccess value.- Returns:
- the waitForSuccess value
-
-