io.fabric8.openshift.api.model.GitBuildSource Maven / Gradle / Ivy
The newest version!
package io.fabric8.openshift.api.model;
import java.util.HashMap;
import java.util.Map;
import javax.annotation.Generated;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
/**
*
*
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Generated("org.jsonschema2pojo")
@JsonPropertyOrder({
"httpProxy",
"httpsProxy",
"ref",
"uri"
})
@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class)
public class GitBuildSource {
/**
* specifies a http proxy to be used during git clone operations
*
*/
@JsonProperty("httpProxy")
private String httpProxy;
/**
* specifies a https proxy to be used during git clone operations
*
*/
@JsonProperty("httpsProxy")
private String httpsProxy;
/**
* identifies the branch/tag/ref to build
*
*/
@JsonProperty("ref")
private String ref;
/**
* points to the source that will be built
*
*/
@JsonProperty("uri")
private String uri;
@JsonIgnore
private Map additionalProperties = new HashMap();
/**
* No args constructor for use in serialization
*
*/
public GitBuildSource() {
}
/**
*
* @param httpProxy
* @param ref
* @param httpsProxy
* @param uri
*/
public GitBuildSource(String httpProxy, String httpsProxy, String ref, String uri) {
this.httpProxy = httpProxy;
this.httpsProxy = httpsProxy;
this.ref = ref;
this.uri = uri;
}
/**
* specifies a http proxy to be used during git clone operations
*
* @return
* The httpProxy
*/
@JsonProperty("httpProxy")
public String getHttpProxy() {
return httpProxy;
}
/**
* specifies a http proxy to be used during git clone operations
*
* @param httpProxy
* The httpProxy
*/
@JsonProperty("httpProxy")
public void setHttpProxy(String httpProxy) {
this.httpProxy = httpProxy;
}
/**
* specifies a https proxy to be used during git clone operations
*
* @return
* The httpsProxy
*/
@JsonProperty("httpsProxy")
public String getHttpsProxy() {
return httpsProxy;
}
/**
* specifies a https proxy to be used during git clone operations
*
* @param httpsProxy
* The httpsProxy
*/
@JsonProperty("httpsProxy")
public void setHttpsProxy(String httpsProxy) {
this.httpsProxy = httpsProxy;
}
/**
* identifies the branch/tag/ref to build
*
* @return
* The ref
*/
@JsonProperty("ref")
public String getRef() {
return ref;
}
/**
* identifies the branch/tag/ref to build
*
* @param ref
* The ref
*/
@JsonProperty("ref")
public void setRef(String ref) {
this.ref = ref;
}
/**
* points to the source that will be built
*
* @return
* The uri
*/
@JsonProperty("uri")
public String getUri() {
return uri;
}
/**
* points to the source that will be built
*
* @param uri
* The uri
*/
@JsonProperty("uri")
public void setUri(String uri) {
this.uri = uri;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
@JsonAnyGetter
public Map getAdditionalProperties() {
return this.additionalProperties;
}
@JsonAnySetter
public void setAdditionalProperty(String name, Object value) {
this.additionalProperties.put(name, value);
}
@Override
public int hashCode() {
return new HashCodeBuilder().append(httpProxy).append(httpsProxy).append(ref).append(uri).append(additionalProperties).toHashCode();
}
@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if ((other instanceof GitBuildSource) == false) {
return false;
}
GitBuildSource rhs = ((GitBuildSource) other);
return new EqualsBuilder().append(httpProxy, rhs.httpProxy).append(httpsProxy, rhs.httpsProxy).append(ref, rhs.ref).append(uri, rhs.uri).append(additionalProperties, rhs.additionalProperties).isEquals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy