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

Describes a standalone resource or similarly grouped resources that the * application is made up of.

See Also:

AWS * API Reference

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

The name of the component.

*/ inline const Aws::String& GetComponentName() const{ return m_componentName; } /** *

The name of the component.

*/ inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; } /** *

The name of the component.

*/ inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; } /** *

The name of the component.

*/ inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); } /** *

The name of the component.

*/ inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); } /** *

The name of the component.

*/ inline ApplicationComponent& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;} /** *

The name of the component.

*/ inline ApplicationComponent& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;} /** *

The name of the component.

*/ inline ApplicationComponent& WithComponentName(const char* value) { SetComponentName(value); return *this;} /** *

The resource type. Supported resource types include EC2 instances, Auto * Scaling group, Classic ELB, Application ELB, and SQS Queue.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The resource type. Supported resource types include EC2 instances, Auto * Scaling group, Classic ELB, Application ELB, and SQS Queue.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type. Supported resource types include EC2 instances, Auto * Scaling group, Classic ELB, Application ELB, and SQS Queue.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type. Supported resource types include EC2 instances, Auto * Scaling group, Classic ELB, Application ELB, and SQS Queue.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type. Supported resource types include EC2 instances, Auto * Scaling group, Classic ELB, Application ELB, and SQS Queue.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The resource type. Supported resource types include EC2 instances, Auto * Scaling group, Classic ELB, Application ELB, and SQS Queue.

*/ inline ApplicationComponent& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The resource type. Supported resource types include EC2 instances, Auto * Scaling group, Classic ELB, Application ELB, and SQS Queue.

*/ inline ApplicationComponent& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The resource type. Supported resource types include EC2 instances, Auto * Scaling group, Classic ELB, Application ELB, and SQS Queue.

*/ inline ApplicationComponent& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *

The stack tier of the application component.

*/ inline const Tier& GetTier() const{ return m_tier; } /** *

The stack tier of the application component.

*/ inline bool TierHasBeenSet() const { return m_tierHasBeenSet; } /** *

The stack tier of the application component.

*/ inline void SetTier(const Tier& value) { m_tierHasBeenSet = true; m_tier = value; } /** *

The stack tier of the application component.

*/ inline void SetTier(Tier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); } /** *

The stack tier of the application component.

*/ inline ApplicationComponent& WithTier(const Tier& value) { SetTier(value); return *this;} /** *

The stack tier of the application component.

*/ inline ApplicationComponent& WithTier(Tier&& value) { SetTier(std::move(value)); return *this;} /** *

Indicates whether the application component is monitored.

*/ inline bool GetMonitor() const{ return m_monitor; } /** *

Indicates whether the application component is monitored.

*/ inline bool MonitorHasBeenSet() const { return m_monitorHasBeenSet; } /** *

Indicates whether the application component is monitored.

*/ inline void SetMonitor(bool value) { m_monitorHasBeenSet = true; m_monitor = value; } /** *

Indicates whether the application component is monitored.

*/ inline ApplicationComponent& WithMonitor(bool value) { SetMonitor(value); return *this;} private: Aws::String m_componentName; bool m_componentNameHasBeenSet; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet; Tier m_tier; bool m_tierHasBeenSet; bool m_monitor; bool m_monitorHasBeenSet; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws