AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
HookConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9#include <aws/qbusiness/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 QBusiness {
21namespace Model {
22
40 public:
41 AWS_QBUSINESS_API HookConfiguration() = default;
44 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
45
47
53 inline const DocumentAttributeCondition& GetInvocationCondition() const { return m_invocationCondition; }
54 inline bool InvocationConditionHasBeenSet() const { return m_invocationConditionHasBeenSet; }
55 template <typename InvocationConditionT = DocumentAttributeCondition>
57 m_invocationConditionHasBeenSet = true;
58 m_invocationCondition = std::forward<InvocationConditionT>(value);
59 }
60 template <typename InvocationConditionT = DocumentAttributeCondition>
62 SetInvocationCondition(std::forward<InvocationConditionT>(value));
63 return *this;
64 }
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) {
78 m_lambdaArnHasBeenSet = true;
79 m_lambdaArn = std::forward<LambdaArnT>(value);
80 }
81 template <typename LambdaArnT = Aws::String>
83 SetLambdaArn(std::forward<LambdaArnT>(value));
84 return *this;
85 }
87
89
95 inline const Aws::String& GetS3BucketName() const { return m_s3BucketName; }
96 inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; }
97 template <typename S3BucketNameT = Aws::String>
99 m_s3BucketNameHasBeenSet = true;
100 m_s3BucketName = std::forward<S3BucketNameT>(value);
101 }
102 template <typename S3BucketNameT = Aws::String>
104 SetS3BucketName(std::forward<S3BucketNameT>(value));
105 return *this;
106 }
108
110
116 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
117 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
118 template <typename RoleArnT = Aws::String>
119 void SetRoleArn(RoleArnT&& value) {
120 m_roleArnHasBeenSet = true;
121 m_roleArn = std::forward<RoleArnT>(value);
122 }
123 template <typename RoleArnT = Aws::String>
125 SetRoleArn(std::forward<RoleArnT>(value));
126 return *this;
127 }
129 private:
130 DocumentAttributeCondition m_invocationCondition;
131
132 Aws::String m_lambdaArn;
133
134 Aws::String m_s3BucketName;
135
136 Aws::String m_roleArn;
137 bool m_invocationConditionHasBeenSet = false;
138 bool m_lambdaArnHasBeenSet = false;
139 bool m_s3BucketNameHasBeenSet = false;
140 bool m_roleArnHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace QBusiness
145} // 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