AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
51 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
52 inline AssetSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
53 inline AssetSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
54 inline AssetSummary& WithName(const char* value) { SetName(value); return *this;}
56
58
61 inline long long GetSize() const{ return m_size; }
62 inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; }
63 inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; }
64 inline AssetSummary& WithSize(long long value) { SetSize(value); return *this;}
66
68
71 inline const Aws::Map<HashAlgorithm, Aws::String>& GetHashes() const{ return m_hashes; }
72 inline bool HashesHasBeenSet() const { return m_hashesHasBeenSet; }
73 inline void SetHashes(const Aws::Map<HashAlgorithm, Aws::String>& value) { m_hashesHasBeenSet = true; m_hashes = value; }
74 inline void SetHashes(Aws::Map<HashAlgorithm, Aws::String>&& value) { m_hashesHasBeenSet = true; m_hashes = std::move(value); }
75 inline AssetSummary& WithHashes(const Aws::Map<HashAlgorithm, Aws::String>& value) { SetHashes(value); return *this;}
76 inline AssetSummary& WithHashes(Aws::Map<HashAlgorithm, Aws::String>&& value) { SetHashes(std::move(value)); return *this;}
77 inline AssetSummary& AddHashes(const HashAlgorithm& key, const Aws::String& value) { m_hashesHasBeenSet = true; m_hashes.emplace(key, value); return *this; }
78 inline AssetSummary& AddHashes(HashAlgorithm&& key, const Aws::String& value) { m_hashesHasBeenSet = true; m_hashes.emplace(std::move(key), value); return *this; }
79 inline AssetSummary& AddHashes(const HashAlgorithm& key, Aws::String&& value) { m_hashesHasBeenSet = true; m_hashes.emplace(key, std::move(value)); return *this; }
80 inline AssetSummary& AddHashes(HashAlgorithm&& key, Aws::String&& value) { m_hashesHasBeenSet = true; m_hashes.emplace(std::move(key), std::move(value)); return *this; }
81 inline AssetSummary& AddHashes(HashAlgorithm&& key, const char* value) { m_hashesHasBeenSet = true; m_hashes.emplace(std::move(key), value); return *this; }
82 inline AssetSummary& AddHashes(const HashAlgorithm& key, const char* value) { m_hashesHasBeenSet = true; m_hashes.emplace(key, value); return *this; }
84 private:
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
89 long long m_size;
90 bool m_sizeHasBeenSet = false;
91
93 bool m_hashesHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace CodeArtifact
98} // namespace Aws
AssetSummary & WithName(const Aws::String &value)
AssetSummary & AddHashes(HashAlgorithm &&key, const char *value)
AWS_CODEARTIFACT_API AssetSummary()
AssetSummary & AddHashes(HashAlgorithm &&key, Aws::String &&value)
AssetSummary & AddHashes(const HashAlgorithm &key, Aws::String &&value)
AWS_CODEARTIFACT_API AssetSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
AssetSummary & AddHashes(const HashAlgorithm &key, const Aws::String &value)
AssetSummary & WithSize(long long value)
void SetHashes(Aws::Map< HashAlgorithm, Aws::String > &&value)
AWS_CODEARTIFACT_API AssetSummary(Aws::Utils::Json::JsonView jsonValue)
AssetSummary & WithName(Aws::String &&value)
AssetSummary & WithHashes(const Aws::Map< HashAlgorithm, Aws::String > &value)
AssetSummary & AddHashes(const HashAlgorithm &key, const char *value)
void SetName(const Aws::String &value)
void SetHashes(const Aws::Map< HashAlgorithm, Aws::String > &value)
const Aws::String & GetName() const
AssetSummary & WithHashes(Aws::Map< HashAlgorithm, Aws::String > &&value)
const Aws::Map< HashAlgorithm, Aws::String > & GetHashes() const
AssetSummary & AddHashes(HashAlgorithm &&key, const Aws::String &value)
void SetName(Aws::String &&value)
AssetSummary & WithName(const char *value)
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