AWS SDK for C++

AWS SDK for C++ Version 1.11.902

Loading...
Searching...
No Matches
AuthConfig.h
1
6#pragma once
7#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
8#include <aws/appintegrations/model/AuthType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppIntegrationsService {
21namespace Model {
22
31 public:
32 AWS_APPINTEGRATIONSSERVICE_API AuthConfig() = default;
33 AWS_APPINTEGRATIONSSERVICE_API AuthConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_APPINTEGRATIONSSERVICE_API AuthConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPINTEGRATIONSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline AuthType GetAuthType() const { return m_authType; }
42 inline bool AuthTypeHasBeenSet() const { return m_authTypeHasBeenSet; }
43 inline void SetAuthType(AuthType value) {
44 m_authTypeHasBeenSet = true;
45 m_authType = value;
46 }
48 SetAuthType(value);
49 return *this;
50 }
52
54
58 inline const Aws::String& GetCredentialProviderIdentifier() const { return m_credentialProviderIdentifier; }
59 inline bool CredentialProviderIdentifierHasBeenSet() const { return m_credentialProviderIdentifierHasBeenSet; }
60 template <typename CredentialProviderIdentifierT = Aws::String>
61 void SetCredentialProviderIdentifier(CredentialProviderIdentifierT&& value) {
62 m_credentialProviderIdentifierHasBeenSet = true;
63 m_credentialProviderIdentifier = std::forward<CredentialProviderIdentifierT>(value);
64 }
65 template <typename CredentialProviderIdentifierT = Aws::String>
66 AuthConfig& WithCredentialProviderIdentifier(CredentialProviderIdentifierT&& value) {
67 SetCredentialProviderIdentifier(std::forward<CredentialProviderIdentifierT>(value));
68 return *this;
69 }
71 private:
72 AuthType m_authType{AuthType::NOT_SET};
73
74 Aws::String m_credentialProviderIdentifier;
75 bool m_authTypeHasBeenSet = false;
76 bool m_credentialProviderIdentifierHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace AppIntegrationsService
81} // namespace Aws
AWS_APPINTEGRATIONSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AuthConfig & WithCredentialProviderIdentifier(CredentialProviderIdentifierT &&value)
Definition AuthConfig.h:66
void SetCredentialProviderIdentifier(CredentialProviderIdentifierT &&value)
Definition AuthConfig.h:61
AWS_APPINTEGRATIONSSERVICE_API AuthConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPINTEGRATIONSSERVICE_API AuthConfig()=default
AWS_APPINTEGRATIONSSERVICE_API AuthConfig(Aws::Utils::Json::JsonView jsonValue)
AuthConfig & WithAuthType(AuthType value)
Definition AuthConfig.h:47
const Aws::String & GetCredentialProviderIdentifier() const
Definition AuthConfig.h:58
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue