AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenerateMacResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/Array.h>
9#include <aws/kms/model/MacAlgorithmSpec.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace KMS
26{
27namespace Model
28{
30 {
31 public:
32 AWS_KMS_API GenerateMacResult();
35
36
38
44 inline const Aws::Utils::ByteBuffer& GetMac() const{ return m_mac; }
45 inline void SetMac(const Aws::Utils::ByteBuffer& value) { m_mac = value; }
46 inline void SetMac(Aws::Utils::ByteBuffer&& value) { m_mac = std::move(value); }
47 inline GenerateMacResult& WithMac(const Aws::Utils::ByteBuffer& value) { SetMac(value); return *this;}
48 inline GenerateMacResult& WithMac(Aws::Utils::ByteBuffer&& value) { SetMac(std::move(value)); return *this;}
50
52
55 inline const MacAlgorithmSpec& GetMacAlgorithm() const{ return m_macAlgorithm; }
56 inline void SetMacAlgorithm(const MacAlgorithmSpec& value) { m_macAlgorithm = value; }
57 inline void SetMacAlgorithm(MacAlgorithmSpec&& value) { m_macAlgorithm = std::move(value); }
58 inline GenerateMacResult& WithMacAlgorithm(const MacAlgorithmSpec& value) { SetMacAlgorithm(value); return *this;}
59 inline GenerateMacResult& WithMacAlgorithm(MacAlgorithmSpec&& value) { SetMacAlgorithm(std::move(value)); return *this;}
61
63
66 inline const Aws::String& GetKeyId() const{ return m_keyId; }
67 inline void SetKeyId(const Aws::String& value) { m_keyId = value; }
68 inline void SetKeyId(Aws::String&& value) { m_keyId = std::move(value); }
69 inline void SetKeyId(const char* value) { m_keyId.assign(value); }
70 inline GenerateMacResult& WithKeyId(const Aws::String& value) { SetKeyId(value); return *this;}
71 inline GenerateMacResult& WithKeyId(Aws::String&& value) { SetKeyId(std::move(value)); return *this;}
72 inline GenerateMacResult& WithKeyId(const char* value) { SetKeyId(value); return *this;}
74
76
77 inline const Aws::String& GetRequestId() const{ return m_requestId; }
78 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
79 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
80 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
81 inline GenerateMacResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
82 inline GenerateMacResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
83 inline GenerateMacResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
85 private:
86
88
89 MacAlgorithmSpec m_macAlgorithm;
90
91 Aws::String m_keyId;
92
93 Aws::String m_requestId;
94 };
95
96} // namespace Model
97} // namespace KMS
98} // namespace Aws
AWS_KMS_API GenerateMacResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GenerateMacResult & WithMac(Aws::Utils::ByteBuffer &&value)
void SetKeyId(const Aws::String &value)
void SetMacAlgorithm(const MacAlgorithmSpec &value)
GenerateMacResult & WithKeyId(const Aws::String &value)
void SetKeyId(Aws::String &&value)
const MacAlgorithmSpec & GetMacAlgorithm() const
void SetMac(const Aws::Utils::ByteBuffer &value)
GenerateMacResult & WithKeyId(const char *value)
GenerateMacResult & WithKeyId(Aws::String &&value)
GenerateMacResult & WithRequestId(const char *value)
const Aws::String & GetRequestId() const
AWS_KMS_API GenerateMacResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::ByteBuffer & GetMac() const
void SetRequestId(Aws::String &&value)
void SetRequestId(const Aws::String &value)
void SetRequestId(const char *value)
void SetMac(Aws::Utils::ByteBuffer &&value)
GenerateMacResult & WithMacAlgorithm(const MacAlgorithmSpec &value)
GenerateMacResult & WithMacAlgorithm(MacAlgorithmSpec &&value)
void SetMacAlgorithm(MacAlgorithmSpec &&value)
GenerateMacResult & WithRequestId(const Aws::String &value)
GenerateMacResult & WithRequestId(Aws::String &&value)
GenerateMacResult & WithMac(const Aws::Utils::ByteBuffer &value)
const Aws::String & GetKeyId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue