AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LogSettingsRequest.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/lex-models/model/LogType.h>
9#include <aws/lex-models/model/Destination.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelBuildingService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LEXMODELBUILDINGSERVICE_API LogSettingsRequest() = default;
38 AWS_LEXMODELBUILDINGSERVICE_API LogSettingsRequest(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELBUILDINGSERVICE_API LogSettingsRequest& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline LogType GetLogType() const { return m_logType; }
49 inline bool LogTypeHasBeenSet() const { return m_logTypeHasBeenSet; }
50 inline void SetLogType(LogType value) { m_logTypeHasBeenSet = true; m_logType = value; }
51 inline LogSettingsRequest& WithLogType(LogType value) { SetLogType(value); return *this;}
53
55
59 inline Destination GetDestination() const { return m_destination; }
60 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
61 inline void SetDestination(Destination value) { m_destinationHasBeenSet = true; m_destination = value; }
62 inline LogSettingsRequest& WithDestination(Destination value) { SetDestination(value); return *this;}
64
66
71 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
72 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
73 template<typename KmsKeyArnT = Aws::String>
74 void SetKmsKeyArn(KmsKeyArnT&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::forward<KmsKeyArnT>(value); }
75 template<typename KmsKeyArnT = Aws::String>
76 LogSettingsRequest& WithKmsKeyArn(KmsKeyArnT&& value) { SetKmsKeyArn(std::forward<KmsKeyArnT>(value)); return *this;}
78
80
84 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
85 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
86 template<typename ResourceArnT = Aws::String>
87 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
88 template<typename ResourceArnT = Aws::String>
89 LogSettingsRequest& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
91 private:
92
93 LogType m_logType{LogType::NOT_SET};
94 bool m_logTypeHasBeenSet = false;
95
96 Destination m_destination{Destination::NOT_SET};
97 bool m_destinationHasBeenSet = false;
98
99 Aws::String m_kmsKeyArn;
100 bool m_kmsKeyArnHasBeenSet = false;
101
102 Aws::String m_resourceArn;
103 bool m_resourceArnHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace LexModelBuildingService
108} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API LogSettingsRequest()=default
LogSettingsRequest & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELBUILDINGSERVICE_API LogSettingsRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
LogSettingsRequest & WithResourceArn(ResourceArnT &&value)
LogSettingsRequest & WithDestination(Destination value)
AWS_LEXMODELBUILDINGSERVICE_API LogSettingsRequest(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue