Class RepositoryResourceInfo
java.lang.Object
com.azure.resourcemanager.securityinsights.models.RepositoryResourceInfo
Resources created in user's repository for the source-control.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the azureDevOpsResourceInfo property: Resources created in Azure DevOps for this source-control.Get the gitHubResourceInfo property: Resources created in GitHub for this source-control.void
validate()
Validates the instance.webhook()
Get the webhook property: The webhook object created for the source-control.withAzureDevOpsResourceInfo
(AzureDevOpsResourceInfo azureDevOpsResourceInfo) Set the azureDevOpsResourceInfo property: Resources created in Azure DevOps for this source-control.withGitHubResourceInfo
(GitHubResourceInfo gitHubResourceInfo) Set the gitHubResourceInfo property: Resources created in GitHub for this source-control.withWebhook
(Webhook webhook) Set the webhook property: The webhook object created for the source-control.
-
Constructor Details
-
RepositoryResourceInfo
public RepositoryResourceInfo()
-
-
Method Details
-
webhook
Get the webhook property: The webhook object created for the source-control.- Returns:
- the webhook value.
-
withWebhook
Set the webhook property: The webhook object created for the source-control.- Parameters:
webhook
- the webhook value to set.- Returns:
- the RepositoryResourceInfo object itself.
-
gitHubResourceInfo
Get the gitHubResourceInfo property: Resources created in GitHub for this source-control.- Returns:
- the gitHubResourceInfo value.
-
withGitHubResourceInfo
Set the gitHubResourceInfo property: Resources created in GitHub for this source-control.- Parameters:
gitHubResourceInfo
- the gitHubResourceInfo value to set.- Returns:
- the RepositoryResourceInfo object itself.
-
azureDevOpsResourceInfo
Get the azureDevOpsResourceInfo property: Resources created in Azure DevOps for this source-control.- Returns:
- the azureDevOpsResourceInfo value.
-
withAzureDevOpsResourceInfo
public RepositoryResourceInfo withAzureDevOpsResourceInfo(AzureDevOpsResourceInfo azureDevOpsResourceInfo) Set the azureDevOpsResourceInfo property: Resources created in Azure DevOps for this source-control.- Parameters:
azureDevOpsResourceInfo
- the azureDevOpsResourceInfo value to set.- Returns:
- the RepositoryResourceInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-