AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssetSummary.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/HashAlgorithm.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeArtifact {
22namespace Model {
23
31 public:
32 AWS_CODEARTIFACT_API AssetSummary() = default;
33 AWS_CODEARTIFACT_API AssetSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEARTIFACT_API AssetSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 AssetSummary& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
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) {
62 m_sizeHasBeenSet = true;
63 m_size = value;
64 }
65 inline AssetSummary& WithSize(long long value) {
66 SetSize(value);
67 return *this;
68 }
70
72
75 inline const Aws::Map<HashAlgorithm, Aws::String>& GetHashes() const { return m_hashes; }
76 inline bool HashesHasBeenSet() const { return m_hashesHasBeenSet; }
77 template <typename HashesT = Aws::Map<HashAlgorithm, Aws::String>>
78 void SetHashes(HashesT&& value) {
79 m_hashesHasBeenSet = true;
80 m_hashes = std::forward<HashesT>(value);
81 }
82 template <typename HashesT = Aws::Map<HashAlgorithm, Aws::String>>
83 AssetSummary& WithHashes(HashesT&& value) {
84 SetHashes(std::forward<HashesT>(value));
85 return *this;
86 }
88 m_hashesHasBeenSet = true;
89 m_hashes.emplace(key, value);
90 return *this;
91 }
93 private:
94 Aws::String m_name;
95
96 long long m_size{0};
97
99 bool m_nameHasBeenSet = false;
100 bool m_sizeHasBeenSet = false;
101 bool m_hashesHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace CodeArtifact
106} // 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