/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoT { namespace Model { class CreatePackageVersionResult { public: AWS_IOT_API CreatePackageVersionResult(); AWS_IOT_API CreatePackageVersionResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API CreatePackageVersionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) for the package.

*/ inline const Aws::String& GetPackageVersionArn() const{ return m_packageVersionArn; } /** *

The Amazon Resource Name (ARN) for the package.

*/ inline void SetPackageVersionArn(const Aws::String& value) { m_packageVersionArn = value; } /** *

The Amazon Resource Name (ARN) for the package.

*/ inline void SetPackageVersionArn(Aws::String&& value) { m_packageVersionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the package.

*/ inline void SetPackageVersionArn(const char* value) { m_packageVersionArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the package.

*/ inline CreatePackageVersionResult& WithPackageVersionArn(const Aws::String& value) { SetPackageVersionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the package.

*/ inline CreatePackageVersionResult& WithPackageVersionArn(Aws::String&& value) { SetPackageVersionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the package.

*/ inline CreatePackageVersionResult& WithPackageVersionArn(const char* value) { SetPackageVersionArn(value); return *this;} /** *

The name of the associated package.

*/ inline const Aws::String& GetPackageName() const{ return m_packageName; } /** *

The name of the associated package.

*/ inline void SetPackageName(const Aws::String& value) { m_packageName = value; } /** *

The name of the associated package.

*/ inline void SetPackageName(Aws::String&& value) { m_packageName = std::move(value); } /** *

The name of the associated package.

*/ inline void SetPackageName(const char* value) { m_packageName.assign(value); } /** *

The name of the associated package.

*/ inline CreatePackageVersionResult& WithPackageName(const Aws::String& value) { SetPackageName(value); return *this;} /** *

The name of the associated package.

*/ inline CreatePackageVersionResult& WithPackageName(Aws::String&& value) { SetPackageName(std::move(value)); return *this;} /** *

The name of the associated package.

*/ inline CreatePackageVersionResult& WithPackageName(const char* value) { SetPackageName(value); return *this;} /** *

The name of the new package version.

*/ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

The name of the new package version.

*/ inline void SetVersionName(const Aws::String& value) { m_versionName = value; } /** *

The name of the new package version.

*/ inline void SetVersionName(Aws::String&& value) { m_versionName = std::move(value); } /** *

The name of the new package version.

*/ inline void SetVersionName(const char* value) { m_versionName.assign(value); } /** *

The name of the new package version.

*/ inline CreatePackageVersionResult& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

The name of the new package version.

*/ inline CreatePackageVersionResult& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

The name of the new package version.

*/ inline CreatePackageVersionResult& WithVersionName(const char* value) { SetVersionName(value); return *this;} /** *

The package version description.

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

The package version description.

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

The package version description.

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

The package version description.

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

The package version description.

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

The package version description.

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

The package version description.

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

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline const Aws::Map& GetAttributes() const{ return m_attributes; } /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline void SetAttributes(const Aws::Map& value) { m_attributes = value; } /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline void SetAttributes(Aws::Map&& value) { m_attributes = std::move(value); } /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline CreatePackageVersionResult& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline CreatePackageVersionResult& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline CreatePackageVersionResult& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributes.emplace(key, value); return *this; } /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline CreatePackageVersionResult& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributes.emplace(std::move(key), value); return *this; } /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline CreatePackageVersionResult& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributes.emplace(key, std::move(value)); return *this; } /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline CreatePackageVersionResult& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline CreatePackageVersionResult& AddAttributes(const char* key, Aws::String&& value) { m_attributes.emplace(key, std::move(value)); return *this; } /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline CreatePackageVersionResult& AddAttributes(Aws::String&& key, const char* value) { m_attributes.emplace(std::move(key), value); return *this; } /** *

Metadata that were added to the package version that can be used to define a * package version’s configuration.

*/ inline CreatePackageVersionResult& AddAttributes(const char* key, const char* value) { m_attributes.emplace(key, value); return *this; } /** *

The status of the package version. For more information, see Package * version lifecycle.

*/ inline const PackageVersionStatus& GetStatus() const{ return m_status; } /** *

The status of the package version. For more information, see Package * version lifecycle.

*/ inline void SetStatus(const PackageVersionStatus& value) { m_status = value; } /** *

The status of the package version. For more information, see Package * version lifecycle.

*/ inline void SetStatus(PackageVersionStatus&& value) { m_status = std::move(value); } /** *

The status of the package version. For more information, see Package * version lifecycle.

*/ inline CreatePackageVersionResult& WithStatus(const PackageVersionStatus& value) { SetStatus(value); return *this;} /** *

The status of the package version. For more information, see Package * version lifecycle.

*/ inline CreatePackageVersionResult& WithStatus(PackageVersionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

Error reason for a package version failure during creation or update.

*/ inline const Aws::String& GetErrorReason() const{ return m_errorReason; } /** *

Error reason for a package version failure during creation or update.

*/ inline void SetErrorReason(const Aws::String& value) { m_errorReason = value; } /** *

Error reason for a package version failure during creation or update.

*/ inline void SetErrorReason(Aws::String&& value) { m_errorReason = std::move(value); } /** *

Error reason for a package version failure during creation or update.

*/ inline void SetErrorReason(const char* value) { m_errorReason.assign(value); } /** *

Error reason for a package version failure during creation or update.

*/ inline CreatePackageVersionResult& WithErrorReason(const Aws::String& value) { SetErrorReason(value); return *this;} /** *

Error reason for a package version failure during creation or update.

*/ inline CreatePackageVersionResult& WithErrorReason(Aws::String&& value) { SetErrorReason(std::move(value)); return *this;} /** *

Error reason for a package version failure during creation or update.

*/ inline CreatePackageVersionResult& WithErrorReason(const char* value) { SetErrorReason(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreatePackageVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreatePackageVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreatePackageVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_packageVersionArn; Aws::String m_packageName; Aws::String m_versionName; Aws::String m_description; Aws::Map m_attributes; PackageVersionStatus m_status; Aws::String m_errorReason; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws