Class SourceControlProperties

java.lang.Object
com.azure.resourcemanager.securityinsights.fluent.models.SourceControlProperties

public final class SourceControlProperties extends Object
Describes source control properties.
  • Constructor Details

    • SourceControlProperties

      public SourceControlProperties()
  • Method Details

    • id

      public String id()
      Get the id property: The id (a Guid) of the source control.
      Returns:
      the id value.
    • withId

      public SourceControlProperties withId(String id)
      Set the id property: The id (a Guid) of the source control.
      Parameters:
      id - the id value to set.
      Returns:
      the SourceControlProperties object itself.
    • version

      public Version version()
      Get the version property: The version number associated with the source control.
      Returns:
      the version value.
    • withVersion

      public SourceControlProperties withVersion(Version version)
      Set the version property: The version number associated with the source control.
      Parameters:
      version - the version value to set.
      Returns:
      the SourceControlProperties object itself.
    • displayName

      public String displayName()
      Get the displayName property: The display name of the source control.
      Returns:
      the displayName value.
    • withDisplayName

      public SourceControlProperties withDisplayName(String displayName)
      Set the displayName property: The display name of the source control.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the SourceControlProperties object itself.
    • description

      public String description()
      Get the description property: A description of the source control.
      Returns:
      the description value.
    • withDescription

      public SourceControlProperties withDescription(String description)
      Set the description property: A description of the source control.
      Parameters:
      description - the description value to set.
      Returns:
      the SourceControlProperties object itself.
    • repoType

      public RepoType repoType()
      Get the repoType property: The repository type of the source control.
      Returns:
      the repoType value.
    • withRepoType

      public SourceControlProperties withRepoType(RepoType repoType)
      Set the repoType property: The repository type of the source control.
      Parameters:
      repoType - the repoType value to set.
      Returns:
      the SourceControlProperties object itself.
    • contentTypes

      public List<ContentType> contentTypes()
      Get the contentTypes property: Array of source control content types.
      Returns:
      the contentTypes value.
    • withContentTypes

      public SourceControlProperties withContentTypes(List<ContentType> contentTypes)
      Set the contentTypes property: Array of source control content types.
      Parameters:
      contentTypes - the contentTypes value to set.
      Returns:
      the SourceControlProperties object itself.
    • repository

      public Repository repository()
      Get the repository property: Repository metadata.
      Returns:
      the repository value.
    • withRepository

      public SourceControlProperties withRepository(Repository repository)
      Set the repository property: Repository metadata.
      Parameters:
      repository - the repository value to set.
      Returns:
      the SourceControlProperties object itself.
    • repositoryResourceInfo

      public RepositoryResourceInfo repositoryResourceInfo()
      Get the repositoryResourceInfo property: Information regarding the resources created in user's repository.
      Returns:
      the repositoryResourceInfo value.
    • withRepositoryResourceInfo

      public SourceControlProperties withRepositoryResourceInfo(RepositoryResourceInfo repositoryResourceInfo)
      Set the repositoryResourceInfo property: Information regarding the resources created in user's repository.
      Parameters:
      repositoryResourceInfo - the repositoryResourceInfo value to set.
      Returns:
      the SourceControlProperties object itself.
    • lastDeploymentInfo

      public DeploymentInfo lastDeploymentInfo()
      Get the lastDeploymentInfo property: Information regarding the latest deployment for the source control.
      Returns:
      the lastDeploymentInfo value.
    • withLastDeploymentInfo

      public SourceControlProperties withLastDeploymentInfo(DeploymentInfo lastDeploymentInfo)
      Set the lastDeploymentInfo property: Information regarding the latest deployment for the source control.
      Parameters:
      lastDeploymentInfo - the lastDeploymentInfo value to set.
      Returns:
      the SourceControlProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.