AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
EncryptionKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/translate/Translate_EXPORTS.h>
9#include <aws/translate/model/EncryptionKeyType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Translate {
21namespace Model {
22
29 public:
30 AWS_TRANSLATE_API EncryptionKey() = default;
31 AWS_TRANSLATE_API EncryptionKey(Aws::Utils::Json::JsonView jsonValue);
32 AWS_TRANSLATE_API EncryptionKey& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline EncryptionKeyType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(EncryptionKeyType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetId() const { return m_id; }
58 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
59 template <typename IdT = Aws::String>
60 void SetId(IdT&& value) {
61 m_idHasBeenSet = true;
62 m_id = std::forward<IdT>(value);
63 }
64 template <typename IdT = Aws::String>
65 EncryptionKey& WithId(IdT&& value) {
66 SetId(std::forward<IdT>(value));
67 return *this;
68 }
70 private:
72
73 Aws::String m_id;
74 bool m_typeHasBeenSet = false;
75 bool m_idHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Translate
80} // namespace Aws
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
EncryptionKey & WithType(EncryptionKeyType value)
AWS_TRANSLATE_API EncryptionKey & operator=(Aws::Utils::Json::JsonView jsonValue)
EncryptionKeyType GetType() const
void SetType(EncryptionKeyType value)
AWS_TRANSLATE_API EncryptionKey(Aws::Utils::Json::JsonView jsonValue)
EncryptionKey & WithId(IdT &&value)
const Aws::String & GetId() const
AWS_TRANSLATE_API EncryptionKey()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue