AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
SessionS3LoggingConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/elasticmapreduce/EMR_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EMR {
22namespace Model {
23
31 public:
32 AWS_EMR_API SessionS3LoggingConfiguration() = default;
36
38
41 inline bool GetEnabled() const { return m_enabled; }
42 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
43 inline void SetEnabled(bool value) {
44 m_enabledHasBeenSet = true;
45 m_enabled = value;
46 }
48 SetEnabled(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetLogUri() const { return m_logUri; }
58 inline bool LogUriHasBeenSet() const { return m_logUriHasBeenSet; }
59 template <typename LogUriT = Aws::String>
60 void SetLogUri(LogUriT&& value) {
61 m_logUriHasBeenSet = true;
62 m_logUri = std::forward<LogUriT>(value);
63 }
64 template <typename LogUriT = Aws::String>
66 SetLogUri(std::forward<LogUriT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
77 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
78 template <typename EncryptionKeyArnT = Aws::String>
79 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) {
80 m_encryptionKeyArnHasBeenSet = true;
81 m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value);
82 }
83 template <typename EncryptionKeyArnT = Aws::String>
85 SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetLogTypes() const { return m_logTypes; }
97 inline bool LogTypesHasBeenSet() const { return m_logTypesHasBeenSet; }
98 template <typename LogTypesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
99 void SetLogTypes(LogTypesT&& value) {
100 m_logTypesHasBeenSet = true;
101 m_logTypes = std::forward<LogTypesT>(value);
102 }
103 template <typename LogTypesT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
105 SetLogTypes(std::forward<LogTypesT>(value));
106 return *this;
107 }
108 template <typename LogTypesKeyT = Aws::String, typename LogTypesValueT = Aws::Vector<Aws::String>>
109 SessionS3LoggingConfiguration& AddLogTypes(LogTypesKeyT&& key, LogTypesValueT&& value) {
110 m_logTypesHasBeenSet = true;
111 m_logTypes.emplace(std::forward<LogTypesKeyT>(key), std::forward<LogTypesValueT>(value));
112 return *this;
113 }
115 private:
116 bool m_enabled{false};
117
118 Aws::String m_logUri;
119
120 Aws::String m_encryptionKeyArn;
121
123 bool m_enabledHasBeenSet = false;
124 bool m_logUriHasBeenSet = false;
125 bool m_encryptionKeyArnHasBeenSet = false;
126 bool m_logTypesHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace EMR
131} // namespace Aws
SessionS3LoggingConfiguration & AddLogTypes(LogTypesKeyT &&key, LogTypesValueT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetLogTypes() const
SessionS3LoggingConfiguration & WithLogTypes(LogTypesT &&value)
AWS_EMR_API SessionS3LoggingConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionS3LoggingConfiguration & WithEnabled(bool value)
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API SessionS3LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue)
SessionS3LoggingConfiguration & WithLogUri(LogUriT &&value)
SessionS3LoggingConfiguration & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue