Class MobileAppRelationshipState
- java.lang.Object
-
- odata.msgraph.client.beta.complex.MobileAppRelationshipState
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class MobileAppRelationshipState extends Object implements com.github.davidmoten.odata.client.ODataType
“Describes the installation status details of the child app in the context of UPN and device id.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMobileAppRelationshipState.Builder
-
Field Summary
Fields Modifier and Type Field Description protected com.github.davidmoten.odata.client.ContextPathcontextPathprotected StringdeviceIdprotected IntegererrorCodeprotected ResultantAppStateinstallStateprotected ResultantAppStateDetailinstallStateDetailprotected StringodataTypeprotected List<String>sourceIdsprotected StringsourceIdsNextLinkprotected StringtargetDisplayNameprotected StringtargetIdprotected OffsetDateTimetargetLastSyncDateTimeprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedMobileAppRelationshipState()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MobileAppRelationshipState.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<String>getDeviceId()“The corresponding device id.”Optional<Integer>getErrorCode()“The error code for install or uninstall failures of target app.”Optional<ResultantAppState>getInstallState()“The install state of the app of target app.”Optional<ResultantAppStateDetail>getInstallStateDetail()“The install state detail of the app.”com.github.davidmoten.odata.client.CollectionPage<String>getSourceIds()“The collection of source mobile app's ids.”com.github.davidmoten.odata.client.CollectionPage<String>getSourceIds(com.github.davidmoten.odata.client.HttpRequestOptions options)“The collection of source mobile app's ids.”Optional<String>getTargetDisplayName()“The related target app's display name.”Optional<String>getTargetId()“The related target app's id.”Optional<OffsetDateTime>getTargetLastSyncDateTime()“The last sync time of the target app.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()MobileAppRelationshipStatewithDeviceId(String deviceId)Returns an immutable copy ofthiswith just thedeviceIdfield changed.MobileAppRelationshipStatewithErrorCode(Integer errorCode)Returns an immutable copy ofthiswith just theerrorCodefield changed.MobileAppRelationshipStatewithInstallState(ResultantAppState installState)Returns an immutable copy ofthiswith just theinstallStatefield changed.MobileAppRelationshipStatewithInstallStateDetail(ResultantAppStateDetail installStateDetail)Returns an immutable copy ofthiswith just theinstallStateDetailfield changed.MobileAppRelationshipStatewithTargetDisplayName(String targetDisplayName)Returns an immutable copy ofthiswith just thetargetDisplayNamefield changed.MobileAppRelationshipStatewithTargetId(String targetId)Returns an immutable copy ofthiswith just thetargetIdfield changed.MobileAppRelationshipStatewithTargetLastSyncDateTime(OffsetDateTime targetLastSyncDateTime)Returns an immutable copy ofthiswith just thetargetLastSyncDateTimefield changed.MobileAppRelationshipStatewithUnmappedField(String name, String value)
-
-
-
Field Detail
-
contextPath
protected com.github.davidmoten.odata.client.ContextPath contextPath
-
unmappedFields
protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
-
odataType
protected String odataType
-
deviceId
protected String deviceId
-
errorCode
protected Integer errorCode
-
installState
protected ResultantAppState installState
-
installStateDetail
protected ResultantAppStateDetail installStateDetail
-
sourceIdsNextLink
protected String sourceIdsNextLink
-
targetDisplayName
protected String targetDisplayName
-
targetId
protected String targetId
-
targetLastSyncDateTime
protected OffsetDateTime targetLastSyncDateTime
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getDeviceId
public Optional<String> getDeviceId()
“The corresponding device id.”- Returns:
- property deviceId
-
withDeviceId
public MobileAppRelationshipState withDeviceId(String deviceId)
Returns an immutable copy ofthiswith just thedeviceIdfield 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 corresponding device id.”
- Parameters:
deviceId- new value ofdeviceIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeviceIdfield changed
-
getErrorCode
public Optional<Integer> getErrorCode()
“The error code for install or uninstall failures of target app.”- Returns:
- property errorCode
-
withErrorCode
public MobileAppRelationshipState 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 error code for install or uninstall failures of target app.”
- Parameters:
errorCode- new value oferrorCodefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theerrorCodefield changed
-
getInstallState
public Optional<ResultantAppState> getInstallState()
“The install state of the app of target app.”- Returns:
- property installState
-
withInstallState
public MobileAppRelationshipState withInstallState(ResultantAppState installState)
Returns an immutable copy ofthiswith just theinstallStatefield 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 install state of the app of target app.”
- Parameters:
installState- new value ofinstallStatefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinstallStatefield changed
-
getInstallStateDetail
public Optional<ResultantAppStateDetail> getInstallStateDetail()
“The install state detail of the app.”- Returns:
- property installStateDetail
-
withInstallStateDetail
public MobileAppRelationshipState withInstallStateDetail(ResultantAppStateDetail installStateDetail)
Returns an immutable copy ofthiswith just theinstallStateDetailfield 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 install state detail of the app.”
- Parameters:
installStateDetail- new value ofinstallStateDetailfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinstallStateDetailfield changed
-
getSourceIds
public com.github.davidmoten.odata.client.CollectionPage<String> getSourceIds()
“The collection of source mobile app's ids.”- Returns:
- property sourceIds
-
getSourceIds
public com.github.davidmoten.odata.client.CollectionPage<String> getSourceIds(com.github.davidmoten.odata.client.HttpRequestOptions options)
“The collection of source mobile app's ids.”- Parameters:
options- specify connect and read timeouts- Returns:
- property sourceIds
-
getTargetDisplayName
public Optional<String> getTargetDisplayName()
“The related target app's display name.”- Returns:
- property targetDisplayName
-
withTargetDisplayName
public MobileAppRelationshipState withTargetDisplayName(String targetDisplayName)
Returns an immutable copy ofthiswith just thetargetDisplayNamefield 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 related target app's display name.”
- Parameters:
targetDisplayName- new value oftargetDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetargetDisplayNamefield changed
-
getTargetId
public Optional<String> getTargetId()
“The related target app's id.”- Returns:
- property targetId
-
withTargetId
public MobileAppRelationshipState withTargetId(String targetId)
Returns an immutable copy ofthiswith just thetargetIdfield 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 related target app's id.”
- Parameters:
targetId- new value oftargetIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetargetIdfield changed
-
getTargetLastSyncDateTime
public Optional<OffsetDateTime> getTargetLastSyncDateTime()
“The last sync time of the target app.”- Returns:
- property targetLastSyncDateTime
-
withTargetLastSyncDateTime
public MobileAppRelationshipState withTargetLastSyncDateTime(OffsetDateTime targetLastSyncDateTime)
Returns an immutable copy ofthiswith just thetargetLastSyncDateTimefield 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 last sync time of the target app.”
- Parameters:
targetLastSyncDateTime- new value oftargetLastSyncDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thetargetLastSyncDateTimefield changed
-
withUnmappedField
public MobileAppRelationshipState withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType
-
builder
public static MobileAppRelationshipState.Builder builder()
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
-
-