@Generated(value="software.amazon.awssdk:codegen") public final class ComponentProperty extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ComponentProperty.Builder,ComponentProperty>
Describes the configuration for all of a component's properties. Use ComponentProperty to specify the
values to render or bind by default.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ComponentProperty.Builder |
| Modifier and Type | Method and Description |
|---|---|
ComponentPropertyBindingProperties |
bindingProperties()
The information to bind the component property to data at runtime.
|
Map<String,FormBindingElement> |
bindings()
The information to bind the component property to form data.
|
static ComponentProperty.Builder |
builder() |
ComponentPropertyBindingProperties |
collectionBindingProperties()
The information to bind the component property to data at runtime.
|
String |
componentName()
The name of the component that is affected by an event.
|
List<ComponentProperty> |
concat()
A list of component properties to concatenate to create the value to assign to this component property.
|
ComponentConditionProperty |
condition()
The conditional expression to use to assign a value to the component property.
|
Boolean |
configured()
Specifies whether the user configured the property in Amplify Studio after importing it.
|
String |
defaultValue()
The default value to assign to the component property.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
event()
An event that occurs in your app.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasBindings()
For responses, this returns true if the service returned a value for the Bindings property.
|
boolean |
hasConcat()
For responses, this returns true if the service returned a value for the Concat property.
|
int |
hashCode() |
String |
importedValue()
The default value assigned to the property when the component is imported into an app.
|
String |
model()
The data model to use to assign a value to the component property.
|
String |
property()
The name of the component's property that is affected by an event.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ComponentProperty.Builder> |
serializableBuilderClass() |
ComponentProperty.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
type()
The component type.
|
String |
userAttribute()
An authenticated user attribute to use to assign a value to the component property.
|
String |
value()
The value to assign to the component property.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String value()
The value to assign to the component property.
public final ComponentPropertyBindingProperties bindingProperties()
The information to bind the component property to data at runtime.
public final ComponentPropertyBindingProperties collectionBindingProperties()
The information to bind the component property to data at runtime. Use this for collection components.
public final String defaultValue()
The default value to assign to the component property.
public final String model()
The data model to use to assign a value to the component property.
public final boolean hasBindings()
isEmpty() 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.public final Map<String,FormBindingElement> bindings()
The information to bind the component property to form data.
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 hasBindings() method.
public final String event()
An event that occurs in your app. Use this for workflow data binding.
public final String userAttribute()
An authenticated user attribute to use to assign a value to the component property.
public final boolean hasConcat()
isEmpty() 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.public final List<ComponentProperty> concat()
A list of component properties to concatenate to create the value to assign to this component property.
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 hasConcat() method.
public final ComponentConditionProperty condition()
The conditional expression to use to assign a value to the component property.
public final Boolean configured()
Specifies whether the user configured the property in Amplify Studio after importing it.
public final String type()
The component type.
public final String importedValue()
The default value assigned to the property when the component is imported into an app.
public final String componentName()
The name of the component that is affected by an event.
public final String property()
The name of the component's property that is affected by an event.
public ComponentProperty.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ComponentProperty.Builder,ComponentProperty>public static ComponentProperty.Builder builder()
public static Class<? extends ComponentProperty.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.