Share via


MicrosoftGraphShared Class

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

Implements

public final class MicrosoftGraphShared
implements JsonSerializable<MicrosoftGraphShared>

Represents a shared.

Constructor Summary

Constructor Description
MicrosoftGraphShared()

Creates an instance of MicrosoftGraphShared class.

Method Summary

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

Get the additionalProperties property: shared.

static MicrosoftGraphShared fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShared from the JsonReader.

MicrosoftGraphIdentitySet owner()

Get the owner property: identitySet.

String scope()

Get the scope property: Indicates the scope of how the item is shared: anonymous, organization, or users.

MicrosoftGraphIdentitySet sharedBy()

Get the sharedBy property: identitySet.

OffsetDateTime sharedDateTime()

Get the sharedDateTime property: The UTC date and time when the item was shared.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphShared withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: shared.

MicrosoftGraphShared withOwner(MicrosoftGraphIdentitySet owner)

Set the owner property: identitySet.

MicrosoftGraphShared withScope(String scope)

Set the scope property: Indicates the scope of how the item is shared: anonymous, organization, or users.

MicrosoftGraphShared withSharedBy(MicrosoftGraphIdentitySet sharedBy)

Set the sharedBy property: identitySet.

MicrosoftGraphShared withSharedDateTime(OffsetDateTime sharedDateTime)

Set the sharedDateTime property: The UTC date and time when the item was shared.

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphShared

public MicrosoftGraphShared()

Creates an instance of MicrosoftGraphShared class.

Method Details

additionalProperties

public Map<String,Object> additionalProperties()

Get the additionalProperties property: shared.

Returns:

the additionalProperties value.

fromJson

public static MicrosoftGraphShared fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphShared from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

owner

public MicrosoftGraphIdentitySet owner()

Get the owner property: identitySet.

Returns:

the owner value.

scope

public String scope()

Get the scope property: Indicates the scope of how the item is shared: anonymous, organization, or users. Read-only.

Returns:

the scope value.

sharedBy

public MicrosoftGraphIdentitySet sharedBy()

Get the sharedBy property: identitySet.

Returns:

the sharedBy value.

sharedDateTime

public OffsetDateTime sharedDateTime()

Get the sharedDateTime property: The UTC date and time when the item was shared. Read-only.

Returns:

the sharedDateTime value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

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

Set the additionalProperties property: shared.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphShared object itself.

withOwner

public MicrosoftGraphShared withOwner(MicrosoftGraphIdentitySet owner)

Set the owner property: identitySet.

Parameters:

owner - the owner value to set.

Returns:

the MicrosoftGraphShared object itself.

withScope

public MicrosoftGraphShared withScope(String scope)

Set the scope property: Indicates the scope of how the item is shared: anonymous, organization, or users. Read-only.

Parameters:

scope - the scope value to set.

Returns:

the MicrosoftGraphShared object itself.

withSharedBy

public MicrosoftGraphShared withSharedBy(MicrosoftGraphIdentitySet sharedBy)

Set the sharedBy property: identitySet.

Parameters:

sharedBy - the sharedBy value to set.

Returns:

the MicrosoftGraphShared object itself.

withSharedDateTime

public MicrosoftGraphShared withSharedDateTime(OffsetDateTime sharedDateTime)

Set the sharedDateTime property: The UTC date and time when the item was shared. Read-only.

Parameters:

sharedDateTime - the sharedDateTime value to set.

Returns:

the MicrosoftGraphShared object itself.

Applies to