/** * 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 Proton { namespace Model { /** *

The detailed data about the current state of the component.

See * Also:

AWS * API Reference

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

The name of the service instance that this component is attached to. Provided * when a component is attached to a service instance.

*/ inline const Aws::String& GetServiceInstanceName() const{ return m_serviceInstanceName; } /** *

The name of the service instance that this component is attached to. Provided * when a component is attached to a service instance.

*/ inline bool ServiceInstanceNameHasBeenSet() const { return m_serviceInstanceNameHasBeenSet; } /** *

The name of the service instance that this component is attached to. Provided * when a component is attached to a service instance.

*/ inline void SetServiceInstanceName(const Aws::String& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = value; } /** *

The name of the service instance that this component is attached to. Provided * when a component is attached to a service instance.

*/ inline void SetServiceInstanceName(Aws::String&& value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName = std::move(value); } /** *

The name of the service instance that this component is attached to. Provided * when a component is attached to a service instance.

*/ inline void SetServiceInstanceName(const char* value) { m_serviceInstanceNameHasBeenSet = true; m_serviceInstanceName.assign(value); } /** *

The name of the service instance that this component is attached to. Provided * when a component is attached to a service instance.

*/ inline ComponentState& WithServiceInstanceName(const Aws::String& value) { SetServiceInstanceName(value); return *this;} /** *

The name of the service instance that this component is attached to. Provided * when a component is attached to a service instance.

*/ inline ComponentState& WithServiceInstanceName(Aws::String&& value) { SetServiceInstanceName(std::move(value)); return *this;} /** *

The name of the service instance that this component is attached to. Provided * when a component is attached to a service instance.

*/ inline ComponentState& WithServiceInstanceName(const char* value) { SetServiceInstanceName(value); return *this;} /** *

The name of the service that serviceInstanceName is associated * with. Provided when a component is attached to a service instance.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the service that serviceInstanceName is associated * with. Provided when a component is attached to a service instance.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service that serviceInstanceName is associated * with. Provided when a component is attached to a service instance.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the service that serviceInstanceName is associated * with. Provided when a component is attached to a service instance.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the service that serviceInstanceName is associated * with. Provided when a component is attached to a service instance.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the service that serviceInstanceName is associated * with. Provided when a component is attached to a service instance.

*/ inline ComponentState& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service that serviceInstanceName is associated * with. Provided when a component is attached to a service instance.

*/ inline ComponentState& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the service that serviceInstanceName is associated * with. Provided when a component is attached to a service instance.

*/ inline ComponentState& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

The service spec that the component uses to access service inputs. Provided * when a component is attached to a service instance.

*/ inline const Aws::String& GetServiceSpec() const{ return m_serviceSpec; } /** *

The service spec that the component uses to access service inputs. Provided * when a component is attached to a service instance.

*/ inline bool ServiceSpecHasBeenSet() const { return m_serviceSpecHasBeenSet; } /** *

The service spec that the component uses to access service inputs. Provided * when a component is attached to a service instance.

*/ inline void SetServiceSpec(const Aws::String& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = value; } /** *

The service spec that the component uses to access service inputs. Provided * when a component is attached to a service instance.

*/ inline void SetServiceSpec(Aws::String&& value) { m_serviceSpecHasBeenSet = true; m_serviceSpec = std::move(value); } /** *

The service spec that the component uses to access service inputs. Provided * when a component is attached to a service instance.

*/ inline void SetServiceSpec(const char* value) { m_serviceSpecHasBeenSet = true; m_serviceSpec.assign(value); } /** *

The service spec that the component uses to access service inputs. Provided * when a component is attached to a service instance.

*/ inline ComponentState& WithServiceSpec(const Aws::String& value) { SetServiceSpec(value); return *this;} /** *

The service spec that the component uses to access service inputs. Provided * when a component is attached to a service instance.

*/ inline ComponentState& WithServiceSpec(Aws::String&& value) { SetServiceSpec(std::move(value)); return *this;} /** *

The service spec that the component uses to access service inputs. Provided * when a component is attached to a service instance.

*/ inline ComponentState& WithServiceSpec(const char* value) { SetServiceSpec(value); return *this;} /** *

The template file used.

*/ inline const Aws::String& GetTemplateFile() const{ return m_templateFile; } /** *

The template file used.

*/ inline bool TemplateFileHasBeenSet() const { return m_templateFileHasBeenSet; } /** *

The template file used.

*/ inline void SetTemplateFile(const Aws::String& value) { m_templateFileHasBeenSet = true; m_templateFile = value; } /** *

The template file used.

*/ inline void SetTemplateFile(Aws::String&& value) { m_templateFileHasBeenSet = true; m_templateFile = std::move(value); } /** *

The template file used.

*/ inline void SetTemplateFile(const char* value) { m_templateFileHasBeenSet = true; m_templateFile.assign(value); } /** *

The template file used.

*/ inline ComponentState& WithTemplateFile(const Aws::String& value) { SetTemplateFile(value); return *this;} /** *

The template file used.

*/ inline ComponentState& WithTemplateFile(Aws::String&& value) { SetTemplateFile(std::move(value)); return *this;} /** *

The template file used.

*/ inline ComponentState& WithTemplateFile(const char* value) { SetTemplateFile(value); return *this;} private: Aws::String m_serviceInstanceName; bool m_serviceInstanceNameHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_serviceSpec; bool m_serviceSpecHasBeenSet = false; Aws::String m_templateFile; bool m_templateFileHasBeenSet = false; }; } // namespace Model } // namespace Proton } // namespace Aws