AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
AuthorizationConfig.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/appsync/model/AuthorizationType.h>
9#include <aws/appsync/model/AwsIamConfig.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
30 public:
31 AWS_APPSYNC_API AuthorizationConfig() = default;
34 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline AuthorizationType GetAuthorizationType() const { return m_authorizationType; }
43 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
45 m_authorizationTypeHasBeenSet = true;
46 m_authorizationType = value;
47 }
50 return *this;
51 }
53
55
58 inline const AwsIamConfig& GetAwsIamConfig() const { return m_awsIamConfig; }
59 inline bool AwsIamConfigHasBeenSet() const { return m_awsIamConfigHasBeenSet; }
60 template <typename AwsIamConfigT = AwsIamConfig>
61 void SetAwsIamConfig(AwsIamConfigT&& value) {
62 m_awsIamConfigHasBeenSet = true;
63 m_awsIamConfig = std::forward<AwsIamConfigT>(value);
64 }
65 template <typename AwsIamConfigT = AwsIamConfig>
66 AuthorizationConfig& WithAwsIamConfig(AwsIamConfigT&& value) {
67 SetAwsIamConfig(std::forward<AwsIamConfigT>(value));
68 return *this;
69 }
71 private:
73
74 AwsIamConfig m_awsIamConfig;
75 bool m_authorizationTypeHasBeenSet = false;
76 bool m_awsIamConfigHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AppSync
81} // namespace Aws
AWS_APPSYNC_API AuthorizationConfig()=default
void SetAuthorizationType(AuthorizationType value)
AWS_APPSYNC_API AuthorizationConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API AuthorizationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthorizationConfig & WithAwsIamConfig(AwsIamConfigT &&value)
void SetAwsIamConfig(AwsIamConfigT &&value)
const AwsIamConfig & GetAwsIamConfig() const
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
AuthorizationConfig & WithAuthorizationType(AuthorizationType value)
Aws::Utils::Json::JsonValue JsonValue