StaticSiteTemplateOptions Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.StaticSiteTemplateOptions

Implements

public final class StaticSiteTemplateOptions
implements JsonSerializable<StaticSiteTemplateOptions>

Template Options for the static site.

Constructor Summary

Constructor Description
StaticSiteTemplateOptions()

Creates an instance of StaticSiteTemplateOptions class.

Method Summary

Modifier and Type Method and Description
String description()

Get the description property: Description of the newly generated repository.

static StaticSiteTemplateOptions fromJson(JsonReader jsonReader)

Reads an instance of StaticSiteTemplateOptions from the JsonReader.

Boolean isPrivate()

Get the isPrivate property: Whether or not the newly generated repository is a private repository.

String owner()

Get the owner property: Owner of the newly generated repository.

String repositoryName()

Get the repositoryName property: Name of the newly generated repository.

String templateRepositoryUrl()

Get the templateRepositoryUrl property: URL of the template repository.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StaticSiteTemplateOptions withDescription(String description)

Set the description property: Description of the newly generated repository.

StaticSiteTemplateOptions withIsPrivate(Boolean isPrivate)

Set the isPrivate property: Whether or not the newly generated repository is a private repository.

StaticSiteTemplateOptions withOwner(String owner)

Set the owner property: Owner of the newly generated repository.

StaticSiteTemplateOptions withRepositoryName(String repositoryName)

Set the repositoryName property: Name of the newly generated repository.

StaticSiteTemplateOptions withTemplateRepositoryUrl(String templateRepositoryUrl)

Set the templateRepositoryUrl property: URL of the template repository.

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:

the description value.

fromJson

public static StaticSiteTemplateOptions fromJson(JsonReader jsonReader)

Reads an instance of StaticSiteTemplateOptions from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StaticSiteTemplateOptions if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the StaticSiteTemplateOptions.

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:

the isPrivate value.

owner

public String owner()

Get the owner property: Owner of the newly generated repository.

Returns:

the owner value.

repositoryName

public String repositoryName()

Get the repositoryName property: Name of the newly generated repository.

Returns:

the repositoryName value.

templateRepositoryUrl

public String templateRepositoryUrl()

Get the templateRepositoryUrl property: URL of the template repository. The newly generated repository will be based on this one.

Returns:

the templateRepositoryUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDescription

public StaticSiteTemplateOptions withDescription(String description)

Set the description property: Description of the newly generated repository.

Parameters:

description - the description value to set.

Returns:

the StaticSiteTemplateOptions object itself.

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:

isPrivate - the isPrivate value to set.

Returns:

the StaticSiteTemplateOptions object itself.

withOwner

public StaticSiteTemplateOptions withOwner(String owner)

Set the owner property: Owner of the newly generated repository.

Parameters:

owner - the owner value to set.

Returns:

the StaticSiteTemplateOptions object itself.

withRepositoryName

public StaticSiteTemplateOptions withRepositoryName(String repositoryName)

Set the repositoryName property: Name of the newly generated repository.

Parameters:

repositoryName - the repositoryName value to set.

Returns:

the StaticSiteTemplateOptions object itself.

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:

templateRepositoryUrl - the templateRepositoryUrl value to set.

Returns:

the StaticSiteTemplateOptions object itself.

Applies to