Package odata.msgraph.client.beta.entity
Class PolicySetItem
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.PolicySetItem
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
DeviceCompliancePolicyPolicySetItem,DeviceConfigurationPolicySetItem,DeviceManagementConfigurationPolicyPolicySetItem,DeviceManagementScriptPolicySetItem,EnrollmentRestrictionsConfigurationPolicySetItem,IosLobAppProvisioningConfigurationPolicySetItem,ManagedAppProtectionPolicySetItem,ManagedDeviceMobileAppConfigurationPolicySetItem,MdmWindowsInformationProtectionPolicyPolicySetItem,MobileAppPolicySetItem,TargetedManagedAppConfigurationPolicySetItem,Windows10EnrollmentCompletionPageConfigurationPolicySetItem,WindowsAutopilotDeploymentProfilePolicySetItem
public class PolicySetItem extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“A class containing the properties used for PolicySet Item.”
-
-
Field Summary
Fields Modifier and Type Field Description protected OffsetDateTimecreatedDateTimeprotected StringdisplayNameprotected ErrorCodeerrorCodeprotected List<String>guidedDeploymentTagsprotected StringguidedDeploymentTagsNextLinkprotected StringitemTypeprotected OffsetDateTimelastModifiedDateTimeprotected StringpayloadIdprotected PolicySetStatusstatus-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPolicySetItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<OffsetDateTime>getCreatedDateTime()“Creation time of the PolicySetItem.”Optional<String>getDisplayName()“DisplayName of the PolicySetItem.”Optional<ErrorCode>getErrorCode()“Error code if any occured.”com.github.davidmoten.odata.client.CollectionPage<String>getGuidedDeploymentTags()“Tags of the guided deployment”com.github.davidmoten.odata.client.CollectionPage<String>getGuidedDeploymentTags(com.github.davidmoten.odata.client.HttpRequestOptions options)“Tags of the guided deployment”Optional<String>getItemType()“policySetType of the PolicySetItem.”Optional<OffsetDateTime>getLastModifiedDateTime()“Last modified time of the PolicySetItem.”Optional<String>getPayloadId()“PayloadId of the PolicySetItem.”Optional<PolicySetStatus>getStatus()“Status of the PolicySetItem.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()PolicySetItempatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)PolicySetItemput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()PolicySetItemwithCreatedDateTime(OffsetDateTime createdDateTime)Returns an immutable copy ofthiswith just thecreatedDateTimefield changed.PolicySetItemwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.PolicySetItemwithErrorCode(ErrorCode errorCode)Returns an immutable copy ofthiswith just theerrorCodefield changed.PolicySetItemwithGuidedDeploymentTags(List<String> guidedDeploymentTags)Returns an immutable copy ofthiswith just theguidedDeploymentTagsfield changed.PolicySetItemwithItemType(String itemType)Returns an immutable copy ofthiswith just theitemTypefield changed.PolicySetItemwithLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)Returns an immutable copy ofthiswith just thelastModifiedDateTimefield changed.PolicySetItemwithPayloadId(String payloadId)Returns an immutable copy ofthiswith just thepayloadIdfield changed.PolicySetItemwithStatus(PolicySetStatus status)Returns an immutable copy ofthiswith just thestatusfield changed.PolicySetItemwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
createdDateTime
protected OffsetDateTime createdDateTime
-
displayName
protected String displayName
-
errorCode
protected ErrorCode errorCode
-
guidedDeploymentTagsNextLink
protected String guidedDeploymentTagsNextLink
-
itemType
protected String itemType
-
lastModifiedDateTime
protected OffsetDateTime lastModifiedDateTime
-
payloadId
protected String payloadId
-
status
protected PolicySetStatus status
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
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
-
getCreatedDateTime
public Optional<OffsetDateTime> getCreatedDateTime()
“Creation time of the PolicySetItem.”- Returns:
- property createdDateTime
-
withCreatedDateTime
public PolicySetItem withCreatedDateTime(OffsetDateTime createdDateTime)
Returns an immutable copy ofthiswith just thecreatedDateTimefield 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.“Creation time of the PolicySetItem.”
- Parameters:
createdDateTime- new value ofcreatedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecreatedDateTimefield changed
-
getDisplayName
public Optional<String> getDisplayName()
“DisplayName of the PolicySetItem.”- Returns:
- property displayName
-
withDisplayName
public PolicySetItem 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.“DisplayName of the PolicySetItem.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getErrorCode
public Optional<ErrorCode> getErrorCode()
“Error code if any occured.”- Returns:
- property errorCode
-
withErrorCode
public PolicySetItem withErrorCode(ErrorCode errorCode)
Returns an immutable copy ofthiswith just theerrorCodefield 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.“Error code if any occured.”
- Parameters:
errorCode- new value oferrorCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorCodefield changed
-
getGuidedDeploymentTags
public com.github.davidmoten.odata.client.CollectionPage<String> getGuidedDeploymentTags()
“Tags of the guided deployment”- Returns:
- property guidedDeploymentTags
-
withGuidedDeploymentTags
public PolicySetItem withGuidedDeploymentTags(List<String> guidedDeploymentTags)
Returns an immutable copy ofthiswith just theguidedDeploymentTagsfield 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.“Tags of the guided deployment”
- Parameters:
guidedDeploymentTags- new value ofguidedDeploymentTagsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theguidedDeploymentTagsfield changed
-
getGuidedDeploymentTags
public com.github.davidmoten.odata.client.CollectionPage<String> getGuidedDeploymentTags(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Tags of the guided deployment”- Parameters:
options- specify connect and read timeouts- Returns:
- property guidedDeploymentTags
-
getItemType
public Optional<String> getItemType()
“policySetType of the PolicySetItem.”- Returns:
- property itemType
-
withItemType
public PolicySetItem withItemType(String itemType)
Returns an immutable copy ofthiswith just theitemTypefield 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.“policySetType of the PolicySetItem.”
- Parameters:
itemType- new value ofitemTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theitemTypefield changed
-
getLastModifiedDateTime
public Optional<OffsetDateTime> getLastModifiedDateTime()
“Last modified time of the PolicySetItem.”- Returns:
- property lastModifiedDateTime
-
withLastModifiedDateTime
public PolicySetItem withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Returns an immutable copy ofthiswith just thelastModifiedDateTimefield 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.“Last modified time of the PolicySetItem.”
- Parameters:
lastModifiedDateTime- new value oflastModifiedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastModifiedDateTimefield changed
-
getPayloadId
public Optional<String> getPayloadId()
“PayloadId of the PolicySetItem.”- Returns:
- property payloadId
-
withPayloadId
public PolicySetItem withPayloadId(String payloadId)
Returns an immutable copy ofthiswith just thepayloadIdfield 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.“PayloadId of the PolicySetItem.”
- Parameters:
payloadId- new value ofpayloadIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepayloadIdfield changed
-
getStatus
public Optional<PolicySetStatus> getStatus()
“Status of the PolicySetItem.”- Returns:
- property status
-
withStatus
public PolicySetItem withStatus(PolicySetStatus status)
Returns an immutable copy ofthiswith just thestatusfield 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.“Status of the PolicySetItem.”
- Parameters:
status- new value ofstatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thestatusfield changed
-
withUnmappedField
public PolicySetItem 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 PolicySetItem patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public PolicySetItem put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-