Share via


MicrosoftGraphTeamsAppDefinition Class

public final class MicrosoftGraphTeamsAppDefinition
extends MicrosoftGraphEntity

Represents a teams app definition.

Constructor Summary

Constructor Description
MicrosoftGraphTeamsAppDefinition()

Creates an instance of MicrosoftGraphTeamsAppDefinition class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: teamsAppDefinition.

String displayName()

Get the displayName property: The name of the app provided by the app developer.

static MicrosoftGraphTeamsAppDefinition fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTeamsAppDefinition from the JsonReader.

String teamsAppId()

Get the teamsAppId property: The ID from the Teams app manifest.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

String version()

Get the version property: The version number of the application.

MicrosoftGraphTeamsAppDefinition withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: teamsAppDefinition.

MicrosoftGraphTeamsAppDefinition withDisplayName(String displayName)

Set the displayName property: The name of the app provided by the app developer.

MicrosoftGraphTeamsAppDefinition withId(String id)

Set the id property: Read-only.

MicrosoftGraphTeamsAppDefinition withTeamsAppId(String teamsAppId)

Set the teamsAppId property: The ID from the Teams app manifest.

MicrosoftGraphTeamsAppDefinition withVersion(String version)

Set the version property: The version number of the application.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphTeamsAppDefinition

public MicrosoftGraphTeamsAppDefinition()

Creates an instance of MicrosoftGraphTeamsAppDefinition class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: teamsAppDefinition.

Overrides:

MicrosoftGraphTeamsAppDefinition.additionalProperties()

Returns:

the additionalProperties value.

displayName

public String displayName()

Get the displayName property: The name of the app provided by the app developer.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphTeamsAppDefinition fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphTeamsAppDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphTeamsAppDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphTeamsAppDefinition.

teamsAppId

public String teamsAppId()

Get the teamsAppId property: The ID from the Teams app manifest.

Returns:

the teamsAppId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphTeamsAppDefinition.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphTeamsAppDefinition.validate()

version

public String version()

Get the version property: The version number of the application.

Returns:

the version value.

withAdditionalProperties

public MicrosoftGraphTeamsAppDefinition withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: teamsAppDefinition.

Overrides:

MicrosoftGraphTeamsAppDefinition.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphTeamsAppDefinition object itself.

withDisplayName

public MicrosoftGraphTeamsAppDefinition withDisplayName(String displayName)

Set the displayName property: The name of the app provided by the app developer.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphTeamsAppDefinition object itself.

withId

public MicrosoftGraphTeamsAppDefinition withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphTeamsAppDefinition.withId(String id)

Parameters:

id

withTeamsAppId

public MicrosoftGraphTeamsAppDefinition withTeamsAppId(String teamsAppId)

Set the teamsAppId property: The ID from the Teams app manifest.

Parameters:

teamsAppId - the teamsAppId value to set.

Returns:

the MicrosoftGraphTeamsAppDefinition object itself.

withVersion

public MicrosoftGraphTeamsAppDefinition withVersion(String version)

Set the version property: The version number of the application.

Parameters:

version - the version value to set.

Returns:

the MicrosoftGraphTeamsAppDefinition object itself.

Applies to