AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppSync {
21namespace Model {
22
29 public:
30 AWS_APPSYNC_API HandlerConfig() = default;
31 AWS_APPSYNC_API HandlerConfig(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline HandlerBehavior GetBehavior() const { return m_behavior; }
40 inline bool BehaviorHasBeenSet() const { return m_behaviorHasBeenSet; }
41 inline void SetBehavior(HandlerBehavior value) {
42 m_behaviorHasBeenSet = true;
43 m_behavior = value;
44 }
46 SetBehavior(value);
47 return *this;
48 }
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) {
59 m_integrationHasBeenSet = true;
60 m_integration = std::forward<IntegrationT>(value);
61 }
62 template <typename IntegrationT = Integration>
63 HandlerConfig& WithIntegration(IntegrationT&& value) {
64 SetIntegration(std::forward<IntegrationT>(value));
65 return *this;
66 }
68 private:
70
71 Integration m_integration;
72 bool m_behaviorHasBeenSet = false;
73 bool m_integrationHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace AppSync
78} // 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