AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
35
36
38
44 inline const Aws::Utils::ByteBuffer& GetMac() const { return m_mac; }
45 template<typename MacT = Aws::Utils::ByteBuffer>
46 void SetMac(MacT&& value) { m_macHasBeenSet = true; m_mac = std::forward<MacT>(value); }
47 template<typename MacT = Aws::Utils::ByteBuffer>
48 GenerateMacResult& WithMac(MacT&& value) { SetMac(std::forward<MacT>(value)); return *this;}
50
52
55 inline MacAlgorithmSpec GetMacAlgorithm() const { return m_macAlgorithm; }
56 inline void SetMacAlgorithm(MacAlgorithmSpec value) { m_macAlgorithmHasBeenSet = true; m_macAlgorithm = value; }
59
61
64 inline const Aws::String& GetKeyId() const { return m_keyId; }
65 template<typename KeyIdT = Aws::String>
66 void SetKeyId(KeyIdT&& value) { m_keyIdHasBeenSet = true; m_keyId = std::forward<KeyIdT>(value); }
67 template<typename KeyIdT = Aws::String>
68 GenerateMacResult& WithKeyId(KeyIdT&& value) { SetKeyId(std::forward<KeyIdT>(value)); return *this;}
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template<typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
76 template<typename RequestIdT = Aws::String>
77 GenerateMacResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
79 private:
80
82 bool m_macHasBeenSet = false;
83
85 bool m_macAlgorithmHasBeenSet = false;
86
87 Aws::String m_keyId;
88 bool m_keyIdHasBeenSet = false;
89
90 Aws::String m_requestId;
91 bool m_requestIdHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace KMS
96} // namespace Aws
AWS_KMS_API GenerateMacResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GenerateMacResult & WithKeyId(KeyIdT &&value)
MacAlgorithmSpec GetMacAlgorithm() const
const Aws::String & GetRequestId() const
void SetRequestId(RequestIdT &&value)
GenerateMacResult & WithMacAlgorithm(MacAlgorithmSpec value)
GenerateMacResult & WithMac(MacT &&value)
AWS_KMS_API GenerateMacResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API GenerateMacResult()=default
const Aws::Utils::ByteBuffer & GetMac() const
GenerateMacResult & WithRequestId(RequestIdT &&value)
void SetMacAlgorithm(MacAlgorithmSpec value)
const Aws::String & GetKeyId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue