This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codedeploy/include/aws/codedeploy/model/InstanceSummary.h

356 lines
14 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codedeploy/model/InstanceStatus.h>
#include <aws/core/utils/DateTime.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codedeploy/model/InstanceType.h>
#include <aws/codedeploy/model/LifecycleEvent.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeDeploy
{
namespace Model
{
/**
* <p>Information about an instance in a deployment.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codedeploy-2014-10-06/InstanceSummary">AWS
* API Reference</a></p>
*/
class AWS_CODEDEPLOY_API InstanceSummary
{
public:
InstanceSummary();
InstanceSummary(Aws::Utils::Json::JsonView jsonValue);
InstanceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The unique ID of a deployment. </p>
*/
inline const Aws::String& GetDeploymentId() const{ return m_deploymentId; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const Aws::String& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(Aws::String&& value) { m_deploymentIdHasBeenSet = true; m_deploymentId = std::move(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline void SetDeploymentId(const char* value) { m_deploymentIdHasBeenSet = true; m_deploymentId.assign(value); }
/**
* <p> The unique ID of a deployment. </p>
*/
inline InstanceSummary& WithDeploymentId(const Aws::String& value) { SetDeploymentId(value); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline InstanceSummary& WithDeploymentId(Aws::String&& value) { SetDeploymentId(std::move(value)); return *this;}
/**
* <p> The unique ID of a deployment. </p>
*/
inline InstanceSummary& WithDeploymentId(const char* value) { SetDeploymentId(value); return *this;}
/**
* <p>The instance ID.</p>
*/
inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
/**
* <p>The instance ID.</p>
*/
inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
/**
* <p>The instance ID.</p>
*/
inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
/**
* <p>The instance ID.</p>
*/
inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
/**
* <p>The instance ID.</p>
*/
inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
/**
* <p>The instance ID.</p>
*/
inline InstanceSummary& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
/**
* <p>The instance ID.</p>
*/
inline InstanceSummary& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
/**
* <p>The instance ID.</p>
*/
inline InstanceSummary& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline const InstanceStatus& GetStatus() const{ return m_status; }
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline void SetStatus(const InstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline void SetStatus(InstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline InstanceSummary& WithStatus(const InstanceStatus& value) { SetStatus(value); return *this;}
/**
* <p>The deployment status for this instance:</p> <ul> <li> <p>
* <code>Pending</code>: The deployment is pending for this instance.</p> </li>
* <li> <p> <code>In Progress</code>: The deployment is in progress for this
* instance.</p> </li> <li> <p> <code>Succeeded</code>: The deployment has
* succeeded for this instance.</p> </li> <li> <p> <code>Failed</code>: The
* deployment has failed for this instance.</p> </li> <li> <p>
* <code>Skipped</code>: The deployment has been skipped for this instance.</p>
* </li> <li> <p> <code>Unknown</code>: The deployment status is unknown for this
* instance.</p> </li> </ul>
*/
inline InstanceSummary& WithStatus(InstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline InstanceSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
/**
* <p>A timestamp that indicates when the instance information was last
* updated.</p>
*/
inline InstanceSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline const Aws::Vector<LifecycleEvent>& GetLifecycleEvents() const{ return m_lifecycleEvents; }
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline bool LifecycleEventsHasBeenSet() const { return m_lifecycleEventsHasBeenSet; }
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline void SetLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = value; }
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline void SetLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents = std::move(value); }
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline InstanceSummary& WithLifecycleEvents(const Aws::Vector<LifecycleEvent>& value) { SetLifecycleEvents(value); return *this;}
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline InstanceSummary& WithLifecycleEvents(Aws::Vector<LifecycleEvent>&& value) { SetLifecycleEvents(std::move(value)); return *this;}
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline InstanceSummary& AddLifecycleEvents(const LifecycleEvent& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(value); return *this; }
/**
* <p>A list of lifecycle events for this instance.</p>
*/
inline InstanceSummary& AddLifecycleEvents(LifecycleEvent&& value) { m_lifecycleEventsHasBeenSet = true; m_lifecycleEvents.push_back(std::move(value)); return *this; }
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline InstanceSummary& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
/**
* <p>Information about which environment an instance belongs to in a blue/green
* deployment.</p> <ul> <li> <p>BLUE: The instance is part of the original
* environment.</p> </li> <li> <p>GREEN: The instance is part of the replacement
* environment.</p> </li> </ul>
*/
inline InstanceSummary& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
private:
Aws::String m_deploymentId;
bool m_deploymentIdHasBeenSet;
Aws::String m_instanceId;
bool m_instanceIdHasBeenSet;
InstanceStatus m_status;
bool m_statusHasBeenSet;
Aws::Utils::DateTime m_lastUpdatedAt;
bool m_lastUpdatedAtHasBeenSet;
Aws::Vector<LifecycleEvent> m_lifecycleEvents;
bool m_lifecycleEventsHasBeenSet;
InstanceType m_instanceType;
bool m_instanceTypeHasBeenSet;
};
} // namespace Model
} // namespace CodeDeploy
} // namespace Aws