Package odata.msgraph.client.beta.entity
Class DeviceManagementComplianceActionItem
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementComplianceActionItem
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementComplianceActionItem extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Scheduled Action for Rule”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementComplianceActionItem.Builder
-
Field Summary
Fields Modifier and Type Field Description protected DeviceManagementComplianceActionTypeactionTypeprotected IntegergracePeriodHoursprotected List<String>notificationMessageCCListprotected StringnotificationMessageCCListNextLinkprotected StringnotificationTemplateId-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementComplianceActionItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementComplianceActionItem.BuilderbuilderDeviceManagementComplianceActionItem()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<DeviceManagementComplianceActionType>getActionType()“What action to take”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Integer>getGracePeriodHours()“Number of hours to wait till the action will be enforced.com.github.davidmoten.odata.client.CollectionPage<String>getNotificationMessageCCList()“A list of group IDs to speicify who to CC this notification message to.com.github.davidmoten.odata.client.CollectionPage<String>getNotificationMessageCCList(com.github.davidmoten.odata.client.HttpRequestOptions options)“A list of group IDs to speicify who to CC this notification message to.Optional<String>getNotificationTemplateId()“What notification Message template to use”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceManagementComplianceActionItempatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementComplianceActionItemput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementComplianceActionItemwithActionType(DeviceManagementComplianceActionType actionType)Returns an immutable copy ofthiswith just theactionTypefield changed.DeviceManagementComplianceActionItemwithGracePeriodHours(Integer gracePeriodHours)Returns an immutable copy ofthiswith just thegracePeriodHoursfield changed.DeviceManagementComplianceActionItemwithNotificationMessageCCList(List<String> notificationMessageCCList)Returns an immutable copy ofthiswith just thenotificationMessageCCListfield changed.DeviceManagementComplianceActionItemwithNotificationTemplateId(String notificationTemplateId)Returns an immutable copy ofthiswith just thenotificationTemplateIdfield changed.DeviceManagementComplianceActionItemwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
actionType
protected DeviceManagementComplianceActionType actionType
-
gracePeriodHours
protected Integer gracePeriodHours
-
notificationMessageCCListNextLink
protected String notificationMessageCCListNextLink
-
notificationTemplateId
protected String notificationTemplateId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementComplianceActionItem
public static DeviceManagementComplianceActionItem.Builder builderDeviceManagementComplianceActionItem()
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
-
getActionType
public Optional<DeviceManagementComplianceActionType> getActionType()
“What action to take”- Returns:
- property actionType
-
withActionType
public DeviceManagementComplianceActionItem withActionType(DeviceManagementComplianceActionType actionType)
Returns an immutable copy ofthiswith just theactionTypefield 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.“What action to take”
- Parameters:
actionType- new value ofactionTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theactionTypefield changed
-
getGracePeriodHours
public Optional<Integer> getGracePeriodHours()
“Number of hours to wait till the action will be enforced. Valid values 0 to 8760”- Returns:
- property gracePeriodHours
-
withGracePeriodHours
public DeviceManagementComplianceActionItem withGracePeriodHours(Integer gracePeriodHours)
Returns an immutable copy ofthiswith just thegracePeriodHoursfield 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.“Number of hours to wait till the action will be enforced. Valid values 0 to 8760”
- Parameters:
gracePeriodHours- new value ofgracePeriodHoursfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegracePeriodHoursfield changed
-
getNotificationMessageCCList
public com.github.davidmoten.odata.client.CollectionPage<String> getNotificationMessageCCList()
“A list of group IDs to speicify who to CC this notification message to. This collection can contain a maximum of 100 elements.”- Returns:
- property notificationMessageCCList
-
withNotificationMessageCCList
public DeviceManagementComplianceActionItem withNotificationMessageCCList(List<String> notificationMessageCCList)
Returns an immutable copy ofthiswith just thenotificationMessageCCListfield 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 list of group IDs to speicify who to CC this notification message to. This collection can contain a maximum of 100 elements.”
- Parameters:
notificationMessageCCList- new value ofnotificationMessageCCListfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenotificationMessageCCListfield changed
-
getNotificationMessageCCList
public com.github.davidmoten.odata.client.CollectionPage<String> getNotificationMessageCCList(com.github.davidmoten.odata.client.HttpRequestOptions options)
“A list of group IDs to speicify who to CC this notification message to. This collection can contain a maximum of 100 elements.”- Parameters:
options- specify connect and read timeouts- Returns:
- property notificationMessageCCList
-
getNotificationTemplateId
public Optional<String> getNotificationTemplateId()
“What notification Message template to use”- Returns:
- property notificationTemplateId
-
withNotificationTemplateId
public DeviceManagementComplianceActionItem withNotificationTemplateId(String notificationTemplateId)
Returns an immutable copy ofthiswith just thenotificationTemplateIdfield 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.“What notification Message template to use”
- Parameters:
notificationTemplateId- new value ofnotificationTemplateIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thenotificationTemplateIdfield changed
-
withUnmappedField
public DeviceManagementComplianceActionItem 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 DeviceManagementComplianceActionItem patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementComplianceActionItem put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-