This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

180 lines
5.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/codeartifact/model/HashAlgorithm.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeArtifact
{
namespace Model
{
/**
* <p> Contains details about a package version asset. </p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/AssetSummary">AWS
* API Reference</a></p>
*/
class AWS_CODEARTIFACT_API AssetSummary
{
public:
AssetSummary();
AssetSummary(Aws::Utils::Json::JsonView jsonValue);
AssetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p> The name of the asset. </p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p> The name of the asset. </p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p> The name of the asset. </p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p> The name of the asset. </p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p> The name of the asset. </p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p> The name of the asset. </p>
*/
inline AssetSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p> The name of the asset. </p>
*/
inline AssetSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p> The name of the asset. </p>
*/
inline AssetSummary& WithName(const char* value) { SetName(value); return *this;}
/**
* <p> The size of the asset. </p>
*/
inline long long GetSize() const{ return m_size; }
/**
* <p> The size of the asset. </p>
*/
inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
/**
* <p> The size of the asset. </p>
*/
inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
/**
* <p> The size of the asset. </p>
*/
inline AssetSummary& WithSize(long long value) { SetSize(value); return *this;}
/**
* <p> The hashes of the asset. </p>
*/
inline const Aws::Map<HashAlgorithm, Aws::String>& GetHashes() const{ return m_hashes; }
/**
* <p> The hashes of the asset. </p>
*/
inline bool HashesHasBeenSet() const { return m_hashesHasBeenSet; }
/**
* <p> The hashes of the asset. </p>
*/
inline void SetHashes(const Aws::Map<HashAlgorithm, Aws::String>& value) { m_hashesHasBeenSet = true; m_hashes = value; }
/**
* <p> The hashes of the asset. </p>
*/
inline void SetHashes(Aws::Map<HashAlgorithm, Aws::String>&& value) { m_hashesHasBeenSet = true; m_hashes = std::move(value); }
/**
* <p> The hashes of the asset. </p>
*/
inline AssetSummary& WithHashes(const Aws::Map<HashAlgorithm, Aws::String>& value) { SetHashes(value); return *this;}
/**
* <p> The hashes of the asset. </p>
*/
inline AssetSummary& WithHashes(Aws::Map<HashAlgorithm, Aws::String>&& value) { SetHashes(std::move(value)); return *this;}
/**
* <p> The hashes of the asset. </p>
*/
inline AssetSummary& AddHashes(const HashAlgorithm& key, const Aws::String& value) { m_hashesHasBeenSet = true; m_hashes.emplace(key, value); return *this; }
/**
* <p> The hashes of the asset. </p>
*/
inline AssetSummary& AddHashes(HashAlgorithm&& key, const Aws::String& value) { m_hashesHasBeenSet = true; m_hashes.emplace(std::move(key), value); return *this; }
/**
* <p> The hashes of the asset. </p>
*/
inline AssetSummary& AddHashes(const HashAlgorithm& key, Aws::String&& value) { m_hashesHasBeenSet = true; m_hashes.emplace(key, std::move(value)); return *this; }
/**
* <p> The hashes of the asset. </p>
*/
inline AssetSummary& AddHashes(HashAlgorithm&& key, Aws::String&& value) { m_hashesHasBeenSet = true; m_hashes.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p> The hashes of the asset. </p>
*/
inline AssetSummary& AddHashes(HashAlgorithm&& key, const char* value) { m_hashesHasBeenSet = true; m_hashes.emplace(std::move(key), value); return *this; }
/**
* <p> The hashes of the asset. </p>
*/
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;
long long m_size;
bool m_sizeHasBeenSet;
Aws::Map<HashAlgorithm, Aws::String> m_hashes;
bool m_hashesHasBeenSet;
};
} // namespace Model
} // namespace CodeArtifact
} // namespace Aws