StaticWebsite Class
- java.
lang. Object - com.
azure. resourcemanager. storage. models. StaticWebsite
- com.
Implements
public final class StaticWebsite
implements JsonSerializable<StaticWebsite>
The static website properties for blob storage.
Constructor Summary
| Constructor | Description |
|---|---|
| StaticWebsite() |
Creates an instance of Static |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
defaultIndexDocumentPath()
Get the default |
| boolean |
enabled()
Get the enabled property: Indicates whether static website support is enabled for the specified account. |
| String |
errorDocument404Path()
Get the error |
|
static
Static |
fromJson(JsonReader jsonReader)
Reads an instance of Static |
| String |
indexDocument()
Get the index |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Static |
withDefaultIndexDocumentPath(String defaultIndexDocumentPath)
Set the default |
|
Static |
withEnabled(boolean enabled)
Set the enabled property: Indicates whether static website support is enabled for the specified account. |
|
Static |
withErrorDocument404Path(String errorDocument404Path)
Set the error |
|
Static |
withIndexDocument(String indexDocument)
Set the index |
Methods inherited from java.lang.Object
Constructor Details
StaticWebsite
public StaticWebsite()
Creates an instance of StaticWebsite class.
Method Details
defaultIndexDocumentPath
public String defaultIndexDocumentPath()
Get the defaultIndexDocumentPath property: The absolute path where the default index file is present. This absolute path is mutually exclusive to "indexDocument" and it is case-sensitive.
Returns:
enabled
public boolean enabled()
Get the enabled property: Indicates whether static website support is enabled for the specified account.
Returns:
errorDocument404Path
public String errorDocument404Path()
Get the errorDocument404Path property: The absolute path to a webpage that Azure Storage serves for requests that don't correspond to an existing file. The contents of the page are returned with HTTP 404 Not Found. Only a single custom 404 page is supported in each static website.
Returns:
fromJson
public static StaticWebsite fromJson(JsonReader jsonReader)
Reads an instance of StaticWebsite from the JsonReader.
Parameters:
Returns:
Throws:
indexDocument
public String indexDocument()
Get the indexDocument property: The webpage that Azure Storage serves for requests to the root of a website or any subfolder (for example, index.html). The value is case-sensitive.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDefaultIndexDocumentPath
public StaticWebsite withDefaultIndexDocumentPath(String defaultIndexDocumentPath)
Set the defaultIndexDocumentPath property: The absolute path where the default index file is present. This absolute path is mutually exclusive to "indexDocument" and it is case-sensitive.
Parameters:
Returns:
withEnabled
public StaticWebsite withEnabled(boolean enabled)
Set the enabled property: Indicates whether static website support is enabled for the specified account.
Parameters:
Returns:
withErrorDocument404Path
public StaticWebsite withErrorDocument404Path(String errorDocument404Path)
Set the errorDocument404Path property: The absolute path to a webpage that Azure Storage serves for requests that don't correspond to an existing file. The contents of the page are returned with HTTP 404 Not Found. Only a single custom 404 page is supported in each static website.
Parameters:
Returns:
withIndexDocument
public StaticWebsite withIndexDocument(String indexDocument)
Set the indexDocument property: The webpage that Azure Storage serves for requests to the root of a website or any subfolder (for example, index.html). The value is case-sensitive.
Parameters:
Returns: