Class SegmentMetadata


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2022-07-11T22:46:03.646077Z[Etc/UTC]")
    public class SegmentMetadata
    extends java.lang.Object
    SegmentMetadata
    • Field Detail

      • SERIALIZED_NAME_ENV_ID

        public static final java.lang.String SERIALIZED_NAME_ENV_ID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_SEGMENT_ID

        public static final java.lang.String SERIALIZED_NAME_SEGMENT_ID
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_VERSION

        public static final java.lang.String SERIALIZED_NAME_VERSION
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_INCLUDED_COUNT

        public static final java.lang.String SERIALIZED_NAME_INCLUDED_COUNT
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_EXCLUDED_COUNT

        public static final java.lang.String SERIALIZED_NAME_EXCLUDED_COUNT
        See Also:
        Constant Field Values
      • SERIALIZED_NAME_DELETED

        public static final java.lang.String SERIALIZED_NAME_DELETED
        See Also:
        Constant Field Values
      • openapiFields

        public static java.util.HashSet<java.lang.String> openapiFields
      • openapiRequiredFields

        public static java.util.HashSet<java.lang.String> openapiRequiredFields
    • Constructor Detail

      • SegmentMetadata

        public SegmentMetadata()
    • Method Detail

      • getEnvId

        @Nullable
        public java.lang.String getEnvId()
        Get envId
        Returns:
        envId
      • setEnvId

        public void setEnvId​(java.lang.String envId)
      • segmentId

        public SegmentMetadata segmentId​(java.lang.String segmentId)
      • getSegmentId

        @Nullable
        public java.lang.String getSegmentId()
        Get segmentId
        Returns:
        segmentId
      • setSegmentId

        public void setSegmentId​(java.lang.String segmentId)
      • getVersion

        @Nullable
        public java.lang.Integer getVersion()
        Get version
        Returns:
        version
      • setVersion

        public void setVersion​(java.lang.Integer version)
      • includedCount

        public SegmentMetadata includedCount​(java.lang.Integer includedCount)
      • getIncludedCount

        @Nullable
        public java.lang.Integer getIncludedCount()
        Get includedCount
        Returns:
        includedCount
      • setIncludedCount

        public void setIncludedCount​(java.lang.Integer includedCount)
      • excludedCount

        public SegmentMetadata excludedCount​(java.lang.Integer excludedCount)
      • getExcludedCount

        @Nullable
        public java.lang.Integer getExcludedCount()
        Get excludedCount
        Returns:
        excludedCount
      • setExcludedCount

        public void setExcludedCount​(java.lang.Integer excludedCount)
      • getDeleted

        @Nullable
        public java.lang.Boolean getDeleted()
        Get deleted
        Returns:
        deleted
      • setDeleted

        public void setDeleted​(java.lang.Boolean deleted)
      • putAdditionalProperty

        public SegmentMetadata putAdditionalProperty​(java.lang.String key,
                                                     java.lang.Object value)
        Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Return the additional (undeclared) property.
      • getAdditionalProperty

        public java.lang.Object getAdditionalProperty​(java.lang.String key)
        Return the additional (undeclared) property with the specified name.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • validateJsonObject

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws java.io.IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        java.io.IOException - if the JSON Object is invalid with respect to SegmentMetadata
      • fromJson

        public static SegmentMetadata fromJson​(java.lang.String jsonString)
                                        throws java.io.IOException
        Create an instance of SegmentMetadata given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of SegmentMetadata
        Throws:
        java.io.IOException - if the JSON string is invalid with respect to SegmentMetadata
      • toJson

        public java.lang.String toJson()
        Convert an instance of SegmentMetadata to an JSON string
        Returns:
        JSON string