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

Contains details about a package version asset.

See Also:

* AWS * API Reference

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

The name of the asset.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the asset.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the asset.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the asset.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the asset.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the asset.

*/ inline AssetSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the asset.

*/ inline AssetSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the asset.

*/ inline AssetSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The size of the asset.

*/ inline long long GetSize() const{ return m_size; } /** *

The size of the asset.

*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *

The size of the asset.

*/ inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; } /** *

The size of the asset.

*/ inline AssetSummary& WithSize(long long value) { SetSize(value); return *this;} /** *

The hashes of the asset.

*/ inline const Aws::Map& GetHashes() const{ return m_hashes; } /** *

The hashes of the asset.

*/ inline bool HashesHasBeenSet() const { return m_hashesHasBeenSet; } /** *

The hashes of the asset.

*/ inline void SetHashes(const Aws::Map& value) { m_hashesHasBeenSet = true; m_hashes = value; } /** *

The hashes of the asset.

*/ inline void SetHashes(Aws::Map&& value) { m_hashesHasBeenSet = true; m_hashes = std::move(value); } /** *

The hashes of the asset.

*/ inline AssetSummary& WithHashes(const Aws::Map& value) { SetHashes(value); return *this;} /** *

The hashes of the asset.

*/ inline AssetSummary& WithHashes(Aws::Map&& value) { SetHashes(std::move(value)); return *this;} /** *

The hashes of the asset.

*/ inline AssetSummary& AddHashes(const HashAlgorithm& key, const Aws::String& value) { m_hashesHasBeenSet = true; m_hashes.emplace(key, value); return *this; } /** *

The hashes of the asset.

*/ inline AssetSummary& AddHashes(HashAlgorithm&& key, const Aws::String& value) { m_hashesHasBeenSet = true; m_hashes.emplace(std::move(key), value); return *this; } /** *

The hashes of the asset.

*/ inline AssetSummary& AddHashes(const HashAlgorithm& key, Aws::String&& value) { m_hashesHasBeenSet = true; m_hashes.emplace(key, std::move(value)); return *this; } /** *

The hashes of the asset.

*/ inline AssetSummary& AddHashes(HashAlgorithm&& key, Aws::String&& value) { m_hashesHasBeenSet = true; m_hashes.emplace(std::move(key), std::move(value)); return *this; } /** *

The hashes of the asset.

*/ inline AssetSummary& AddHashes(HashAlgorithm&& key, const char* value) { m_hashesHasBeenSet = true; m_hashes.emplace(std::move(key), value); return *this; } /** *

The hashes of the asset.

*/ inline AssetSummary& AddHashes(const HashAlgorithm& key, const char* value) { m_hashesHasBeenSet = true; m_hashes.emplace(key, value); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; long long m_size; bool m_sizeHasBeenSet = false; Aws::Map m_hashes; bool m_hashesHasBeenSet = false; }; } // namespace Model } // namespace CodeArtifact } // namespace Aws