AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AuthenticationConfiguration.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/AuthenticationType.h>
9#include <aws/datazone/model/OAuth2Properties.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DataZone
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_DATAZONE_API AuthenticationConfiguration() = default;
40 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
48 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
49 inline void SetAuthenticationType(AuthenticationType value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
52
54
57 inline const OAuth2Properties& GetOAuth2Properties() const { return m_oAuth2Properties; }
58 inline bool OAuth2PropertiesHasBeenSet() const { return m_oAuth2PropertiesHasBeenSet; }
59 template<typename OAuth2PropertiesT = OAuth2Properties>
60 void SetOAuth2Properties(OAuth2PropertiesT&& value) { m_oAuth2PropertiesHasBeenSet = true; m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value); }
61 template<typename OAuth2PropertiesT = OAuth2Properties>
62 AuthenticationConfiguration& WithOAuth2Properties(OAuth2PropertiesT&& value) { SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value)); return *this;}
64
66
69 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
70 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
71 template<typename SecretArnT = Aws::String>
72 void SetSecretArn(SecretArnT&& value) { m_secretArnHasBeenSet = true; m_secretArn = std::forward<SecretArnT>(value); }
73 template<typename SecretArnT = Aws::String>
74 AuthenticationConfiguration& WithSecretArn(SecretArnT&& value) { SetSecretArn(std::forward<SecretArnT>(value)); return *this;}
76 private:
77
79 bool m_authenticationTypeHasBeenSet = false;
80
81 OAuth2Properties m_oAuth2Properties;
82 bool m_oAuth2PropertiesHasBeenSet = false;
83
84 Aws::String m_secretArn;
85 bool m_secretArnHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace DataZone
90} // namespace Aws
AWS_DATAZONE_API AuthenticationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthenticationConfiguration & WithAuthenticationType(AuthenticationType value)
AuthenticationConfiguration & WithSecretArn(SecretArnT &&value)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DATAZONE_API AuthenticationConfiguration(Aws::Utils::Json::JsonView jsonValue)
AuthenticationConfiguration & WithOAuth2Properties(OAuth2PropertiesT &&value)
AWS_DATAZONE_API AuthenticationConfiguration()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue