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

Summarizes the number of layers, instances, and apps in a * stack.

See Also:

AWS * API Reference

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

The stack ID.

*/ inline const Aws::String& GetStackId() const{ return m_stackId; } /** *

The stack ID.

*/ inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; } /** *

The stack ID.

*/ inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; } /** *

The stack ID.

*/ inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); } /** *

The stack ID.

*/ inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); } /** *

The stack ID.

*/ inline StackSummary& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

The stack ID.

*/ inline StackSummary& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;} /** *

The stack ID.

*/ inline StackSummary& WithStackId(const char* value) { SetStackId(value); return *this;} /** *

The stack name.

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

The stack name.

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

The stack name.

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

The stack name.

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

The stack name.

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

The stack name.

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

The stack name.

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

The stack name.

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

The stack's ARN.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The stack's ARN.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The stack's ARN.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The stack's ARN.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The stack's ARN.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The stack's ARN.

*/ inline StackSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The stack's ARN.

*/ inline StackSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The stack's ARN.

*/ inline StackSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *

The number of layers.

*/ inline int GetLayersCount() const{ return m_layersCount; } /** *

The number of layers.

*/ inline bool LayersCountHasBeenSet() const { return m_layersCountHasBeenSet; } /** *

The number of layers.

*/ inline void SetLayersCount(int value) { m_layersCountHasBeenSet = true; m_layersCount = value; } /** *

The number of layers.

*/ inline StackSummary& WithLayersCount(int value) { SetLayersCount(value); return *this;} /** *

The number of apps.

*/ inline int GetAppsCount() const{ return m_appsCount; } /** *

The number of apps.

*/ inline bool AppsCountHasBeenSet() const { return m_appsCountHasBeenSet; } /** *

The number of apps.

*/ inline void SetAppsCount(int value) { m_appsCountHasBeenSet = true; m_appsCount = value; } /** *

The number of apps.

*/ inline StackSummary& WithAppsCount(int value) { SetAppsCount(value); return *this;} /** *

An InstancesCount object with the number of instances in each * status.

*/ inline const InstancesCount& GetInstancesCount() const{ return m_instancesCount; } /** *

An InstancesCount object with the number of instances in each * status.

*/ inline bool InstancesCountHasBeenSet() const { return m_instancesCountHasBeenSet; } /** *

An InstancesCount object with the number of instances in each * status.

*/ inline void SetInstancesCount(const InstancesCount& value) { m_instancesCountHasBeenSet = true; m_instancesCount = value; } /** *

An InstancesCount object with the number of instances in each * status.

*/ inline void SetInstancesCount(InstancesCount&& value) { m_instancesCountHasBeenSet = true; m_instancesCount = std::move(value); } /** *

An InstancesCount object with the number of instances in each * status.

*/ inline StackSummary& WithInstancesCount(const InstancesCount& value) { SetInstancesCount(value); return *this;} /** *

An InstancesCount object with the number of instances in each * status.

*/ inline StackSummary& WithInstancesCount(InstancesCount&& value) { SetInstancesCount(std::move(value)); return *this;} private: Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; int m_layersCount; bool m_layersCountHasBeenSet = false; int m_appsCount; bool m_appsCountHasBeenSet = false; InstancesCount m_instancesCount; bool m_instancesCountHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws