Class OntologySummary

java.lang.Object
software.amazon.awssdk.services.context.model.OntologySummary
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<OntologySummary.Builder,OntologySummary>

@Generated("software.amazon.awssdk:codegen") public final class OntologySummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<OntologySummary.Builder,OntologySummary>

Identity, status, DEFAULT-version summary and type counts for one ontology, ordered by ontology ID. Doesn't include the template, which can be up to 2,000,000 characters. Call GetOntology for one ontology's detail.

See Also:
  • Method Details

    • id

      public final String id()

      The ID of the ontology, assigned by AWS Context.

      Returns:
      The ID of the ontology, assigned by AWS Context.
    • arn

      public final String arn()

      The ARN of the ontology. Always present: every listed ontology is customer-owned, so its ARN includes the account.

      Returns:
      The ARN of the ontology. Always present: every listed ontology is customer-owned, so its ARN includes the account.
    • name

      public final String name()

      The ontology's current display name. Present on every summary: only customer-owned ontologies are listed, and each has a name.

      Returns:
      The ontology's current display name. Present on every summary: only customer-owned ontologies are listed, and each has a name.
    • description

      public final String description()

      The description. Absent when the ontology has none.

      Returns:
      The description. Absent when the ontology has none.
    • status

      public final OntologyStatus status()

      The ontology's status. PUBLISHED for every ontology CreateOntology made.

      If the service returns an enum value that is not available in the current SDK version, status will return OntologyStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The ontology's status. PUBLISHED for every ontology CreateOntology made.
      See Also:
    • statusAsString

      public final String statusAsString()

      The ontology's status. PUBLISHED for every ontology CreateOntology made.

      If the service returns an enum value that is not available in the current SDK version, status will return OntologyStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from statusAsString().

      Returns:
      The ontology's status. PUBLISHED for every ontology CreateOntology made.
      See Also:
    • updatedAt

      public final Instant updatedAt()

      When the ontology last changed. Equal to its creation time until the first update.

      Returns:
      When the ontology last changed. Equal to its creation time until the first update.
    • ontologyInductionId

      public final String ontologyInductionId()

      The induction that made the ontology. Absent for an ontology CreateOntology made.

      Returns:
      The induction that made the ontology. Absent for an ontology CreateOntology made.
    • defaultVersion

      public final String defaultVersion()

      The current DEFAULT version. While an induced ontology is DRAFT, its version 1.0.0, which has an empty template and no source until you publish the ontology in the AWS Context console.

      Returns:
      The current DEFAULT version. While an induced ontology is DRAFT, its version 1.0.0, which has an empty template and no source until you publish the ontology in the AWS Context console.
    • publishedAt

      public final Instant publishedAt()

      When that version was published as the DEFAULT. Absent while the ontology is DRAFT: a DRAFT ontology stays a draft until you publish it in the AWS Context console.

      Returns:
      When that version was published as the DEFAULT. Absent while the ontology is DRAFT: a DRAFT ontology stays a draft until you publish it in the AWS Context console.
    • nodeTypeCount

      public final Long nodeTypeCount()

      Number of node types in the DEFAULT version's template. Absent for an ontology created before counts were stored.

      Returns:
      Number of node types in the DEFAULT version's template. Absent for an ontology created before counts were stored.
    • edgeTypeCount

      public final Long edgeTypeCount()

      Number of edge types in the DEFAULT version's template. Absent for an ontology created before counts were stored.

      Returns:
      Number of edge types in the DEFAULT version's template. Absent for an ontology created before counts were stored.
    • toBuilder

      public OntologySummary.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<OntologySummary.Builder,OntologySummary>
      Returns:
      a builder for type T
    • builder

      public static OntologySummary.Builder builder()
    • serializableBuilderClass

      public static Class<? extends OntologySummary.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.