Package software.amazon.awssdk.core
Class SdkPojoBuilder<T extends SdkPojo>
- java.lang.Object
-
- software.amazon.awssdk.core.SdkPojoBuilder<T>
-
@SdkProtectedApi public final class SdkPojoBuilder<T extends SdkPojo> extends Object implements SdkPojo, Buildable
A builder for an immutableSdkPojowith no fields.This is useful for
SdkPojoimplementations that don't have their own builders, but need to be passed to something that assumes they already have a builder. For example, marshallers expect allSdkPojoimplementations to have a builder. In the cases that they do not, this can be used as their builder.This currently only supports
SdkPojos without any fields (because it has no way to set them). It also does not supportSdkPojos that already have or are a builder (that builder should be used instead).
-
-
Constructor Summary
Constructors Constructor Description SdkPojoBuilder(T delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tbuild()booleanequalsBySdkFields(Object other)Indicates whether some other object is "equal to" this one by SDK fields.List<SdkField<?>>sdkFields()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
sdkFieldNameToField
-
-
-
-
Constructor Detail
-
SdkPojoBuilder
public SdkPojoBuilder(T delegate)
-
-
Method Detail
-
equalsBySdkFields
public boolean equalsBySdkFields(Object other)
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
other- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
-