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-appconfig/include/aws/appconfig/model/DeploymentEvent.h

236 lines
9.7 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/appconfig/AppConfig_EXPORTS.h>
#include <aws/appconfig/model/DeploymentEventType.h>
#include <aws/appconfig/model/TriggeredBy.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace AppConfig
{
namespace Model
{
/**
* <p>An object that describes a deployment event.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/appconfig-2019-10-09/DeploymentEvent">AWS
* API Reference</a></p>
*/
class AWS_APPCONFIG_API DeploymentEvent
{
public:
DeploymentEvent();
DeploymentEvent(Aws::Utils::Json::JsonView jsonValue);
DeploymentEvent& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline const DeploymentEventType& GetEventType() const{ return m_eventType; }
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline bool EventTypeHasBeenSet() const { return m_eventTypeHasBeenSet; }
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline void SetEventType(const DeploymentEventType& value) { m_eventTypeHasBeenSet = true; m_eventType = value; }
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline void SetEventType(DeploymentEventType&& value) { m_eventTypeHasBeenSet = true; m_eventType = std::move(value); }
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline DeploymentEvent& WithEventType(const DeploymentEventType& value) { SetEventType(value); return *this;}
/**
* <p>The type of deployment event. Deployment event types include the start, stop,
* or completion of a deployment; a percentage update; the start or stop of a bake
* period; the start or completion of a rollback.</p>
*/
inline DeploymentEvent& WithEventType(DeploymentEventType&& value) { SetEventType(std::move(value)); return *this;}
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline const TriggeredBy& GetTriggeredBy() const{ return m_triggeredBy; }
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline bool TriggeredByHasBeenSet() const { return m_triggeredByHasBeenSet; }
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline void SetTriggeredBy(const TriggeredBy& value) { m_triggeredByHasBeenSet = true; m_triggeredBy = value; }
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline void SetTriggeredBy(TriggeredBy&& value) { m_triggeredByHasBeenSet = true; m_triggeredBy = std::move(value); }
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline DeploymentEvent& WithTriggeredBy(const TriggeredBy& value) { SetTriggeredBy(value); return *this;}
/**
* <p>The entity that triggered the deployment event. Events can be triggered by a
* user, AWS AppConfig, an Amazon CloudWatch alarm, or an internal error.</p>
*/
inline DeploymentEvent& WithTriggeredBy(TriggeredBy&& value) { SetTriggeredBy(std::move(value)); return *this;}
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline DeploymentEvent& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline DeploymentEvent& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>A description of the deployment event. Descriptions include, but are not
* limited to, the user account or the CloudWatch alarm ARN that initiated a
* rollback, the percentage of hosts that received the deployment, or in the case
* of an internal error, a recommendation to attempt a new deployment.</p>
*/
inline DeploymentEvent& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The date and time the event occurred.</p>
*/
inline const Aws::Utils::DateTime& GetOccurredAt() const{ return m_occurredAt; }
/**
* <p>The date and time the event occurred.</p>
*/
inline bool OccurredAtHasBeenSet() const { return m_occurredAtHasBeenSet; }
/**
* <p>The date and time the event occurred.</p>
*/
inline void SetOccurredAt(const Aws::Utils::DateTime& value) { m_occurredAtHasBeenSet = true; m_occurredAt = value; }
/**
* <p>The date and time the event occurred.</p>
*/
inline void SetOccurredAt(Aws::Utils::DateTime&& value) { m_occurredAtHasBeenSet = true; m_occurredAt = std::move(value); }
/**
* <p>The date and time the event occurred.</p>
*/
inline DeploymentEvent& WithOccurredAt(const Aws::Utils::DateTime& value) { SetOccurredAt(value); return *this;}
/**
* <p>The date and time the event occurred.</p>
*/
inline DeploymentEvent& WithOccurredAt(Aws::Utils::DateTime&& value) { SetOccurredAt(std::move(value)); return *this;}
private:
DeploymentEventType m_eventType;
bool m_eventTypeHasBeenSet;
TriggeredBy m_triggeredBy;
bool m_triggeredByHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::Utils::DateTime m_occurredAt;
bool m_occurredAtHasBeenSet;
};
} // namespace Model
} // namespace AppConfig
} // namespace Aws