Class Field
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Field.Builder,Field>
The Field object has information about the different properties associated with a field in the
connector.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Field.Builderbuilder()Optional map of keys which may be returned.final StringA description of the field.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringA unique identifier for the field.final FieldDataTypeThe type of data in the field.final StringThe type of data in the field.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final booleanFor responses, this returns true if the service returned a value for the CustomProperties property.final inthashCode()final booleanFor responses, this returns true if the service returned a value for the SupportedFilterOperators property.final booleanFor responses, this returns true if the service returned a value for the SupportedValues property.final BooleanIndicates whether this field can be created as part of a destination write.final BooleanIndicates whether this field is populated automatically when the object is created, such as a created at timestamp.final BooleanIndicates whether this field can used in a filter clause (WHEREclause) of a SQL statement when querying data.final BooleanIndicates whether this field can be nullable or not.final BooleanIndicates whether a given field can be used in partitioning the query made to SaaS.final BooleanIndicates whether this field can used as a primary key for the given entity.final BooleanIndicates whether this field can be added in Select clause of SQL query or whether it is retrievable or not.final BooleanIndicates whether this field can be updated as part of a destination write.final BooleanIndicates whether this field can be upserted as part of a destination write.final Stringlabel()A readable label used for the field.final StringThe data type returned by the SaaS API, such as “picklist” or “textarea” from Salesforce.final StringA parent field name for a nested field.static Class<? extends Field.Builder> final List<FieldFilterOperator> Indicates the support filter operators for this field.Indicates the support filter operators for this field.A list of supported values for the field.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
fieldName
A unique identifier for the field.
- Returns:
- A unique identifier for the field.
-
label
A readable label used for the field.
- Returns:
- A readable label used for the field.
-
description
-
fieldType
The type of data in the field.
If the service returns an enum value that is not available in the current SDK version,
fieldTypewill returnFieldDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfieldTypeAsString().- Returns:
- The type of data in the field.
- See Also:
-
fieldTypeAsString
The type of data in the field.
If the service returns an enum value that is not available in the current SDK version,
fieldTypewill returnFieldDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfieldTypeAsString().- Returns:
- The type of data in the field.
- See Also:
-
isPrimaryKey
Indicates whether this field can used as a primary key for the given entity.
- Returns:
- Indicates whether this field can used as a primary key for the given entity.
-
isNullable
Indicates whether this field can be nullable or not.
- Returns:
- Indicates whether this field can be nullable or not.
-
isRetrievable
Indicates whether this field can be added in Select clause of SQL query or whether it is retrievable or not.
- Returns:
- Indicates whether this field can be added in Select clause of SQL query or whether it is retrievable or not.
-
isFilterable
Indicates whether this field can used in a filter clause (
WHEREclause) of a SQL statement when querying data.- Returns:
- Indicates whether this field can used in a filter clause (
WHEREclause) of a SQL statement when querying data.
-
isPartitionable
Indicates whether a given field can be used in partitioning the query made to SaaS.
- Returns:
- Indicates whether a given field can be used in partitioning the query made to SaaS.
-
isCreateable
Indicates whether this field can be created as part of a destination write.
- Returns:
- Indicates whether this field can be created as part of a destination write.
-
isUpdateable
Indicates whether this field can be updated as part of a destination write.
- Returns:
- Indicates whether this field can be updated as part of a destination write.
-
isUpsertable
Indicates whether this field can be upserted as part of a destination write.
- Returns:
- Indicates whether this field can be upserted as part of a destination write.
-
isDefaultOnCreate
Indicates whether this field is populated automatically when the object is created, such as a created at timestamp.
- Returns:
- Indicates whether this field is populated automatically when the object is created, such as a created at timestamp.
-
hasSupportedValues
public final boolean hasSupportedValues()For responses, this returns true if the service returned a value for the SupportedValues property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
supportedValues
A list of supported values for the field.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSupportedValues()method.- Returns:
- A list of supported values for the field.
-
supportedFilterOperators
Indicates the support filter operators for this field.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSupportedFilterOperators()method.- Returns:
- Indicates the support filter operators for this field.
-
hasSupportedFilterOperators
public final boolean hasSupportedFilterOperators()For responses, this returns true if the service returned a value for the SupportedFilterOperators property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
supportedFilterOperatorsAsStrings
Indicates the support filter operators for this field.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasSupportedFilterOperators()method.- Returns:
- Indicates the support filter operators for this field.
-
parentField
A parent field name for a nested field.
- Returns:
- A parent field name for a nested field.
-
nativeDataType
The data type returned by the SaaS API, such as “picklist” or “textarea” from Salesforce.
- Returns:
- The data type returned by the SaaS API, such as “picklist” or “textarea” from Salesforce.
-
hasCustomProperties
public final boolean hasCustomProperties()For responses, this returns true if the service returned a value for the CustomProperties property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
customProperties
Optional map of keys which may be returned.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasCustomProperties()method.- Returns:
- Optional map of keys which may be returned.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Field.Builder,Field> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
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:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo- Returns:
- The mapping between the field name and its corresponding field.
-