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

Details of a package version.

See Also:

AWS * API Reference

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

Version of the package.

*/ inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; } /** *

Version of the package.

*/ inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; } /** *

Version of the package.

*/ inline void SetPackageVersion(const Aws::String& value) { m_packageVersionHasBeenSet = true; m_packageVersion = value; } /** *

Version of the package.

*/ inline void SetPackageVersion(Aws::String&& value) { m_packageVersionHasBeenSet = true; m_packageVersion = std::move(value); } /** *

Version of the package.

*/ inline void SetPackageVersion(const char* value) { m_packageVersionHasBeenSet = true; m_packageVersion.assign(value); } /** *

Version of the package.

*/ inline PackageVersionHistory& WithPackageVersion(const Aws::String& value) { SetPackageVersion(value); return *this;} /** *

Version of the package.

*/ inline PackageVersionHistory& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;} /** *

Version of the package.

*/ inline PackageVersionHistory& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;} /** *

A message associated with the version.

*/ inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; } /** *

A message associated with the version.

*/ inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; } /** *

A message associated with the version.

*/ inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; } /** *

A message associated with the version.

*/ inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); } /** *

A message associated with the version.

*/ inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); } /** *

A message associated with the version.

*/ inline PackageVersionHistory& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;} /** *

A message associated with the version.

*/ inline PackageVersionHistory& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;} /** *

A message associated with the version.

*/ inline PackageVersionHistory& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;} /** *

Timestamp which tells creation time of the package version.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

Timestamp which tells creation time of the package version.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

Timestamp which tells creation time of the package version.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

Timestamp which tells creation time of the package version.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

Timestamp which tells creation time of the package version.

*/ inline PackageVersionHistory& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

Timestamp which tells creation time of the package version.

*/ inline PackageVersionHistory& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} private: Aws::String m_packageVersion; bool m_packageVersionHasBeenSet = false; Aws::String m_commitMessage; bool m_commitMessageHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws