AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
LogRedactionConfiguration.h
1
6#pragma once
7#include <aws/cleanroomsml/CleanRoomsML_EXPORTS.h>
8#include <aws/cleanroomsml/model/CustomEntityConfig.h>
9#include <aws/cleanroomsml/model/EntityType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CleanRoomsML {
22namespace Model {
23
30 public:
31 AWS_CLEANROOMSML_API LogRedactionConfiguration() = default;
34 AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const Aws::Vector<EntityType>& GetEntitiesToRedact() const { return m_entitiesToRedact; }
44 inline bool EntitiesToRedactHasBeenSet() const { return m_entitiesToRedactHasBeenSet; }
45 template <typename EntitiesToRedactT = Aws::Vector<EntityType>>
46 void SetEntitiesToRedact(EntitiesToRedactT&& value) {
47 m_entitiesToRedactHasBeenSet = true;
48 m_entitiesToRedact = std::forward<EntitiesToRedactT>(value);
49 }
50 template <typename EntitiesToRedactT = Aws::Vector<EntityType>>
51 LogRedactionConfiguration& WithEntitiesToRedact(EntitiesToRedactT&& value) {
52 SetEntitiesToRedact(std::forward<EntitiesToRedactT>(value));
53 return *this;
54 }
56 m_entitiesToRedactHasBeenSet = true;
57 m_entitiesToRedact.push_back(value);
58 return *this;
59 }
61
63
67 inline const CustomEntityConfig& GetCustomEntityConfig() const { return m_customEntityConfig; }
68 inline bool CustomEntityConfigHasBeenSet() const { return m_customEntityConfigHasBeenSet; }
69 template <typename CustomEntityConfigT = CustomEntityConfig>
70 void SetCustomEntityConfig(CustomEntityConfigT&& value) {
71 m_customEntityConfigHasBeenSet = true;
72 m_customEntityConfig = std::forward<CustomEntityConfigT>(value);
73 }
74 template <typename CustomEntityConfigT = CustomEntityConfig>
75 LogRedactionConfiguration& WithCustomEntityConfig(CustomEntityConfigT&& value) {
76 SetCustomEntityConfig(std::forward<CustomEntityConfigT>(value));
77 return *this;
78 }
80 private:
81 Aws::Vector<EntityType> m_entitiesToRedact;
82
83 CustomEntityConfig m_customEntityConfig;
84 bool m_entitiesToRedactHasBeenSet = false;
85 bool m_customEntityConfigHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace CleanRoomsML
90} // namespace Aws
AWS_CLEANROOMSML_API LogRedactionConfiguration()=default
const Aws::Vector< EntityType > & GetEntitiesToRedact() const
AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const
LogRedactionConfiguration & WithEntitiesToRedact(EntitiesToRedactT &&value)
LogRedactionConfiguration & WithCustomEntityConfig(CustomEntityConfigT &&value)
AWS_CLEANROOMSML_API LogRedactionConfiguration(Aws::Utils::Json::JsonView jsonValue)
LogRedactionConfiguration & AddEntitiesToRedact(EntityType value)
AWS_CLEANROOMSML_API LogRedactionConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue