SourceTriggerDescriptor Class
- java.
lang. Object - com.
azure. resourcemanager. containerregistry. models. SourceTriggerDescriptor
- com.
Implements
public final class SourceTriggerDescriptor
implements JsonSerializable<SourceTriggerDescriptor>
The source trigger that caused a run.
Constructor Summary
Constructor | Description |
---|---|
SourceTriggerDescriptor() |
Creates an instance of Source |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
branchName()
Get the branch |
String |
commitId()
Get the commit |
String |
eventType()
Get the event |
static
Source |
fromJson(JsonReader jsonReader)
Reads an instance of Source |
String |
id()
Get the id property: The unique ID of the trigger. |
String |
providerType()
Get the provider |
String |
pullRequestId()
Get the pull |
String |
repositoryUrl()
Get the repository |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Source |
withBranchName(String branchName)
Set the branch |
Source |
withCommitId(String commitId)
Set the commit |
Source |
withEventType(String eventType)
Set the event |
Source |
withId(String id)
Set the id property: The unique ID of the trigger. |
Source |
withProviderType(String providerType)
Set the provider |
Source |
withPullRequestId(String pullRequestId)
Set the pull |
Source |
withRepositoryUrl(String repositoryUrl)
Set the repository |
Methods inherited from java.lang.Object
Constructor Details
SourceTriggerDescriptor
public SourceTriggerDescriptor()
Creates an instance of SourceTriggerDescriptor class.
Method Details
branchName
public String branchName()
Get the branchName property: The branch name in the repository.
Returns:
commitId
public String commitId()
Get the commitId property: The unique ID that identifies a commit.
Returns:
eventType
public String eventType()
Get the eventType property: The event type of the trigger.
Returns:
fromJson
public static SourceTriggerDescriptor fromJson(JsonReader jsonReader)
Reads an instance of SourceTriggerDescriptor from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The unique ID of the trigger.
Returns:
providerType
public String providerType()
Get the providerType property: The source control provider type.
Returns:
pullRequestId
public String pullRequestId()
Get the pullRequestId property: The unique ID that identifies pull request.
Returns:
repositoryUrl
public String repositoryUrl()
Get the repositoryUrl property: The repository URL.
Returns:
toJson
validate
public void validate()
Validates the instance.
withBranchName
public SourceTriggerDescriptor withBranchName(String branchName)
Set the branchName property: The branch name in the repository.
Parameters:
Returns:
withCommitId
public SourceTriggerDescriptor withCommitId(String commitId)
Set the commitId property: The unique ID that identifies a commit.
Parameters:
Returns:
withEventType
public SourceTriggerDescriptor withEventType(String eventType)
Set the eventType property: The event type of the trigger.
Parameters:
Returns:
withId
public SourceTriggerDescriptor withId(String id)
Set the id property: The unique ID of the trigger.
Parameters:
Returns:
withProviderType
public SourceTriggerDescriptor withProviderType(String providerType)
Set the providerType property: The source control provider type.
Parameters:
Returns:
withPullRequestId
public SourceTriggerDescriptor withPullRequestId(String pullRequestId)
Set the pullRequestId property: The unique ID that identifies pull request.
Parameters:
Returns:
withRepositoryUrl
public SourceTriggerDescriptor withRepositoryUrl(String repositoryUrl)
Set the repositoryUrl property: The repository URL.
Parameters:
Returns:
Applies to
Azure SDK for Java