Package odata.msgraph.client.entity
Class TelecomExpenseManagementPartner
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.TelecomExpenseManagementPartner
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class TelecomExpenseManagementPartner extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
“telecomExpenseManagementPartner resources represent the metadata and status of a given TEM service. Once your organization has onboarded with a partner, the partner can be enabled or disabled to switch TEM functionality on or off.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTelecomExpenseManagementPartner.Builder
-
Field Summary
Fields Modifier and Type Field Description protected BooleanappAuthorizedprotected StringdisplayNameprotected Booleanenabledprotected OffsetDateTimelastConnectionDateTimeprotected Stringurl-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedTelecomExpenseManagementPartner()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TelecomExpenseManagementPartner.BuilderbuilderTelecomExpenseManagementPartner()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Boolean>getAppAuthorized()“Whether the partner's AAD app has been authorized to access Intune.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<String>getDisplayName()“Display name of the TEM partner.”Optional<Boolean>getEnabled()“Whether Intune's connection to the TEM service is currently enabled or disabled.”Optional<OffsetDateTime>getLastConnectionDateTime()“Timestamp of the last request sent to Intune by the TEM partner.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<String>getUrl()“URL of the TEM partner's administrative control panel, where an administrator can configure their TEM service.”StringodataTypeName()TelecomExpenseManagementPartnerpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)TelecomExpenseManagementPartnerput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()TelecomExpenseManagementPartnerwithAppAuthorized(Boolean appAuthorized)Returns an immutable copy ofthiswith just theappAuthorizedfield changed.TelecomExpenseManagementPartnerwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.TelecomExpenseManagementPartnerwithEnabled(Boolean enabled)Returns an immutable copy ofthiswith just theenabledfield changed.TelecomExpenseManagementPartnerwithLastConnectionDateTime(OffsetDateTime lastConnectionDateTime)Returns an immutable copy ofthiswith just thelastConnectionDateTimefield changed.TelecomExpenseManagementPartnerwithUnmappedField(String name, String value)TelecomExpenseManagementPartnerwithUrl(String url)Returns an immutable copy ofthiswith just theurlfield changed.
-
-
-
Field Detail
-
appAuthorized
protected Boolean appAuthorized
-
displayName
protected String displayName
-
enabled
protected Boolean enabled
-
lastConnectionDateTime
protected OffsetDateTime lastConnectionDateTime
-
url
protected String url
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderTelecomExpenseManagementPartner
public static TelecomExpenseManagementPartner.Builder builderTelecomExpenseManagementPartner()
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
-
getAppAuthorized
public Optional<Boolean> getAppAuthorized()
“Whether the partner's AAD app has been authorized to access Intune.”- Returns:
- property appAuthorized
-
withAppAuthorized
public TelecomExpenseManagementPartner withAppAuthorized(Boolean appAuthorized)
Returns an immutable copy ofthiswith just theappAuthorizedfield 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.“Whether the partner's AAD app has been authorized to access Intune.”
- Parameters:
appAuthorized- new value ofappAuthorizedfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theappAuthorizedfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“Display name of the TEM partner.”- Returns:
- property displayName
-
withDisplayName
public TelecomExpenseManagementPartner 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.“Display name of the TEM partner.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getEnabled
public Optional<Boolean> getEnabled()
“Whether Intune's connection to the TEM service is currently enabled or disabled.”- Returns:
- property enabled
-
withEnabled
public TelecomExpenseManagementPartner withEnabled(Boolean enabled)
Returns an immutable copy ofthiswith just theenabledfield 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.“Whether Intune's connection to the TEM service is currently enabled or disabled.”
- Parameters:
enabled- new value ofenabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenabledfield changed
-
getLastConnectionDateTime
public Optional<OffsetDateTime> getLastConnectionDateTime()
“Timestamp of the last request sent to Intune by the TEM partner.”- Returns:
- property lastConnectionDateTime
-
withLastConnectionDateTime
public TelecomExpenseManagementPartner withLastConnectionDateTime(OffsetDateTime lastConnectionDateTime)
Returns an immutable copy ofthiswith just thelastConnectionDateTimefield 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 last request sent to Intune by the TEM partner.”
- Parameters:
lastConnectionDateTime- new value oflastConnectionDateTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thelastConnectionDateTimefield changed
-
getUrl
public Optional<String> getUrl()
“URL of the TEM partner's administrative control panel, where an administrator can configure their TEM service.”- Returns:
- property url
-
withUrl
public TelecomExpenseManagementPartner withUrl(String url)
Returns an immutable copy ofthiswith just theurlfield 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.“URL of the TEM partner's administrative control panel, where an administrator can configure their TEM service.”
- Parameters:
url- new value ofurlfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theurlfield changed
-
withUnmappedField
public TelecomExpenseManagementPartner 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 TelecomExpenseManagementPartner patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public TelecomExpenseManagementPartner put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-