AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
Checksum.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mgn/Mgn_EXPORTS.h>
9#include <aws/mgn/model/EncryptionAlgorithm.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace mgn {
21namespace Model {
22
28class Checksum {
29 public:
30 AWS_MGN_API Checksum() = default;
31 AWS_MGN_API Checksum(Aws::Utils::Json::JsonView jsonValue);
34
36
39 inline EncryptionAlgorithm GetEncryptionAlgorithm() const { return m_encryptionAlgorithm; }
40 inline bool EncryptionAlgorithmHasBeenSet() const { return m_encryptionAlgorithmHasBeenSet; }
42 m_encryptionAlgorithmHasBeenSet = true;
43 m_encryptionAlgorithm = value;
44 }
47 return *this;
48 }
50
52
55 inline const Aws::String& GetHash() const { return m_hash; }
56 inline bool HashHasBeenSet() const { return m_hashHasBeenSet; }
57 template <typename HashT = Aws::String>
58 void SetHash(HashT&& value) {
59 m_hashHasBeenSet = true;
60 m_hash = std::forward<HashT>(value);
61 }
62 template <typename HashT = Aws::String>
63 Checksum& WithHash(HashT&& value) {
64 SetHash(std::forward<HashT>(value));
65 return *this;
66 }
68 private:
70
71 Aws::String m_hash;
72 bool m_encryptionAlgorithmHasBeenSet = false;
73 bool m_hashHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace mgn
78} // namespace Aws
Checksum & WithHash(HashT &&value)
Definition Checksum.h:63
AWS_MGN_API Checksum()=default
void SetEncryptionAlgorithm(EncryptionAlgorithm value)
Definition Checksum.h:41
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHash(HashT &&value)
Definition Checksum.h:58
AWS_MGN_API Checksum(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHash() const
Definition Checksum.h:55
EncryptionAlgorithm GetEncryptionAlgorithm() const
Definition Checksum.h:39
AWS_MGN_API Checksum & operator=(Aws::Utils::Json::JsonView jsonValue)
bool HashHasBeenSet() const
Definition Checksum.h:56
bool EncryptionAlgorithmHasBeenSet() const
Definition Checksum.h:40
Checksum & WithEncryptionAlgorithm(EncryptionAlgorithm value)
Definition Checksum.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue