Package microsoft.graph.security.entity
Class SensitivityLabel
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- microsoft.graph.security.entity.SensitivityLabel
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class SensitivityLabel extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSensitivityLabel.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringcolorprotected List<String>contentFormatsprotected StringcontentFormatsNextLinkprotected Stringdescriptionprotected BooleanhasProtectionprotected BooleanisActiveprotected BooleanisAppliableprotected Stringnameprotected Integersensitivityprotected Stringtooltip-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSensitivityLabel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SensitivityLabel.BuilderbuilderSensitivityLabel()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>getColor()com.github.davidmoten.odata.client.CollectionPage<String>getContentFormats()com.github.davidmoten.odata.client.CollectionPage<String>getContentFormats(com.github.davidmoten.odata.client.HttpRequestOptions options)Optional<String>getDescription()Optional<Boolean>getHasProtection()Optional<Boolean>getIsActive()Optional<Boolean>getIsAppliable()Optional<String>getName()SensitivityLabelEntityRequestgetParent()Optional<Integer>getSensitivity()Optional<String>getTooltip()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()SensitivityLabelpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)SensitivityLabelput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()SensitivityLabelwithColor(String color)SensitivityLabelwithContentFormats(List<String> contentFormats)SensitivityLabelwithDescription(String description)SensitivityLabelwithHasProtection(Boolean hasProtection)SensitivityLabelwithIsActive(Boolean isActive)SensitivityLabelwithIsAppliable(Boolean isAppliable)SensitivityLabelwithName(String name)SensitivityLabelwithSensitivity(Integer sensitivity)SensitivityLabelwithTooltip(String tooltip)SensitivityLabelwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
color
protected String color
-
contentFormatsNextLink
protected String contentFormatsNextLink
-
description
protected String description
-
hasProtection
protected Boolean hasProtection
-
isActive
protected Boolean isActive
-
isAppliable
protected Boolean isAppliable
-
name
protected String name
-
sensitivity
protected Integer sensitivity
-
tooltip
protected String tooltip
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderSensitivityLabel
public static SensitivityLabel.Builder builderSensitivityLabel()
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
-
withColor
public SensitivityLabel withColor(String color)
-
getContentFormats
public com.github.davidmoten.odata.client.CollectionPage<String> getContentFormats()
-
withContentFormats
public SensitivityLabel withContentFormats(List<String> contentFormats)
-
getContentFormats
public com.github.davidmoten.odata.client.CollectionPage<String> getContentFormats(com.github.davidmoten.odata.client.HttpRequestOptions options)
-
withDescription
public SensitivityLabel withDescription(String description)
-
withHasProtection
public SensitivityLabel withHasProtection(Boolean hasProtection)
-
withIsActive
public SensitivityLabel withIsActive(Boolean isActive)
-
withIsAppliable
public SensitivityLabel withIsAppliable(Boolean isAppliable)
-
withName
public SensitivityLabel withName(String name)
-
withSensitivity
public SensitivityLabel withSensitivity(Integer sensitivity)
-
withTooltip
public SensitivityLabel withTooltip(String tooltip)
-
withUnmappedField
public SensitivityLabel withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getParent
public SensitivityLabelEntityRequest getParent()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public SensitivityLabel patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public SensitivityLabel put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-