AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CredentialBrokerProperties.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/glue/Glue_EXPORTS.h>
10#include <aws/glue/model/OAuth2GrantType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Glue {
22namespace Model {
23
31 public:
32 AWS_GLUE_API CredentialBrokerProperties() = default;
36
38
42 inline const Aws::String& GetCredentialProviderArn() const { return m_credentialProviderArn; }
43 inline bool CredentialProviderArnHasBeenSet() const { return m_credentialProviderArnHasBeenSet; }
44 template <typename CredentialProviderArnT = Aws::String>
45 void SetCredentialProviderArn(CredentialProviderArnT&& value) {
46 m_credentialProviderArnHasBeenSet = true;
47 m_credentialProviderArn = std::forward<CredentialProviderArnT>(value);
48 }
49 template <typename CredentialProviderArnT = Aws::String>
50 CredentialBrokerProperties& WithCredentialProviderArn(CredentialProviderArnT&& value) {
51 SetCredentialProviderArn(std::forward<CredentialProviderArnT>(value));
52 return *this;
53 }
55
57
62 inline OAuth2GrantType GetOAuth2GrantType() const { return m_oAuth2GrantType; }
63 inline bool OAuth2GrantTypeHasBeenSet() const { return m_oAuth2GrantTypeHasBeenSet; }
65 m_oAuth2GrantTypeHasBeenSet = true;
66 m_oAuth2GrantType = value;
67 }
69 SetOAuth2GrantType(value);
70 return *this;
71 }
73
75
79 inline const Aws::Vector<Aws::String>& GetScopes() const { return m_scopes; }
80 inline bool ScopesHasBeenSet() const { return m_scopesHasBeenSet; }
81 template <typename ScopesT = Aws::Vector<Aws::String>>
82 void SetScopes(ScopesT&& value) {
83 m_scopesHasBeenSet = true;
84 m_scopes = std::forward<ScopesT>(value);
85 }
86 template <typename ScopesT = Aws::Vector<Aws::String>>
88 SetScopes(std::forward<ScopesT>(value));
89 return *this;
90 }
91 template <typename ScopesT = Aws::String>
93 m_scopesHasBeenSet = true;
94 m_scopes.emplace_back(std::forward<ScopesT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_credentialProviderArn;
100
101 OAuth2GrantType m_oAuth2GrantType{OAuth2GrantType::NOT_SET};
102
104 bool m_credentialProviderArnHasBeenSet = false;
105 bool m_oAuth2GrantTypeHasBeenSet = false;
106 bool m_scopesHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Glue
111} // namespace Aws
void SetCredentialProviderArn(CredentialProviderArnT &&value)
AWS_GLUE_API CredentialBrokerProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUE_API CredentialBrokerProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
CredentialBrokerProperties & WithOAuth2GrantType(OAuth2GrantType value)
CredentialBrokerProperties & WithScopes(ScopesT &&value)
CredentialBrokerProperties & AddScopes(ScopesT &&value)
CredentialBrokerProperties & WithCredentialProviderArn(CredentialProviderArnT &&value)
AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GLUE_API CredentialBrokerProperties()=default
const Aws::Vector< Aws::String > & GetScopes() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue