Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.containerregistry; import com.fasterxml.jackson.annotation.JsonProperty;
The source trigger that caused a run.
/** * The source trigger that caused a run. */
public class SourceTriggerDescriptor {
The unique ID of the trigger.
/** * The unique ID of the trigger. */
@JsonProperty(value = "id") private String id;
The event type of the trigger.
/** * The event type of the trigger. */
@JsonProperty(value = "eventType") private String eventType;
The unique ID that identifies a commit.
/** * The unique ID that identifies a commit. */
@JsonProperty(value = "commitId") private String commitId;
The unique ID that identifies pull request.
/** * The unique ID that identifies pull request. */
@JsonProperty(value = "pullRequestId") private String pullRequestId;
The repository URL.
/** * The repository URL. */
@JsonProperty(value = "repositoryUrl") private String repositoryUrl;
The branch name in the repository.
/** * The branch name in the repository. */
@JsonProperty(value = "branchName") private String branchName;
The source control provider type.
/** * The source control provider type. */
@JsonProperty(value = "providerType") private String providerType;
Get the unique ID of the trigger.
Returns:the id value
/** * Get the unique ID of the trigger. * * @return the id value */
public String id() { return this.id; }
Set the unique ID of the trigger.
Params:
  • id – the id value to set
Returns:the SourceTriggerDescriptor object itself.
/** * Set the unique ID of the trigger. * * @param id the id value to set * @return the SourceTriggerDescriptor object itself. */
public SourceTriggerDescriptor withId(String id) { this.id = id; return this; }
Get the event type of the trigger.
Returns:the eventType value
/** * Get the event type of the trigger. * * @return the eventType value */
public String eventType() { return this.eventType; }
Set the event type of the trigger.
Params:
  • eventType – the eventType value to set
Returns:the SourceTriggerDescriptor object itself.
/** * Set the event type of the trigger. * * @param eventType the eventType value to set * @return the SourceTriggerDescriptor object itself. */
public SourceTriggerDescriptor withEventType(String eventType) { this.eventType = eventType; return this; }
Get the unique ID that identifies a commit.
Returns:the commitId value
/** * Get the unique ID that identifies a commit. * * @return the commitId value */
public String commitId() { return this.commitId; }
Set the unique ID that identifies a commit.
Params:
  • commitId – the commitId value to set
Returns:the SourceTriggerDescriptor object itself.
/** * Set the unique ID that identifies a commit. * * @param commitId the commitId value to set * @return the SourceTriggerDescriptor object itself. */
public SourceTriggerDescriptor withCommitId(String commitId) { this.commitId = commitId; return this; }
Get the unique ID that identifies pull request.
Returns:the pullRequestId value
/** * Get the unique ID that identifies pull request. * * @return the pullRequestId value */
public String pullRequestId() { return this.pullRequestId; }
Set the unique ID that identifies pull request.
Params:
  • pullRequestId – the pullRequestId value to set
Returns:the SourceTriggerDescriptor object itself.
/** * Set the unique ID that identifies pull request. * * @param pullRequestId the pullRequestId value to set * @return the SourceTriggerDescriptor object itself. */
public SourceTriggerDescriptor withPullRequestId(String pullRequestId) { this.pullRequestId = pullRequestId; return this; }
Get the repository URL.
Returns:the repositoryUrl value
/** * Get the repository URL. * * @return the repositoryUrl value */
public String repositoryUrl() { return this.repositoryUrl; }
Set the repository URL.
Params:
  • repositoryUrl – the repositoryUrl value to set
Returns:the SourceTriggerDescriptor object itself.
/** * Set the repository URL. * * @param repositoryUrl the repositoryUrl value to set * @return the SourceTriggerDescriptor object itself. */
public SourceTriggerDescriptor withRepositoryUrl(String repositoryUrl) { this.repositoryUrl = repositoryUrl; return this; }
Get the branch name in the repository.
Returns:the branchName value
/** * Get the branch name in the repository. * * @return the branchName value */
public String branchName() { return this.branchName; }
Set the branch name in the repository.
Params:
  • branchName – the branchName value to set
Returns:the SourceTriggerDescriptor object itself.
/** * Set the branch name in the repository. * * @param branchName the branchName value to set * @return the SourceTriggerDescriptor object itself. */
public SourceTriggerDescriptor withBranchName(String branchName) { this.branchName = branchName; return this; }
Get the source control provider type.
Returns:the providerType value
/** * Get the source control provider type. * * @return the providerType value */
public String providerType() { return this.providerType; }
Set the source control provider type.
Params:
  • providerType – the providerType value to set
Returns:the SourceTriggerDescriptor object itself.
/** * Set the source control provider type. * * @param providerType the providerType value to set * @return the SourceTriggerDescriptor object itself. */
public SourceTriggerDescriptor withProviderType(String providerType) { this.providerType = providerType; return this; } }