All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oracle.bmc.datasafe.model.AlertSummary Maven / Gradle / Ivy

Go to download

This project contains the SDK distribution used for Oracle Cloud Infrastructure, and all the dependencies that can be shaded. It also has Maven dependencies that cannot be shaded. Therefore, use this module to depend on the shaded distribution via Maven -- it will shade everything that can be shaded, and automatically pull in the other dependencies.

There is a newer version: 3.55.2
Show newest version
/**
 * Copyright (c) 2016, 2024, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */
package com.oracle.bmc.datasafe.model;

/**
 * Summary of a Data Safe Alert. 
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set * fields into account. The constructor, on the other hand, does not take the explicitly set fields * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20181201") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AlertSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class AlertSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", "status", "displayName", "description", "severity", "operationTime", "operation", "operationStatus", "targetIds", "targetNames", "policyId", "alertType", "compartmentId", "timeCreated", "timeUpdated", "lifecycleState", "alertPolicyRuleKey", "alertPolicyRuleName", "featureDetails", "freeformTags", "definedTags" }) public AlertSummary( String id, AlertStatus status, String displayName, String description, AlertSeverity severity, java.util.Date operationTime, String operation, OperationStatus operationStatus, java.util.List targetIds, java.util.List targetNames, String policyId, AlertType alertType, String compartmentId, java.util.Date timeCreated, java.util.Date timeUpdated, AlertLifecycleState lifecycleState, String alertPolicyRuleKey, String alertPolicyRuleName, java.util.Map> featureDetails, java.util.Map freeformTags, java.util.Map> definedTags) { super(); this.id = id; this.status = status; this.displayName = displayName; this.description = description; this.severity = severity; this.operationTime = operationTime; this.operation = operation; this.operationStatus = operationStatus; this.targetIds = targetIds; this.targetNames = targetNames; this.policyId = policyId; this.alertType = alertType; this.compartmentId = compartmentId; this.timeCreated = timeCreated; this.timeUpdated = timeUpdated; this.lifecycleState = lifecycleState; this.alertPolicyRuleKey = alertPolicyRuleKey; this.alertPolicyRuleName = alertPolicyRuleName; this.featureDetails = featureDetails; this.freeformTags = freeformTags; this.definedTags = definedTags; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** The OCID of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** * The OCID of the alert. * * @param id the value to set * @return this builder */ public Builder id(String id) { this.id = id; this.__explicitlySet__.add("id"); return this; } /** The status of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("status") private AlertStatus status; /** * The status of the alert. * * @param status the value to set * @return this builder */ public Builder status(AlertStatus status) { this.status = status; this.__explicitlySet__.add("status"); return this; } /** The display name of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private String displayName; /** * The display name of the alert. * * @param displayName the value to set * @return this builder */ public Builder displayName(String displayName) { this.displayName = displayName; this.__explicitlySet__.add("displayName"); return this; } /** The details of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private String description; /** * The details of the alert. * * @param description the value to set * @return this builder */ public Builder description(String description) { this.description = description; this.__explicitlySet__.add("description"); return this; } /** Severity level of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("severity") private AlertSeverity severity; /** * Severity level of the alert. * * @param severity the value to set * @return this builder */ public Builder severity(AlertSeverity severity) { this.severity = severity; this.__explicitlySet__.add("severity"); return this; } /** * Creation date and time of the operation that triggered alert, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). */ @com.fasterxml.jackson.annotation.JsonProperty("operationTime") private java.util.Date operationTime; /** * Creation date and time of the operation that triggered alert, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). * * @param operationTime the value to set * @return this builder */ public Builder operationTime(java.util.Date operationTime) { this.operationTime = operationTime; this.__explicitlySet__.add("operationTime"); return this; } /** The operation that triggered alert. */ @com.fasterxml.jackson.annotation.JsonProperty("operation") private String operation; /** * The operation that triggered alert. * * @param operation the value to set * @return this builder */ public Builder operation(String operation) { this.operation = operation; this.__explicitlySet__.add("operation"); return this; } /** The result of the operation (event) that triggered alert. */ @com.fasterxml.jackson.annotation.JsonProperty("operationStatus") private OperationStatus operationStatus; /** * The result of the operation (event) that triggered alert. * * @param operationStatus the value to set * @return this builder */ public Builder operationStatus(OperationStatus operationStatus) { this.operationStatus = operationStatus; this.__explicitlySet__.add("operationStatus"); return this; } /** Array of OCIDs of the target database. */ @com.fasterxml.jackson.annotation.JsonProperty("targetIds") private java.util.List targetIds; /** * Array of OCIDs of the target database. * * @param targetIds the value to set * @return this builder */ public Builder targetIds(java.util.List targetIds) { this.targetIds = targetIds; this.__explicitlySet__.add("targetIds"); return this; } /** Array of names of the target database. */ @com.fasterxml.jackson.annotation.JsonProperty("targetNames") private java.util.List targetNames; /** * Array of names of the target database. * * @param targetNames the value to set * @return this builder */ public Builder targetNames(java.util.List targetNames) { this.targetNames = targetNames; this.__explicitlySet__.add("targetNames"); return this; } /** The OCID of the policy that triggered alert. */ @com.fasterxml.jackson.annotation.JsonProperty("policyId") private String policyId; /** * The OCID of the policy that triggered alert. * * @param policyId the value to set * @return this builder */ public Builder policyId(String policyId) { this.policyId = policyId; this.__explicitlySet__.add("policyId"); return this; } /** Type of the alert. Indicates the Data Safe feature triggering the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("alertType") private AlertType alertType; /** * Type of the alert. Indicates the Data Safe feature triggering the alert. * * @param alertType the value to set * @return this builder */ public Builder alertType(AlertType alertType) { this.alertType = alertType; this.__explicitlySet__.add("alertType"); return this; } /** The OCID of the compartment that contains the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** * The OCID of the compartment that contains the alert. * * @param compartmentId the value to set * @return this builder */ public Builder compartmentId(String compartmentId) { this.compartmentId = compartmentId; this.__explicitlySet__.add("compartmentId"); return this; } /** * Creation date and time of the alert, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** * Creation date and time of the alert, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). * * @param timeCreated the value to set * @return this builder */ public Builder timeCreated(java.util.Date timeCreated) { this.timeCreated = timeCreated; this.__explicitlySet__.add("timeCreated"); return this; } /** * Last date and time the alert was updated, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private java.util.Date timeUpdated; /** * Last date and time the alert was updated, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). * * @param timeUpdated the value to set * @return this builder */ public Builder timeUpdated(java.util.Date timeUpdated) { this.timeUpdated = timeUpdated; this.__explicitlySet__.add("timeUpdated"); return this; } /** The current state of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private AlertLifecycleState lifecycleState; /** * The current state of the alert. * * @param lifecycleState the value to set * @return this builder */ public Builder lifecycleState(AlertLifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; } /** The key of the rule of alert policy that triggered alert. */ @com.fasterxml.jackson.annotation.JsonProperty("alertPolicyRuleKey") private String alertPolicyRuleKey; /** * The key of the rule of alert policy that triggered alert. * * @param alertPolicyRuleKey the value to set * @return this builder */ public Builder alertPolicyRuleKey(String alertPolicyRuleKey) { this.alertPolicyRuleKey = alertPolicyRuleKey; this.__explicitlySet__.add("alertPolicyRuleKey"); return this; } /** The display name of the rule of alert policy that triggered alert. */ @com.fasterxml.jackson.annotation.JsonProperty("alertPolicyRuleName") private String alertPolicyRuleName; /** * The display name of the rule of alert policy that triggered alert. * * @param alertPolicyRuleName the value to set * @return this builder */ public Builder alertPolicyRuleName(String alertPolicyRuleName) { this.alertPolicyRuleName = alertPolicyRuleName; this.__explicitlySet__.add("alertPolicyRuleName"); return this; } /** * Map that contains maps of values. Example: {@code {"Operations": {"CostCenter": "42"}}} */ @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") private java.util.Map> featureDetails; /** * Map that contains maps of values. Example: {@code {"Operations": {"CostCenter": "42"}}} * * @param featureDetails the value to set * @return this builder */ public Builder featureDetails( java.util.Map> featureDetails) { this.featureDetails = featureDetails; this.__explicitlySet__.add("featureDetails"); return this; } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined * name, type, or namespace. For more information, see [Resource * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) * *

Example: {@code {"Department": "Finance"}} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private java.util.Map freeformTags; /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined * name, type, or namespace. For more information, see [Resource * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) * *

Example: {@code {"Department": "Finance"}} * * @param freeformTags the value to set * @return this builder */ public Builder freeformTags(java.util.Map freeformTags) { this.freeformTags = freeformTags; this.__explicitlySet__.add("freeformTags"); return this; } /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For * more information, see [Resource * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) * *

Example: {@code {"Operations": {"CostCenter": "42"}}} */ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") private java.util.Map> definedTags; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For * more information, see [Resource * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) * *

Example: {@code {"Operations": {"CostCenter": "42"}}} * * @param definedTags the value to set * @return this builder */ public Builder definedTags( java.util.Map> definedTags) { this.definedTags = definedTags; this.__explicitlySet__.add("definedTags"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AlertSummary build() { AlertSummary model = new AlertSummary( this.id, this.status, this.displayName, this.description, this.severity, this.operationTime, this.operation, this.operationStatus, this.targetIds, this.targetNames, this.policyId, this.alertType, this.compartmentId, this.timeCreated, this.timeUpdated, this.lifecycleState, this.alertPolicyRuleKey, this.alertPolicyRuleName, this.featureDetails, this.freeformTags, this.definedTags); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(AlertSummary model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } if (model.wasPropertyExplicitlySet("status")) { this.status(model.getStatus()); } if (model.wasPropertyExplicitlySet("displayName")) { this.displayName(model.getDisplayName()); } if (model.wasPropertyExplicitlySet("description")) { this.description(model.getDescription()); } if (model.wasPropertyExplicitlySet("severity")) { this.severity(model.getSeverity()); } if (model.wasPropertyExplicitlySet("operationTime")) { this.operationTime(model.getOperationTime()); } if (model.wasPropertyExplicitlySet("operation")) { this.operation(model.getOperation()); } if (model.wasPropertyExplicitlySet("operationStatus")) { this.operationStatus(model.getOperationStatus()); } if (model.wasPropertyExplicitlySet("targetIds")) { this.targetIds(model.getTargetIds()); } if (model.wasPropertyExplicitlySet("targetNames")) { this.targetNames(model.getTargetNames()); } if (model.wasPropertyExplicitlySet("policyId")) { this.policyId(model.getPolicyId()); } if (model.wasPropertyExplicitlySet("alertType")) { this.alertType(model.getAlertType()); } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } if (model.wasPropertyExplicitlySet("timeUpdated")) { this.timeUpdated(model.getTimeUpdated()); } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } if (model.wasPropertyExplicitlySet("alertPolicyRuleKey")) { this.alertPolicyRuleKey(model.getAlertPolicyRuleKey()); } if (model.wasPropertyExplicitlySet("alertPolicyRuleName")) { this.alertPolicyRuleName(model.getAlertPolicyRuleName()); } if (model.wasPropertyExplicitlySet("featureDetails")) { this.featureDetails(model.getFeatureDetails()); } if (model.wasPropertyExplicitlySet("freeformTags")) { this.freeformTags(model.getFreeformTags()); } if (model.wasPropertyExplicitlySet("definedTags")) { this.definedTags(model.getDefinedTags()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } /** The OCID of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** * The OCID of the alert. * * @return the value */ public String getId() { return id; } /** The status of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("status") private final AlertStatus status; /** * The status of the alert. * * @return the value */ public AlertStatus getStatus() { return status; } /** The display name of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("displayName") private final String displayName; /** * The display name of the alert. * * @return the value */ public String getDisplayName() { return displayName; } /** The details of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("description") private final String description; /** * The details of the alert. * * @return the value */ public String getDescription() { return description; } /** Severity level of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("severity") private final AlertSeverity severity; /** * Severity level of the alert. * * @return the value */ public AlertSeverity getSeverity() { return severity; } /** * Creation date and time of the operation that triggered alert, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). */ @com.fasterxml.jackson.annotation.JsonProperty("operationTime") private final java.util.Date operationTime; /** * Creation date and time of the operation that triggered alert, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). * * @return the value */ public java.util.Date getOperationTime() { return operationTime; } /** The operation that triggered alert. */ @com.fasterxml.jackson.annotation.JsonProperty("operation") private final String operation; /** * The operation that triggered alert. * * @return the value */ public String getOperation() { return operation; } /** The result of the operation (event) that triggered alert. */ public enum OperationStatus implements com.oracle.bmc.http.internal.BmcEnum { Succeeded("SUCCEEDED"), Failed("FAILED"), /** * This value is used if a service returns a value for this enum that is not recognized by * this version of the SDK. */ UnknownEnumValue(null); private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory.getLogger(OperationStatus.class); private final String value; private static java.util.Map map; static { map = new java.util.HashMap<>(); for (OperationStatus v : OperationStatus.values()) { if (v != UnknownEnumValue) { map.put(v.getValue(), v); } } } OperationStatus(String value) { this.value = value; } @com.fasterxml.jackson.annotation.JsonValue public String getValue() { return value; } @com.fasterxml.jackson.annotation.JsonCreator public static OperationStatus create(String key) { if (map.containsKey(key)) { return map.get(key); } LOG.warn( "Received unknown value '{}' for enum 'OperationStatus', returning UnknownEnumValue", key); return UnknownEnumValue; } }; /** The result of the operation (event) that triggered alert. */ @com.fasterxml.jackson.annotation.JsonProperty("operationStatus") private final OperationStatus operationStatus; /** * The result of the operation (event) that triggered alert. * * @return the value */ public OperationStatus getOperationStatus() { return operationStatus; } /** Array of OCIDs of the target database. */ @com.fasterxml.jackson.annotation.JsonProperty("targetIds") private final java.util.List targetIds; /** * Array of OCIDs of the target database. * * @return the value */ public java.util.List getTargetIds() { return targetIds; } /** Array of names of the target database. */ @com.fasterxml.jackson.annotation.JsonProperty("targetNames") private final java.util.List targetNames; /** * Array of names of the target database. * * @return the value */ public java.util.List getTargetNames() { return targetNames; } /** The OCID of the policy that triggered alert. */ @com.fasterxml.jackson.annotation.JsonProperty("policyId") private final String policyId; /** * The OCID of the policy that triggered alert. * * @return the value */ public String getPolicyId() { return policyId; } /** Type of the alert. Indicates the Data Safe feature triggering the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("alertType") private final AlertType alertType; /** * Type of the alert. Indicates the Data Safe feature triggering the alert. * * @return the value */ public AlertType getAlertType() { return alertType; } /** The OCID of the compartment that contains the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** * The OCID of the compartment that contains the alert. * * @return the value */ public String getCompartmentId() { return compartmentId; } /** * Creation date and time of the alert, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** * Creation date and time of the alert, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). * * @return the value */ public java.util.Date getTimeCreated() { return timeCreated; } /** * Last date and time the alert was updated, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). */ @com.fasterxml.jackson.annotation.JsonProperty("timeUpdated") private final java.util.Date timeUpdated; /** * Last date and time the alert was updated, in the format defined by * [RFC3339](https://tools.ietf.org/html/rfc3339). * * @return the value */ public java.util.Date getTimeUpdated() { return timeUpdated; } /** The current state of the alert. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final AlertLifecycleState lifecycleState; /** * The current state of the alert. * * @return the value */ public AlertLifecycleState getLifecycleState() { return lifecycleState; } /** The key of the rule of alert policy that triggered alert. */ @com.fasterxml.jackson.annotation.JsonProperty("alertPolicyRuleKey") private final String alertPolicyRuleKey; /** * The key of the rule of alert policy that triggered alert. * * @return the value */ public String getAlertPolicyRuleKey() { return alertPolicyRuleKey; } /** The display name of the rule of alert policy that triggered alert. */ @com.fasterxml.jackson.annotation.JsonProperty("alertPolicyRuleName") private final String alertPolicyRuleName; /** * The display name of the rule of alert policy that triggered alert. * * @return the value */ public String getAlertPolicyRuleName() { return alertPolicyRuleName; } /** Map that contains maps of values. Example: {@code {"Operations": {"CostCenter": "42"}}} */ @com.fasterxml.jackson.annotation.JsonProperty("featureDetails") private final java.util.Map> featureDetails; /** * Map that contains maps of values. Example: {@code {"Operations": {"CostCenter": "42"}}} * * @return the value */ public java.util.Map> getFeatureDetails() { return featureDetails; } /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined * name, type, or namespace. For more information, see [Resource * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) * *

Example: {@code {"Department": "Finance"}} */ @com.fasterxml.jackson.annotation.JsonProperty("freeformTags") private final java.util.Map freeformTags; /** * Free-form tags for this resource. Each tag is a simple key-value pair with no predefined * name, type, or namespace. For more information, see [Resource * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) * *

Example: {@code {"Department": "Finance"}} * * @return the value */ public java.util.Map getFreeformTags() { return freeformTags; } /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more * information, see [Resource * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) * *

Example: {@code {"Operations": {"CostCenter": "42"}}} */ @com.fasterxml.jackson.annotation.JsonProperty("definedTags") private final java.util.Map> definedTags; /** * Defined tags for this resource. Each key is predefined and scoped to a namespace. For more * information, see [Resource * Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm) * *

Example: {@code {"Operations": {"CostCenter": "42"}}} * * @return the value */ public java.util.Map> getDefinedTags() { return definedTags; } @Override public String toString() { return this.toString(true); } /** * Return a string representation of the object. * * @param includeByteArrayContents true to include the full contents of byte arrays * @return string representation */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("AlertSummary("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", status=").append(String.valueOf(this.status)); sb.append(", displayName=").append(String.valueOf(this.displayName)); sb.append(", description=").append(String.valueOf(this.description)); sb.append(", severity=").append(String.valueOf(this.severity)); sb.append(", operationTime=").append(String.valueOf(this.operationTime)); sb.append(", operation=").append(String.valueOf(this.operation)); sb.append(", operationStatus=").append(String.valueOf(this.operationStatus)); sb.append(", targetIds=").append(String.valueOf(this.targetIds)); sb.append(", targetNames=").append(String.valueOf(this.targetNames)); sb.append(", policyId=").append(String.valueOf(this.policyId)); sb.append(", alertType=").append(String.valueOf(this.alertType)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", timeUpdated=").append(String.valueOf(this.timeUpdated)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(", alertPolicyRuleKey=").append(String.valueOf(this.alertPolicyRuleKey)); sb.append(", alertPolicyRuleName=").append(String.valueOf(this.alertPolicyRuleName)); sb.append(", featureDetails=").append(String.valueOf(this.featureDetails)); sb.append(", freeformTags=").append(String.valueOf(this.freeformTags)); sb.append(", definedTags=").append(String.valueOf(this.definedTags)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AlertSummary)) { return false; } AlertSummary other = (AlertSummary) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.status, other.status) && java.util.Objects.equals(this.displayName, other.displayName) && java.util.Objects.equals(this.description, other.description) && java.util.Objects.equals(this.severity, other.severity) && java.util.Objects.equals(this.operationTime, other.operationTime) && java.util.Objects.equals(this.operation, other.operation) && java.util.Objects.equals(this.operationStatus, other.operationStatus) && java.util.Objects.equals(this.targetIds, other.targetIds) && java.util.Objects.equals(this.targetNames, other.targetNames) && java.util.Objects.equals(this.policyId, other.policyId) && java.util.Objects.equals(this.alertType, other.alertType) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.timeUpdated, other.timeUpdated) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && java.util.Objects.equals(this.alertPolicyRuleKey, other.alertPolicyRuleKey) && java.util.Objects.equals(this.alertPolicyRuleName, other.alertPolicyRuleName) && java.util.Objects.equals(this.featureDetails, other.featureDetails) && java.util.Objects.equals(this.freeformTags, other.freeformTags) && java.util.Objects.equals(this.definedTags, other.definedTags) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.id == null ? 43 : this.id.hashCode()); result = (result * PRIME) + (this.status == null ? 43 : this.status.hashCode()); result = (result * PRIME) + (this.displayName == null ? 43 : this.displayName.hashCode()); result = (result * PRIME) + (this.description == null ? 43 : this.description.hashCode()); result = (result * PRIME) + (this.severity == null ? 43 : this.severity.hashCode()); result = (result * PRIME) + (this.operationTime == null ? 43 : this.operationTime.hashCode()); result = (result * PRIME) + (this.operation == null ? 43 : this.operation.hashCode()); result = (result * PRIME) + (this.operationStatus == null ? 43 : this.operationStatus.hashCode()); result = (result * PRIME) + (this.targetIds == null ? 43 : this.targetIds.hashCode()); result = (result * PRIME) + (this.targetNames == null ? 43 : this.targetNames.hashCode()); result = (result * PRIME) + (this.policyId == null ? 43 : this.policyId.hashCode()); result = (result * PRIME) + (this.alertType == null ? 43 : this.alertType.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.timeUpdated == null ? 43 : this.timeUpdated.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + (this.alertPolicyRuleKey == null ? 43 : this.alertPolicyRuleKey.hashCode()); result = (result * PRIME) + (this.alertPolicyRuleName == null ? 43 : this.alertPolicyRuleName.hashCode()); result = (result * PRIME) + (this.featureDetails == null ? 43 : this.featureDetails.hashCode()); result = (result * PRIME) + (this.freeformTags == null ? 43 : this.freeformTags.hashCode()); result = (result * PRIME) + (this.definedTags == null ? 43 : this.definedTags.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy