@NotThreadSafe public static final class ImmutableQueryObject.Builder extends Object
ImmutableQueryObject.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
@CanIgnoreReturnValue public final ImmutableQueryObject.Builder from(QueryObject instance)
QueryObject instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder sObject(String sObject)
sObject attribute.sObject - The value for sObjectthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder addSelectedFieldNames(String element)
selectedFieldNames list.element - A selectedFieldNames elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder addSelectedFieldNames(String... elements)
selectedFieldNames list.elements - An array of selectedFieldNames elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder selectedFieldNames(@Nullable Iterable<String> elements)
selectedFieldNames list.elements - An iterable of selectedFieldNames elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder addAllSelectedFieldNames(Iterable<String> elements)
selectedFieldNames list.elements - An iterable of selectedFieldNames elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder filterExpression(@Nullable String filterExpression)
filterExpression attribute.filterExpression - The value for filterExpression (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder idFieldName(@Nullable String idFieldName)
idFieldName attribute.idFieldName - The value for idFieldName (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder addFields(String element)
fields list.element - A fields elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder addFields(String... elements)
fields list.elements - An array of fields elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder fields(@Nullable Iterable<String> elements)
fields list.elements - An iterable of fields elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder addAllFields(Iterable<String> elements)
fields list.elements - An iterable of fields elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder dataType(@Nullable String dataType)
dataType attribute.dataType - The value for dataType (can be null)this builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableQueryObject.Builder entityDefinition(@Nullable EntityDefinition entityDefinition)
entityDefinition attribute.entityDefinition - The value for entityDefinition (can be null)this builder for use in a chained invocationpublic ImmutableQueryObject build()
ImmutableQueryObject.IllegalStateException - if any required attributes are missingCopyright © 2021–2022 Amazon Web Services. All rights reserved.