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

com.oracle.bmc.cloudguard.model.ResourceProfileImpactedResourceSummary Maven / Gradle / Ivy

/**
 * 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.cloudguard.model;

/**
 * Summary information on impacted resource in resource profile. 
* 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: 20200131") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = ResourceProfileImpactedResourceSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class ResourceProfileImpactedResourceSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "id", "resourceProfileId", "problemId", "compartmentId", "resourceId", "resourceName", "resourceType", "sightingType", "sightingTypeDisplayName", "region", "timeIdentified", "timeFirstDetected", "timeLastDetected", "timeFirstOccurred", "timeLastOccurred" }) public ResourceProfileImpactedResourceSummary( String id, String resourceProfileId, String problemId, String compartmentId, String resourceId, String resourceName, String resourceType, String sightingType, String sightingTypeDisplayName, String region, java.util.Date timeIdentified, java.util.Date timeFirstDetected, java.util.Date timeLastDetected, java.util.Date timeFirstOccurred, java.util.Date timeLastOccurred) { super(); this.id = id; this.resourceProfileId = resourceProfileId; this.problemId = problemId; this.compartmentId = compartmentId; this.resourceId = resourceId; this.resourceName = resourceName; this.resourceType = resourceType; this.sightingType = sightingType; this.sightingTypeDisplayName = sightingTypeDisplayName; this.region = region; this.timeIdentified = timeIdentified; this.timeFirstDetected = timeFirstDetected; this.timeLastDetected = timeLastDetected; this.timeFirstOccurred = timeFirstOccurred; this.timeLastOccurred = timeLastOccurred; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** Unique identifier for impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; /** * Unique identifier for impacted resource * * @param id the value to set * @return this builder */ public Builder id(String id) { this.id = id; this.__explicitlySet__.add("id"); return this; } /** Resource profile ID associated with the impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("resourceProfileId") private String resourceProfileId; /** * Resource profile ID associated with the impacted resource * * @param resourceProfileId the value to set * @return this builder */ public Builder resourceProfileId(String resourceProfileId) { this.resourceProfileId = resourceProfileId; this.__explicitlySet__.add("resourceProfileId"); return this; } /** Problem ID associated with the impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("problemId") private String problemId; /** * Problem ID associated with the impacted resource * * @param problemId the value to set * @return this builder */ public Builder problemId(String problemId) { this.problemId = problemId; this.__explicitlySet__.add("problemId"); return this; } /** Compartment ID for impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** * Compartment ID for impacted resource * * @param compartmentId the value to set * @return this builder */ public Builder compartmentId(String compartmentId) { this.compartmentId = compartmentId; this.__explicitlySet__.add("compartmentId"); return this; } /** Impacted resource ID */ @com.fasterxml.jackson.annotation.JsonProperty("resourceId") private String resourceId; /** * Impacted resource ID * * @param resourceId the value to set * @return this builder */ public Builder resourceId(String resourceId) { this.resourceId = resourceId; this.__explicitlySet__.add("resourceId"); return this; } /** Impacted resource name */ @com.fasterxml.jackson.annotation.JsonProperty("resourceName") private String resourceName; /** * Impacted resource name * * @param resourceName the value to set * @return this builder */ public Builder resourceName(String resourceName) { this.resourceName = resourceName; this.__explicitlySet__.add("resourceName"); return this; } /** Impacted resource type */ @com.fasterxml.jackson.annotation.JsonProperty("resourceType") private String resourceType; /** * Impacted resource type * * @param resourceType the value to set * @return this builder */ public Builder resourceType(String resourceType) { this.resourceType = resourceType; this.__explicitlySet__.add("resourceType"); return this; } /** Sighting type for impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("sightingType") private String sightingType; /** * Sighting type for impacted resource * * @param sightingType the value to set * @return this builder */ public Builder sightingType(String sightingType) { this.sightingType = sightingType; this.__explicitlySet__.add("sightingType"); return this; } /** Display name of the sighting type */ @com.fasterxml.jackson.annotation.JsonProperty("sightingTypeDisplayName") private String sightingTypeDisplayName; /** * Display name of the sighting type * * @param sightingTypeDisplayName the value to set * @return this builder */ public Builder sightingTypeDisplayName(String sightingTypeDisplayName) { this.sightingTypeDisplayName = sightingTypeDisplayName; this.__explicitlySet__.add("sightingTypeDisplayName"); return this; } /** Region for impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("region") private String region; /** * Region for impacted resource * * @param region the value to set * @return this builder */ public Builder region(String region) { this.region = region; this.__explicitlySet__.add("region"); return this; } /** Time when the impacted resource is identified for the resource profile. */ @com.fasterxml.jackson.annotation.JsonProperty("timeIdentified") private java.util.Date timeIdentified; /** * Time when the impacted resource is identified for the resource profile. * * @param timeIdentified the value to set * @return this builder */ public Builder timeIdentified(java.util.Date timeIdentified) { this.timeIdentified = timeIdentified; this.__explicitlySet__.add("timeIdentified"); return this; } /** Time the activities were first detected. */ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") private java.util.Date timeFirstDetected; /** * Time the activities were first detected. * * @param timeFirstDetected the value to set * @return this builder */ public Builder timeFirstDetected(java.util.Date timeFirstDetected) { this.timeFirstDetected = timeFirstDetected; this.__explicitlySet__.add("timeFirstDetected"); return this; } /** Time the activities were last detected. Same as timeIdentified. */ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private java.util.Date timeLastDetected; /** * Time the activities were last detected. Same as timeIdentified. * * @param timeLastDetected the value to set * @return this builder */ public Builder timeLastDetected(java.util.Date timeLastDetected) { this.timeLastDetected = timeLastDetected; this.__explicitlySet__.add("timeLastDetected"); return this; } /** Time the activities were first performed. */ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") private java.util.Date timeFirstOccurred; /** * Time the activities were first performed. * * @param timeFirstOccurred the value to set * @return this builder */ public Builder timeFirstOccurred(java.util.Date timeFirstOccurred) { this.timeFirstOccurred = timeFirstOccurred; this.__explicitlySet__.add("timeFirstOccurred"); return this; } /** Time the activities were last performed. */ @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") private java.util.Date timeLastOccurred; /** * Time the activities were last performed. * * @param timeLastOccurred the value to set * @return this builder */ public Builder timeLastOccurred(java.util.Date timeLastOccurred) { this.timeLastOccurred = timeLastOccurred; this.__explicitlySet__.add("timeLastOccurred"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ResourceProfileImpactedResourceSummary build() { ResourceProfileImpactedResourceSummary model = new ResourceProfileImpactedResourceSummary( this.id, this.resourceProfileId, this.problemId, this.compartmentId, this.resourceId, this.resourceName, this.resourceType, this.sightingType, this.sightingTypeDisplayName, this.region, this.timeIdentified, this.timeFirstDetected, this.timeLastDetected, this.timeFirstOccurred, this.timeLastOccurred); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(ResourceProfileImpactedResourceSummary model) { if (model.wasPropertyExplicitlySet("id")) { this.id(model.getId()); } if (model.wasPropertyExplicitlySet("resourceProfileId")) { this.resourceProfileId(model.getResourceProfileId()); } if (model.wasPropertyExplicitlySet("problemId")) { this.problemId(model.getProblemId()); } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } if (model.wasPropertyExplicitlySet("resourceId")) { this.resourceId(model.getResourceId()); } if (model.wasPropertyExplicitlySet("resourceName")) { this.resourceName(model.getResourceName()); } if (model.wasPropertyExplicitlySet("resourceType")) { this.resourceType(model.getResourceType()); } if (model.wasPropertyExplicitlySet("sightingType")) { this.sightingType(model.getSightingType()); } if (model.wasPropertyExplicitlySet("sightingTypeDisplayName")) { this.sightingTypeDisplayName(model.getSightingTypeDisplayName()); } if (model.wasPropertyExplicitlySet("region")) { this.region(model.getRegion()); } if (model.wasPropertyExplicitlySet("timeIdentified")) { this.timeIdentified(model.getTimeIdentified()); } if (model.wasPropertyExplicitlySet("timeFirstDetected")) { this.timeFirstDetected(model.getTimeFirstDetected()); } if (model.wasPropertyExplicitlySet("timeLastDetected")) { this.timeLastDetected(model.getTimeLastDetected()); } if (model.wasPropertyExplicitlySet("timeFirstOccurred")) { this.timeFirstOccurred(model.getTimeFirstOccurred()); } if (model.wasPropertyExplicitlySet("timeLastOccurred")) { this.timeLastOccurred(model.getTimeLastOccurred()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } /** Unique identifier for impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("id") private final String id; /** * Unique identifier for impacted resource * * @return the value */ public String getId() { return id; } /** Resource profile ID associated with the impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("resourceProfileId") private final String resourceProfileId; /** * Resource profile ID associated with the impacted resource * * @return the value */ public String getResourceProfileId() { return resourceProfileId; } /** Problem ID associated with the impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("problemId") private final String problemId; /** * Problem ID associated with the impacted resource * * @return the value */ public String getProblemId() { return problemId; } /** Compartment ID for impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** * Compartment ID for impacted resource * * @return the value */ public String getCompartmentId() { return compartmentId; } /** Impacted resource ID */ @com.fasterxml.jackson.annotation.JsonProperty("resourceId") private final String resourceId; /** * Impacted resource ID * * @return the value */ public String getResourceId() { return resourceId; } /** Impacted resource name */ @com.fasterxml.jackson.annotation.JsonProperty("resourceName") private final String resourceName; /** * Impacted resource name * * @return the value */ public String getResourceName() { return resourceName; } /** Impacted resource type */ @com.fasterxml.jackson.annotation.JsonProperty("resourceType") private final String resourceType; /** * Impacted resource type * * @return the value */ public String getResourceType() { return resourceType; } /** Sighting type for impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("sightingType") private final String sightingType; /** * Sighting type for impacted resource * * @return the value */ public String getSightingType() { return sightingType; } /** Display name of the sighting type */ @com.fasterxml.jackson.annotation.JsonProperty("sightingTypeDisplayName") private final String sightingTypeDisplayName; /** * Display name of the sighting type * * @return the value */ public String getSightingTypeDisplayName() { return sightingTypeDisplayName; } /** Region for impacted resource */ @com.fasterxml.jackson.annotation.JsonProperty("region") private final String region; /** * Region for impacted resource * * @return the value */ public String getRegion() { return region; } /** Time when the impacted resource is identified for the resource profile. */ @com.fasterxml.jackson.annotation.JsonProperty("timeIdentified") private final java.util.Date timeIdentified; /** * Time when the impacted resource is identified for the resource profile. * * @return the value */ public java.util.Date getTimeIdentified() { return timeIdentified; } /** Time the activities were first detected. */ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstDetected") private final java.util.Date timeFirstDetected; /** * Time the activities were first detected. * * @return the value */ public java.util.Date getTimeFirstDetected() { return timeFirstDetected; } /** Time the activities were last detected. Same as timeIdentified. */ @com.fasterxml.jackson.annotation.JsonProperty("timeLastDetected") private final java.util.Date timeLastDetected; /** * Time the activities were last detected. Same as timeIdentified. * * @return the value */ public java.util.Date getTimeLastDetected() { return timeLastDetected; } /** Time the activities were first performed. */ @com.fasterxml.jackson.annotation.JsonProperty("timeFirstOccurred") private final java.util.Date timeFirstOccurred; /** * Time the activities were first performed. * * @return the value */ public java.util.Date getTimeFirstOccurred() { return timeFirstOccurred; } /** Time the activities were last performed. */ @com.fasterxml.jackson.annotation.JsonProperty("timeLastOccurred") private final java.util.Date timeLastOccurred; /** * Time the activities were last performed. * * @return the value */ public java.util.Date getTimeLastOccurred() { return timeLastOccurred; } @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("ResourceProfileImpactedResourceSummary("); sb.append("super=").append(super.toString()); sb.append("id=").append(String.valueOf(this.id)); sb.append(", resourceProfileId=").append(String.valueOf(this.resourceProfileId)); sb.append(", problemId=").append(String.valueOf(this.problemId)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", resourceId=").append(String.valueOf(this.resourceId)); sb.append(", resourceName=").append(String.valueOf(this.resourceName)); sb.append(", resourceType=").append(String.valueOf(this.resourceType)); sb.append(", sightingType=").append(String.valueOf(this.sightingType)); sb.append(", sightingTypeDisplayName=") .append(String.valueOf(this.sightingTypeDisplayName)); sb.append(", region=").append(String.valueOf(this.region)); sb.append(", timeIdentified=").append(String.valueOf(this.timeIdentified)); sb.append(", timeFirstDetected=").append(String.valueOf(this.timeFirstDetected)); sb.append(", timeLastDetected=").append(String.valueOf(this.timeLastDetected)); sb.append(", timeFirstOccurred=").append(String.valueOf(this.timeFirstOccurred)); sb.append(", timeLastOccurred=").append(String.valueOf(this.timeLastOccurred)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ResourceProfileImpactedResourceSummary)) { return false; } ResourceProfileImpactedResourceSummary other = (ResourceProfileImpactedResourceSummary) o; return java.util.Objects.equals(this.id, other.id) && java.util.Objects.equals(this.resourceProfileId, other.resourceProfileId) && java.util.Objects.equals(this.problemId, other.problemId) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.resourceId, other.resourceId) && java.util.Objects.equals(this.resourceName, other.resourceName) && java.util.Objects.equals(this.resourceType, other.resourceType) && java.util.Objects.equals(this.sightingType, other.sightingType) && java.util.Objects.equals( this.sightingTypeDisplayName, other.sightingTypeDisplayName) && java.util.Objects.equals(this.region, other.region) && java.util.Objects.equals(this.timeIdentified, other.timeIdentified) && java.util.Objects.equals(this.timeFirstDetected, other.timeFirstDetected) && java.util.Objects.equals(this.timeLastDetected, other.timeLastDetected) && java.util.Objects.equals(this.timeFirstOccurred, other.timeFirstOccurred) && java.util.Objects.equals(this.timeLastOccurred, other.timeLastOccurred) && 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.resourceProfileId == null ? 43 : this.resourceProfileId.hashCode()); result = (result * PRIME) + (this.problemId == null ? 43 : this.problemId.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.resourceId == null ? 43 : this.resourceId.hashCode()); result = (result * PRIME) + (this.resourceName == null ? 43 : this.resourceName.hashCode()); result = (result * PRIME) + (this.resourceType == null ? 43 : this.resourceType.hashCode()); result = (result * PRIME) + (this.sightingType == null ? 43 : this.sightingType.hashCode()); result = (result * PRIME) + (this.sightingTypeDisplayName == null ? 43 : this.sightingTypeDisplayName.hashCode()); result = (result * PRIME) + (this.region == null ? 43 : this.region.hashCode()); result = (result * PRIME) + (this.timeIdentified == null ? 43 : this.timeIdentified.hashCode()); result = (result * PRIME) + (this.timeFirstDetected == null ? 43 : this.timeFirstDetected.hashCode()); result = (result * PRIME) + (this.timeLastDetected == null ? 43 : this.timeLastDetected.hashCode()); result = (result * PRIME) + (this.timeFirstOccurred == null ? 43 : this.timeFirstOccurred.hashCode()); result = (result * PRIME) + (this.timeLastOccurred == null ? 43 : this.timeLastOccurred.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy