public class DeviceCompliancePolicyAssignment extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceCompliancePolicyAssignment.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected DeviceAndAppManagementAssignmentSource |
source |
protected String |
sourceId |
protected DeviceAndAppManagementAssignmentTarget |
target |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
DeviceCompliancePolicyAssignment() |
| Modifier and Type | Method and Description |
|---|---|
static DeviceCompliancePolicyAssignment.Builder |
builderDeviceCompliancePolicyAssignment()
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.ChangedFields |
getChangedFields() |
Optional<DeviceAndAppManagementAssignmentSource> |
getSource()
“The assignment source for the device compliance policy, direct or parcel/
policySet.”
|
Optional<String> |
getSourceId()
“The identifier of the source of the assignment.”
|
Optional<DeviceAndAppManagementAssignmentTarget> |
getTarget()
“Target for the compliance policy assignment.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
DeviceCompliancePolicyAssignment |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
DeviceCompliancePolicyAssignment |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
DeviceCompliancePolicyAssignment |
withSource(DeviceAndAppManagementAssignmentSource source)
Returns an immutable copy of
this with just the source field
changed. |
DeviceCompliancePolicyAssignment |
withSourceId(String sourceId)
Returns an immutable copy of
this with just the sourceId field
changed. |
DeviceCompliancePolicyAssignment |
withTarget(DeviceAndAppManagementAssignmentTarget target)
Returns an immutable copy of
this with just the target field
changed. |
protected DeviceAndAppManagementAssignmentTarget target
protected DeviceAndAppManagementAssignmentSource source
protected String sourceId
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static DeviceCompliancePolicyAssignment.Builder builderDeviceCompliancePolicyAssignment()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<DeviceAndAppManagementAssignmentTarget> getTarget()
public DeviceCompliancePolicyAssignment withTarget(DeviceAndAppManagementAssignmentTarget target)
this with just the target field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Target for the compliance policy assignment.”
target - new value of target field (as defined in service metadata)this with just the target field changedpublic Optional<DeviceAndAppManagementAssignmentSource> getSource()
public DeviceCompliancePolicyAssignment withSource(DeviceAndAppManagementAssignmentSource source)
this with just the source field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“The assignment source for the device compliance policy, direct or parcel/ policySet.”
source - new value of source field (as defined in service metadata)this with just the source field changedpublic Optional<String> getSourceId()
public DeviceCompliancePolicyAssignment withSourceId(String sourceId)
this with just the sourceId field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“The identifier of the source of the assignment.”
sourceId - new value of sourceId field (as defined in service metadata)this with just the sourceId field changedpublic com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic DeviceCompliancePolicyAssignment patch()
this with changed fields reset.public DeviceCompliancePolicyAssignment put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.