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

Information about deployments related to the specified * deployment.

See Also:

AWS * API Reference

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

The deployment ID of the root deployment that triggered this deployment.

*/ inline const Aws::String& GetAutoUpdateOutdatedInstancesRootDeploymentId() const{ return m_autoUpdateOutdatedInstancesRootDeploymentId; } /** *

The deployment ID of the root deployment that triggered this deployment.

*/ inline bool AutoUpdateOutdatedInstancesRootDeploymentIdHasBeenSet() const { return m_autoUpdateOutdatedInstancesRootDeploymentIdHasBeenSet; } /** *

The deployment ID of the root deployment that triggered this deployment.

*/ inline void SetAutoUpdateOutdatedInstancesRootDeploymentId(const Aws::String& value) { m_autoUpdateOutdatedInstancesRootDeploymentIdHasBeenSet = true; m_autoUpdateOutdatedInstancesRootDeploymentId = value; } /** *

The deployment ID of the root deployment that triggered this deployment.

*/ inline void SetAutoUpdateOutdatedInstancesRootDeploymentId(Aws::String&& value) { m_autoUpdateOutdatedInstancesRootDeploymentIdHasBeenSet = true; m_autoUpdateOutdatedInstancesRootDeploymentId = std::move(value); } /** *

The deployment ID of the root deployment that triggered this deployment.

*/ inline void SetAutoUpdateOutdatedInstancesRootDeploymentId(const char* value) { m_autoUpdateOutdatedInstancesRootDeploymentIdHasBeenSet = true; m_autoUpdateOutdatedInstancesRootDeploymentId.assign(value); } /** *

The deployment ID of the root deployment that triggered this deployment.

*/ inline RelatedDeployments& WithAutoUpdateOutdatedInstancesRootDeploymentId(const Aws::String& value) { SetAutoUpdateOutdatedInstancesRootDeploymentId(value); return *this;} /** *

The deployment ID of the root deployment that triggered this deployment.

*/ inline RelatedDeployments& WithAutoUpdateOutdatedInstancesRootDeploymentId(Aws::String&& value) { SetAutoUpdateOutdatedInstancesRootDeploymentId(std::move(value)); return *this;} /** *

The deployment ID of the root deployment that triggered this deployment.

*/ inline RelatedDeployments& WithAutoUpdateOutdatedInstancesRootDeploymentId(const char* value) { SetAutoUpdateOutdatedInstancesRootDeploymentId(value); return *this;} /** *

The deployment IDs of 'auto-update outdated instances' deployments triggered * by this deployment.

*/ inline const Aws::Vector& GetAutoUpdateOutdatedInstancesDeploymentIds() const{ return m_autoUpdateOutdatedInstancesDeploymentIds; } /** *

The deployment IDs of 'auto-update outdated instances' deployments triggered * by this deployment.

*/ inline bool AutoUpdateOutdatedInstancesDeploymentIdsHasBeenSet() const { return m_autoUpdateOutdatedInstancesDeploymentIdsHasBeenSet; } /** *

The deployment IDs of 'auto-update outdated instances' deployments triggered * by this deployment.

*/ inline void SetAutoUpdateOutdatedInstancesDeploymentIds(const Aws::Vector& value) { m_autoUpdateOutdatedInstancesDeploymentIdsHasBeenSet = true; m_autoUpdateOutdatedInstancesDeploymentIds = value; } /** *

The deployment IDs of 'auto-update outdated instances' deployments triggered * by this deployment.

*/ inline void SetAutoUpdateOutdatedInstancesDeploymentIds(Aws::Vector&& value) { m_autoUpdateOutdatedInstancesDeploymentIdsHasBeenSet = true; m_autoUpdateOutdatedInstancesDeploymentIds = std::move(value); } /** *

The deployment IDs of 'auto-update outdated instances' deployments triggered * by this deployment.

*/ inline RelatedDeployments& WithAutoUpdateOutdatedInstancesDeploymentIds(const Aws::Vector& value) { SetAutoUpdateOutdatedInstancesDeploymentIds(value); return *this;} /** *

The deployment IDs of 'auto-update outdated instances' deployments triggered * by this deployment.

*/ inline RelatedDeployments& WithAutoUpdateOutdatedInstancesDeploymentIds(Aws::Vector&& value) { SetAutoUpdateOutdatedInstancesDeploymentIds(std::move(value)); return *this;} /** *

The deployment IDs of 'auto-update outdated instances' deployments triggered * by this deployment.

*/ inline RelatedDeployments& AddAutoUpdateOutdatedInstancesDeploymentIds(const Aws::String& value) { m_autoUpdateOutdatedInstancesDeploymentIdsHasBeenSet = true; m_autoUpdateOutdatedInstancesDeploymentIds.push_back(value); return *this; } /** *

The deployment IDs of 'auto-update outdated instances' deployments triggered * by this deployment.

*/ inline RelatedDeployments& AddAutoUpdateOutdatedInstancesDeploymentIds(Aws::String&& value) { m_autoUpdateOutdatedInstancesDeploymentIdsHasBeenSet = true; m_autoUpdateOutdatedInstancesDeploymentIds.push_back(std::move(value)); return *this; } /** *

The deployment IDs of 'auto-update outdated instances' deployments triggered * by this deployment.

*/ inline RelatedDeployments& AddAutoUpdateOutdatedInstancesDeploymentIds(const char* value) { m_autoUpdateOutdatedInstancesDeploymentIdsHasBeenSet = true; m_autoUpdateOutdatedInstancesDeploymentIds.push_back(value); return *this; } private: Aws::String m_autoUpdateOutdatedInstancesRootDeploymentId; bool m_autoUpdateOutdatedInstancesRootDeploymentIdHasBeenSet = false; Aws::Vector m_autoUpdateOutdatedInstancesDeploymentIds; bool m_autoUpdateOutdatedInstancesDeploymentIdsHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws