com.datadog.api.client.v2.model.HistoricalJobResponseAttributes 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.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 java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/** Historical job attributes. */
@JsonPropertyOrder({
HistoricalJobResponseAttributes.JSON_PROPERTY_CREATED_AT,
HistoricalJobResponseAttributes.JSON_PROPERTY_CREATED_BY_HANDLE,
HistoricalJobResponseAttributes.JSON_PROPERTY_CREATED_BY_NAME,
HistoricalJobResponseAttributes.JSON_PROPERTY_CREATED_FROM_RULE_ID,
HistoricalJobResponseAttributes.JSON_PROPERTY_JOB_DEFINITION,
HistoricalJobResponseAttributes.JSON_PROPERTY_JOB_NAME,
HistoricalJobResponseAttributes.JSON_PROPERTY_JOB_STATUS,
HistoricalJobResponseAttributes.JSON_PROPERTY_MODIFIED_AT
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class HistoricalJobResponseAttributes {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_CREATED_AT = "createdAt";
private String createdAt;
public static final String JSON_PROPERTY_CREATED_BY_HANDLE = "createdByHandle";
private String createdByHandle;
public static final String JSON_PROPERTY_CREATED_BY_NAME = "createdByName";
private String createdByName;
public static final String JSON_PROPERTY_CREATED_FROM_RULE_ID = "createdFromRuleId";
private String createdFromRuleId;
public static final String JSON_PROPERTY_JOB_DEFINITION = "jobDefinition";
private JobDefinition jobDefinition;
public static final String JSON_PROPERTY_JOB_NAME = "jobName";
private String jobName;
public static final String JSON_PROPERTY_JOB_STATUS = "jobStatus";
private String jobStatus;
public static final String JSON_PROPERTY_MODIFIED_AT = "modifiedAt";
private String modifiedAt;
public HistoricalJobResponseAttributes createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Time when the job was created.
*
* @return createdAt
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CREATED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public HistoricalJobResponseAttributes createdByHandle(String createdByHandle) {
this.createdByHandle = createdByHandle;
return this;
}
/**
* The handle of the user who created the job.
*
* @return createdByHandle
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CREATED_BY_HANDLE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCreatedByHandle() {
return createdByHandle;
}
public void setCreatedByHandle(String createdByHandle) {
this.createdByHandle = createdByHandle;
}
public HistoricalJobResponseAttributes createdByName(String createdByName) {
this.createdByName = createdByName;
return this;
}
/**
* The name of the user who created the job.
*
* @return createdByName
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CREATED_BY_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCreatedByName() {
return createdByName;
}
public void setCreatedByName(String createdByName) {
this.createdByName = createdByName;
}
public HistoricalJobResponseAttributes createdFromRuleId(String createdFromRuleId) {
this.createdFromRuleId = createdFromRuleId;
return this;
}
/**
* ID of the rule used to create the job (if it is created from a rule).
*
* @return createdFromRuleId
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CREATED_FROM_RULE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getCreatedFromRuleId() {
return createdFromRuleId;
}
public void setCreatedFromRuleId(String createdFromRuleId) {
this.createdFromRuleId = createdFromRuleId;
}
public HistoricalJobResponseAttributes jobDefinition(JobDefinition jobDefinition) {
this.jobDefinition = jobDefinition;
this.unparsed |= jobDefinition.unparsed;
return this;
}
/**
* Definition of a historical job.
*
* @return jobDefinition
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_JOB_DEFINITION)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JobDefinition getJobDefinition() {
return jobDefinition;
}
public void setJobDefinition(JobDefinition jobDefinition) {
this.jobDefinition = jobDefinition;
}
public HistoricalJobResponseAttributes jobName(String jobName) {
this.jobName = jobName;
return this;
}
/**
* Job name.
*
* @return jobName
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_JOB_NAME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getJobName() {
return jobName;
}
public void setJobName(String jobName) {
this.jobName = jobName;
}
public HistoricalJobResponseAttributes jobStatus(String jobStatus) {
this.jobStatus = jobStatus;
return this;
}
/**
* Job status.
*
* @return jobStatus
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_JOB_STATUS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getJobStatus() {
return jobStatus;
}
public void setJobStatus(String jobStatus) {
this.jobStatus = jobStatus;
}
public HistoricalJobResponseAttributes modifiedAt(String modifiedAt) {
this.modifiedAt = modifiedAt;
return this;
}
/**
* Last modification time of the job.
*
* @return modifiedAt
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_MODIFIED_AT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getModifiedAt() {
return modifiedAt;
}
public void setModifiedAt(String modifiedAt) {
this.modifiedAt = modifiedAt;
}
/**
* A container for additional, undeclared properties. This is a holder for any undeclared
* properties as specified with the 'additionalProperties' keyword in the OAS document.
*/
private Map additionalProperties;
/**
* Set the additional (undeclared) property with the specified name and value. If the property
* does not already exist, create it otherwise replace it.
*
* @param key The arbitrary key to set
* @param value The associated value
* @return HistoricalJobResponseAttributes
*/
@JsonAnySetter
public HistoricalJobResponseAttributes putAdditionalProperty(String key, Object value) {
if (this.additionalProperties == null) {
this.additionalProperties = new HashMap();
}
this.additionalProperties.put(key, value);
return this;
}
/**
* Return the additional (undeclared) property.
*
* @return The additional properties
*/
@JsonAnyGetter
public Map getAdditionalProperties() {
return additionalProperties;
}
/**
* Return the additional (undeclared) property with the specified name.
*
* @param key The arbitrary key to get
* @return The specific additional property for the given key
*/
public Object getAdditionalProperty(String key) {
if (this.additionalProperties == null) {
return null;
}
return this.additionalProperties.get(key);
}
/** Return true if this HistoricalJobResponseAttributes object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
HistoricalJobResponseAttributes historicalJobResponseAttributes =
(HistoricalJobResponseAttributes) o;
return Objects.equals(this.createdAt, historicalJobResponseAttributes.createdAt)
&& Objects.equals(this.createdByHandle, historicalJobResponseAttributes.createdByHandle)
&& Objects.equals(this.createdByName, historicalJobResponseAttributes.createdByName)
&& Objects.equals(this.createdFromRuleId, historicalJobResponseAttributes.createdFromRuleId)
&& Objects.equals(this.jobDefinition, historicalJobResponseAttributes.jobDefinition)
&& Objects.equals(this.jobName, historicalJobResponseAttributes.jobName)
&& Objects.equals(this.jobStatus, historicalJobResponseAttributes.jobStatus)
&& Objects.equals(this.modifiedAt, historicalJobResponseAttributes.modifiedAt)
&& Objects.equals(
this.additionalProperties, historicalJobResponseAttributes.additionalProperties);
}
@Override
public int hashCode() {
return Objects.hash(
createdAt,
createdByHandle,
createdByName,
createdFromRuleId,
jobDefinition,
jobName,
jobStatus,
modifiedAt,
additionalProperties);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class HistoricalJobResponseAttributes {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" createdByHandle: ").append(toIndentedString(createdByHandle)).append("\n");
sb.append(" createdByName: ").append(toIndentedString(createdByName)).append("\n");
sb.append(" createdFromRuleId: ").append(toIndentedString(createdFromRuleId)).append("\n");
sb.append(" jobDefinition: ").append(toIndentedString(jobDefinition)).append("\n");
sb.append(" jobName: ").append(toIndentedString(jobName)).append("\n");
sb.append(" jobStatus: ").append(toIndentedString(jobStatus)).append("\n");
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
.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