/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Basic information about a package.See Also:
AWS
* API Reference
The unique identifier of the package.
*/ inline const Aws::String& GetPackageID() const{ return m_packageID; } /** *The unique identifier of the package.
*/ inline bool PackageIDHasBeenSet() const { return m_packageIDHasBeenSet; } /** *The unique identifier of the package.
*/ inline void SetPackageID(const Aws::String& value) { m_packageIDHasBeenSet = true; m_packageID = value; } /** *The unique identifier of the package.
*/ inline void SetPackageID(Aws::String&& value) { m_packageIDHasBeenSet = true; m_packageID = std::move(value); } /** *The unique identifier of the package.
*/ inline void SetPackageID(const char* value) { m_packageIDHasBeenSet = true; m_packageID.assign(value); } /** *The unique identifier of the package.
*/ inline PackageDetails& WithPackageID(const Aws::String& value) { SetPackageID(value); return *this;} /** *The unique identifier of the package.
*/ inline PackageDetails& WithPackageID(Aws::String&& value) { SetPackageID(std::move(value)); return *this;} /** *The unique identifier of the package.
*/ inline PackageDetails& WithPackageID(const char* value) { SetPackageID(value); return *this;} /** *The user-specified name of the package.
*/ inline const Aws::String& GetPackageName() const{ return m_packageName; } /** *The user-specified name of the package.
*/ inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; } /** *The user-specified name of the package.
*/ inline void SetPackageName(const Aws::String& value) { m_packageNameHasBeenSet = true; m_packageName = value; } /** *The user-specified name of the package.
*/ inline void SetPackageName(Aws::String&& value) { m_packageNameHasBeenSet = true; m_packageName = std::move(value); } /** *The user-specified name of the package.
*/ inline void SetPackageName(const char* value) { m_packageNameHasBeenSet = true; m_packageName.assign(value); } /** *The user-specified name of the package.
*/ inline PackageDetails& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;} /** *The user-specified name of the package.
*/ inline PackageDetails& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;} /** *The user-specified name of the package.
*/ inline PackageDetails& WithPackageName(const char* value) { SetPackageName(value); return *this;} /** *The type of package.
*/ inline const PackageType& GetPackageType() const{ return m_packageType; } /** *The type of package.
*/ inline bool PackageTypeHasBeenSet() const { return m_packageTypeHasBeenSet; } /** *The type of package.
*/ inline void SetPackageType(const PackageType& value) { m_packageTypeHasBeenSet = true; m_packageType = value; } /** *The type of package.
*/ inline void SetPackageType(PackageType&& value) { m_packageTypeHasBeenSet = true; m_packageType = std::move(value); } /** *The type of package.
*/ inline PackageDetails& WithPackageType(const PackageType& value) { SetPackageType(value); return *this;} /** *The type of package.
*/ inline PackageDetails& WithPackageType(PackageType&& value) { SetPackageType(std::move(value)); return *this;} /** *User-specified description of the package.
*/ inline const Aws::String& GetPackageDescription() const{ return m_packageDescription; } /** *User-specified description of the package.
*/ inline bool PackageDescriptionHasBeenSet() const { return m_packageDescriptionHasBeenSet; } /** *User-specified description of the package.
*/ inline void SetPackageDescription(const Aws::String& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = value; } /** *User-specified description of the package.
*/ inline void SetPackageDescription(Aws::String&& value) { m_packageDescriptionHasBeenSet = true; m_packageDescription = std::move(value); } /** *User-specified description of the package.
*/ inline void SetPackageDescription(const char* value) { m_packageDescriptionHasBeenSet = true; m_packageDescription.assign(value); } /** *User-specified description of the package.
*/ inline PackageDetails& WithPackageDescription(const Aws::String& value) { SetPackageDescription(value); return *this;} /** *User-specified description of the package.
*/ inline PackageDetails& WithPackageDescription(Aws::String&& value) { SetPackageDescription(std::move(value)); return *this;} /** *User-specified description of the package.
*/ inline PackageDetails& WithPackageDescription(const char* value) { SetPackageDescription(value); return *this;} /** *The current status of the package. The available options are
* AVAILABLE
, COPYING
, COPY_FAILED
,
* VALIDATNG
, VALIDATION_FAILED
, DELETING
,
* and DELETE_FAILED
.
The current status of the package. The available options are
* AVAILABLE
, COPYING
, COPY_FAILED
,
* VALIDATNG
, VALIDATION_FAILED
, DELETING
,
* and DELETE_FAILED
.
The current status of the package. The available options are
* AVAILABLE
, COPYING
, COPY_FAILED
,
* VALIDATNG
, VALIDATION_FAILED
, DELETING
,
* and DELETE_FAILED
.
The current status of the package. The available options are
* AVAILABLE
, COPYING
, COPY_FAILED
,
* VALIDATNG
, VALIDATION_FAILED
, DELETING
,
* and DELETE_FAILED
.
The current status of the package. The available options are
* AVAILABLE
, COPYING
, COPY_FAILED
,
* VALIDATNG
, VALIDATION_FAILED
, DELETING
,
* and DELETE_FAILED
.
The current status of the package. The available options are
* AVAILABLE
, COPYING
, COPY_FAILED
,
* VALIDATNG
, VALIDATION_FAILED
, DELETING
,
* and DELETE_FAILED
.
The timestamp when the package was created.
*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *The timestamp when the package was created.
*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *The timestamp when the package was created.
*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *The timestamp when the package was created.
*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *The timestamp when the package was created.
*/ inline PackageDetails& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *The timestamp when the package was created.
*/ inline PackageDetails& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *Date and time when the package was last updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *Date and time when the package was last updated.
*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *Date and time when the package was last updated.
*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *Date and time when the package was last updated.
*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *Date and time when the package was last updated.
*/ inline PackageDetails& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *Date and time when the package was last updated.
*/ inline PackageDetails& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *The package version.
*/ inline const Aws::String& GetAvailablePackageVersion() const{ return m_availablePackageVersion; } /** *The package version.
*/ inline bool AvailablePackageVersionHasBeenSet() const { return m_availablePackageVersionHasBeenSet; } /** *The package version.
*/ inline void SetAvailablePackageVersion(const Aws::String& value) { m_availablePackageVersionHasBeenSet = true; m_availablePackageVersion = value; } /** *The package version.
*/ inline void SetAvailablePackageVersion(Aws::String&& value) { m_availablePackageVersionHasBeenSet = true; m_availablePackageVersion = std::move(value); } /** *The package version.
*/ inline void SetAvailablePackageVersion(const char* value) { m_availablePackageVersionHasBeenSet = true; m_availablePackageVersion.assign(value); } /** *The package version.
*/ inline PackageDetails& WithAvailablePackageVersion(const Aws::String& value) { SetAvailablePackageVersion(value); return *this;} /** *The package version.
*/ inline PackageDetails& WithAvailablePackageVersion(Aws::String&& value) { SetAvailablePackageVersion(std::move(value)); return *this;} /** *The package version.
*/ inline PackageDetails& WithAvailablePackageVersion(const char* value) { SetAvailablePackageVersion(value); return *this;} /** *Additional information if the package is in an error state. Null * otherwise.
*/ inline const ErrorDetails& GetErrorDetails() const{ return m_errorDetails; } /** *Additional information if the package is in an error state. Null * otherwise.
*/ inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; } /** *Additional information if the package is in an error state. Null * otherwise.
*/ inline void SetErrorDetails(const ErrorDetails& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; } /** *Additional information if the package is in an error state. Null * otherwise.
*/ inline void SetErrorDetails(ErrorDetails&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); } /** *Additional information if the package is in an error state. Null * otherwise.
*/ inline PackageDetails& WithErrorDetails(const ErrorDetails& value) { SetErrorDetails(value); return *this;} /** *Additional information if the package is in an error state. Null * otherwise.
*/ inline PackageDetails& WithErrorDetails(ErrorDetails&& value) { SetErrorDetails(std::move(value)); return *this;} private: Aws::String m_packageID; bool m_packageIDHasBeenSet = false; Aws::String m_packageName; bool m_packageNameHasBeenSet = false; PackageType m_packageType; bool m_packageTypeHasBeenSet = false; Aws::String m_packageDescription; bool m_packageDescriptionHasBeenSet = false; PackageStatus m_packageStatus; bool m_packageStatusHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; Aws::String m_availablePackageVersion; bool m_availablePackageVersionHasBeenSet = false; ErrorDetails m_errorDetails; bool m_errorDetailsHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws