/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AmplifyUIBuilder { namespace Model { /** *

Contains a summary of a component. This is a read-only data type that is * returned by ListComponents.

See Also:

AWS * API Reference

*/ class ComponentSummary { public: AWS_AMPLIFYUIBUILDER_API ComponentSummary(); AWS_AMPLIFYUIBUILDER_API ComponentSummary(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYUIBUILDER_API ComponentSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_AMPLIFYUIBUILDER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The unique ID of the Amplify app associated with the component.

*/ inline const Aws::String& GetAppId() const{ return m_appId; } /** *

The unique ID of the Amplify app associated with the component.

*/ inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; } /** *

The unique ID of the Amplify app associated with the component.

*/ inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; } /** *

The unique ID of the Amplify app associated with the component.

*/ inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); } /** *

The unique ID of the Amplify app associated with the component.

*/ inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); } /** *

The unique ID of the Amplify app associated with the component.

*/ inline ComponentSummary& WithAppId(const Aws::String& value) { SetAppId(value); return *this;} /** *

The unique ID of the Amplify app associated with the component.

*/ inline ComponentSummary& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;} /** *

The unique ID of the Amplify app associated with the component.

*/ inline ComponentSummary& WithAppId(const char* value) { SetAppId(value); return *this;} /** *

The name of the backend environment that is a part of the Amplify app.

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

The name of the backend environment that is a part of the Amplify app.

*/ inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; } /** *

The name of the backend environment that is a part of the Amplify app.

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; } /** *

The name of the backend environment that is a part of the Amplify app.

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); } /** *

The name of the backend environment that is a part of the Amplify app.

*/ inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); } /** *

The name of the backend environment that is a part of the Amplify app.

*/ inline ComponentSummary& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

The name of the backend environment that is a part of the Amplify app.

*/ inline ComponentSummary& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

The name of the backend environment that is a part of the Amplify app.

*/ inline ComponentSummary& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} /** *

The unique ID of the component.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique ID of the component.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique ID of the component.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique ID of the component.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique ID of the component.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique ID of the component.

*/ inline ComponentSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique ID of the component.

*/ inline ComponentSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique ID of the component.

*/ inline ComponentSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The name of the component.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the component.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the component.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the component.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the component.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the component.

*/ inline ComponentSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the component.

*/ inline ComponentSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the component.

*/ inline ComponentSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The component type.

*/ inline const Aws::String& GetComponentType() const{ return m_componentType; } /** *

The component type.

*/ inline bool ComponentTypeHasBeenSet() const { return m_componentTypeHasBeenSet; } /** *

The component type.

*/ inline void SetComponentType(const Aws::String& value) { m_componentTypeHasBeenSet = true; m_componentType = value; } /** *

The component type.

*/ inline void SetComponentType(Aws::String&& value) { m_componentTypeHasBeenSet = true; m_componentType = std::move(value); } /** *

The component type.

*/ inline void SetComponentType(const char* value) { m_componentTypeHasBeenSet = true; m_componentType.assign(value); } /** *

The component type.

*/ inline ComponentSummary& WithComponentType(const Aws::String& value) { SetComponentType(value); return *this;} /** *

The component type.

*/ inline ComponentSummary& WithComponentType(Aws::String&& value) { SetComponentType(std::move(value)); return *this;} /** *

The component type.

*/ inline ComponentSummary& WithComponentType(const char* value) { SetComponentType(value); return *this;} private: Aws::String m_appId; bool m_appIdHasBeenSet = false; Aws::String m_environmentName; bool m_environmentNameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_componentType; bool m_componentTypeHasBeenSet = false; }; } // namespace Model } // namespace AmplifyUIBuilder } // namespace Aws