Class DataLakeStaticWebsite
- java.lang.Object
-
- com.azure.storage.file.datalake.models.DataLakeStaticWebsite
-
public final class DataLakeStaticWebsite extends Object
The properties that enable an account to host a static website.
-
-
Constructor Summary
Constructors Constructor Description DataLakeStaticWebsite()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDefaultIndexDocumentPath()
Get the defaultIndexDocumentPath property: Absolute path of the default index page.String
getErrorDocument404Path()
Get the errorDocument404Path property: The absolute path of the custom 404 page.String
getIndexDocument()
Get the indexDocument property: The default name of the index page under each directory.boolean
isEnabled()
Get the enabled property: Indicates whether this account is hosting a static website.DataLakeStaticWebsite
setDefaultIndexDocumentPath(String defaultIndexDocumentPath)
Set the defaultIndexDocumentPath property: Absolute path of the default index page.DataLakeStaticWebsite
setEnabled(boolean enabled)
Set the enabled property: Indicates whether this account is hosting a static website.DataLakeStaticWebsite
setErrorDocument404Path(String errorDocument404Path)
Set the errorDocument404Path property: The absolute path of the custom 404 page.DataLakeStaticWebsite
setIndexDocument(String indexDocument)
Set the indexDocument property: The default name of the index page under each directory.
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Get the enabled property: Indicates whether this account is hosting a static website.- Returns:
- the enabled value.
-
setEnabled
public DataLakeStaticWebsite setEnabled(boolean enabled)
Set the enabled property: Indicates whether this account is hosting a static website.- Parameters:
enabled
- the enabled value to set.- Returns:
- the DataLakeStaticWebsite object itself.
-
getIndexDocument
public String getIndexDocument()
Get the indexDocument property: The default name of the index page under each directory.- Returns:
- the indexDocument value.
-
setIndexDocument
public DataLakeStaticWebsite setIndexDocument(String indexDocument)
Set the indexDocument property: The default name of the index page under each directory.- Parameters:
indexDocument
- the indexDocument value to set.- Returns:
- the DataLakeStaticWebsite object itself.
-
getErrorDocument404Path
public String getErrorDocument404Path()
Get the errorDocument404Path property: The absolute path of the custom 404 page.- Returns:
- the errorDocument404Path value.
-
setErrorDocument404Path
public DataLakeStaticWebsite setErrorDocument404Path(String errorDocument404Path)
Set the errorDocument404Path property: The absolute path of the custom 404 page.- Parameters:
errorDocument404Path
- the errorDocument404Path value to set.- Returns:
- the DataLakeStaticWebsite object itself.
-
getDefaultIndexDocumentPath
public String getDefaultIndexDocumentPath()
Get the defaultIndexDocumentPath property: Absolute path of the default index page.- Returns:
- the defaultIndexDocumentPath value.
-
setDefaultIndexDocumentPath
public DataLakeStaticWebsite setDefaultIndexDocumentPath(String defaultIndexDocumentPath)
Set the defaultIndexDocumentPath property: Absolute path of the default index page.- Parameters:
defaultIndexDocumentPath
- the defaultIndexDocumentPath value to set.- Returns:
- the DataLakeStaticWebsite object itself.
-
-