AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Credential.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_EXPORTS.h>
8#include <aws/appfabric/model/Oauth2Credential.h>
9#include <aws/appfabric/model/ApiKeyCredential.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppFabric
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_APPFABRIC_API Credential();
37 AWS_APPFABRIC_API Credential(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPFABRIC_API Credential& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Oauth2Credential& GetOauth2Credential() const{ return m_oauth2Credential; }
47 inline bool Oauth2CredentialHasBeenSet() const { return m_oauth2CredentialHasBeenSet; }
48 inline void SetOauth2Credential(const Oauth2Credential& value) { m_oauth2CredentialHasBeenSet = true; m_oauth2Credential = value; }
49 inline void SetOauth2Credential(Oauth2Credential&& value) { m_oauth2CredentialHasBeenSet = true; m_oauth2Credential = std::move(value); }
50 inline Credential& WithOauth2Credential(const Oauth2Credential& value) { SetOauth2Credential(value); return *this;}
51 inline Credential& WithOauth2Credential(Oauth2Credential&& value) { SetOauth2Credential(std::move(value)); return *this;}
53
55
58 inline const ApiKeyCredential& GetApiKeyCredential() const{ return m_apiKeyCredential; }
59 inline bool ApiKeyCredentialHasBeenSet() const { return m_apiKeyCredentialHasBeenSet; }
60 inline void SetApiKeyCredential(const ApiKeyCredential& value) { m_apiKeyCredentialHasBeenSet = true; m_apiKeyCredential = value; }
61 inline void SetApiKeyCredential(ApiKeyCredential&& value) { m_apiKeyCredentialHasBeenSet = true; m_apiKeyCredential = std::move(value); }
62 inline Credential& WithApiKeyCredential(const ApiKeyCredential& value) { SetApiKeyCredential(value); return *this;}
63 inline Credential& WithApiKeyCredential(ApiKeyCredential&& value) { SetApiKeyCredential(std::move(value)); return *this;}
65 private:
66
67 Oauth2Credential m_oauth2Credential;
68 bool m_oauth2CredentialHasBeenSet = false;
69
70 ApiKeyCredential m_apiKeyCredential;
71 bool m_apiKeyCredentialHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace AppFabric
76} // namespace Aws
const Oauth2Credential & GetOauth2Credential() const
Definition Credential.h:46
Credential & WithOauth2Credential(Oauth2Credential &&value)
Definition Credential.h:51
Credential & WithOauth2Credential(const Oauth2Credential &value)
Definition Credential.h:50
void SetOauth2Credential(Oauth2Credential &&value)
Definition Credential.h:49
const ApiKeyCredential & GetApiKeyCredential() const
Definition Credential.h:58
Credential & WithApiKeyCredential(const ApiKeyCredential &value)
Definition Credential.h:62
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPFABRIC_API Credential & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetApiKeyCredential(ApiKeyCredential &&value)
Definition Credential.h:61
void SetApiKeyCredential(const ApiKeyCredential &value)
Definition Credential.h:60
AWS_APPFABRIC_API Credential()
void SetOauth2Credential(const Oauth2Credential &value)
Definition Credential.h:48
AWS_APPFABRIC_API Credential(Aws::Utils::Json::JsonView jsonValue)
Credential & WithApiKeyCredential(ApiKeyCredential &&value)
Definition Credential.h:63
Aws::Utils::Json::JsonValue JsonValue