public final class SdkPojoBuilder<T extends SdkPojo> extends Object implements SdkPojo, Buildable
SdkPojo
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 all SdkPojo
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 support
SdkPojo
s that already have or are a builder (that builder should be used instead).
Constructor and Description |
---|
SdkPojoBuilder(T delegate) |
Modifier and Type | Method and Description |
---|---|
T |
build() |
boolean |
equalsBySdkFields(Object other)
Indicates whether some other object is "equal to" this one by SDK fields.
|
List<SdkField<?>> |
sdkFields() |
public SdkPojoBuilder(T delegate)
public boolean equalsBySdkFields(Object other)
SdkPojo
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.
equalsBySdkFields
in interface SdkPojo
other
- the object to be compared withCopyright © 2020. All rights reserved.