/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeDeploy { namespace Model { /** *

Information about an application revision.

See Also:

AWS * API Reference

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

A comment about the revision.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A comment about the revision.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A comment about the revision.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A comment about the revision.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A comment about the revision.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A comment about the revision.

*/ inline GenericRevisionInfo& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A comment about the revision.

*/ inline GenericRevisionInfo& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A comment about the revision.

*/ inline GenericRevisionInfo& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The deployment groups for which this is the current target revision.

*/ inline const Aws::Vector& GetDeploymentGroups() const{ return m_deploymentGroups; } /** *

The deployment groups for which this is the current target revision.

*/ inline bool DeploymentGroupsHasBeenSet() const { return m_deploymentGroupsHasBeenSet; } /** *

The deployment groups for which this is the current target revision.

*/ inline void SetDeploymentGroups(const Aws::Vector& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = value; } /** *

The deployment groups for which this is the current target revision.

*/ inline void SetDeploymentGroups(Aws::Vector&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups = std::move(value); } /** *

The deployment groups for which this is the current target revision.

*/ inline GenericRevisionInfo& WithDeploymentGroups(const Aws::Vector& value) { SetDeploymentGroups(value); return *this;} /** *

The deployment groups for which this is the current target revision.

*/ inline GenericRevisionInfo& WithDeploymentGroups(Aws::Vector&& value) { SetDeploymentGroups(std::move(value)); return *this;} /** *

The deployment groups for which this is the current target revision.

*/ inline GenericRevisionInfo& AddDeploymentGroups(const Aws::String& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; } /** *

The deployment groups for which this is the current target revision.

*/ inline GenericRevisionInfo& AddDeploymentGroups(Aws::String&& value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(std::move(value)); return *this; } /** *

The deployment groups for which this is the current target revision.

*/ inline GenericRevisionInfo& AddDeploymentGroups(const char* value) { m_deploymentGroupsHasBeenSet = true; m_deploymentGroups.push_back(value); return *this; } /** *

When the revision was first used by CodeDeploy.

*/ inline const Aws::Utils::DateTime& GetFirstUsedTime() const{ return m_firstUsedTime; } /** *

When the revision was first used by CodeDeploy.

*/ inline bool FirstUsedTimeHasBeenSet() const { return m_firstUsedTimeHasBeenSet; } /** *

When the revision was first used by CodeDeploy.

*/ inline void SetFirstUsedTime(const Aws::Utils::DateTime& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = value; } /** *

When the revision was first used by CodeDeploy.

*/ inline void SetFirstUsedTime(Aws::Utils::DateTime&& value) { m_firstUsedTimeHasBeenSet = true; m_firstUsedTime = std::move(value); } /** *

When the revision was first used by CodeDeploy.

*/ inline GenericRevisionInfo& WithFirstUsedTime(const Aws::Utils::DateTime& value) { SetFirstUsedTime(value); return *this;} /** *

When the revision was first used by CodeDeploy.

*/ inline GenericRevisionInfo& WithFirstUsedTime(Aws::Utils::DateTime&& value) { SetFirstUsedTime(std::move(value)); return *this;} /** *

When the revision was last used by CodeDeploy.

*/ inline const Aws::Utils::DateTime& GetLastUsedTime() const{ return m_lastUsedTime; } /** *

When the revision was last used by CodeDeploy.

*/ inline bool LastUsedTimeHasBeenSet() const { return m_lastUsedTimeHasBeenSet; } /** *

When the revision was last used by CodeDeploy.

*/ inline void SetLastUsedTime(const Aws::Utils::DateTime& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = value; } /** *

When the revision was last used by CodeDeploy.

*/ inline void SetLastUsedTime(Aws::Utils::DateTime&& value) { m_lastUsedTimeHasBeenSet = true; m_lastUsedTime = std::move(value); } /** *

When the revision was last used by CodeDeploy.

*/ inline GenericRevisionInfo& WithLastUsedTime(const Aws::Utils::DateTime& value) { SetLastUsedTime(value); return *this;} /** *

When the revision was last used by CodeDeploy.

*/ inline GenericRevisionInfo& WithLastUsedTime(Aws::Utils::DateTime&& value) { SetLastUsedTime(std::move(value)); return *this;} /** *

When the revision was registered with CodeDeploy.

*/ inline const Aws::Utils::DateTime& GetRegisterTime() const{ return m_registerTime; } /** *

When the revision was registered with CodeDeploy.

*/ inline bool RegisterTimeHasBeenSet() const { return m_registerTimeHasBeenSet; } /** *

When the revision was registered with CodeDeploy.

*/ inline void SetRegisterTime(const Aws::Utils::DateTime& value) { m_registerTimeHasBeenSet = true; m_registerTime = value; } /** *

When the revision was registered with CodeDeploy.

*/ inline void SetRegisterTime(Aws::Utils::DateTime&& value) { m_registerTimeHasBeenSet = true; m_registerTime = std::move(value); } /** *

When the revision was registered with CodeDeploy.

*/ inline GenericRevisionInfo& WithRegisterTime(const Aws::Utils::DateTime& value) { SetRegisterTime(value); return *this;} /** *

When the revision was registered with CodeDeploy.

*/ inline GenericRevisionInfo& WithRegisterTime(Aws::Utils::DateTime&& value) { SetRegisterTime(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_deploymentGroups; bool m_deploymentGroupsHasBeenSet = false; Aws::Utils::DateTime m_firstUsedTime; bool m_firstUsedTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUsedTime; bool m_lastUsedTimeHasBeenSet = false; Aws::Utils::DateTime m_registerTime; bool m_registerTimeHasBeenSet = false; }; } // namespace Model } // namespace CodeDeploy } // namespace Aws