AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EncryptionKey.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/translate/model/EncryptionKeyType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Translate
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_TRANSLATE_API EncryptionKey();
36 AWS_TRANSLATE_API EncryptionKey(Aws::Utils::Json::JsonView jsonValue);
37 AWS_TRANSLATE_API EncryptionKey& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const EncryptionKeyType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const EncryptionKeyType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(EncryptionKeyType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline EncryptionKey& WithType(const EncryptionKeyType& value) { SetType(value); return *this;}
51 inline EncryptionKey& WithType(EncryptionKeyType&& value) { SetType(std::move(value)); return *this;}
53
55
59 inline const Aws::String& GetId() const{ return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
62 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
63 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
64 inline EncryptionKey& WithId(const Aws::String& value) { SetId(value); return *this;}
65 inline EncryptionKey& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
66 inline EncryptionKey& WithId(const char* value) { SetId(value); return *this;}
68 private:
69
70 EncryptionKeyType m_type;
71 bool m_typeHasBeenSet = false;
72
73 Aws::String m_id;
74 bool m_idHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Translate
79} // namespace Aws
void SetId(Aws::String &&value)
AWS_TRANSLATE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TRANSLATE_API EncryptionKey & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetId(const Aws::String &value)
EncryptionKey & WithId(const char *value)
const EncryptionKeyType & GetType() const
EncryptionKey & WithType(const EncryptionKeyType &value)
AWS_TRANSLATE_API EncryptionKey(Aws::Utils::Json::JsonView jsonValue)
EncryptionKey & WithType(EncryptionKeyType &&value)
void SetType(const EncryptionKeyType &value)
void SetType(EncryptionKeyType &&value)
EncryptionKey & WithId(Aws::String &&value)
const Aws::String & GetId() const
EncryptionKey & WithId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue