AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
LogsEncryptionConfiguration.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/EncryptionConflictResolutionStrategy.h>
10#include <aws/observabilityadmin/model/EncryptionStrategy.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ObservabilityAdmin {
22namespace Model {
23
33 public:
34 AWS_OBSERVABILITYADMIN_API LogsEncryptionConfiguration() = default;
35 AWS_OBSERVABILITYADMIN_API LogsEncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline EncryptionStrategy GetEncryptionStrategy() const { return m_encryptionStrategy; }
46 inline bool EncryptionStrategyHasBeenSet() const { return m_encryptionStrategyHasBeenSet; }
48 m_encryptionStrategyHasBeenSet = true;
49 m_encryptionStrategy = value;
50 }
53 return *this;
54 }
56
58
62 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
63 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
64 template <typename KmsKeyArnT = Aws::String>
65 void SetKmsKeyArn(KmsKeyArnT&& value) {
66 m_kmsKeyArnHasBeenSet = true;
67 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
68 }
69 template <typename KmsKeyArnT = Aws::String>
71 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
72 return *this;
73 }
75
77
84 return m_encryptionConflictResolutionStrategy;
85 }
86 inline bool EncryptionConflictResolutionStrategyHasBeenSet() const { return m_encryptionConflictResolutionStrategyHasBeenSet; }
88 m_encryptionConflictResolutionStrategyHasBeenSet = true;
89 m_encryptionConflictResolutionStrategy = value;
90 }
93 return *this;
94 }
96 private:
98
99 Aws::String m_kmsKeyArn;
100
102 bool m_encryptionStrategyHasBeenSet = false;
103 bool m_kmsKeyArnHasBeenSet = false;
104 bool m_encryptionConflictResolutionStrategyHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace ObservabilityAdmin
109} // namespace Aws
AWS_OBSERVABILITYADMIN_API LogsEncryptionConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_OBSERVABILITYADMIN_API LogsEncryptionConfiguration()=default
EncryptionConflictResolutionStrategy GetEncryptionConflictResolutionStrategy() const
AWS_OBSERVABILITYADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
LogsEncryptionConfiguration & WithEncryptionStrategy(EncryptionStrategy value)
LogsEncryptionConfiguration & WithKmsKeyArn(KmsKeyArnT &&value)
LogsEncryptionConfiguration & WithEncryptionConflictResolutionStrategy(EncryptionConflictResolutionStrategy value)
AWS_OBSERVABILITYADMIN_API LogsEncryptionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEncryptionConflictResolutionStrategy(EncryptionConflictResolutionStrategy value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue