Class Win32LobAppPowerShellScriptRequirement
- java.lang.Object
-
- odata.msgraph.client.beta.complex.Win32LobAppRequirement
-
- odata.msgraph.client.beta.complex.Win32LobAppPowerShellScriptRequirement
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class Win32LobAppPowerShellScriptRequirement extends Win32LobAppRequirement implements com.github.davidmoten.odata.client.ODataType
“Contains PowerShell script properties to detect a Win32 App”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWin32LobAppPowerShellScriptRequirement.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Win32LobAppPowerShellScriptDetectionTypedetectionTypeprotected StringdisplayNameprotected BooleanenforceSignatureCheckprotected BooleanrunAs32Bitprotected RunAsAccountTyperunAsAccountprotected StringscriptContent-
Fields inherited from class odata.msgraph.client.beta.complex.Win32LobAppRequirement
contextPath, detectionValue, odataType, operator, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWin32LobAppPowerShellScriptRequirement()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Win32LobAppPowerShellScriptRequirement.BuilderbuilderWin32LobAppPowerShellScriptRequirement()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Win32LobAppPowerShellScriptDetectionType>getDetectionType()“The detection type for script output”Optional<String>getDisplayName()“The unique display name for this rule”Optional<Boolean>getEnforceSignatureCheck()“A value indicating whether signature check is enforced”Optional<Boolean>getRunAs32Bit()“A value indicating whether this script should run as 32-bit”Optional<RunAsAccountType>getRunAsAccount()“Indicates the type of execution context the script runs in.”Optional<String>getScriptContent()“The base64 encoded script content to detect Win32 Line of Business (LoB) app”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()Win32LobAppPowerShellScriptRequirementwithDetectionType(Win32LobAppPowerShellScriptDetectionType detectionType)Returns an immutable copy ofthiswith just thedetectionTypefield changed.Win32LobAppPowerShellScriptRequirementwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.Win32LobAppPowerShellScriptRequirementwithEnforceSignatureCheck(Boolean enforceSignatureCheck)Returns an immutable copy ofthiswith just theenforceSignatureCheckfield changed.Win32LobAppPowerShellScriptRequirementwithRunAs32Bit(Boolean runAs32Bit)Returns an immutable copy ofthiswith just therunAs32Bitfield changed.Win32LobAppPowerShellScriptRequirementwithRunAsAccount(RunAsAccountType runAsAccount)Returns an immutable copy ofthiswith just therunAsAccountfield changed.Win32LobAppPowerShellScriptRequirementwithScriptContent(String scriptContent)Returns an immutable copy ofthiswith just thescriptContentfield changed.Win32LobAppPowerShellScriptRequirementwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.beta.complex.Win32LobAppRequirement
getDetectionValue, getOperator, withDetectionValue, withOperator
-
-
-
-
Field Detail
-
detectionType
protected Win32LobAppPowerShellScriptDetectionType detectionType
-
displayName
protected String displayName
-
enforceSignatureCheck
protected Boolean enforceSignatureCheck
-
runAs32Bit
protected Boolean runAs32Bit
-
runAsAccount
protected RunAsAccountType runAsAccount
-
scriptContent
protected String scriptContent
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classWin32LobAppRequirement
-
getDetectionType
public Optional<Win32LobAppPowerShellScriptDetectionType> getDetectionType()
“The detection type for script output”- Returns:
- property detectionType
-
withDetectionType
public Win32LobAppPowerShellScriptRequirement withDetectionType(Win32LobAppPowerShellScriptDetectionType detectionType)
Returns an immutable copy ofthiswith just thedetectionTypefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The detection type for script output”
- Parameters:
detectionType- new value ofdetectionTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedetectionTypefield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The unique display name for this rule”- Returns:
- property displayName
-
withDisplayName
public Win32LobAppPowerShellScriptRequirement withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The unique display name for this rule”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getEnforceSignatureCheck
public Optional<Boolean> getEnforceSignatureCheck()
“A value indicating whether signature check is enforced”- Returns:
- property enforceSignatureCheck
-
withEnforceSignatureCheck
public Win32LobAppPowerShellScriptRequirement withEnforceSignatureCheck(Boolean enforceSignatureCheck)
Returns an immutable copy ofthiswith just theenforceSignatureCheckfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“A value indicating whether signature check is enforced”
- Parameters:
enforceSignatureCheck- new value ofenforceSignatureCheckfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenforceSignatureCheckfield changed
-
getRunAs32Bit
public Optional<Boolean> getRunAs32Bit()
“A value indicating whether this script should run as 32-bit”- Returns:
- property runAs32Bit
-
withRunAs32Bit
public Win32LobAppPowerShellScriptRequirement withRunAs32Bit(Boolean runAs32Bit)
Returns an immutable copy ofthiswith just therunAs32Bitfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“A value indicating whether this script should run as 32-bit”
- Parameters:
runAs32Bit- new value ofrunAs32Bitfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therunAs32Bitfield changed
-
getRunAsAccount
public Optional<RunAsAccountType> getRunAsAccount()
“Indicates the type of execution context the script runs in.”- Returns:
- property runAsAccount
-
withRunAsAccount
public Win32LobAppPowerShellScriptRequirement withRunAsAccount(RunAsAccountType runAsAccount)
Returns an immutable copy ofthiswith just therunAsAccountfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“Indicates the type of execution context the script runs in.”
- Parameters:
runAsAccount- new value ofrunAsAccountfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therunAsAccountfield changed
-
getScriptContent
public Optional<String> getScriptContent()
“The base64 encoded script content to detect Win32 Line of Business (LoB) app”- Returns:
- property scriptContent
-
withScriptContent
public Win32LobAppPowerShellScriptRequirement withScriptContent(String scriptContent)
Returns an immutable copy ofthiswith just thescriptContentfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis. patch()is called (if available)on the returned object only the changed fields are submitted.“The base64 encoded script content to detect Win32 Line of Business (LoB) app”
- Parameters:
scriptContent- new value ofscriptContentfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thescriptContentfield changed
-
withUnmappedField
public Win32LobAppPowerShellScriptRequirement withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classWin32LobAppRequirement
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classWin32LobAppRequirement
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classWin32LobAppRequirement
-
builderWin32LobAppPowerShellScriptRequirement
public static Win32LobAppPowerShellScriptRequirement.Builder builderWin32LobAppPowerShellScriptRequirement()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
toString
public String toString()
- Overrides:
toStringin classWin32LobAppRequirement
-
-