diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 64f30b32306..adbf0e54159 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -42913,6 +42913,11 @@ components: **Supported pipeline types:** logs, metrics' properties: + address_key: + description: Name of the environment variable or secret that holds the listen + address for the Datadog Agent source. + example: DATADOG_AGENT_ADDRESS + type: string id: description: The unique identifier for this component. Used in other parts of the pipeline to reference this component (for example, as the `input` diff --git a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDatadogAgentSource.java b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDatadogAgentSource.java index ab9863e78f3..24a7e0bdc4e 100644 --- a/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDatadogAgentSource.java +++ b/src/main/java/com/datadog/api/client/v2/model/ObservabilityPipelineDatadogAgentSource.java @@ -23,6 +23,7 @@ *

Supported pipeline types: logs, metrics */ @JsonPropertyOrder({ + ObservabilityPipelineDatadogAgentSource.JSON_PROPERTY_ADDRESS_KEY, ObservabilityPipelineDatadogAgentSource.JSON_PROPERTY_ID, ObservabilityPipelineDatadogAgentSource.JSON_PROPERTY_TLS, ObservabilityPipelineDatadogAgentSource.JSON_PROPERTY_TYPE @@ -31,6 +32,9 @@ value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class ObservabilityPipelineDatadogAgentSource { @JsonIgnore public boolean unparsed = false; + public static final String JSON_PROPERTY_ADDRESS_KEY = "address_key"; + private String addressKey; + public static final String JSON_PROPERTY_ID = "id"; private String id; @@ -53,6 +57,28 @@ public ObservabilityPipelineDatadogAgentSource( this.unparsed |= !type.isValid(); } + public ObservabilityPipelineDatadogAgentSource addressKey(String addressKey) { + this.addressKey = addressKey; + return this; + } + + /** + * Name of the environment variable or secret that holds the listen address for the Datadog Agent + * source. + * + * @return addressKey + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_ADDRESS_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getAddressKey() { + return addressKey; + } + + public void setAddressKey(String addressKey) { + this.addressKey = addressKey; + } + public ObservabilityPipelineDatadogAgentSource id(String id) { this.id = id; return this; @@ -178,7 +204,8 @@ public boolean equals(Object o) { } ObservabilityPipelineDatadogAgentSource observabilityPipelineDatadogAgentSource = (ObservabilityPipelineDatadogAgentSource) o; - return Objects.equals(this.id, observabilityPipelineDatadogAgentSource.id) + return Objects.equals(this.addressKey, observabilityPipelineDatadogAgentSource.addressKey) + && Objects.equals(this.id, observabilityPipelineDatadogAgentSource.id) && Objects.equals(this.tls, observabilityPipelineDatadogAgentSource.tls) && Objects.equals(this.type, observabilityPipelineDatadogAgentSource.type) && Objects.equals( @@ -188,13 +215,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, tls, type, additionalProperties); + return Objects.hash(addressKey, id, tls, type, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ObservabilityPipelineDatadogAgentSource {\n"); + sb.append(" addressKey: ").append(toIndentedString(addressKey)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" tls: ").append(toIndentedString(tls)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n");