Share via


MicrosoftGraphPackage Class

  • java.lang.Object
    • com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphPackage

Implements

public final class MicrosoftGraphPackage
implements JsonSerializable<MicrosoftGraphPackage>

Represents a package.

Constructor Summary

Constructor Description
MicrosoftGraphPackage()

Creates an instance of MicrosoftGraphPackage class.

Method Summary

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

Get the additionalProperties property: package.

static MicrosoftGraphPackage fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPackage from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: A string indicating the type of package.

void validate()

Validates the instance.

MicrosoftGraphPackage withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: package.

MicrosoftGraphPackage withType(String type)

Set the type property: A string indicating the type of package.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphPackage

public MicrosoftGraphPackage()

Creates an instance of MicrosoftGraphPackage class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: package.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphPackage fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphPackage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphPackage 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 MicrosoftGraphPackage.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: A string indicating the type of package. While oneNote is the only currently defined value, you should expect other package types to be returned and handle them accordingly.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAdditionalProperties

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

Set the additionalProperties property: package.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphPackage object itself.

withType

public MicrosoftGraphPackage withType(String type)

Set the type property: A string indicating the type of package. While oneNote is the only currently defined value, you should expect other package types to be returned and handle them accordingly.

Parameters:

type - the type value to set.

Returns:

the MicrosoftGraphPackage object itself.

Applies to