Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39011,6 +39011,9 @@ components:
SecurityMonitoringRuleConvertResponse:
description: Result of the convert rule request containing Terraform content.
properties:
ruleId:
description: the ID of the rule.
type: string
terraformContent:
description: Terraform string as a result of converting the rule from JSON.
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,41 @@
import java.util.Objects;

/** Result of the convert rule request containing Terraform content. */
@JsonPropertyOrder({SecurityMonitoringRuleConvertResponse.JSON_PROPERTY_TERRAFORM_CONTENT})
@JsonPropertyOrder({
SecurityMonitoringRuleConvertResponse.JSON_PROPERTY_RULE_ID,
SecurityMonitoringRuleConvertResponse.JSON_PROPERTY_TERRAFORM_CONTENT
})
@jakarta.annotation.Generated(
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class SecurityMonitoringRuleConvertResponse {
@JsonIgnore public boolean unparsed = false;
public static final String JSON_PROPERTY_RULE_ID = "ruleId";
private String ruleId;

public static final String JSON_PROPERTY_TERRAFORM_CONTENT = "terraformContent";
private String terraformContent;

public SecurityMonitoringRuleConvertResponse ruleId(String ruleId) {
this.ruleId = ruleId;
return this;
}

/**
* the ID of the rule.
*
* @return ruleId
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_RULE_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRuleId() {
return ruleId;
}

public void setRuleId(String ruleId) {
this.ruleId = ruleId;
}

public SecurityMonitoringRuleConvertResponse terraformContent(String terraformContent) {
this.terraformContent = terraformContent;
return this;
Expand Down Expand Up @@ -103,21 +130,23 @@ public boolean equals(Object o) {
}
SecurityMonitoringRuleConvertResponse securityMonitoringRuleConvertResponse =
(SecurityMonitoringRuleConvertResponse) o;
return Objects.equals(
return Objects.equals(this.ruleId, securityMonitoringRuleConvertResponse.ruleId)
&& Objects.equals(
this.terraformContent, securityMonitoringRuleConvertResponse.terraformContent)
&& Objects.equals(
this.additionalProperties, securityMonitoringRuleConvertResponse.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(terraformContent, additionalProperties);
return Objects.hash(ruleId, terraformContent, additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SecurityMonitoringRuleConvertResponse {\n");
sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n");
sb.append(" terraformContent: ").append(toIndentedString(terraformContent)).append("\n");
sb.append(" additionalProperties: ")
.append(toIndentedString(additionalProperties))
Expand Down