Class SourceControlInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
-
- com.azure.resourcemanager.securityinsights.fluent.models.SourceControlInner
-
public final class SourceControlInner extends ResourceWithEtag
Represents a SourceControl in Azure Security Insights.
-
-
Constructor Summary
Constructors Constructor Description SourceControlInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ContentType>
contentTypes()
Get the contentTypes property: Array of source control content types.String
description()
Get the description property: A description of the source control.String
displayName()
Get the displayName property: The display name of the source control.String
idPropertiesId()
Get the id property: The id (a Guid) of the source control.DeploymentInfo
lastDeploymentInfo()
Get the lastDeploymentInfo property: Information regarding the latest deployment for the source control.Repository
repository()
Get the repository property: Repository metadata.RepositoryResourceInfo
repositoryResourceInfo()
Get the repositoryResourceInfo property: Information regarding the resources created in user's repository.RepoType
repoType()
Get the repoType property: The repository type of the source control.void
validate()
Validates the instance.Version
version()
Get the version property: The version number associated with the source control.SourceControlInner
withContentTypes(List<ContentType> contentTypes)
Set the contentTypes property: Array of source control content types.SourceControlInner
withDescription(String description)
Set the description property: A description of the source control.SourceControlInner
withDisplayName(String displayName)
Set the displayName property: The display name of the source control.SourceControlInner
withEtag(String etag)
Set the etag property: Etag of the azure resource.SourceControlInner
withIdPropertiesId(String id)
Set the id property: The id (a Guid) of the source control.SourceControlInner
withLastDeploymentInfo(DeploymentInfo lastDeploymentInfo)
Set the lastDeploymentInfo property: Information regarding the latest deployment for the source control.SourceControlInner
withRepository(Repository repository)
Set the repository property: Repository metadata.SourceControlInner
withRepositoryResourceInfo(RepositoryResourceInfo repositoryResourceInfo)
Set the repositoryResourceInfo property: Information regarding the resources created in user's repository.SourceControlInner
withRepoType(RepoType repoType)
Set the repoType property: The repository type of the source control.SourceControlInner
withVersion(Version version)
Set the version property: The version number associated with the source control.-
Methods inherited from class com.azure.resourcemanager.securityinsights.models.ResourceWithEtag
etag, systemData
-
-
-
-
Method Detail
-
withEtag
public SourceControlInner withEtag(String etag)
Set the etag property: Etag of the azure resource.- Overrides:
withEtag
in classResourceWithEtag
- Parameters:
etag
- the etag value to set.- Returns:
- the ResourceWithEtag object itself.
-
idPropertiesId
public String idPropertiesId()
Get the id property: The id (a Guid) of the source control.- Returns:
- the id value.
-
withIdPropertiesId
public SourceControlInner withIdPropertiesId(String id)
Set the id property: The id (a Guid) of the source control.- Parameters:
id
- the id value to set.- Returns:
- the SourceControlInner object itself.
-
version
public Version version()
Get the version property: The version number associated with the source control.- Returns:
- the version value.
-
withVersion
public SourceControlInner withVersion(Version version)
Set the version property: The version number associated with the source control.- Parameters:
version
- the version value to set.- Returns:
- the SourceControlInner object itself.
-
displayName
public String displayName()
Get the displayName property: The display name of the source control.- Returns:
- the displayName value.
-
withDisplayName
public SourceControlInner withDisplayName(String displayName)
Set the displayName property: The display name of the source control.- Parameters:
displayName
- the displayName value to set.- Returns:
- the SourceControlInner object itself.
-
description
public String description()
Get the description property: A description of the source control.- Returns:
- the description value.
-
withDescription
public SourceControlInner withDescription(String description)
Set the description property: A description of the source control.- Parameters:
description
- the description value to set.- Returns:
- the SourceControlInner object itself.
-
repoType
public RepoType repoType()
Get the repoType property: The repository type of the source control.- Returns:
- the repoType value.
-
withRepoType
public SourceControlInner withRepoType(RepoType repoType)
Set the repoType property: The repository type of the source control.- Parameters:
repoType
- the repoType value to set.- Returns:
- the SourceControlInner object itself.
-
contentTypes
public List<ContentType> contentTypes()
Get the contentTypes property: Array of source control content types.- Returns:
- the contentTypes value.
-
withContentTypes
public SourceControlInner withContentTypes(List<ContentType> contentTypes)
Set the contentTypes property: Array of source control content types.- Parameters:
contentTypes
- the contentTypes value to set.- Returns:
- the SourceControlInner object itself.
-
repository
public Repository repository()
Get the repository property: Repository metadata.- Returns:
- the repository value.
-
withRepository
public SourceControlInner withRepository(Repository repository)
Set the repository property: Repository metadata.- Parameters:
repository
- the repository value to set.- Returns:
- the SourceControlInner 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 SourceControlInner 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 SourceControlInner 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 SourceControlInner 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 SourceControlInner object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classResourceWithEtag
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-