AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
Encryption.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/observabilityadmin/ObservabilityAdmin_EXPORTS.h>
9#include <aws/observabilityadmin/model/SSEAlgorithm.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ObservabilityAdmin {
21namespace Model {
22
30 public:
31 AWS_OBSERVABILITYADMIN_API Encryption() = default;
32 AWS_OBSERVABILITYADMIN_API Encryption(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OBSERVABILITYADMIN_API Encryption& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline SSEAlgorithm GetSseAlgorithm() const { return m_sseAlgorithm; }
42 inline bool SseAlgorithmHasBeenSet() const { return m_sseAlgorithmHasBeenSet; }
43 inline void SetSseAlgorithm(SSEAlgorithm value) {
44 m_sseAlgorithmHasBeenSet = true;
45 m_sseAlgorithm = value;
46 }
48 SetSseAlgorithm(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
59 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
60 template <typename KmsKeyArnT = Aws::String>
61 void SetKmsKeyArn(KmsKeyArnT&& value) {
62 m_kmsKeyArnHasBeenSet = true;
63 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
64 }
65 template <typename KmsKeyArnT = Aws::String>
66 Encryption& WithKmsKeyArn(KmsKeyArnT&& value) {
67 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
68 return *this;
69 }
71 private:
72 SSEAlgorithm m_sseAlgorithm{SSEAlgorithm::NOT_SET};
73
74 Aws::String m_kmsKeyArn;
75 bool m_sseAlgorithmHasBeenSet = false;
76 bool m_kmsKeyArnHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace ObservabilityAdmin
81} // namespace Aws
const Aws::String & GetKmsKeyArn() const
Definition Encryption.h:58
AWS_OBSERVABILITYADMIN_API Encryption()=default
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OBSERVABILITYADMIN_API Encryption & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetKmsKeyArn(KmsKeyArnT &&value)
Definition Encryption.h:61
Encryption & WithKmsKeyArn(KmsKeyArnT &&value)
Definition Encryption.h:66
Encryption & WithSseAlgorithm(SSEAlgorithm value)
Definition Encryption.h:47
AWS_OBSERVABILITYADMIN_API Encryption(Aws::Utils::Json::JsonView jsonValue)
void SetSseAlgorithm(SSEAlgorithm value)
Definition Encryption.h:43
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue