Package odata.msgraph.client.beta.entity
Class DeviceShellScript.Builder
- java.lang.Object
-
- odata.msgraph.client.beta.entity.DeviceShellScript.Builder
-
- Enclosing class:
- DeviceShellScript
public static final class DeviceShellScript.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceShellScript.BuilderblockExecutionNotifications(Boolean blockExecutionNotifications)“Does not notify the user a script is being executed”DeviceShellScriptbuild()DeviceShellScript.BuildercreatedDateTime(OffsetDateTime createdDateTime)“The date and time the device management script was created.DeviceShellScript.Builderdescription(String description)“Optional description for the device management script.”DeviceShellScript.BuilderdisplayName(String displayName)“Name of the device management script.”DeviceShellScript.BuilderexecutionFrequency(Duration executionFrequency)“The interval for script to run.DeviceShellScript.BuilderfileName(String fileName)“Script file name.”DeviceShellScript.Builderid(String id)DeviceShellScript.BuilderlastModifiedDateTime(OffsetDateTime lastModifiedDateTime)“The date and time the device management script was last modified.DeviceShellScript.BuilderretryCount(Integer retryCount)“Number of times for the script to be retried if it fails”DeviceShellScript.BuilderroleScopeTagIds(String... roleScopeTagIds)“List of Scope Tag IDs for this PowerShellScript instance.”DeviceShellScript.BuilderroleScopeTagIds(List<String> roleScopeTagIds)“List of Scope Tag IDs for this PowerShellScript instance.”DeviceShellScript.BuilderroleScopeTagIdsNextLink(String roleScopeTagIdsNextLink)“List of Scope Tag IDs for this PowerShellScript instance.”DeviceShellScript.BuilderrunAsAccount(RunAsAccountType runAsAccount)“Indicates the type of execution context.”DeviceShellScript.BuilderscriptContent(byte[] scriptContent)“The script content.”
-
-
-
Method Detail
-
id
public DeviceShellScript.Builder id(String id)
-
blockExecutionNotifications
public DeviceShellScript.Builder blockExecutionNotifications(Boolean blockExecutionNotifications)
“Does not notify the user a script is being executed”- Parameters:
blockExecutionNotifications- value ofblockExecutionNotificationsproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
createdDateTime
public DeviceShellScript.Builder createdDateTime(OffsetDateTime createdDateTime)
“The date and time the device management script was created. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
createdDateTime- value ofcreatedDateTimeproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
description
public DeviceShellScript.Builder description(String description)
“Optional description for the device management script.”- Parameters:
description- value ofdescriptionproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
displayName
public DeviceShellScript.Builder displayName(String displayName)
“Name of the device management script.”- Parameters:
displayName- value ofdisplayNameproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
executionFrequency
public DeviceShellScript.Builder executionFrequency(Duration executionFrequency)
“The interval for script to run. If not defined the script will run once”- Parameters:
executionFrequency- value ofexecutionFrequencyproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
fileName
public DeviceShellScript.Builder fileName(String fileName)
“Script file name.”- Parameters:
fileName- value offileNameproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
lastModifiedDateTime
public DeviceShellScript.Builder lastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
“The date and time the device management script was last modified. This property is read-only.”Org.OData.Core.V1.Computed
true
Org.OData.Core.V1.Permissions
- Parameters:
lastModifiedDateTime- value oflastModifiedDateTimeproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
retryCount
public DeviceShellScript.Builder retryCount(Integer retryCount)
“Number of times for the script to be retried if it fails”- Parameters:
retryCount- value ofretryCountproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
roleScopeTagIds
public DeviceShellScript.Builder roleScopeTagIds(List<String> roleScopeTagIds)
“List of Scope Tag IDs for this PowerShellScript instance.”- Parameters:
roleScopeTagIds- value ofroleScopeTagIdsproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
roleScopeTagIds
public DeviceShellScript.Builder roleScopeTagIds(String... roleScopeTagIds)
“List of Scope Tag IDs for this PowerShellScript instance.”- Parameters:
roleScopeTagIds- value ofroleScopeTagIdsproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
roleScopeTagIdsNextLink
public DeviceShellScript.Builder roleScopeTagIdsNextLink(String roleScopeTagIdsNextLink)
“List of Scope Tag IDs for this PowerShellScript instance.”- Parameters:
roleScopeTagIdsNextLink- value ofroleScopeTagIds@nextLinkproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
runAsAccount
public DeviceShellScript.Builder runAsAccount(RunAsAccountType runAsAccount)
“Indicates the type of execution context.”- Parameters:
runAsAccount- value ofrunAsAccountproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
scriptContent
public DeviceShellScript.Builder scriptContent(byte[] scriptContent)
“The script content.”- Parameters:
scriptContent- value ofscriptContentproperty (as defined in service metadata)- Returns:
this(for method chaining)
-
build
public DeviceShellScript build()
-
-