/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Updates and saves all of the information about a component, based on
* component ID.See Also:
AWS
* API Reference
The unique ID of the component to update.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The unique ID of the component to update.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The unique ID of the component to update.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The unique ID of the component to update.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The unique ID of the component to update.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The unique ID of the component to update.
*/ inline UpdateComponentData& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The unique ID of the component to update.
*/ inline UpdateComponentData& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The unique ID of the component to update.
*/ inline UpdateComponentData& WithId(const char* value) { SetId(value); return *this;} /** *The name of the component to update.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the component to update.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the component to update.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the component to update.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the component to update.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the component to update.
*/ inline UpdateComponentData& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the component to update.
*/ inline UpdateComponentData& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the component to update.
*/ inline UpdateComponentData& WithName(const char* value) { SetName(value); return *this;} /** *The unique ID of the component in its original source system, such as * Figma.
*/ inline const Aws::String& GetSourceId() const{ return m_sourceId; } /** *The unique ID of the component in its original source system, such as * Figma.
*/ inline bool SourceIdHasBeenSet() const { return m_sourceIdHasBeenSet; } /** *The unique ID of the component in its original source system, such as * Figma.
*/ inline void SetSourceId(const Aws::String& value) { m_sourceIdHasBeenSet = true; m_sourceId = value; } /** *The unique ID of the component in its original source system, such as * Figma.
*/ inline void SetSourceId(Aws::String&& value) { m_sourceIdHasBeenSet = true; m_sourceId = std::move(value); } /** *The unique ID of the component in its original source system, such as * Figma.
*/ inline void SetSourceId(const char* value) { m_sourceIdHasBeenSet = true; m_sourceId.assign(value); } /** *The unique ID of the component in its original source system, such as * Figma.
*/ inline UpdateComponentData& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;} /** *The unique ID of the component in its original source system, such as * Figma.
*/ inline UpdateComponentData& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;} /** *The unique ID of the component in its original source system, such as * Figma.
*/ inline UpdateComponentData& WithSourceId(const char* value) { SetSourceId(value); return *this;} /** *The type of the component. This can be an Amplify custom UI component or * another custom component.
*/ inline const Aws::String& GetComponentType() const{ return m_componentType; } /** *The type of the component. This can be an Amplify custom UI component or * another custom component.
*/ inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; } /** *The type of the component. This can be an Amplify custom UI component or * another custom component.
*/ inline void SetComponentType(const Aws::String& value) { m_componentTypeHasBeenSet = true; m_componentType = value; } /** *The type of the component. This can be an Amplify custom UI component or * another custom component.
*/ inline void SetComponentType(Aws::String&& value) { m_componentTypeHasBeenSet = true; m_componentType = std::move(value); } /** *The type of the component. This can be an Amplify custom UI component or * another custom component.
*/ inline void SetComponentType(const char* value) { m_componentTypeHasBeenSet = true; m_componentType.assign(value); } /** *The type of the component. This can be an Amplify custom UI component or * another custom component.
*/ inline UpdateComponentData& WithComponentType(const Aws::String& value) { SetComponentType(value); return *this;} /** *The type of the component. This can be an Amplify custom UI component or * another custom component.
*/ inline UpdateComponentData& WithComponentType(Aws::String&& value) { SetComponentType(std::move(value)); return *this;} /** *The type of the component. This can be an Amplify custom UI component or * another custom component.
*/ inline UpdateComponentData& WithComponentType(const char* value) { SetComponentType(value); return *this;} /** *Describes the component's properties.
*/ inline const Aws::MapDescribes the component's properties.
*/ inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } /** *Describes the component's properties.
*/ inline void SetProperties(const Aws::MapDescribes the component's properties.
*/ inline void SetProperties(Aws::MapDescribes the component's properties.
*/ inline UpdateComponentData& WithProperties(const Aws::MapDescribes the component's properties.
*/ inline UpdateComponentData& WithProperties(Aws::MapDescribes the component's properties.
*/ inline UpdateComponentData& AddProperties(const Aws::String& key, const ComponentProperty& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; } /** *Describes the component's properties.
*/ inline UpdateComponentData& AddProperties(Aws::String&& key, const ComponentProperty& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), value); return *this; } /** *Describes the component's properties.
*/ inline UpdateComponentData& AddProperties(const Aws::String& key, ComponentProperty&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; } /** *Describes the component's properties.
*/ inline UpdateComponentData& AddProperties(Aws::String&& key, ComponentProperty&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(std::move(key), std::move(value)); return *this; } /** *Describes the component's properties.
*/ inline UpdateComponentData& AddProperties(const char* key, ComponentProperty&& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, std::move(value)); return *this; } /** *Describes the component's properties.
*/ inline UpdateComponentData& AddProperties(const char* key, const ComponentProperty& value) { m_propertiesHasBeenSet = true; m_properties.emplace(key, value); return *this; } /** *The components that are instances of the main component.
*/ inline const Aws::VectorThe components that are instances of the main component.
*/ inline bool ChildrenHasBeenSet() const { return m_childrenHasBeenSet; } /** *The components that are instances of the main component.
*/ inline void SetChildren(const Aws::VectorThe components that are instances of the main component.
*/ inline void SetChildren(Aws::VectorThe components that are instances of the main component.
*/ inline UpdateComponentData& WithChildren(const Aws::VectorThe components that are instances of the main component.
*/ inline UpdateComponentData& WithChildren(Aws::VectorThe components that are instances of the main component.
*/ inline UpdateComponentData& AddChildren(const ComponentChild& value) { m_childrenHasBeenSet = true; m_children.push_back(value); return *this; } /** *The components that are instances of the main component.
*/ inline UpdateComponentData& AddChildren(ComponentChild&& value) { m_childrenHasBeenSet = true; m_children.push_back(std::move(value)); return *this; } /** *A list of the unique variants of the main component being updated.
*/ inline const Aws::VectorA list of the unique variants of the main component being updated.
*/ inline bool VariantsHasBeenSet() const { return m_variantsHasBeenSet; } /** *A list of the unique variants of the main component being updated.
*/ inline void SetVariants(const Aws::VectorA list of the unique variants of the main component being updated.
*/ inline void SetVariants(Aws::VectorA list of the unique variants of the main component being updated.
*/ inline UpdateComponentData& WithVariants(const Aws::VectorA list of the unique variants of the main component being updated.
*/ inline UpdateComponentData& WithVariants(Aws::VectorA list of the unique variants of the main component being updated.
*/ inline UpdateComponentData& AddVariants(const ComponentVariant& value) { m_variantsHasBeenSet = true; m_variants.push_back(value); return *this; } /** *A list of the unique variants of the main component being updated.
*/ inline UpdateComponentData& AddVariants(ComponentVariant&& value) { m_variantsHasBeenSet = true; m_variants.push_back(std::move(value)); return *this; } /** *Describes the properties that can be overriden to customize the * component.
*/ inline const Aws::MapDescribes the properties that can be overriden to customize the * component.
*/ inline bool OverridesHasBeenSet() const { return m_overridesHasBeenSet; } /** *Describes the properties that can be overriden to customize the * component.
*/ inline void SetOverrides(const Aws::MapDescribes the properties that can be overriden to customize the * component.
*/ inline void SetOverrides(Aws::MapDescribes the properties that can be overriden to customize the * component.
*/ inline UpdateComponentData& WithOverrides(const Aws::MapDescribes the properties that can be overriden to customize the * component.
*/ inline UpdateComponentData& WithOverrides(Aws::MapDescribes the properties that can be overriden to customize the * component.
*/ inline UpdateComponentData& AddOverrides(const Aws::String& key, const Aws::MapDescribes the properties that can be overriden to customize the * component.
*/ inline UpdateComponentData& AddOverrides(Aws::String&& key, const Aws::MapDescribes the properties that can be overriden to customize the * component.
*/ inline UpdateComponentData& AddOverrides(const Aws::String& key, Aws::MapDescribes the properties that can be overriden to customize the * component.
*/ inline UpdateComponentData& AddOverrides(Aws::String&& key, Aws::MapDescribes the properties that can be overriden to customize the * component.
*/ inline UpdateComponentData& AddOverrides(const char* key, Aws::MapDescribes the properties that can be overriden to customize the * component.
*/ inline UpdateComponentData& AddOverrides(const char* key, const Aws::MapThe data binding information for the component's properties.
*/ inline const Aws::MapThe data binding information for the component's properties.
*/ inline bool BindingPropertiesHasBeenSet() const { return m_bindingPropertiesHasBeenSet; } /** *The data binding information for the component's properties.
*/ inline void SetBindingProperties(const Aws::MapThe data binding information for the component's properties.
*/ inline void SetBindingProperties(Aws::MapThe data binding information for the component's properties.
*/ inline UpdateComponentData& WithBindingProperties(const Aws::MapThe data binding information for the component's properties.
*/ inline UpdateComponentData& WithBindingProperties(Aws::MapThe data binding information for the component's properties.
*/ inline UpdateComponentData& AddBindingProperties(const Aws::String& key, const ComponentBindingPropertiesValue& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties.emplace(key, value); return *this; } /** *The data binding information for the component's properties.
*/ inline UpdateComponentData& AddBindingProperties(Aws::String&& key, const ComponentBindingPropertiesValue& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties.emplace(std::move(key), value); return *this; } /** *The data binding information for the component's properties.
*/ inline UpdateComponentData& AddBindingProperties(const Aws::String& key, ComponentBindingPropertiesValue&& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties.emplace(key, std::move(value)); return *this; } /** *The data binding information for the component's properties.
*/ inline UpdateComponentData& AddBindingProperties(Aws::String&& key, ComponentBindingPropertiesValue&& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties.emplace(std::move(key), std::move(value)); return *this; } /** *The data binding information for the component's properties.
*/ inline UpdateComponentData& AddBindingProperties(const char* key, ComponentBindingPropertiesValue&& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties.emplace(key, std::move(value)); return *this; } /** *The data binding information for the component's properties.
*/ inline UpdateComponentData& AddBindingProperties(const char* key, const ComponentBindingPropertiesValue& value) { m_bindingPropertiesHasBeenSet = true; m_bindingProperties.emplace(key, value); return *this; } /** *The configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline const Aws::MapThe configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline bool CollectionPropertiesHasBeenSet() const { return m_collectionPropertiesHasBeenSet; } /** *The configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline void SetCollectionProperties(const Aws::MapThe configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline void SetCollectionProperties(Aws::MapThe configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline UpdateComponentData& WithCollectionProperties(const Aws::MapThe configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline UpdateComponentData& WithCollectionProperties(Aws::MapThe configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline UpdateComponentData& AddCollectionProperties(const Aws::String& key, const ComponentDataConfiguration& value) { m_collectionPropertiesHasBeenSet = true; m_collectionProperties.emplace(key, value); return *this; } /** *The configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline UpdateComponentData& AddCollectionProperties(Aws::String&& key, const ComponentDataConfiguration& value) { m_collectionPropertiesHasBeenSet = true; m_collectionProperties.emplace(std::move(key), value); return *this; } /** *The configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline UpdateComponentData& AddCollectionProperties(const Aws::String& key, ComponentDataConfiguration&& value) { m_collectionPropertiesHasBeenSet = true; m_collectionProperties.emplace(key, std::move(value)); return *this; } /** *The configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline UpdateComponentData& AddCollectionProperties(Aws::String&& key, ComponentDataConfiguration&& value) { m_collectionPropertiesHasBeenSet = true; m_collectionProperties.emplace(std::move(key), std::move(value)); return *this; } /** *The configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline UpdateComponentData& AddCollectionProperties(const char* key, ComponentDataConfiguration&& value) { m_collectionPropertiesHasBeenSet = true; m_collectionProperties.emplace(key, std::move(value)); return *this; } /** *The configuration for binding a component's properties to a data model. Use * this for a collection component.
*/ inline UpdateComponentData& AddCollectionProperties(const char* key, const ComponentDataConfiguration& value) { m_collectionPropertiesHasBeenSet = true; m_collectionProperties.emplace(key, value); return *this; } /** *The event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline const Aws::MapThe event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *The event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline void SetEvents(const Aws::MapThe event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline void SetEvents(Aws::MapThe event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline UpdateComponentData& WithEvents(const Aws::MapThe event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline UpdateComponentData& WithEvents(Aws::MapThe event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline UpdateComponentData& AddEvents(const Aws::String& key, const ComponentEvent& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; } /** *The event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline UpdateComponentData& AddEvents(Aws::String&& key, const ComponentEvent& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), value); return *this; } /** *The event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline UpdateComponentData& AddEvents(const Aws::String& key, ComponentEvent&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; } /** *The event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline UpdateComponentData& AddEvents(Aws::String&& key, ComponentEvent&& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), std::move(value)); return *this; } /** *The event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline UpdateComponentData& AddEvents(const char* key, ComponentEvent&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; } /** *The event configuration for the component. Use for the workflow feature in * Amplify Studio that allows you to bind events and actions to components.
*/ inline UpdateComponentData& AddEvents(const char* key, const ComponentEvent& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; } /** *The schema version of the component when it was imported.
*/ inline const Aws::String& GetSchemaVersion() const{ return m_schemaVersion; } /** *The schema version of the component when it was imported.
*/ inline bool SchemaVersionHasBeenSet() const { return m_schemaVersionHasBeenSet; } /** *The schema version of the component when it was imported.
*/ inline void SetSchemaVersion(const Aws::String& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = value; } /** *The schema version of the component when it was imported.
*/ inline void SetSchemaVersion(Aws::String&& value) { m_schemaVersionHasBeenSet = true; m_schemaVersion = std::move(value); } /** *The schema version of the component when it was imported.
*/ inline void SetSchemaVersion(const char* value) { m_schemaVersionHasBeenSet = true; m_schemaVersion.assign(value); } /** *The schema version of the component when it was imported.
*/ inline UpdateComponentData& WithSchemaVersion(const Aws::String& value) { SetSchemaVersion(value); return *this;} /** *The schema version of the component when it was imported.
*/ inline UpdateComponentData& WithSchemaVersion(Aws::String&& value) { SetSchemaVersion(std::move(value)); return *this;} /** *The schema version of the component when it was imported.
*/ inline UpdateComponentData& WithSchemaVersion(const char* value) { SetSchemaVersion(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_sourceId; bool m_sourceIdHasBeenSet = false; Aws::String m_componentType; bool m_componentTypeHasBeenSet = false; Aws::Map