다음을 통해 공유


FileServicePropertiesInner Class

public final class FileServicePropertiesInner
extends ProxyResource

The properties of File services in storage account.

Constructor Summary

Constructor Description
FileServicePropertiesInner()

Creates an instance of FileServicePropertiesInner class.

Method Summary

Modifier and Type Method and Description
CorsRules cors()

Get the cors property: Specifies CORS rules for the File service.

static FileServicePropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of FileServicePropertiesInner from the JsonReader.

String id()

Get the id property: Fully qualified resource Id for the resource.

String name()

Get the name property: The name of the resource.

ProtocolSettings protocolSettings()

Get the protocolSettings property: Protocol settings for file service.

DeleteRetentionPolicy shareDeleteRetentionPolicy()

Get the shareDeleteRetentionPolicy property: The file service properties for share soft delete.

Sku sku()

Get the sku property: Sku name and tier.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

FileServicePropertiesInner withCors(CorsRules cors)

Set the cors property: Specifies CORS rules for the File service.

FileServicePropertiesInner withProtocolSettings(ProtocolSettings protocolSettings)

Set the protocolSettings property: Protocol settings for file service.

FileServicePropertiesInner withShareDeleteRetentionPolicy(DeleteRetentionPolicy shareDeleteRetentionPolicy)

Set the shareDeleteRetentionPolicy property: The file service properties for share soft delete.

Methods inherited from ProxyResource

Methods inherited from java.lang.Object

Constructor Details

FileServicePropertiesInner

public FileServicePropertiesInner()

Creates an instance of FileServicePropertiesInner class.

Method Details

cors

public CorsRules cors()

Get the cors property: Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service.

Returns:

the cors value.

fromJson

public static FileServicePropertiesInner fromJson(JsonReader jsonReader)

Reads an instance of FileServicePropertiesInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

FileServicePropertiesInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

FileServicePropertiesInner.name()

Returns:

the name value.

protocolSettings

public ProtocolSettings protocolSettings()

Get the protocolSettings property: Protocol settings for file service.

Returns:

the protocolSettings value.

shareDeleteRetentionPolicy

public DeleteRetentionPolicy shareDeleteRetentionPolicy()

Get the shareDeleteRetentionPolicy property: The file service properties for share soft delete.

Returns:

the shareDeleteRetentionPolicy value.

sku

public Sku sku()

Get the sku property: Sku name and tier.

Returns:

the sku value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FileServicePropertiesInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

FileServicePropertiesInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCors

public FileServicePropertiesInner withCors(CorsRules cors)

Set the cors property: Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service.

Parameters:

cors - the cors value to set.

Returns:

the FileServicePropertiesInner object itself.

withProtocolSettings

public FileServicePropertiesInner withProtocolSettings(ProtocolSettings protocolSettings)

Set the protocolSettings property: Protocol settings for file service.

Parameters:

protocolSettings - the protocolSettings value to set.

Returns:

the FileServicePropertiesInner object itself.

withShareDeleteRetentionPolicy

public FileServicePropertiesInner withShareDeleteRetentionPolicy(DeleteRetentionPolicy shareDeleteRetentionPolicy)

Set the shareDeleteRetentionPolicy property: The file service properties for share soft delete.

Parameters:

shareDeleteRetentionPolicy - the shareDeleteRetentionPolicy value to set.

Returns:

the FileServicePropertiesInner object itself.

Applies to