AWS SDK for C++

AWS SDK for C++ Version 1.11.687

Loading...
Searching...
No Matches
HookConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9#include <aws/kendra/model/DocumentAttributeCondition.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace kendra {
21namespace Model {
22
41 public:
42 AWS_KENDRA_API HookConfiguration() = default;
45 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
54 inline const DocumentAttributeCondition& GetInvocationCondition() const { return m_invocationCondition; }
55 inline bool InvocationConditionHasBeenSet() const { return m_invocationConditionHasBeenSet; }
56 template <typename InvocationConditionT = DocumentAttributeCondition>
57 void SetInvocationCondition(InvocationConditionT&& value) {
58 m_invocationConditionHasBeenSet = true;
59 m_invocationCondition = std::forward<InvocationConditionT>(value);
60 }
61 template <typename InvocationConditionT = DocumentAttributeCondition>
62 HookConfiguration& WithInvocationCondition(InvocationConditionT&& value) {
63 SetInvocationCondition(std::forward<InvocationConditionT>(value));
64 return *this;
65 }
67
69
75 inline const Aws::String& GetLambdaArn() const { return m_lambdaArn; }
76 inline bool LambdaArnHasBeenSet() const { return m_lambdaArnHasBeenSet; }
77 template <typename LambdaArnT = Aws::String>
78 void SetLambdaArn(LambdaArnT&& value) {
79 m_lambdaArnHasBeenSet = true;
80 m_lambdaArn = std::forward<LambdaArnT>(value);
81 }
82 template <typename LambdaArnT = Aws::String>
83 HookConfiguration& WithLambdaArn(LambdaArnT&& value) {
84 SetLambdaArn(std::forward<LambdaArnT>(value));
85 return *this;
86 }
88
90
96 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
97 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
98 template <typename S3BucketT = Aws::String>
99 void SetS3Bucket(S3BucketT&& value) {
100 m_s3BucketHasBeenSet = true;
101 m_s3Bucket = std::forward<S3BucketT>(value);
102 }
103 template <typename S3BucketT = Aws::String>
104 HookConfiguration& WithS3Bucket(S3BucketT&& value) {
105 SetS3Bucket(std::forward<S3BucketT>(value));
106 return *this;
107 }
109 private:
110 DocumentAttributeCondition m_invocationCondition;
111 bool m_invocationConditionHasBeenSet = false;
112
113 Aws::String m_lambdaArn;
114 bool m_lambdaArnHasBeenSet = false;
115
116 Aws::String m_s3Bucket;
117 bool m_s3BucketHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace kendra
122} // namespace Aws
HookConfiguration & WithS3Bucket(S3BucketT &&value)
AWS_KENDRA_API HookConfiguration()=default
AWS_KENDRA_API HookConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
HookConfiguration & WithLambdaArn(LambdaArnT &&value)
AWS_KENDRA_API HookConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetLambdaArn() const
void SetInvocationCondition(InvocationConditionT &&value)
const DocumentAttributeCondition & GetInvocationCondition() const
const Aws::String & GetS3Bucket() const
HookConfiguration & WithInvocationCondition(InvocationConditionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue