com.datadog.api.client.v2.model.EntityV3DatadogCodeLocationItem Maven / Gradle / Ivy
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2019-Present Datadog, Inc.
*/
package com.datadog.api.client.v2.model;
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 java.util.ArrayList;
import java.util.List;
import java.util.Objects;
/** Code location item. */
@JsonPropertyOrder({
EntityV3DatadogCodeLocationItem.JSON_PROPERTY_PATHS,
EntityV3DatadogCodeLocationItem.JSON_PROPERTY_REPOSITORY_URL
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class EntityV3DatadogCodeLocationItem {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_PATHS = "paths";
private List paths = null;
public static final String JSON_PROPERTY_REPOSITORY_URL = "repositoryURL";
private String repositoryUrl;
public EntityV3DatadogCodeLocationItem paths(List paths) {
this.paths = paths;
return this;
}
public EntityV3DatadogCodeLocationItem addPathsItem(String pathsItem) {
if (this.paths == null) {
this.paths = new ArrayList<>();
}
this.paths.add(pathsItem);
return this;
}
/**
* The paths (glob) to the source code of the service.
*
* @return paths
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_PATHS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List getPaths() {
return paths;
}
public void setPaths(List paths) {
this.paths = paths;
}
public EntityV3DatadogCodeLocationItem repositoryUrl(String repositoryUrl) {
this.repositoryUrl = repositoryUrl;
return this;
}
/**
* The repository path of the source code of the entity.
*
* @return repositoryUrl
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_REPOSITORY_URL)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRepositoryUrl() {
return repositoryUrl;
}
public void setRepositoryUrl(String repositoryUrl) {
this.repositoryUrl = repositoryUrl;
}
/** Return true if this EntityV3DatadogCodeLocationItem object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EntityV3DatadogCodeLocationItem entityV3DatadogCodeLocationItem =
(EntityV3DatadogCodeLocationItem) o;
return Objects.equals(this.paths, entityV3DatadogCodeLocationItem.paths)
&& Objects.equals(this.repositoryUrl, entityV3DatadogCodeLocationItem.repositoryUrl);
}
@Override
public int hashCode() {
return Objects.hash(paths, repositoryUrl);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EntityV3DatadogCodeLocationItem {\n");
sb.append(" paths: ").append(toIndentedString(paths)).append("\n");
sb.append(" repositoryUrl: ").append(toIndentedString(repositoryUrl)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy