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/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/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 QBusiness
23{
24namespace Model
25{
26
44 {
45 public:
46 AWS_QBUSINESS_API HookConfiguration() = default;
49 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
50
51
53
59 inline const DocumentAttributeCondition& GetInvocationCondition() const { return m_invocationCondition; }
60 inline bool InvocationConditionHasBeenSet() const { return m_invocationConditionHasBeenSet; }
61 template<typename InvocationConditionT = DocumentAttributeCondition>
62 void SetInvocationCondition(InvocationConditionT&& value) { m_invocationConditionHasBeenSet = true; m_invocationCondition = std::forward<InvocationConditionT>(value); }
63 template<typename InvocationConditionT = DocumentAttributeCondition>
64 HookConfiguration& WithInvocationCondition(InvocationConditionT&& value) { SetInvocationCondition(std::forward<InvocationConditionT>(value)); return *this;}
66
68
74 inline const Aws::String& GetLambdaArn() const { return m_lambdaArn; }
75 inline bool LambdaArnHasBeenSet() const { return m_lambdaArnHasBeenSet; }
76 template<typename LambdaArnT = Aws::String>
77 void SetLambdaArn(LambdaArnT&& value) { m_lambdaArnHasBeenSet = true; m_lambdaArn = std::forward<LambdaArnT>(value); }
78 template<typename LambdaArnT = Aws::String>
79 HookConfiguration& WithLambdaArn(LambdaArnT&& value) { SetLambdaArn(std::forward<LambdaArnT>(value)); return *this;}
81
83
89 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
90 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
91 template<typename S3BucketNameT = Aws::String>
92 void SetS3BucketName(S3BucketNameT&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::forward<S3BucketNameT>(value); }
93 template<typename S3BucketNameT = Aws::String>
94 HookConfiguration& WithS3BucketName(S3BucketNameT&& value) { SetS3BucketName(std::forward<S3BucketNameT>(value)); return *this;}
96
98
104 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
105 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
106 template<typename RoleArnT = Aws::String>
107 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
108 template<typename RoleArnT = Aws::String>
109 HookConfiguration& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
111 private:
112
113 DocumentAttributeCondition m_invocationCondition;
114 bool m_invocationConditionHasBeenSet = false;
115
116 Aws::String m_lambdaArn;
117 bool m_lambdaArnHasBeenSet = false;
118
119 Aws::String m_s3BucketName;
120 bool m_s3BucketNameHasBeenSet = false;
121
122 Aws::String m_roleArn;
123 bool m_roleArnHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace QBusiness
128} // namespace Aws
AWS_QBUSINESS_API HookConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetS3BucketName() const
HookConfiguration & WithInvocationCondition(InvocationConditionT &&value)
const Aws::String & GetLambdaArn() const
AWS_QBUSINESS_API HookConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
HookConfiguration & WithS3BucketName(S3BucketNameT &&value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentAttributeCondition & GetInvocationCondition() const
HookConfiguration & WithRoleArn(RoleArnT &&value)
HookConfiguration & WithLambdaArn(LambdaArnT &&value)
void SetInvocationCondition(InvocationConditionT &&value)
void SetS3BucketName(S3BucketNameT &&value)
AWS_QBUSINESS_API HookConfiguration()=default
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue