AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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
34 {
35 public:
36 AWS_APPSYNC_API AuthorizationConfig();
39 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline const AuthorizationType& GetAuthorizationType() const{ return m_authorizationType; }
49 inline bool AuthorizationTypeHasBeenSet() const { return m_authorizationTypeHasBeenSet; }
50 inline void SetAuthorizationType(const AuthorizationType& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = value; }
51 inline void SetAuthorizationType(AuthorizationType&& value) { m_authorizationTypeHasBeenSet = true; m_authorizationType = std::move(value); }
53 inline AuthorizationConfig& WithAuthorizationType(AuthorizationType&& value) { SetAuthorizationType(std::move(value)); return *this;}
55
57
60 inline const AwsIamConfig& GetAwsIamConfig() const{ return m_awsIamConfig; }
61 inline bool AwsIamConfigHasBeenSet() const { return m_awsIamConfigHasBeenSet; }
62 inline void SetAwsIamConfig(const AwsIamConfig& value) { m_awsIamConfigHasBeenSet = true; m_awsIamConfig = value; }
63 inline void SetAwsIamConfig(AwsIamConfig&& value) { m_awsIamConfigHasBeenSet = true; m_awsIamConfig = std::move(value); }
64 inline AuthorizationConfig& WithAwsIamConfig(const AwsIamConfig& value) { SetAwsIamConfig(value); return *this;}
65 inline AuthorizationConfig& WithAwsIamConfig(AwsIamConfig&& value) { SetAwsIamConfig(std::move(value)); return *this;}
67 private:
68
69 AuthorizationType m_authorizationType;
70 bool m_authorizationTypeHasBeenSet = false;
71
72 AwsIamConfig m_awsIamConfig;
73 bool m_awsIamConfigHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace AppSync
78} // namespace Aws
AuthorizationConfig & WithAuthorizationType(AuthorizationType &&value)
AWS_APPSYNC_API AuthorizationConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API AuthorizationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const AwsIamConfig & GetAwsIamConfig() const
AuthorizationConfig & WithAwsIamConfig(AwsIamConfig &&value)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const AuthorizationType & GetAuthorizationType() const
AuthorizationConfig & WithAuthorizationType(const AuthorizationType &value)
AuthorizationConfig & WithAwsIamConfig(const AwsIamConfig &value)
void SetAwsIamConfig(const AwsIamConfig &value)
void SetAuthorizationType(AuthorizationType &&value)
void SetAuthorizationType(const AuthorizationType &value)
Aws::Utils::Json::JsonValue JsonValue