Interface SdkPojo

All Known Subinterfaces:
SdkServiceException.Builder
All Known Implementing Classes:
SdkPojoBuilder, SdkRequest, SdkResponse, SdkServiceException, SdkServiceException.BuilderImpl, VoidSdkResponse, VoidSdkResponse.Builder

@SdkProtectedApi public interface SdkPojo
Interface to provide the list of SdkFields in a POJO. SdkField contains metadata about how a field should be marshalled/unmarshalled and allows for generic accessing/setting/creating of that field on an object.
  • Method Details

    • sdkFields

      List<SdkField<?>> sdkFields()
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • equalsBySdkFields

      default boolean equalsBySdkFields(Object other)
      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.

      Parameters:
      other - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • sdkFieldNameToField

      default Map<String,SdkField<?>> sdkFieldNameToField()
      Returns:
      The mapping between the field name and its corresponding field.