Package odata.msgraph.client.complex
Class GroupAssignmentTarget
- java.lang.Object
-
- odata.msgraph.client.complex.DeviceAndAppManagementAssignmentTarget
-
- odata.msgraph.client.complex.GroupAssignmentTarget
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
ExclusionGroupAssignmentTarget
public class GroupAssignmentTarget extends DeviceAndAppManagementAssignmentTarget implements com.github.davidmoten.odata.client.ODataType
“Represents an assignment to a group.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroupAssignmentTarget.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringgroupId-
Fields inherited from class odata.msgraph.client.complex.DeviceAndAppManagementAssignmentTarget
contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGroupAssignmentTarget()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupAssignmentTarget.BuilderbuilderGroupAssignmentTarget()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getGroupId()“The group Id that is the target of the assignment.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()GroupAssignmentTargetwithGroupId(String groupId)Returns an immutable copy ofthiswith just thegroupIdfield changed.GroupAssignmentTargetwithUnmappedField(String name, String value)
-
-
-
Field Detail
-
groupId
protected String groupId
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceAndAppManagementAssignmentTarget
-
getGroupId
public Optional<String> getGroupId()
“The group Id that is the target of the assignment.”- Returns:
- property groupId
-
withGroupId
public GroupAssignmentTarget withGroupId(String groupId)
Returns an immutable copy ofthiswith just thegroupIdfield 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 group Id that is the target of the assignment.”
- Parameters:
groupId- new value ofgroupIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegroupIdfield changed
-
withUnmappedField
public GroupAssignmentTarget withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceAndAppManagementAssignmentTarget
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceAndAppManagementAssignmentTarget
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceAndAppManagementAssignmentTarget
-
builderGroupAssignmentTarget
public static GroupAssignmentTarget.Builder builderGroupAssignmentTarget()
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
-
toString
public String toString()
- Overrides:
toStringin classDeviceAndAppManagementAssignmentTarget
-
-