FileServicePropertiesInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. storage. fluent. models. FileServicePropertiesInner
- com.
- com.
public final class FileServicePropertiesInner
extends ProxyResource
The properties of File services in storage account.
Constructor Summary
Constructor | Description |
---|---|
FileServicePropertiesInner() |
Creates an instance of File |
Method Summary
Modifier and Type | Method and Description |
---|---|
Cors |
cors()
Get the cors property: Specifies CORS rules for the File service. |
static
File |
fromJson(JsonReader jsonReader)
Reads an instance of File |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
Protocol |
protocolSettings()
Get the protocol |
Delete |
shareDeleteRetentionPolicy()
Get the share |
Sku |
sku()
Get the sku property: Sku name and tier. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
File |
withCors(CorsRules cors)
Set the cors property: Specifies CORS rules for the File service. |
File |
withProtocolSettings(ProtocolSettings protocolSettings)
Set the protocol |
File |
withShareDeleteRetentionPolicy(DeleteRetentionPolicy shareDeleteRetentionPolicy)
Set the share |
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:
fromJson
public static FileServicePropertiesInner fromJson(JsonReader jsonReader)
Reads an instance of FileServicePropertiesInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
FileServicePropertiesInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
FileServicePropertiesInner.name()Returns:
protocolSettings
public ProtocolSettings protocolSettings()
Get the protocolSettings property: Protocol settings for file service.
Returns:
shareDeleteRetentionPolicy
public DeleteRetentionPolicy shareDeleteRetentionPolicy()
Get the shareDeleteRetentionPolicy property: The file service properties for share soft delete.
Returns:
sku
public Sku sku()
Get the sku property: Sku name and tier.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
FileServicePropertiesInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
FileServicePropertiesInner.type()Returns:
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:
Returns:
withProtocolSettings
public FileServicePropertiesInner withProtocolSettings(ProtocolSettings protocolSettings)
Set the protocolSettings property: Protocol settings for file service.
Parameters:
Returns:
withShareDeleteRetentionPolicy
public FileServicePropertiesInner withShareDeleteRetentionPolicy(DeleteRetentionPolicy shareDeleteRetentionPolicy)
Set the shareDeleteRetentionPolicy property: The file service properties for share soft delete.
Parameters:
Returns:
Applies to
Azure SDK for Java