AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ManagedLogs.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/emr-containers/model/AllowAWSToRetainLogs.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace EMRContainers
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_EMRCONTAINERS_API ManagedLogs() = default;
37 AWS_EMRCONTAINERS_API ManagedLogs(Aws::Utils::Json::JsonView jsonValue);
38 AWS_EMRCONTAINERS_API ManagedLogs& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline AllowAWSToRetainLogs GetAllowAWSToRetainLogs() const { return m_allowAWSToRetainLogs; }
47 inline bool AllowAWSToRetainLogsHasBeenSet() const { return m_allowAWSToRetainLogsHasBeenSet; }
48 inline void SetAllowAWSToRetainLogs(AllowAWSToRetainLogs value) { m_allowAWSToRetainLogsHasBeenSet = true; m_allowAWSToRetainLogs = value; }
51
53
56 inline const Aws::String& GetEncryptionKeyArn() const { return m_encryptionKeyArn; }
57 inline bool EncryptionKeyArnHasBeenSet() const { return m_encryptionKeyArnHasBeenSet; }
58 template<typename EncryptionKeyArnT = Aws::String>
59 void SetEncryptionKeyArn(EncryptionKeyArnT&& value) { m_encryptionKeyArnHasBeenSet = true; m_encryptionKeyArn = std::forward<EncryptionKeyArnT>(value); }
60 template<typename EncryptionKeyArnT = Aws::String>
61 ManagedLogs& WithEncryptionKeyArn(EncryptionKeyArnT&& value) { SetEncryptionKeyArn(std::forward<EncryptionKeyArnT>(value)); return *this;}
63 private:
64
66 bool m_allowAWSToRetainLogsHasBeenSet = false;
67
68 Aws::String m_encryptionKeyArn;
69 bool m_encryptionKeyArnHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace EMRContainers
74} // namespace Aws
AWS_EMRCONTAINERS_API ManagedLogs & operator=(Aws::Utils::Json::JsonView jsonValue)
ManagedLogs & WithEncryptionKeyArn(EncryptionKeyArnT &&value)
Definition ManagedLogs.h:61
AWS_EMRCONTAINERS_API Aws::Utils::Json::JsonValue Jsonize() const
AllowAWSToRetainLogs GetAllowAWSToRetainLogs() const
Definition ManagedLogs.h:46
AWS_EMRCONTAINERS_API ManagedLogs(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetEncryptionKeyArn() const
Definition ManagedLogs.h:56
void SetEncryptionKeyArn(EncryptionKeyArnT &&value)
Definition ManagedLogs.h:59
void SetAllowAWSToRetainLogs(AllowAWSToRetainLogs value)
Definition ManagedLogs.h:48
AWS_EMRCONTAINERS_API ManagedLogs()=default
ManagedLogs & WithAllowAWSToRetainLogs(AllowAWSToRetainLogs value)
Definition ManagedLogs.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue