StaticSiteTemplateOptions Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. StaticSiteTemplateOptions
- com.
Implements
public final class StaticSiteTemplateOptions
implements JsonSerializable<StaticSiteTemplateOptions>
Template Options for the static site.
Constructor Summary
Constructor | Description |
---|---|
StaticSiteTemplateOptions() |
Creates an instance of Static |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
description()
Get the description property: Description of the newly generated repository. |
static
Static |
fromJson(JsonReader jsonReader)
Reads an instance of Static |
Boolean |
isPrivate()
Get the is |
String |
owner()
Get the owner property: Owner of the newly generated repository. |
String |
repositoryName()
Get the repository |
String |
templateRepositoryUrl()
Get the template |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Static |
withDescription(String description)
Set the description property: Description of the newly generated repository. |
Static |
withIsPrivate(Boolean isPrivate)
Set the is |
Static |
withOwner(String owner)
Set the owner property: Owner of the newly generated repository. |
Static |
withRepositoryName(String repositoryName)
Set the repository |
Static |
withTemplateRepositoryUrl(String templateRepositoryUrl)
Set the template |
Methods inherited from java.lang.Object
Constructor Details
StaticSiteTemplateOptions
public StaticSiteTemplateOptions()
Creates an instance of StaticSiteTemplateOptions class.
Method Details
description
public String description()
Get the description property: Description of the newly generated repository.
Returns:
fromJson
public static StaticSiteTemplateOptions fromJson(JsonReader jsonReader)
Reads an instance of StaticSiteTemplateOptions from the JsonReader.
Parameters:
Returns:
Throws:
isPrivate
public Boolean isPrivate()
Get the isPrivate property: Whether or not the newly generated repository is a private repository. Defaults to false (i.e. public).
Returns:
owner
public String owner()
Get the owner property: Owner of the newly generated repository.
Returns:
repositoryName
public String repositoryName()
Get the repositoryName property: Name of the newly generated repository.
Returns:
templateRepositoryUrl
public String templateRepositoryUrl()
Get the templateRepositoryUrl property: URL of the template repository. The newly generated repository will be based on this one.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDescription
public StaticSiteTemplateOptions withDescription(String description)
Set the description property: Description of the newly generated repository.
Parameters:
Returns:
withIsPrivate
public StaticSiteTemplateOptions withIsPrivate(Boolean isPrivate)
Set the isPrivate property: Whether or not the newly generated repository is a private repository. Defaults to false (i.e. public).
Parameters:
Returns:
withOwner
public StaticSiteTemplateOptions withOwner(String owner)
Set the owner property: Owner of the newly generated repository.
Parameters:
Returns:
withRepositoryName
public StaticSiteTemplateOptions withRepositoryName(String repositoryName)
Set the repositoryName property: Name of the newly generated repository.
Parameters:
Returns:
withTemplateRepositoryUrl
public StaticSiteTemplateOptions withTemplateRepositoryUrl(String templateRepositoryUrl)
Set the templateRepositoryUrl property: URL of the template repository. The newly generated repository will be based on this one.
Parameters:
Returns:
Applies to
Azure SDK for Java