Class SourceTriggerDescriptor
- java.lang.Object
-
- com.azure.resourcemanager.containerregistry.models.SourceTriggerDescriptor
-
public final class SourceTriggerDescriptor extends Object
The source trigger that caused a run.
-
-
Constructor Summary
Constructors Constructor Description SourceTriggerDescriptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbranchName()Get the branchName property: The branch name in the repository.StringcommitId()Get the commitId property: The unique ID that identifies a commit.StringeventType()Get the eventType property: The event type of the trigger.Stringid()Get the id property: The unique ID of the trigger.StringproviderType()Get the providerType property: The source control provider type.StringpullRequestId()Get the pullRequestId property: The unique ID that identifies pull request.StringrepositoryUrl()Get the repositoryUrl property: The repository URL.voidvalidate()Validates the instance.SourceTriggerDescriptorwithBranchName(String branchName)Set the branchName property: The branch name in the repository.SourceTriggerDescriptorwithCommitId(String commitId)Set the commitId property: The unique ID that identifies a commit.SourceTriggerDescriptorwithEventType(String eventType)Set the eventType property: The event type of the trigger.SourceTriggerDescriptorwithId(String id)Set the id property: The unique ID of the trigger.SourceTriggerDescriptorwithProviderType(String providerType)Set the providerType property: The source control provider type.SourceTriggerDescriptorwithPullRequestId(String pullRequestId)Set the pullRequestId property: The unique ID that identifies pull request.SourceTriggerDescriptorwithRepositoryUrl(String repositoryUrl)Set the repositoryUrl property: The repository URL.
-
-
-
Method Detail
-
id
public String id()
Get the id property: The unique ID of the trigger.- Returns:
- the id value.
-
withId
public SourceTriggerDescriptor withId(String id)
Set the id property: The unique ID of the trigger.- Parameters:
id- the id value to set.- Returns:
- the SourceTriggerDescriptor object itself.
-
eventType
public String eventType()
Get the eventType property: The event type of the trigger.- Returns:
- the eventType value.
-
withEventType
public SourceTriggerDescriptor withEventType(String eventType)
Set the eventType property: The event type of the trigger.- Parameters:
eventType- the eventType value to set.- Returns:
- the SourceTriggerDescriptor object itself.
-
commitId
public String commitId()
Get the commitId property: The unique ID that identifies a commit.- Returns:
- the commitId value.
-
withCommitId
public SourceTriggerDescriptor withCommitId(String commitId)
Set the commitId property: The unique ID that identifies a commit.- Parameters:
commitId- the commitId value to set.- Returns:
- the SourceTriggerDescriptor object itself.
-
pullRequestId
public String pullRequestId()
Get the pullRequestId property: The unique ID that identifies pull request.- Returns:
- the pullRequestId value.
-
withPullRequestId
public SourceTriggerDescriptor withPullRequestId(String pullRequestId)
Set the pullRequestId property: The unique ID that identifies pull request.- Parameters:
pullRequestId- the pullRequestId value to set.- Returns:
- the SourceTriggerDescriptor object itself.
-
repositoryUrl
public String repositoryUrl()
Get the repositoryUrl property: The repository URL.- Returns:
- the repositoryUrl value.
-
withRepositoryUrl
public SourceTriggerDescriptor withRepositoryUrl(String repositoryUrl)
Set the repositoryUrl property: The repository URL.- Parameters:
repositoryUrl- the repositoryUrl value to set.- Returns:
- the SourceTriggerDescriptor object itself.
-
branchName
public String branchName()
Get the branchName property: The branch name in the repository.- Returns:
- the branchName value.
-
withBranchName
public SourceTriggerDescriptor withBranchName(String branchName)
Set the branchName property: The branch name in the repository.- Parameters:
branchName- the branchName value to set.- Returns:
- the SourceTriggerDescriptor object itself.
-
providerType
public String providerType()
Get the providerType property: The source control provider type.- Returns:
- the providerType value.
-
withProviderType
public SourceTriggerDescriptor withProviderType(String providerType)
Set the providerType property: The source control provider type.- Parameters:
providerType- the providerType value to set.- Returns:
- the SourceTriggerDescriptor object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-