AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AssetSummary.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/codeartifact/model/HashAlgorithm.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeArtifact
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CODEARTIFACT_API AssetSummary() = default;
38 AWS_CODEARTIFACT_API AssetSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEARTIFACT_API AssetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 AssetSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline long long GetSize() const { return m_size; }
60 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
61 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
62 inline AssetSummary& WithSize(long long value) { SetSize(value); return *this;}
64
66
69 inline const Aws::Map<HashAlgorithm, Aws::String>& GetHashes() const { return m_hashes; }
70 inline bool HashesHasBeenSet() const { return m_hashesHasBeenSet; }
71 template<typename HashesT = Aws::Map<HashAlgorithm, Aws::String>>
72 void SetHashes(HashesT&& value) { m_hashesHasBeenSet = true; m_hashes = std::forward<HashesT>(value); }
73 template<typename HashesT = Aws::Map<HashAlgorithm, Aws::String>>
74 AssetSummary& WithHashes(HashesT&& value) { SetHashes(std::forward<HashesT>(value)); return *this;}
76 m_hashesHasBeenSet = true; m_hashes.emplace(key, value); return *this;
77 }
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 long long m_size{0};
85 bool m_sizeHasBeenSet = false;
86
88 bool m_hashesHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CodeArtifact
93} // namespace Aws
AssetSummary & WithName(NameT &&value)
AWS_CODEARTIFACT_API AssetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AssetSummary & WithSize(long long value)
AssetSummary & WithHashes(HashesT &&value)
AWS_CODEARTIFACT_API AssetSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetName() const
AssetSummary & AddHashes(HashAlgorithm key, Aws::String value)
const Aws::Map< HashAlgorithm, Aws::String > & GetHashes() const
AWS_CODEARTIFACT_API AssetSummary()=default
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue