Package software.amazon.awssdk.core
Class SdkPojoBuilder<T extends SdkPojo>
- java.lang.Object
-
- software.amazon.awssdk.core.SdkPojoBuilder<T>
-
public final class SdkPojoBuilder<T extends SdkPojo> extends Object implements SdkPojo, Buildable
A builder for an immutableSdkPojo
with no fields.This is useful for
SdkPojo
implementations 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 allSdkPojo
implementations to have a builder. In the cases that they do not, this can be used as their builder.This currently only supports
SdkPojo
s without any fields (because it has no way to set them). It also does not supportSdkPojo
s 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 T
build()
boolean
equalsBySdkFields(Object other)
Indicates whether some other object is "equal to" this one by SDK fields.List<SdkField<?>>
sdkFields()
-
-
-
Constructor Detail
-
SdkPojoBuilder
public SdkPojoBuilder(T delegate)
-
-
Method Detail
-
equalsBySdkFields
public boolean equalsBySdkFields(Object other)
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 anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
other
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
-