StaticSitesWorkflowPreviewRequest Class

public final class StaticSitesWorkflowPreviewRequest
extends ProxyOnlyResource

Request entity for previewing the Static Site workflow.

Constructor Summary

Constructor Description
StaticSitesWorkflowPreviewRequest()

Creates an instance of StaticSitesWorkflowPreviewRequest class.

Method Summary

Modifier and Type Method and Description
String branch()

Get the branch property: The target branch in the repository.

StaticSiteBuildProperties buildProperties()

Get the buildProperties property: Build properties to configure on the repository.

static StaticSitesWorkflowPreviewRequest fromJson(JsonReader jsonReader)

Reads an instance of StaticSitesWorkflowPreviewRequest from the JsonReader.

String id()

Get the id property: Resource Id.

String name()

Get the name property: Resource Name.

String repositoryUrl()

Get the repositoryUrl property: URL for the repository of the static site.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Resource type.

void validate()

Validates the instance.

StaticSitesWorkflowPreviewRequest withBranch(String branch)

Set the branch property: The target branch in the repository.

StaticSitesWorkflowPreviewRequest withBuildProperties(StaticSiteBuildProperties buildProperties)

Set the buildProperties property: Build properties to configure on the repository.

StaticSitesWorkflowPreviewRequest withKind(String kind)

Set the kind property: Kind of resource.

StaticSitesWorkflowPreviewRequest withRepositoryUrl(String repositoryUrl)

Set the repositoryUrl property: URL for the repository of the static site.

Methods inherited from ProxyOnlyResource

Methods inherited from java.lang.Object

Constructor Details

StaticSitesWorkflowPreviewRequest

public StaticSitesWorkflowPreviewRequest()

Creates an instance of StaticSitesWorkflowPreviewRequest class.

Method Details

branch

public String branch()

Get the branch property: The target branch in the repository.

Returns:

the branch value.

buildProperties

public StaticSiteBuildProperties buildProperties()

Get the buildProperties property: Build properties to configure on the repository.

Returns:

the buildProperties value.

fromJson

public static StaticSitesWorkflowPreviewRequest fromJson(JsonReader jsonReader)

Reads an instance of StaticSitesWorkflowPreviewRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of StaticSitesWorkflowPreviewRequest 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 StaticSitesWorkflowPreviewRequest.

id

public String id()

Get the id property: Resource Id.

Overrides:

StaticSitesWorkflowPreviewRequest.id()

Returns:

the id value.

name

public String name()

Get the name property: Resource Name.

Overrides:

StaticSitesWorkflowPreviewRequest.name()

Returns:

the name value.

repositoryUrl

public String repositoryUrl()

Get the repositoryUrl property: URL for the repository of the static site.

Returns:

the repositoryUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

StaticSitesWorkflowPreviewRequest.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Resource type.

Overrides:

StaticSitesWorkflowPreviewRequest.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

StaticSitesWorkflowPreviewRequest.validate()

withBranch

public StaticSitesWorkflowPreviewRequest withBranch(String branch)

Set the branch property: The target branch in the repository.

Parameters:

branch - the branch value to set.

Returns:

the StaticSitesWorkflowPreviewRequest object itself.

withBuildProperties

public StaticSitesWorkflowPreviewRequest withBuildProperties(StaticSiteBuildProperties buildProperties)

Set the buildProperties property: Build properties to configure on the repository.

Parameters:

buildProperties - the buildProperties value to set.

Returns:

the StaticSitesWorkflowPreviewRequest object itself.

withKind

public StaticSitesWorkflowPreviewRequest withKind(String kind)

Set the kind property: Kind of resource.

Overrides:

StaticSitesWorkflowPreviewRequest.withKind(String kind)

Parameters:

kind

withRepositoryUrl

public StaticSitesWorkflowPreviewRequest withRepositoryUrl(String repositoryUrl)

Set the repositoryUrl property: URL for the repository of the static site.

Parameters:

repositoryUrl - the repositoryUrl value to set.

Returns:

the StaticSitesWorkflowPreviewRequest object itself.

Applies to