Package odata.msgraph.client.beta.entity
Class DeviceManagementAutopilotPolicyStatusDetail
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceManagementAutopilotPolicyStatusDetail
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceManagementAutopilotPolicyStatusDetail extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“Policy status detail item contained by an autopilot event.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceManagementAutopilotPolicyStatusDetail.Builder
-
Field Summary
Fields Modifier and Type Field Description protected DeviceManagementAutopilotPolicyComplianceStatuscomplianceStatusprotected StringdisplayNameprotected IntegererrorCodeprotected OffsetDateTimelastReportedDateTimeprotected DeviceManagementAutopilotPolicyTypepolicyTypeprotected BooleantrackedOnEnrollmentStatus-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceManagementAutopilotPolicyStatusDetail()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceManagementAutopilotPolicyStatusDetail.BuilderbuilderDeviceManagementAutopilotPolicyStatusDetail()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<DeviceManagementAutopilotPolicyComplianceStatus>getComplianceStatus()“The policy compliance status.”Optional<String>getDisplayName()“The friendly name of the policy.”Optional<Integer>getErrorCode()“The errorode associated with the compliance or enforcement status of the policy.Optional<OffsetDateTime>getLastReportedDateTime()“Timestamp of the reported policy status”Optional<DeviceManagementAutopilotPolicyType>getPolicyType()“The type of policy.”Optional<Boolean>getTrackedOnEnrollmentStatus()“Indicates if this prolicy was tracked as part of the autopilot bootstrap enrollment sync session”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceManagementAutopilotPolicyStatusDetailpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceManagementAutopilotPolicyStatusDetailput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceManagementAutopilotPolicyStatusDetailwithComplianceStatus(DeviceManagementAutopilotPolicyComplianceStatus complianceStatus)Returns an immutable copy ofthiswith just thecomplianceStatusfield changed.DeviceManagementAutopilotPolicyStatusDetailwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.DeviceManagementAutopilotPolicyStatusDetailwithErrorCode(Integer errorCode)Returns an immutable copy ofthiswith just theerrorCodefield changed.DeviceManagementAutopilotPolicyStatusDetailwithLastReportedDateTime(OffsetDateTime lastReportedDateTime)Returns an immutable copy ofthiswith just thelastReportedDateTimefield changed.DeviceManagementAutopilotPolicyStatusDetailwithPolicyType(DeviceManagementAutopilotPolicyType policyType)Returns an immutable copy ofthiswith just thepolicyTypefield changed.DeviceManagementAutopilotPolicyStatusDetailwithTrackedOnEnrollmentStatus(Boolean trackedOnEnrollmentStatus)Returns an immutable copy ofthiswith just thetrackedOnEnrollmentStatusfield changed.DeviceManagementAutopilotPolicyStatusDetailwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
complianceStatus
protected DeviceManagementAutopilotPolicyComplianceStatus complianceStatus
-
displayName
protected String displayName
-
errorCode
protected Integer errorCode
-
lastReportedDateTime
protected OffsetDateTime lastReportedDateTime
-
policyType
protected DeviceManagementAutopilotPolicyType policyType
-
trackedOnEnrollmentStatus
protected Boolean trackedOnEnrollmentStatus
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderDeviceManagementAutopilotPolicyStatusDetail
public static DeviceManagementAutopilotPolicyStatusDetail.Builder builderDeviceManagementAutopilotPolicyStatusDetail()
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
-
getComplianceStatus
public Optional<DeviceManagementAutopilotPolicyComplianceStatus> getComplianceStatus()
“The policy compliance status.”- Returns:
- property complianceStatus
-
withComplianceStatus
public DeviceManagementAutopilotPolicyStatusDetail withComplianceStatus(DeviceManagementAutopilotPolicyComplianceStatus complianceStatus)
Returns an immutable copy ofthiswith just thecomplianceStatusfield 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 policy compliance status.”
- Parameters:
complianceStatus- new value ofcomplianceStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecomplianceStatusfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The friendly name of the policy.”- Returns:
- property displayName
-
withDisplayName
public DeviceManagementAutopilotPolicyStatusDetail 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 of the policy.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getErrorCode
public Optional<Integer> getErrorCode()
“The errorode associated with the compliance or enforcement status of the policy. Error code for enforcement status takes precedence if it exists.”- Returns:
- property errorCode
-
withErrorCode
public DeviceManagementAutopilotPolicyStatusDetail withErrorCode(Integer 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.“The errorode associated with the compliance or enforcement status of the policy. Error code for enforcement status takes precedence if it exists.”
- Parameters:
errorCode- new value oferrorCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorCodefield changed
-
getLastReportedDateTime
public Optional<OffsetDateTime> getLastReportedDateTime()
“Timestamp of the reported policy status”- Returns:
- property lastReportedDateTime
-
withLastReportedDateTime
public DeviceManagementAutopilotPolicyStatusDetail withLastReportedDateTime(OffsetDateTime lastReportedDateTime)
Returns an immutable copy ofthiswith just thelastReportedDateTimefield 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.“Timestamp of the reported policy status”
- Parameters:
lastReportedDateTime- new value oflastReportedDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastReportedDateTimefield changed
-
getPolicyType
public Optional<DeviceManagementAutopilotPolicyType> getPolicyType()
“The type of policy.”- Returns:
- property policyType
-
withPolicyType
public DeviceManagementAutopilotPolicyStatusDetail withPolicyType(DeviceManagementAutopilotPolicyType policyType)
Returns an immutable copy ofthiswith just thepolicyTypefield 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 type of policy.”
- Parameters:
policyType- new value ofpolicyTypefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thepolicyTypefield changed
-
getTrackedOnEnrollmentStatus
public Optional<Boolean> getTrackedOnEnrollmentStatus()
“Indicates if this prolicy was tracked as part of the autopilot bootstrap enrollment sync session”- Returns:
- property trackedOnEnrollmentStatus
-
withTrackedOnEnrollmentStatus
public DeviceManagementAutopilotPolicyStatusDetail withTrackedOnEnrollmentStatus(Boolean trackedOnEnrollmentStatus)
Returns an immutable copy ofthiswith just thetrackedOnEnrollmentStatusfield 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.“Indicates if this prolicy was tracked as part of the autopilot bootstrap enrollment sync session”
- Parameters:
trackedOnEnrollmentStatus- new value oftrackedOnEnrollmentStatusfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetrackedOnEnrollmentStatusfield changed
-
withUnmappedField
public DeviceManagementAutopilotPolicyStatusDetail 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 DeviceManagementAutopilotPolicyStatusDetail patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DeviceManagementAutopilotPolicyStatusDetail put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-