AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EventConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/appsync/model/EventLogConfig.h>
10#include <aws/appsync/model/AuthProvider.h>
11#include <aws/appsync/model/AuthMode.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace AppSync
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_APPSYNC_API EventConfig();
40 AWS_APPSYNC_API EventConfig(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Vector<AuthProvider>& GetAuthProviders() const{ return m_authProviders; }
50 inline bool AuthProvidersHasBeenSet() const { return m_authProvidersHasBeenSet; }
51 inline void SetAuthProviders(const Aws::Vector<AuthProvider>& value) { m_authProvidersHasBeenSet = true; m_authProviders = value; }
52 inline void SetAuthProviders(Aws::Vector<AuthProvider>&& value) { m_authProvidersHasBeenSet = true; m_authProviders = std::move(value); }
53 inline EventConfig& WithAuthProviders(const Aws::Vector<AuthProvider>& value) { SetAuthProviders(value); return *this;}
54 inline EventConfig& WithAuthProviders(Aws::Vector<AuthProvider>&& value) { SetAuthProviders(std::move(value)); return *this;}
55 inline EventConfig& AddAuthProviders(const AuthProvider& value) { m_authProvidersHasBeenSet = true; m_authProviders.push_back(value); return *this; }
56 inline EventConfig& AddAuthProviders(AuthProvider&& value) { m_authProvidersHasBeenSet = true; m_authProviders.push_back(std::move(value)); return *this; }
58
60
63 inline const Aws::Vector<AuthMode>& GetConnectionAuthModes() const{ return m_connectionAuthModes; }
64 inline bool ConnectionAuthModesHasBeenSet() const { return m_connectionAuthModesHasBeenSet; }
65 inline void SetConnectionAuthModes(const Aws::Vector<AuthMode>& value) { m_connectionAuthModesHasBeenSet = true; m_connectionAuthModes = value; }
66 inline void SetConnectionAuthModes(Aws::Vector<AuthMode>&& value) { m_connectionAuthModesHasBeenSet = true; m_connectionAuthModes = std::move(value); }
68 inline EventConfig& WithConnectionAuthModes(Aws::Vector<AuthMode>&& value) { SetConnectionAuthModes(std::move(value)); return *this;}
69 inline EventConfig& AddConnectionAuthModes(const AuthMode& value) { m_connectionAuthModesHasBeenSet = true; m_connectionAuthModes.push_back(value); return *this; }
70 inline EventConfig& AddConnectionAuthModes(AuthMode&& value) { m_connectionAuthModesHasBeenSet = true; m_connectionAuthModes.push_back(std::move(value)); return *this; }
72
74
77 inline const Aws::Vector<AuthMode>& GetDefaultPublishAuthModes() const{ return m_defaultPublishAuthModes; }
78 inline bool DefaultPublishAuthModesHasBeenSet() const { return m_defaultPublishAuthModesHasBeenSet; }
79 inline void SetDefaultPublishAuthModes(const Aws::Vector<AuthMode>& value) { m_defaultPublishAuthModesHasBeenSet = true; m_defaultPublishAuthModes = value; }
80 inline void SetDefaultPublishAuthModes(Aws::Vector<AuthMode>&& value) { m_defaultPublishAuthModesHasBeenSet = true; m_defaultPublishAuthModes = std::move(value); }
83 inline EventConfig& AddDefaultPublishAuthModes(const AuthMode& value) { m_defaultPublishAuthModesHasBeenSet = true; m_defaultPublishAuthModes.push_back(value); return *this; }
84 inline EventConfig& AddDefaultPublishAuthModes(AuthMode&& value) { m_defaultPublishAuthModesHasBeenSet = true; m_defaultPublishAuthModes.push_back(std::move(value)); return *this; }
86
88
91 inline const Aws::Vector<AuthMode>& GetDefaultSubscribeAuthModes() const{ return m_defaultSubscribeAuthModes; }
92 inline bool DefaultSubscribeAuthModesHasBeenSet() const { return m_defaultSubscribeAuthModesHasBeenSet; }
93 inline void SetDefaultSubscribeAuthModes(const Aws::Vector<AuthMode>& value) { m_defaultSubscribeAuthModesHasBeenSet = true; m_defaultSubscribeAuthModes = value; }
94 inline void SetDefaultSubscribeAuthModes(Aws::Vector<AuthMode>&& value) { m_defaultSubscribeAuthModesHasBeenSet = true; m_defaultSubscribeAuthModes = std::move(value); }
97 inline EventConfig& AddDefaultSubscribeAuthModes(const AuthMode& value) { m_defaultSubscribeAuthModesHasBeenSet = true; m_defaultSubscribeAuthModes.push_back(value); return *this; }
98 inline EventConfig& AddDefaultSubscribeAuthModes(AuthMode&& value) { m_defaultSubscribeAuthModesHasBeenSet = true; m_defaultSubscribeAuthModes.push_back(std::move(value)); return *this; }
100
102
105 inline const EventLogConfig& GetLogConfig() const{ return m_logConfig; }
106 inline bool LogConfigHasBeenSet() const { return m_logConfigHasBeenSet; }
107 inline void SetLogConfig(const EventLogConfig& value) { m_logConfigHasBeenSet = true; m_logConfig = value; }
108 inline void SetLogConfig(EventLogConfig&& value) { m_logConfigHasBeenSet = true; m_logConfig = std::move(value); }
109 inline EventConfig& WithLogConfig(const EventLogConfig& value) { SetLogConfig(value); return *this;}
110 inline EventConfig& WithLogConfig(EventLogConfig&& value) { SetLogConfig(std::move(value)); return *this;}
112 private:
113
114 Aws::Vector<AuthProvider> m_authProviders;
115 bool m_authProvidersHasBeenSet = false;
116
117 Aws::Vector<AuthMode> m_connectionAuthModes;
118 bool m_connectionAuthModesHasBeenSet = false;
119
120 Aws::Vector<AuthMode> m_defaultPublishAuthModes;
121 bool m_defaultPublishAuthModesHasBeenSet = false;
122
123 Aws::Vector<AuthMode> m_defaultSubscribeAuthModes;
124 bool m_defaultSubscribeAuthModesHasBeenSet = false;
125
126 EventLogConfig m_logConfig;
127 bool m_logConfigHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace AppSync
132} // namespace Aws
EventConfig & AddDefaultSubscribeAuthModes(const AuthMode &value)
Definition EventConfig.h:97
void SetLogConfig(EventLogConfig &&value)
EventConfig & AddAuthProviders(AuthProvider &&value)
Definition EventConfig.h:56
const Aws::Vector< AuthMode > & GetConnectionAuthModes() const
Definition EventConfig.h:63
bool ConnectionAuthModesHasBeenSet() const
Definition EventConfig.h:64
void SetDefaultSubscribeAuthModes(Aws::Vector< AuthMode > &&value)
Definition EventConfig.h:94
void SetAuthProviders(Aws::Vector< AuthProvider > &&value)
Definition EventConfig.h:52
void SetConnectionAuthModes(const Aws::Vector< AuthMode > &value)
Definition EventConfig.h:65
bool DefaultSubscribeAuthModesHasBeenSet() const
Definition EventConfig.h:92
EventConfig & WithConnectionAuthModes(const Aws::Vector< AuthMode > &value)
Definition EventConfig.h:67
AWS_APPSYNC_API EventConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDefaultPublishAuthModes(Aws::Vector< AuthMode > &&value)
Definition EventConfig.h:80
EventConfig & WithDefaultSubscribeAuthModes(const Aws::Vector< AuthMode > &value)
Definition EventConfig.h:95
bool DefaultPublishAuthModesHasBeenSet() const
Definition EventConfig.h:78
AWS_APPSYNC_API EventConfig(Aws::Utils::Json::JsonView jsonValue)
EventConfig & WithLogConfig(EventLogConfig &&value)
EventConfig & AddDefaultPublishAuthModes(const AuthMode &value)
Definition EventConfig.h:83
EventConfig & AddConnectionAuthModes(AuthMode &&value)
Definition EventConfig.h:70
const Aws::Vector< AuthProvider > & GetAuthProviders() const
Definition EventConfig.h:49
const Aws::Vector< AuthMode > & GetDefaultSubscribeAuthModes() const
Definition EventConfig.h:91
void SetLogConfig(const EventLogConfig &value)
EventConfig & WithDefaultPublishAuthModes(const Aws::Vector< AuthMode > &value)
Definition EventConfig.h:81
void SetDefaultPublishAuthModes(const Aws::Vector< AuthMode > &value)
Definition EventConfig.h:79
EventConfig & WithAuthProviders(const Aws::Vector< AuthProvider > &value)
Definition EventConfig.h:53
void SetConnectionAuthModes(Aws::Vector< AuthMode > &&value)
Definition EventConfig.h:66
EventConfig & AddDefaultPublishAuthModes(AuthMode &&value)
Definition EventConfig.h:84
EventConfig & AddConnectionAuthModes(const AuthMode &value)
Definition EventConfig.h:69
EventConfig & AddAuthProviders(const AuthProvider &value)
Definition EventConfig.h:55
EventConfig & WithDefaultSubscribeAuthModes(Aws::Vector< AuthMode > &&value)
Definition EventConfig.h:96
const Aws::Vector< AuthMode > & GetDefaultPublishAuthModes() const
Definition EventConfig.h:77
EventConfig & WithDefaultPublishAuthModes(Aws::Vector< AuthMode > &&value)
Definition EventConfig.h:82
EventConfig & WithConnectionAuthModes(Aws::Vector< AuthMode > &&value)
Definition EventConfig.h:68
const EventLogConfig & GetLogConfig() const
EventConfig & WithLogConfig(const EventLogConfig &value)
EventConfig & AddDefaultSubscribeAuthModes(AuthMode &&value)
Definition EventConfig.h:98
void SetAuthProviders(const Aws::Vector< AuthProvider > &value)
Definition EventConfig.h:51
EventConfig & WithAuthProviders(Aws::Vector< AuthProvider > &&value)
Definition EventConfig.h:54
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDefaultSubscribeAuthModes(const Aws::Vector< AuthMode > &value)
Definition EventConfig.h:93
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue