Partager via


SmbOAuthSettings Class

  • java.lang.Object
    • com.azure.resourcemanager.storage.models.SmbOAuthSettings

Implements

public final class SmbOAuthSettings
implements JsonSerializable<SmbOAuthSettings>

Setting property for Managed Identity access over SMB using OAuth.

Constructor Summary

Constructor Description
SmbOAuthSettings()

Creates an instance of SmbOAuthSettings class.

Method Summary

Modifier and Type Method and Description
static SmbOAuthSettings fromJson(JsonReader jsonReader)

Reads an instance of SmbOAuthSettings from the JsonReader.

Boolean isSmbOAuthEnabled()

Get the isSmbOAuthEnabled property: Specifies if managed identities can access SMB shares using OAuth.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

SmbOAuthSettings withIsSmbOAuthEnabled(Boolean isSmbOAuthEnabled)

Set the isSmbOAuthEnabled property: Specifies if managed identities can access SMB shares using OAuth.

Methods inherited from java.lang.Object

Constructor Details

SmbOAuthSettings

public SmbOAuthSettings()

Creates an instance of SmbOAuthSettings class.

Method Details

fromJson

public static SmbOAuthSettings fromJson(JsonReader jsonReader)

Reads an instance of SmbOAuthSettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

isSmbOAuthEnabled

public Boolean isSmbOAuthEnabled()

Get the isSmbOAuthEnabled property: Specifies if managed identities can access SMB shares using OAuth. The default interpretation is false for this property.

Returns:

the isSmbOAuthEnabled value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withIsSmbOAuthEnabled

public SmbOAuthSettings withIsSmbOAuthEnabled(Boolean isSmbOAuthEnabled)

Set the isSmbOAuthEnabled property: Specifies if managed identities can access SMB shares using OAuth. The default interpretation is false for this property.

Parameters:

isSmbOAuthEnabled - the isSmbOAuthEnabled value to set.

Returns:

the SmbOAuthSettings object itself.

Applies to