AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
HandlerConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/HandlerBehavior.h>
9#include <aws/appsync/model/Integration.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 AppSync
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPSYNC_API HandlerConfig() = default;
36 AWS_APPSYNC_API HandlerConfig(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline HandlerBehavior GetBehavior() const { return m_behavior; }
46 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
47 inline void SetBehavior(HandlerBehavior value) { m_behaviorHasBeenSet = true; m_behavior = value; }
48 inline HandlerConfig& WithBehavior(HandlerBehavior value) { SetBehavior(value); return *this;}
50
52
55 inline const Integration& GetIntegration() const { return m_integration; }
56 inline bool IntegrationHasBeenSet() const { return m_integrationHasBeenSet; }
57 template<typename IntegrationT = Integration>
58 void SetIntegration(IntegrationT&& value) { m_integrationHasBeenSet = true; m_integration = std::forward<IntegrationT>(value); }
59 template<typename IntegrationT = Integration>
60 HandlerConfig& WithIntegration(IntegrationT&& value) { SetIntegration(std::forward<IntegrationT>(value)); return *this;}
62 private:
63
65 bool m_behaviorHasBeenSet = false;
66
67 Integration m_integration;
68 bool m_integrationHasBeenSet = false;
69 };
70
71} // namespace Model
72} // namespace AppSync
73} // namespace Aws
AWS_APPSYNC_API HandlerConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API HandlerConfig()=default
const Integration & GetIntegration() const
HandlerBehavior GetBehavior() const
void SetBehavior(HandlerBehavior value)
AWS_APPSYNC_API HandlerConfig(Aws::Utils::Json::JsonView jsonValue)
HandlerConfig & WithBehavior(HandlerBehavior value)
HandlerConfig & WithIntegration(IntegrationT &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIntegration(IntegrationT &&value)
Aws::Utils::Json::JsonValue JsonValue