Package odata.msgraph.client.entity
Class WindowsInformationProtectionAppLockerFile
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.WindowsInformationProtectionAppLockerFile
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class WindowsInformationProtectionAppLockerFile extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Windows Information Protection AppLocker File”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsInformationProtectionAppLockerFile.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringdisplayNameprotected byte[]fileprotected StringfileHashprotected Stringversion-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsInformationProtectionAppLockerFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsInformationProtectionAppLockerFile.BuilderbuilderWindowsInformationProtectionAppLockerFile()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDisplayName()“The friendly name”Optional<byte[]>getFile()“File as a byte array”Optional<String>getFileHash()“SHA256 hash of the file”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getVersion()“Version of the entity.”StringodataTypeName()WindowsInformationProtectionAppLockerFilepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsInformationProtectionAppLockerFileput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()WindowsInformationProtectionAppLockerFilewithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.WindowsInformationProtectionAppLockerFilewithFile(byte[] file)Returns an immutable copy ofthiswith just thefilefield changed.WindowsInformationProtectionAppLockerFilewithFileHash(String fileHash)Returns an immutable copy ofthiswith just thefileHashfield changed.WindowsInformationProtectionAppLockerFilewithUnmappedField(String name, String value)WindowsInformationProtectionAppLockerFilewithVersion(String version)Returns an immutable copy ofthiswith just theversionfield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderWindowsInformationProtectionAppLockerFile
public static WindowsInformationProtectionAppLockerFile.Builder builderWindowsInformationProtectionAppLockerFile()
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
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getDisplayName
public Optional<String> getDisplayName()
“The friendly name”- Returns:
- property displayName
-
withDisplayName
public WindowsInformationProtectionAppLockerFile 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 friendly name”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getFile
public Optional<byte[]> getFile()
“File as a byte array”- Returns:
- property file
-
withFile
public WindowsInformationProtectionAppLockerFile withFile(byte[] file)
Returns an immutable copy ofthiswith just thefilefield 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.“File as a byte array”
- Parameters:
file- new value offilefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefilefield changed
-
getFileHash
public Optional<String> getFileHash()
“SHA256 hash of the file”- Returns:
- property fileHash
-
withFileHash
public WindowsInformationProtectionAppLockerFile withFileHash(String fileHash)
Returns an immutable copy ofthiswith just thefileHashfield 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.“SHA256 hash of the file”
- Parameters:
fileHash- new value offileHashfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thefileHashfield changed
-
withVersion
public WindowsInformationProtectionAppLockerFile withVersion(String version)
Returns an immutable copy ofthiswith just theversionfield 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.“Version of the entity.”
- Parameters:
version- new value ofversionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theversionfield changed
-
withUnmappedField
public WindowsInformationProtectionAppLockerFile withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public WindowsInformationProtectionAppLockerFile patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public WindowsInformationProtectionAppLockerFile put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-