AWS SDK for C++

AWS SDK for C++ Version 1.11.762

Loading...
Searching...
No Matches
KmsEncryptionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/healthlake/HealthLake_EXPORTS.h>
9#include <aws/healthlake/model/CmkType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace HealthLake {
21namespace Model {
22
31 public:
32 AWS_HEALTHLAKE_API KmsEncryptionConfig() = default;
33 AWS_HEALTHLAKE_API KmsEncryptionConfig(Aws::Utils::Json::JsonView jsonValue);
35 AWS_HEALTHLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline CmkType GetCmkType() const { return m_cmkType; }
42 inline bool CmkTypeHasBeenSet() const { return m_cmkTypeHasBeenSet; }
43 inline void SetCmkType(CmkType value) {
44 m_cmkTypeHasBeenSet = true;
45 m_cmkType = value;
46 }
48 SetCmkType(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
59 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
60 template <typename KmsKeyIdT = Aws::String>
61 void SetKmsKeyId(KmsKeyIdT&& value) {
62 m_kmsKeyIdHasBeenSet = true;
63 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
64 }
65 template <typename KmsKeyIdT = Aws::String>
66 KmsEncryptionConfig& WithKmsKeyId(KmsKeyIdT&& value) {
67 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
68 return *this;
69 }
71 private:
72 CmkType m_cmkType{CmkType::NOT_SET};
73
74 Aws::String m_kmsKeyId;
75 bool m_cmkTypeHasBeenSet = false;
76 bool m_kmsKeyIdHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace HealthLake
81} // namespace Aws
AWS_HEALTHLAKE_API KmsEncryptionConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_HEALTHLAKE_API KmsEncryptionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_HEALTHLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_HEALTHLAKE_API KmsEncryptionConfig()=default
KmsEncryptionConfig & WithCmkType(CmkType value)
KmsEncryptionConfig & WithKmsKeyId(KmsKeyIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue