MicrosoftGraphWorkbookWorksheetProtection Class

public final class MicrosoftGraphWorkbookWorksheetProtection
extends MicrosoftGraphEntity

workbookWorksheetProtection.

Constructor Summary

Constructor Description
MicrosoftGraphWorkbookWorksheetProtection()

Creates an instance of MicrosoftGraphWorkbookWorksheetProtection class.

Method Summary

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

Get the additionalProperties property: workbookWorksheetProtection.

static MicrosoftGraphWorkbookWorksheetProtection fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphWorkbookWorksheetProtection from the JsonReader.

MicrosoftGraphWorkbookWorksheetProtectionOptions options()

Get the options property: workbookWorksheetProtectionOptions.

Boolean protectedProperty()

Get the protectedProperty property: Indicates if the worksheet is protected.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphWorkbookWorksheetProtection withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: workbookWorksheetProtection.

MicrosoftGraphWorkbookWorksheetProtection withId(String id)

Set the id property: Read-only.

MicrosoftGraphWorkbookWorksheetProtection withOptions(MicrosoftGraphWorkbookWorksheetProtectionOptions options)

Set the options property: workbookWorksheetProtectionOptions.

MicrosoftGraphWorkbookWorksheetProtection withProtectedProperty(Boolean protectedProperty)

Set the protectedProperty property: Indicates if the worksheet is protected.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphWorkbookWorksheetProtection

public MicrosoftGraphWorkbookWorksheetProtection()

Creates an instance of MicrosoftGraphWorkbookWorksheetProtection class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: workbookWorksheetProtection.

Overrides:

MicrosoftGraphWorkbookWorksheetProtection.additionalProperties()

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphWorkbookWorksheetProtection fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphWorkbookWorksheetProtection from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

options

public MicrosoftGraphWorkbookWorksheetProtectionOptions options()

Get the options property: workbookWorksheetProtectionOptions.

Returns:

the options value.

protectedProperty

public Boolean protectedProperty()

Get the protectedProperty property: Indicates if the worksheet is protected. Read-only.

Returns:

the protectedProperty value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphWorkbookWorksheetProtection.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphWorkbookWorksheetProtection.validate()

withAdditionalProperties

public MicrosoftGraphWorkbookWorksheetProtection withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: workbookWorksheetProtection.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphWorkbookWorksheetProtection object itself.

withId

public MicrosoftGraphWorkbookWorksheetProtection withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphWorkbookWorksheetProtection.withId(String id)

Parameters:

id

withOptions

public MicrosoftGraphWorkbookWorksheetProtection withOptions(MicrosoftGraphWorkbookWorksheetProtectionOptions options)

Set the options property: workbookWorksheetProtectionOptions.

Parameters:

options - the options value to set.

Returns:

the MicrosoftGraphWorkbookWorksheetProtection object itself.

withProtectedProperty

public MicrosoftGraphWorkbookWorksheetProtection withProtectedProperty(Boolean protectedProperty)

Set the protectedProperty property: Indicates if the worksheet is protected. Read-only.

Parameters:

protectedProperty - the protectedProperty value to set.

Returns:

the MicrosoftGraphWorkbookWorksheetProtection object itself.

Applies to