@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateComponentData extends Object implements Serializable, Cloneable, StructuredPojo
Represents all of the information that is required to create a component.
Constructor and Description |
---|
CreateComponentData() |
Modifier and Type | Method and Description |
---|---|
CreateComponentData |
addBindingPropertiesEntry(String key,
ComponentBindingPropertiesValue value)
Add a single BindingProperties entry
|
CreateComponentData |
addCollectionPropertiesEntry(String key,
ComponentDataConfiguration value)
Add a single CollectionProperties entry
|
CreateComponentData |
addEventsEntry(String key,
ComponentEvent value)
Add a single Events entry
|
CreateComponentData |
addOverridesEntry(String key,
Map<String,String> value)
Add a single Overrides entry
|
CreateComponentData |
addPropertiesEntry(String key,
ComponentProperty value)
Add a single Properties entry
|
CreateComponentData |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CreateComponentData |
clearBindingPropertiesEntries()
Removes all the entries added into BindingProperties.
|
CreateComponentData |
clearCollectionPropertiesEntries()
Removes all the entries added into CollectionProperties.
|
CreateComponentData |
clearEventsEntries()
Removes all the entries added into Events.
|
CreateComponentData |
clearOverridesEntries()
Removes all the entries added into Overrides.
|
CreateComponentData |
clearPropertiesEntries()
Removes all the entries added into Properties.
|
CreateComponentData |
clearTagsEntries()
Removes all the entries added into Tags.
|
CreateComponentData |
clone() |
boolean |
equals(Object obj) |
Map<String,ComponentBindingPropertiesValue> |
getBindingProperties()
The data binding information for the component's properties.
|
List<ComponentChild> |
getChildren()
A list of child components that are instances of the main component.
|
Map<String,ComponentDataConfiguration> |
getCollectionProperties()
The data binding configuration for customizing a component's properties.
|
String |
getComponentType()
The component type.
|
Map<String,ComponentEvent> |
getEvents()
The event configuration for the component.
|
String |
getName()
The name of the component
|
Map<String,Map<String,String>> |
getOverrides()
Describes the component properties that can be overriden to customize an instance of the component.
|
Map<String,ComponentProperty> |
getProperties()
Describes the component's properties.
|
String |
getSchemaVersion()
The schema version of the component when it was imported.
|
String |
getSourceId()
The unique ID of the component in its original source system, such as Figma.
|
Map<String,String> |
getTags()
One or more key-value pairs to use when tagging the component data.
|
List<ComponentVariant> |
getVariants()
A list of the unique variants of this component.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBindingProperties(Map<String,ComponentBindingPropertiesValue> bindingProperties)
The data binding information for the component's properties.
|
void |
setChildren(Collection<ComponentChild> children)
A list of child components that are instances of the main component.
|
void |
setCollectionProperties(Map<String,ComponentDataConfiguration> collectionProperties)
The data binding configuration for customizing a component's properties.
|
void |
setComponentType(String componentType)
The component type.
|
void |
setEvents(Map<String,ComponentEvent> events)
The event configuration for the component.
|
void |
setName(String name)
The name of the component
|
void |
setOverrides(Map<String,Map<String,String>> overrides)
Describes the component properties that can be overriden to customize an instance of the component.
|
void |
setProperties(Map<String,ComponentProperty> properties)
Describes the component's properties.
|
void |
setSchemaVersion(String schemaVersion)
The schema version of the component when it was imported.
|
void |
setSourceId(String sourceId)
The unique ID of the component in its original source system, such as Figma.
|
void |
setTags(Map<String,String> tags)
One or more key-value pairs to use when tagging the component data.
|
void |
setVariants(Collection<ComponentVariant> variants)
A list of the unique variants of this component.
|
String |
toString()
Returns a string representation of this object.
|
CreateComponentData |
withBindingProperties(Map<String,ComponentBindingPropertiesValue> bindingProperties)
The data binding information for the component's properties.
|
CreateComponentData |
withChildren(Collection<ComponentChild> children)
A list of child components that are instances of the main component.
|
CreateComponentData |
withChildren(ComponentChild... children)
A list of child components that are instances of the main component.
|
CreateComponentData |
withCollectionProperties(Map<String,ComponentDataConfiguration> collectionProperties)
The data binding configuration for customizing a component's properties.
|
CreateComponentData |
withComponentType(String componentType)
The component type.
|
CreateComponentData |
withEvents(Map<String,ComponentEvent> events)
The event configuration for the component.
|
CreateComponentData |
withName(String name)
The name of the component
|
CreateComponentData |
withOverrides(Map<String,Map<String,String>> overrides)
Describes the component properties that can be overriden to customize an instance of the component.
|
CreateComponentData |
withProperties(Map<String,ComponentProperty> properties)
Describes the component's properties.
|
CreateComponentData |
withSchemaVersion(String schemaVersion)
The schema version of the component when it was imported.
|
CreateComponentData |
withSourceId(String sourceId)
The unique ID of the component in its original source system, such as Figma.
|
CreateComponentData |
withTags(Map<String,String> tags)
One or more key-value pairs to use when tagging the component data.
|
CreateComponentData |
withVariants(Collection<ComponentVariant> variants)
A list of the unique variants of this component.
|
CreateComponentData |
withVariants(ComponentVariant... variants)
A list of the unique variants of this component.
|
public Map<String,ComponentBindingPropertiesValue> getBindingProperties()
The data binding information for the component's properties.
public void setBindingProperties(Map<String,ComponentBindingPropertiesValue> bindingProperties)
The data binding information for the component's properties.
bindingProperties
- The data binding information for the component's properties.public CreateComponentData withBindingProperties(Map<String,ComponentBindingPropertiesValue> bindingProperties)
The data binding information for the component's properties.
bindingProperties
- The data binding information for the component's properties.public CreateComponentData addBindingPropertiesEntry(String key, ComponentBindingPropertiesValue value)
public CreateComponentData clearBindingPropertiesEntries()
public List<ComponentChild> getChildren()
A list of child components that are instances of the main component.
public void setChildren(Collection<ComponentChild> children)
A list of child components that are instances of the main component.
children
- A list of child components that are instances of the main component.public CreateComponentData withChildren(ComponentChild... children)
A list of child components that are instances of the main component.
NOTE: This method appends the values to the existing list (if any). Use
setChildren(java.util.Collection)
or withChildren(java.util.Collection)
if you want to override
the existing values.
children
- A list of child components that are instances of the main component.public CreateComponentData withChildren(Collection<ComponentChild> children)
A list of child components that are instances of the main component.
children
- A list of child components that are instances of the main component.public Map<String,ComponentDataConfiguration> getCollectionProperties()
The data binding configuration for customizing a component's properties. Use this for a collection component.
public void setCollectionProperties(Map<String,ComponentDataConfiguration> collectionProperties)
The data binding configuration for customizing a component's properties. Use this for a collection component.
collectionProperties
- The data binding configuration for customizing a component's properties. Use this for a collection
component.public CreateComponentData withCollectionProperties(Map<String,ComponentDataConfiguration> collectionProperties)
The data binding configuration for customizing a component's properties. Use this for a collection component.
collectionProperties
- The data binding configuration for customizing a component's properties. Use this for a collection
component.public CreateComponentData addCollectionPropertiesEntry(String key, ComponentDataConfiguration value)
public CreateComponentData clearCollectionPropertiesEntries()
public void setComponentType(String componentType)
The component type. This can be an Amplify custom UI component or another custom component.
componentType
- The component type. This can be an Amplify custom UI component or another custom component.public String getComponentType()
The component type. This can be an Amplify custom UI component or another custom component.
public CreateComponentData withComponentType(String componentType)
The component type. This can be an Amplify custom UI component or another custom component.
componentType
- The component type. This can be an Amplify custom UI component or another custom component.public Map<String,ComponentEvent> getEvents()
The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
public void setEvents(Map<String,ComponentEvent> events)
The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
events
- The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you
to bind events and actions to components.public CreateComponentData withEvents(Map<String,ComponentEvent> events)
The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you to bind events and actions to components.
events
- The event configuration for the component. Use for the workflow feature in Amplify Studio that allows you
to bind events and actions to components.public CreateComponentData addEventsEntry(String key, ComponentEvent value)
public CreateComponentData clearEventsEntries()
public void setName(String name)
The name of the component
name
- The name of the componentpublic String getName()
The name of the component
public CreateComponentData withName(String name)
The name of the component
name
- The name of the componentpublic Map<String,Map<String,String>> getOverrides()
Describes the component properties that can be overriden to customize an instance of the component.
public void setOverrides(Map<String,Map<String,String>> overrides)
Describes the component properties that can be overriden to customize an instance of the component.
overrides
- Describes the component properties that can be overriden to customize an instance of the component.public CreateComponentData withOverrides(Map<String,Map<String,String>> overrides)
Describes the component properties that can be overriden to customize an instance of the component.
overrides
- Describes the component properties that can be overriden to customize an instance of the component.public CreateComponentData addOverridesEntry(String key, Map<String,String> value)
public CreateComponentData clearOverridesEntries()
public Map<String,ComponentProperty> getProperties()
Describes the component's properties.
public void setProperties(Map<String,ComponentProperty> properties)
Describes the component's properties.
properties
- Describes the component's properties.public CreateComponentData withProperties(Map<String,ComponentProperty> properties)
Describes the component's properties.
properties
- Describes the component's properties.public CreateComponentData addPropertiesEntry(String key, ComponentProperty value)
public CreateComponentData clearPropertiesEntries()
public void setSchemaVersion(String schemaVersion)
The schema version of the component when it was imported.
schemaVersion
- The schema version of the component when it was imported.public String getSchemaVersion()
The schema version of the component when it was imported.
public CreateComponentData withSchemaVersion(String schemaVersion)
The schema version of the component when it was imported.
schemaVersion
- The schema version of the component when it was imported.public void setSourceId(String sourceId)
The unique ID of the component in its original source system, such as Figma.
sourceId
- The unique ID of the component in its original source system, such as Figma.public String getSourceId()
The unique ID of the component in its original source system, such as Figma.
public CreateComponentData withSourceId(String sourceId)
The unique ID of the component in its original source system, such as Figma.
sourceId
- The unique ID of the component in its original source system, such as Figma.public Map<String,String> getTags()
One or more key-value pairs to use when tagging the component data.
public void setTags(Map<String,String> tags)
One or more key-value pairs to use when tagging the component data.
tags
- One or more key-value pairs to use when tagging the component data.public CreateComponentData withTags(Map<String,String> tags)
One or more key-value pairs to use when tagging the component data.
tags
- One or more key-value pairs to use when tagging the component data.public CreateComponentData addTagsEntry(String key, String value)
public CreateComponentData clearTagsEntries()
public List<ComponentVariant> getVariants()
A list of the unique variants of this component.
public void setVariants(Collection<ComponentVariant> variants)
A list of the unique variants of this component.
variants
- A list of the unique variants of this component.public CreateComponentData withVariants(ComponentVariant... variants)
A list of the unique variants of this component.
NOTE: This method appends the values to the existing list (if any). Use
setVariants(java.util.Collection)
or withVariants(java.util.Collection)
if you want to override
the existing values.
variants
- A list of the unique variants of this component.public CreateComponentData withVariants(Collection<ComponentVariant> variants)
A list of the unique variants of this component.
variants
- A list of the unique variants of this component.public String toString()
toString
in class Object
Object.toString()
public CreateComponentData clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.