Package odata.msgraph.client.beta.entity
Class MacOsVppAppAssignedLicense
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.MacOsVppAppAssignedLicense
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class MacOsVppAppAssignedLicense extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“MacOS Volume Purchase Program license assignment. This class does not support Create, Delete, or Update.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMacOsVppAppAssignedLicense.Builder
-
Field Summary
Fields Modifier and Type Field Description protected StringuserEmailAddressprotected StringuserIdprotected StringuserNameprotected StringuserPrincipalName-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMacOsVppAppAssignedLicense()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MacOsVppAppAssignedLicense.BuilderbuilderMacOsVppAppAssignedLicense()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()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUserEmailAddress()“The user email address.”Optional<String>getUserId()“The user ID.”Optional<String>getUserName()“The user name.”Optional<String>getUserPrincipalName()“The user principal name.”StringodataTypeName()MacOsVppAppAssignedLicensepatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)MacOsVppAppAssignedLicenseput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()MacOsVppAppAssignedLicensewithUnmappedField(String name, String value)MacOsVppAppAssignedLicensewithUserEmailAddress(String userEmailAddress)Returns an immutable copy ofthiswith just theuserEmailAddressfield changed.MacOsVppAppAssignedLicensewithUserId(String userId)Returns an immutable copy ofthiswith just theuserIdfield changed.MacOsVppAppAssignedLicensewithUserName(String userName)Returns an immutable copy ofthiswith just theuserNamefield changed.MacOsVppAppAssignedLicensewithUserPrincipalName(String userPrincipalName)Returns an immutable copy ofthiswith just theuserPrincipalNamefield changed.
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderMacOsVppAppAssignedLicense
public static MacOsVppAppAssignedLicense.Builder builderMacOsVppAppAssignedLicense()
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
-
getUserEmailAddress
public Optional<String> getUserEmailAddress()
“The user email address.”- Returns:
- property userEmailAddress
-
withUserEmailAddress
public MacOsVppAppAssignedLicense withUserEmailAddress(String userEmailAddress)
Returns an immutable copy ofthiswith just theuserEmailAddressfield 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 user email address.”
- Parameters:
userEmailAddress- new value ofuserEmailAddressfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserEmailAddressfield changed
-
withUserId
public MacOsVppAppAssignedLicense withUserId(String userId)
Returns an immutable copy ofthiswith just theuserIdfield 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 user ID.”
- Parameters:
userId- new value ofuserIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserIdfield changed
-
withUserName
public MacOsVppAppAssignedLicense withUserName(String userName)
Returns an immutable copy ofthiswith just theuserNamefield 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 user name.”
- Parameters:
userName- new value ofuserNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserNamefield changed
-
getUserPrincipalName
public Optional<String> getUserPrincipalName()
“The user principal name.”- Returns:
- property userPrincipalName
-
withUserPrincipalName
public MacOsVppAppAssignedLicense withUserPrincipalName(String userPrincipalName)
Returns an immutable copy ofthiswith just theuserPrincipalNamefield 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 user principal name.”
- Parameters:
userPrincipalName- new value ofuserPrincipalNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theuserPrincipalNamefield changed
-
withUnmappedField
public MacOsVppAppAssignedLicense 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 MacOsVppAppAssignedLicense patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public MacOsVppAppAssignedLicense put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-