Package odata.msgraph.client.beta.entity
Class DeviceComplianceActionItem
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceComplianceActionItem
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceComplianceActionItem extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Scheduled Action Configuration”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceComplianceActionItem.Builder
-
Field Summary
Fields Modifier and Type Field Description protected DeviceComplianceActionTypeactionTypeprotected 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 protectedDeviceComplianceActionItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceComplianceActionItem.BuilderbuilderDeviceComplianceActionItem()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<DeviceComplianceActionType>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()DeviceComplianceActionItempatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceComplianceActionItemput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceComplianceActionItemwithActionType(DeviceComplianceActionType actionType)Returns an immutable copy ofthiswith just theactionTypefield changed.DeviceComplianceActionItemwithGracePeriodHours(Integer gracePeriodHours)Returns an immutable copy ofthiswith just thegracePeriodHoursfield changed.DeviceComplianceActionItemwithNotificationMessageCCList(List<String> notificationMessageCCList)Returns an immutable copy ofthiswith just thenotificationMessageCCListfield changed.DeviceComplianceActionItemwithNotificationTemplateId(String notificationTemplateId)Returns an immutable copy ofthiswith just thenotificationTemplateIdfield changed.DeviceComplianceActionItemwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
actionType
protected DeviceComplianceActionType 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
-
builderDeviceComplianceActionItem
public static DeviceComplianceActionItem.Builder builderDeviceComplianceActionItem()
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<DeviceComplianceActionType> getActionType()
“What action to take”- Returns:
- property actionType
-
withActionType
public DeviceComplianceActionItem withActionType(DeviceComplianceActionType 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 DeviceComplianceActionItem 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.”- Returns:
- property notificationMessageCCList
-
withNotificationMessageCCList
public DeviceComplianceActionItem 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.”
- 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.”- 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 DeviceComplianceActionItem 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 DeviceComplianceActionItem 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 DeviceComplianceActionItem patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceComplianceActionItem put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-