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

com.oracle.bmc.datalabelingservicedataplane.model.AnnotationAnalyticsAggregation Maven / Gradle / Ivy

Go to download

This project contains the SDK used for Oracle Cloud Infrastructure Data Labeling Service Dataplane

There is a newer version: 3.53.1
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.datalabelingservicedataplane.model;

/**
 * Aggregation entities are required by the API consistency guidelines for API Consistency
 * Guidelines#AnalyticsAPIs. These are used to summarize annotations for a given dataset and will be
 * used to populate UI elements. Aggregations need to have the fields that identify the exact scope
 * that they're summarizing. Any filters applied to the list API, have to show up in the
 * aggregation. 
* 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: 20211001") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AnnotationAnalyticsAggregation.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class AnnotationAnalyticsAggregation extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "count", "datasetId", "dimensions", "updatedBy", "compartmentId", "lifecycleState" }) public AnnotationAnalyticsAggregation( java.math.BigDecimal count, String datasetId, AnnotationAggregationDimensions dimensions, String updatedBy, String compartmentId, Annotation.LifecycleState lifecycleState) { super(); this.count = count; this.datasetId = datasetId; this.dimensions = dimensions; this.updatedBy = updatedBy; this.compartmentId = compartmentId; this.lifecycleState = lifecycleState; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** The count of the matching results. */ @com.fasterxml.jackson.annotation.JsonProperty("count") private java.math.BigDecimal count; /** * The count of the matching results. * * @param count the value to set * @return this builder */ public Builder count(java.math.BigDecimal count) { this.count = count; this.__explicitlySet__.add("count"); return this; } /** The OCID of the dataset the annotations belong to. */ @com.fasterxml.jackson.annotation.JsonProperty("datasetId") private String datasetId; /** * The OCID of the dataset the annotations belong to. * * @param datasetId the value to set * @return this builder */ public Builder datasetId(String datasetId) { this.datasetId = datasetId; this.__explicitlySet__.add("datasetId"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("dimensions") private AnnotationAggregationDimensions dimensions; public Builder dimensions(AnnotationAggregationDimensions dimensions) { this.dimensions = dimensions; this.__explicitlySet__.add("dimensions"); return this; } /** The OCID of the principal which updated the annotation. */ @com.fasterxml.jackson.annotation.JsonProperty("updatedBy") private String updatedBy; /** * The OCID of the principal which updated the annotation. * * @param updatedBy the value to set * @return this builder */ public Builder updatedBy(String updatedBy) { this.updatedBy = updatedBy; this.__explicitlySet__.add("updatedBy"); return this; } /** The OCID of the compartment containing the annotations. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; /** * The OCID of the compartment containing the annotations. * * @param compartmentId the value to set * @return this builder */ public Builder compartmentId(String compartmentId) { this.compartmentId = compartmentId; this.__explicitlySet__.add("compartmentId"); return this; } /** Describes the lifecycle state. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private Annotation.LifecycleState lifecycleState; /** * Describes the lifecycle state. * * @param lifecycleState the value to set * @return this builder */ public Builder lifecycleState(Annotation.LifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AnnotationAnalyticsAggregation build() { AnnotationAnalyticsAggregation model = new AnnotationAnalyticsAggregation( this.count, this.datasetId, this.dimensions, this.updatedBy, this.compartmentId, this.lifecycleState); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(AnnotationAnalyticsAggregation model) { if (model.wasPropertyExplicitlySet("count")) { this.count(model.getCount()); } if (model.wasPropertyExplicitlySet("datasetId")) { this.datasetId(model.getDatasetId()); } if (model.wasPropertyExplicitlySet("dimensions")) { this.dimensions(model.getDimensions()); } if (model.wasPropertyExplicitlySet("updatedBy")) { this.updatedBy(model.getUpdatedBy()); } if (model.wasPropertyExplicitlySet("compartmentId")) { this.compartmentId(model.getCompartmentId()); } if (model.wasPropertyExplicitlySet("lifecycleState")) { this.lifecycleState(model.getLifecycleState()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } /** The count of the matching results. */ @com.fasterxml.jackson.annotation.JsonProperty("count") private final java.math.BigDecimal count; /** * The count of the matching results. * * @return the value */ public java.math.BigDecimal getCount() { return count; } /** The OCID of the dataset the annotations belong to. */ @com.fasterxml.jackson.annotation.JsonProperty("datasetId") private final String datasetId; /** * The OCID of the dataset the annotations belong to. * * @return the value */ public String getDatasetId() { return datasetId; } @com.fasterxml.jackson.annotation.JsonProperty("dimensions") private final AnnotationAggregationDimensions dimensions; public AnnotationAggregationDimensions getDimensions() { return dimensions; } /** The OCID of the principal which updated the annotation. */ @com.fasterxml.jackson.annotation.JsonProperty("updatedBy") private final String updatedBy; /** * The OCID of the principal which updated the annotation. * * @return the value */ public String getUpdatedBy() { return updatedBy; } /** The OCID of the compartment containing the annotations. */ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private final String compartmentId; /** * The OCID of the compartment containing the annotations. * * @return the value */ public String getCompartmentId() { return compartmentId; } /** Describes the lifecycle state. */ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private final Annotation.LifecycleState lifecycleState; /** * Describes the lifecycle state. * * @return the value */ public Annotation.LifecycleState getLifecycleState() { return lifecycleState; } @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("AnnotationAnalyticsAggregation("); sb.append("super=").append(super.toString()); sb.append("count=").append(String.valueOf(this.count)); sb.append(", datasetId=").append(String.valueOf(this.datasetId)); sb.append(", dimensions=").append(String.valueOf(this.dimensions)); sb.append(", updatedBy=").append(String.valueOf(this.updatedBy)); sb.append(", compartmentId=").append(String.valueOf(this.compartmentId)); sb.append(", lifecycleState=").append(String.valueOf(this.lifecycleState)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof AnnotationAnalyticsAggregation)) { return false; } AnnotationAnalyticsAggregation other = (AnnotationAnalyticsAggregation) o; return java.util.Objects.equals(this.count, other.count) && java.util.Objects.equals(this.datasetId, other.datasetId) && java.util.Objects.equals(this.dimensions, other.dimensions) && java.util.Objects.equals(this.updatedBy, other.updatedBy) && java.util.Objects.equals(this.compartmentId, other.compartmentId) && java.util.Objects.equals(this.lifecycleState, other.lifecycleState) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.count == null ? 43 : this.count.hashCode()); result = (result * PRIME) + (this.datasetId == null ? 43 : this.datasetId.hashCode()); result = (result * PRIME) + (this.dimensions == null ? 43 : this.dimensions.hashCode()); result = (result * PRIME) + (this.updatedBy == null ? 43 : this.updatedBy.hashCode()); result = (result * PRIME) + (this.compartmentId == null ? 43 : this.compartmentId.hashCode()); result = (result * PRIME) + (this.lifecycleState == null ? 43 : this.lifecycleState.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy