ArtifactSourceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.fluent.models.ArtifactSourceProperties

Implements

public final class ArtifactSourceProperties
implements JsonSerializable<ArtifactSourceProperties>

Properties of an artifact source.

Constructor Summary

Constructor Description
ArtifactSourceProperties()

Creates an instance of ArtifactSourceProperties class.

Method Summary

Modifier and Type Method and Description
String armTemplateFolderPath()

Get the armTemplateFolderPath property: The folder containing Azure Resource Manager templates.

String branchRef()

Get the branchRef property: The artifact source's branch reference.

OffsetDateTime createdDate()

Get the createdDate property: The artifact source's creation date.

String displayName()

Get the displayName property: The artifact source's display name.

String folderPath()

Get the folderPath property: The folder containing artifacts.

static ArtifactSourceProperties fromJson(JsonReader jsonReader)

Reads an instance of ArtifactSourceProperties from the JsonReader.

String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

String securityToken()

Get the securityToken property: The security token to authenticate to the artifact source.

SourceControlType sourceType()

Get the sourceType property: The artifact source's type.

EnableStatus status()

Get the status property: Indicates if the artifact source is enabled (values: Enabled, Disabled).

JsonWriter toJson(JsonWriter jsonWriter)
String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

String uri()

Get the uri property: The artifact source's URI.

ArtifactSourceProperties withArmTemplateFolderPath(String armTemplateFolderPath)

Set the armTemplateFolderPath property: The folder containing Azure Resource Manager templates.

ArtifactSourceProperties withBranchRef(String branchRef)

Set the branchRef property: The artifact source's branch reference.

ArtifactSourceProperties withDisplayName(String displayName)

Set the displayName property: The artifact source's display name.

ArtifactSourceProperties withFolderPath(String folderPath)

Set the folderPath property: The folder containing artifacts.

ArtifactSourceProperties withSecurityToken(String securityToken)

Set the securityToken property: The security token to authenticate to the artifact source.

ArtifactSourceProperties withSourceType(SourceControlType sourceType)

Set the sourceType property: The artifact source's type.

ArtifactSourceProperties withStatus(EnableStatus status)

Set the status property: Indicates if the artifact source is enabled (values: Enabled, Disabled).

ArtifactSourceProperties withUri(String uri)

Set the uri property: The artifact source's URI.

Methods inherited from java.lang.Object

Constructor Details

ArtifactSourceProperties

public ArtifactSourceProperties()

Creates an instance of ArtifactSourceProperties class.

Method Details

armTemplateFolderPath

public String armTemplateFolderPath()

Get the armTemplateFolderPath property: The folder containing Azure Resource Manager templates.

Returns:

the armTemplateFolderPath value.

branchRef

public String branchRef()

Get the branchRef property: The artifact source's branch reference.

Returns:

the branchRef value.

createdDate

public OffsetDateTime createdDate()

Get the createdDate property: The artifact source's creation date.

Returns:

the createdDate value.

displayName

public String displayName()

Get the displayName property: The artifact source's display name.

Returns:

the displayName value.

folderPath

public String folderPath()

Get the folderPath property: The folder containing artifacts.

Returns:

the folderPath value.

fromJson

public static ArtifactSourceProperties fromJson(JsonReader jsonReader)

Reads an instance of ArtifactSourceProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

provisioningState

public String provisioningState()

Get the provisioningState property: The provisioning status of the resource.

Returns:

the provisioningState value.

securityToken

public String securityToken()

Get the securityToken property: The security token to authenticate to the artifact source.

Returns:

the securityToken value.

sourceType

public SourceControlType sourceType()

Get the sourceType property: The artifact source's type.

Returns:

the sourceType value.

status

public EnableStatus status()

Get the status property: Indicates if the artifact source is enabled (values: Enabled, Disabled).

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

uniqueIdentifier

public String uniqueIdentifier()

Get the uniqueIdentifier property: The unique immutable identifier of a resource (Guid).

Returns:

the uniqueIdentifier value.

uri

public String uri()

Get the uri property: The artifact source's URI.

Returns:

the uri value.

withArmTemplateFolderPath

public ArtifactSourceProperties withArmTemplateFolderPath(String armTemplateFolderPath)

Set the armTemplateFolderPath property: The folder containing Azure Resource Manager templates.

Parameters:

armTemplateFolderPath - the armTemplateFolderPath value to set.

Returns:

the ArtifactSourceProperties object itself.

withBranchRef

public ArtifactSourceProperties withBranchRef(String branchRef)

Set the branchRef property: The artifact source's branch reference.

Parameters:

branchRef - the branchRef value to set.

Returns:

the ArtifactSourceProperties object itself.

withDisplayName

public ArtifactSourceProperties withDisplayName(String displayName)

Set the displayName property: The artifact source's display name.

Parameters:

displayName - the displayName value to set.

Returns:

the ArtifactSourceProperties object itself.

withFolderPath

public ArtifactSourceProperties withFolderPath(String folderPath)

Set the folderPath property: The folder containing artifacts.

Parameters:

folderPath - the folderPath value to set.

Returns:

the ArtifactSourceProperties object itself.

withSecurityToken

public ArtifactSourceProperties withSecurityToken(String securityToken)

Set the securityToken property: The security token to authenticate to the artifact source.

Parameters:

securityToken - the securityToken value to set.

Returns:

the ArtifactSourceProperties object itself.

withSourceType

public ArtifactSourceProperties withSourceType(SourceControlType sourceType)

Set the sourceType property: The artifact source's type.

Parameters:

sourceType - the sourceType value to set.

Returns:

the ArtifactSourceProperties object itself.

withStatus

public ArtifactSourceProperties withStatus(EnableStatus status)

Set the status property: Indicates if the artifact source is enabled (values: Enabled, Disabled).

Parameters:

status - the status value to set.

Returns:

the ArtifactSourceProperties object itself.

withUri

public ArtifactSourceProperties withUri(String uri)

Set the uri property: The artifact source's URI.

Parameters:

uri - the uri value to set.

Returns:

the ArtifactSourceProperties object itself.

Applies to