AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HookConfiguration.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/kendra/model/DocumentAttributeCondition.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 kendra
23{
24namespace Model
25{
26
45 {
46 public:
47 AWS_KENDRA_API HookConfiguration() = default;
50 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
60 inline const DocumentAttributeCondition& GetInvocationCondition() const { return m_invocationCondition; }
61 inline bool InvocationConditionHasBeenSet() const { return m_invocationConditionHasBeenSet; }
62 template<typename InvocationConditionT = DocumentAttributeCondition>
63 void SetInvocationCondition(InvocationConditionT&& value) { m_invocationConditionHasBeenSet = true; m_invocationCondition = std::forward<InvocationConditionT>(value); }
64 template<typename InvocationConditionT = DocumentAttributeCondition>
65 HookConfiguration& WithInvocationCondition(InvocationConditionT&& value) { SetInvocationCondition(std::forward<InvocationConditionT>(value)); return *this;}
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) { m_lambdaArnHasBeenSet = true; m_lambdaArn = std::forward<LambdaArnT>(value); }
79 template<typename LambdaArnT = Aws::String>
80 HookConfiguration& WithLambdaArn(LambdaArnT&& value) { SetLambdaArn(std::forward<LambdaArnT>(value)); return *this;}
82
84
90 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
91 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
92 template<typename S3BucketT = Aws::String>
93 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
94 template<typename S3BucketT = Aws::String>
95 HookConfiguration& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
97 private:
98
99 DocumentAttributeCondition m_invocationCondition;
100 bool m_invocationConditionHasBeenSet = false;
101
102 Aws::String m_lambdaArn;
103 bool m_lambdaArnHasBeenSet = false;
104
105 Aws::String m_s3Bucket;
106 bool m_s3BucketHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace kendra
111} // 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