/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Details about a package version.See Also:
AWS
* API Reference
The package version.
*/ inline const Aws::String& GetPackageVersion() const{ return m_packageVersion; } /** *The package version.
*/ inline bool PackageVersionHasBeenSet() const { return m_packageVersionHasBeenSet; } /** *The package version.
*/ inline void SetPackageVersion(const Aws::String& value) { m_packageVersionHasBeenSet = true; m_packageVersion = value; } /** *The package version.
*/ inline void SetPackageVersion(Aws::String&& value) { m_packageVersionHasBeenSet = true; m_packageVersion = std::move(value); } /** *The package version.
*/ inline void SetPackageVersion(const char* value) { m_packageVersionHasBeenSet = true; m_packageVersion.assign(value); } /** *The package version.
*/ inline PackageVersionHistory& WithPackageVersion(const Aws::String& value) { SetPackageVersion(value); return *this;} /** *The package version.
*/ inline PackageVersionHistory& WithPackageVersion(Aws::String&& value) { SetPackageVersion(std::move(value)); return *this;} /** *The package version.
*/ inline PackageVersionHistory& WithPackageVersion(const char* value) { SetPackageVersion(value); return *this;} /** *A message associated with the package version when it was uploaded.
*/ inline const Aws::String& GetCommitMessage() const{ return m_commitMessage; } /** *A message associated with the package version when it was uploaded.
*/ inline bool CommitMessageHasBeenSet() const { return m_commitMessageHasBeenSet; } /** *A message associated with the package version when it was uploaded.
*/ inline void SetCommitMessage(const Aws::String& value) { m_commitMessageHasBeenSet = true; m_commitMessage = value; } /** *A message associated with the package version when it was uploaded.
*/ inline void SetCommitMessage(Aws::String&& value) { m_commitMessageHasBeenSet = true; m_commitMessage = std::move(value); } /** *A message associated with the package version when it was uploaded.
*/ inline void SetCommitMessage(const char* value) { m_commitMessageHasBeenSet = true; m_commitMessage.assign(value); } /** *A message associated with the package version when it was uploaded.
*/ inline PackageVersionHistory& WithCommitMessage(const Aws::String& value) { SetCommitMessage(value); return *this;} /** *A message associated with the package version when it was uploaded.
*/ inline PackageVersionHistory& WithCommitMessage(Aws::String&& value) { SetCommitMessage(std::move(value)); return *this;} /** *A message associated with the package version when it was uploaded.
*/ inline PackageVersionHistory& WithCommitMessage(const char* value) { SetCommitMessage(value); return *this;} /** *The date and time when the package was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The date and time when the package was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The date and time when the package was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The date and time when the package was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The date and time when the package was created.
*/ inline PackageVersionHistory& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The date and time when the package was created.
*/ 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 OpenSearchService } // namespace Aws