com.circleci.client.v2.model.TriggerPipelineParameters Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
Client for CircleCI's API v2
/*
* CircleCI API
* This describes the resources that make up the CircleCI API v2. API v2 is currently in Preview. Additional documentation for this API can be found in the [API Preview Docs](https://github.com/CircleCI-Public/api-preview-docs/tree/master/docs). Breaking changes to the API will be announced in the [Breaking Changes log](https://github.com/CircleCI-Public/api-preview-docs/blob/master/docs/breaking.md).
*
* The version of the OpenAPI document: v2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.circleci.client.v2.model;
import java.util.Objects;
import java.util.Arrays;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* The information you can supply when triggering a pipeline.
*/
@ApiModel(description = "The information you can supply when triggering a pipeline.")
public class TriggerPipelineParameters {
public static final String JSON_PROPERTY_BRANCH = "branch";
@JsonProperty(JSON_PROPERTY_BRANCH)
private String branch;
public static final String JSON_PROPERTY_TAG = "tag";
@JsonProperty(JSON_PROPERTY_TAG)
private String tag;
public static final String JSON_PROPERTY_PARAMETERS = "parameters";
@JsonProperty(JSON_PROPERTY_PARAMETERS)
private Object parameters = null;
public TriggerPipelineParameters branch(String branch) {
this.branch = branch;
return this;
}
/**
* The branch where the pipeline ran. The HEAD commit on this branch was used for the pipeline. Note that `branch` and `tag` are mutually exclusive.
* @return branch
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "feature/design-new-api", value = "The branch where the pipeline ran. The HEAD commit on this branch was used for the pipeline. Note that `branch` and `tag` are mutually exclusive.")
public String getBranch() {
return branch;
}
public void setBranch(String branch) {
this.branch = branch;
}
public TriggerPipelineParameters tag(String tag) {
this.tag = tag;
return this;
}
/**
* The tag used by the pipeline. The commit that this tag points to was used for the pipeline. Note that `branch` and `tag` are mutually exclusive.
* @return tag
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "v3.1.4159", value = "The tag used by the pipeline. The commit that this tag points to was used for the pipeline. Note that `branch` and `tag` are mutually exclusive.")
public String getTag() {
return tag;
}
public void setTag(String tag) {
this.tag = tag;
}
public TriggerPipelineParameters parameters(Object parameters) {
this.parameters = parameters;
return this;
}
/**
* An object containing pipeline parameters and their values.
* @return parameters
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "{\"deploy_prod\":true}", value = "An object containing pipeline parameters and their values.")
public Object getParameters() {
return parameters;
}
public void setParameters(Object parameters) {
this.parameters = parameters;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TriggerPipelineParameters triggerPipelineParameters = (TriggerPipelineParameters) o;
return Objects.equals(this.branch, triggerPipelineParameters.branch) &&
Objects.equals(this.tag, triggerPipelineParameters.tag) &&
Objects.equals(this.parameters, triggerPipelineParameters.parameters);
}
@Override
public int hashCode() {
return Objects.hash(branch, tag, parameters);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TriggerPipelineParameters {\n");
sb.append(" branch: ").append(toIndentedString(branch)).append("\n");
sb.append(" tag: ").append(toIndentedString(tag)).append("\n");
sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy