AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
AuthenticationConfigurationPatch.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/BasicAuthenticationCredentials.h>
10#include <aws/datazone/model/OAuth2PropertiesPatch.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 AuthenticationConfigurationPatch() = default;
35 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
42 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
43 template <typename SecretArnT = Aws::String>
44 void SetSecretArn(SecretArnT&& value) {
45 m_secretArnHasBeenSet = true;
46 m_secretArn = std::forward<SecretArnT>(value);
47 }
48 template <typename SecretArnT = Aws::String>
50 SetSecretArn(std::forward<SecretArnT>(value));
51 return *this;
52 }
54
56
59 inline const BasicAuthenticationCredentials& GetBasicAuthenticationCredentials() const { return m_basicAuthenticationCredentials; }
60 inline bool BasicAuthenticationCredentialsHasBeenSet() const { return m_basicAuthenticationCredentialsHasBeenSet; }
61 template <typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
62 void SetBasicAuthenticationCredentials(BasicAuthenticationCredentialsT&& value) {
63 m_basicAuthenticationCredentialsHasBeenSet = true;
64 m_basicAuthenticationCredentials = std::forward<BasicAuthenticationCredentialsT>(value);
65 }
66 template <typename BasicAuthenticationCredentialsT = BasicAuthenticationCredentials>
67 AuthenticationConfigurationPatch& WithBasicAuthenticationCredentials(BasicAuthenticationCredentialsT&& value) {
68 SetBasicAuthenticationCredentials(std::forward<BasicAuthenticationCredentialsT>(value));
69 return *this;
70 }
72
74
80 inline const OAuth2PropertiesPatch& GetOAuth2Properties() const { return m_oAuth2Properties; }
81 inline bool OAuth2PropertiesHasBeenSet() const { return m_oAuth2PropertiesHasBeenSet; }
82 template <typename OAuth2PropertiesT = OAuth2PropertiesPatch>
83 void SetOAuth2Properties(OAuth2PropertiesT&& value) {
84 m_oAuth2PropertiesHasBeenSet = true;
85 m_oAuth2Properties = std::forward<OAuth2PropertiesT>(value);
86 }
87 template <typename OAuth2PropertiesT = OAuth2PropertiesPatch>
89 SetOAuth2Properties(std::forward<OAuth2PropertiesT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_secretArn;
95
96 BasicAuthenticationCredentials m_basicAuthenticationCredentials;
97
98 OAuth2PropertiesPatch m_oAuth2Properties;
99 bool m_secretArnHasBeenSet = false;
100 bool m_basicAuthenticationCredentialsHasBeenSet = false;
101 bool m_oAuth2PropertiesHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace DataZone
106} // namespace Aws
AuthenticationConfigurationPatch & WithOAuth2Properties(OAuth2PropertiesT &&value)
AuthenticationConfigurationPatch & WithBasicAuthenticationCredentials(BasicAuthenticationCredentialsT &&value)
AWS_DATAZONE_API AuthenticationConfigurationPatch(Aws::Utils::Json::JsonView jsonValue)
AuthenticationConfigurationPatch & WithSecretArn(SecretArnT &&value)
const BasicAuthenticationCredentials & GetBasicAuthenticationCredentials() const
AWS_DATAZONE_API AuthenticationConfigurationPatch()=default
void SetBasicAuthenticationCredentials(BasicAuthenticationCredentialsT &&value)
AWS_DATAZONE_API AuthenticationConfigurationPatch & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue