@Generated(value="software.amazon.awssdk:codegen") public final class ComponentChild extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ComponentChild.Builder,ComponentChild>
A nested UI configuration within a parent Component.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ComponentChild.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ComponentChild.Builder |
builder() |
List<ComponentChild> |
children()
The list of
ComponentChild instances for this component. |
String |
componentType()
The type of the child component.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Map<String,ComponentEvent> |
events()
Describes the events that can be raised on the child component.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasChildren()
For responses, this returns true if the service returned a value for the Children property.
|
boolean |
hasEvents()
For responses, this returns true if the service returned a value for the Events property.
|
int |
hashCode() |
boolean |
hasProperties()
For responses, this returns true if the service returned a value for the Properties property.
|
String |
name()
The name of the child component.
|
Map<String,ComponentProperty> |
properties()
Describes the properties of the child component.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ComponentChild.Builder> |
serializableBuilderClass() |
String |
sourceId()
The unique ID of the child component in its original source system, such as Figma.
|
ComponentChild.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasChildren()
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<ComponentChild> children()
The list of ComponentChild instances for this component.
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 hasChildren() method.
ComponentChild instances for this component.public final String componentType()
The type of the child component.
public final boolean hasEvents()
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,ComponentEvent> events()
Describes the events that can be raised on the child component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
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 hasEvents() method.
public final String name()
The name of the child component.
public final boolean hasProperties()
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,ComponentProperty> properties()
Describes the properties of the child component. You can't specify tags as a valid property for
properties.
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 hasProperties() method.
tags as a valid property
for properties.public final String sourceId()
The unique ID of the child component in its original source system, such as Figma.
public ComponentChild.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ComponentChild.Builder,ComponentChild>public static ComponentChild.Builder builder()
public static Class<? extends ComponentChild.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.