AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
EncryptionContext.h
1
6#pragma once
7#include <aws/connecthealth/ConnectHealth_EXPORTS.h>
8#include <aws/connecthealth/model/EncryptionType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConnectHealth {
21namespace Model {
22
29 public:
30 AWS_CONNECTHEALTH_API EncryptionContext() = default;
31 AWS_CONNECTHEALTH_API EncryptionContext(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECTHEALTH_API EncryptionContext& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECTHEALTH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline EncryptionType GetEncryptionType() const { return m_encryptionType; }
40 inline bool EncryptionTypeHasBeenSet() const { return m_encryptionTypeHasBeenSet; }
41 inline void SetEncryptionType(EncryptionType value) {
42 m_encryptionTypeHasBeenSet = true;
43 m_encryptionType = value;
44 }
46 SetEncryptionType(value);
47 return *this;
48 }
50
52
56 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
57 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
58 template <typename KmsKeyArnT = Aws::String>
59 void SetKmsKeyArn(KmsKeyArnT&& value) {
60 m_kmsKeyArnHasBeenSet = true;
61 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
62 }
63 template <typename KmsKeyArnT = Aws::String>
64 EncryptionContext& WithKmsKeyArn(KmsKeyArnT&& value) {
65 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::String m_kmsKeyArn;
73 bool m_encryptionTypeHasBeenSet = false;
74 bool m_kmsKeyArnHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ConnectHealth
79} // namespace Aws
EncryptionContext & WithEncryptionType(EncryptionType value)
AWS_CONNECTHEALTH_API EncryptionContext & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECTHEALTH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECTHEALTH_API EncryptionContext(Aws::Utils::Json::JsonView jsonValue)
EncryptionContext & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_CONNECTHEALTH_API EncryptionContext()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue