Class ShareMetrics
- java.lang.Object
-
- com.azure.storage.file.share.models.ShareMetrics
-
public final class ShareMetrics extends Object
Storage Analytics metrics for file service.
-
-
Constructor Summary
Constructors Constructor Description ShareMetrics()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShareRetentionPolicygetRetentionPolicy()Get the retentionPolicy property: The retention policy.StringgetVersion()Get the version property: The version of Storage Analytics to configure.booleanisEnabled()Get the enabled property: Indicates whether metrics are enabled for the File service.BooleanisIncludeApis()Get the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.ShareMetricssetEnabled(boolean enabled)Set the enabled property: Indicates whether metrics are enabled for the File service.ShareMetricssetIncludeApis(Boolean includeApis)Set the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.ShareMetricssetRetentionPolicy(ShareRetentionPolicy retentionPolicy)Set the retentionPolicy property: The retention policy.ShareMetricssetVersion(String version)Set the version property: The version of Storage Analytics to configure.
-
-
-
Method Detail
-
getVersion
public String getVersion()
Get the version property: The version of Storage Analytics to configure.- Returns:
- the version value.
-
setVersion
public ShareMetrics setVersion(String version)
Set the version property: The version of Storage Analytics to configure.- Parameters:
version- the version value to set.- Returns:
- the ShareMetrics object itself.
-
isEnabled
public boolean isEnabled()
Get the enabled property: Indicates whether metrics are enabled for the File service.- Returns:
- the enabled value.
-
setEnabled
public ShareMetrics setEnabled(boolean enabled)
Set the enabled property: Indicates whether metrics are enabled for the File service.- Parameters:
enabled- the enabled value to set.- Returns:
- the ShareMetrics object itself.
-
getRetentionPolicy
public ShareRetentionPolicy getRetentionPolicy()
Get the retentionPolicy property: The retention policy.- Returns:
- the retentionPolicy value.
-
setRetentionPolicy
public ShareMetrics setRetentionPolicy(ShareRetentionPolicy retentionPolicy)
Set the retentionPolicy property: The retention policy.- Parameters:
retentionPolicy- the retentionPolicy value to set.- Returns:
- the ShareMetrics object itself.
-
isIncludeApis
public Boolean isIncludeApis()
Get the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.- Returns:
- the includeApis value.
-
setIncludeApis
public ShareMetrics setIncludeApis(Boolean includeApis)
Set the includeApis property: Indicates whether metrics should generate summary statistics for called API operations.- Parameters:
includeApis- the includeApis value to set.- Returns:
- the ShareMetrics object itself.
-
-