AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AuthenticationConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datazone/DataZone_EXPORTS.h>
9#include <aws/datazone/model/AuthenticationType.h>
10#include <aws/datazone/model/OAuth2Properties.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DataZone {
22namespace Model {
23
31 public:
32 AWS_DATAZONE_API AuthenticationConfiguration() = default;
35 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
42 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
44 m_authenticationTypeHasBeenSet = true;
45 m_authenticationType = value;
46 }
49 return *this;
50 }
52
54
57 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
58 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
59 template <typename SecretArnT = Aws::String>
60 void SetSecretArn(SecretArnT&& value) {
61 m_secretArnHasBeenSet = true;
62 m_secretArn = std::forward<SecretArnT>(value);
63 }
64 template <typename SecretArnT = Aws::String>
66 SetSecretArn(std::forward<SecretArnT>(value));
67 return *this;
68 }
70
72
75 inline const OAuth2Properties& GetOAuth2Properties() const { return m_oAuth2Properties; }
76 inline bool OAuth2PropertiesHasBeenSet() const { return m_oAuth2PropertiesHasBeenSet; }
77 template <typename OAuth2PropertiesT = OAuth2Properties>
78 void SetOAuth2Properties(OAuth2PropertiesT&& value) {
79 m_oAuth2PropertiesHasBeenSet = true;
80 m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value);
81 }
82 template <typename OAuth2PropertiesT = OAuth2Properties>
84 SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value));
85 return *this;
86 }
88 private:
90
91 Aws::String m_secretArn;
92
93 OAuth2Properties m_oAuth2Properties;
94 bool m_authenticationTypeHasBeenSet = false;
95 bool m_secretArnHasBeenSet = false;
96 bool m_oAuth2PropertiesHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace DataZone
101} // 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