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

Describes a registered Amazon ECS cluster.

See Also:

AWS * API Reference

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

The cluster's ARN.

*/ inline const Aws::String& GetEcsClusterArn() const{ return m_ecsClusterArn; } /** *

The cluster's ARN.

*/ inline bool EcsClusterArnHasBeenSet() const { return m_ecsClusterArnHasBeenSet; } /** *

The cluster's ARN.

*/ inline void SetEcsClusterArn(const Aws::String& value) { m_ecsClusterArnHasBeenSet = true; m_ecsClusterArn = value; } /** *

The cluster's ARN.

*/ inline void SetEcsClusterArn(Aws::String&& value) { m_ecsClusterArnHasBeenSet = true; m_ecsClusterArn = std::move(value); } /** *

The cluster's ARN.

*/ inline void SetEcsClusterArn(const char* value) { m_ecsClusterArnHasBeenSet = true; m_ecsClusterArn.assign(value); } /** *

The cluster's ARN.

*/ inline EcsCluster& WithEcsClusterArn(const Aws::String& value) { SetEcsClusterArn(value); return *this;} /** *

The cluster's ARN.

*/ inline EcsCluster& WithEcsClusterArn(Aws::String&& value) { SetEcsClusterArn(std::move(value)); return *this;} /** *

The cluster's ARN.

*/ inline EcsCluster& WithEcsClusterArn(const char* value) { SetEcsClusterArn(value); return *this;} /** *

The cluster name.

*/ inline const Aws::String& GetEcsClusterName() const{ return m_ecsClusterName; } /** *

The cluster name.

*/ inline bool EcsClusterNameHasBeenSet() const { return m_ecsClusterNameHasBeenSet; } /** *

The cluster name.

*/ inline void SetEcsClusterName(const Aws::String& value) { m_ecsClusterNameHasBeenSet = true; m_ecsClusterName = value; } /** *

The cluster name.

*/ inline void SetEcsClusterName(Aws::String&& value) { m_ecsClusterNameHasBeenSet = true; m_ecsClusterName = std::move(value); } /** *

The cluster name.

*/ inline void SetEcsClusterName(const char* value) { m_ecsClusterNameHasBeenSet = true; m_ecsClusterName.assign(value); } /** *

The cluster name.

*/ inline EcsCluster& WithEcsClusterName(const Aws::String& value) { SetEcsClusterName(value); return *this;} /** *

The cluster name.

*/ inline EcsCluster& WithEcsClusterName(Aws::String&& value) { SetEcsClusterName(std::move(value)); return *this;} /** *

The cluster name.

*/ inline EcsCluster& WithEcsClusterName(const char* value) { SetEcsClusterName(value); return *this;} /** *

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 EcsCluster& WithStackId(const Aws::String& value) { SetStackId(value); return *this;} /** *

The stack ID.

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

The stack ID.

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

The time and date that the cluster was registered with the stack.

*/ inline const Aws::String& GetRegisteredAt() const{ return m_registeredAt; } /** *

The time and date that the cluster was registered with the stack.

*/ inline bool RegisteredAtHasBeenSet() const { return m_registeredAtHasBeenSet; } /** *

The time and date that the cluster was registered with the stack.

*/ inline void SetRegisteredAt(const Aws::String& value) { m_registeredAtHasBeenSet = true; m_registeredAt = value; } /** *

The time and date that the cluster was registered with the stack.

*/ inline void SetRegisteredAt(Aws::String&& value) { m_registeredAtHasBeenSet = true; m_registeredAt = std::move(value); } /** *

The time and date that the cluster was registered with the stack.

*/ inline void SetRegisteredAt(const char* value) { m_registeredAtHasBeenSet = true; m_registeredAt.assign(value); } /** *

The time and date that the cluster was registered with the stack.

*/ inline EcsCluster& WithRegisteredAt(const Aws::String& value) { SetRegisteredAt(value); return *this;} /** *

The time and date that the cluster was registered with the stack.

*/ inline EcsCluster& WithRegisteredAt(Aws::String&& value) { SetRegisteredAt(std::move(value)); return *this;} /** *

The time and date that the cluster was registered with the stack.

*/ inline EcsCluster& WithRegisteredAt(const char* value) { SetRegisteredAt(value); return *this;} private: Aws::String m_ecsClusterArn; bool m_ecsClusterArnHasBeenSet = false; Aws::String m_ecsClusterName; bool m_ecsClusterNameHasBeenSet = false; Aws::String m_stackId; bool m_stackIdHasBeenSet = false; Aws::String m_registeredAt; bool m_registeredAtHasBeenSet = false; }; } // namespace Model } // namespace OpsWorks } // namespace Aws