AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
LinkedAccount.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/LinkedAccountDeveloperJwt.h>
9#include <aws/bedrock-agentcore/model/LinkedAccountEmail.h>
10#include <aws/bedrock-agentcore/model/LinkedAccountOAuth2.h>
11#include <aws/bedrock-agentcore/model/LinkedAccountSms.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentCore {
23namespace Model {
24
33 public:
34 AWS_BEDROCKAGENTCORE_API LinkedAccount() = default;
35 AWS_BEDROCKAGENTCORE_API LinkedAccount(Aws::Utils::Json::JsonView jsonValue);
36 AWS_BEDROCKAGENTCORE_API LinkedAccount& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const LinkedAccountEmail& GetEmail() const { return m_email; }
44 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
45 template <typename EmailT = LinkedAccountEmail>
46 void SetEmail(EmailT&& value) {
47 m_emailHasBeenSet = true;
48 m_email = std::forward<EmailT>(value);
49 }
50 template <typename EmailT = LinkedAccountEmail>
51 LinkedAccount& WithEmail(EmailT&& value) {
52 SetEmail(std::forward<EmailT>(value));
53 return *this;
54 }
56
58
61 inline const LinkedAccountSms& GetSms() const { return m_sms; }
62 inline bool SmsHasBeenSet() const { return m_smsHasBeenSet; }
63 template <typename SmsT = LinkedAccountSms>
64 void SetSms(SmsT&& value) {
65 m_smsHasBeenSet = true;
66 m_sms = std::forward<SmsT>(value);
67 }
68 template <typename SmsT = LinkedAccountSms>
69 LinkedAccount& WithSms(SmsT&& value) {
70 SetSms(std::forward<SmsT>(value));
71 return *this;
72 }
74
76
79 inline const LinkedAccountDeveloperJwt& GetDeveloperJwt() const { return m_developerJwt; }
80 inline bool DeveloperJwtHasBeenSet() const { return m_developerJwtHasBeenSet; }
81 template <typename DeveloperJwtT = LinkedAccountDeveloperJwt>
82 void SetDeveloperJwt(DeveloperJwtT&& value) {
83 m_developerJwtHasBeenSet = true;
84 m_developerJwt = std::forward<DeveloperJwtT>(value);
85 }
86 template <typename DeveloperJwtT = LinkedAccountDeveloperJwt>
87 LinkedAccount& WithDeveloperJwt(DeveloperJwtT&& value) {
88 SetDeveloperJwt(std::forward<DeveloperJwtT>(value));
89 return *this;
90 }
92
94
97 inline const LinkedAccountOAuth2& GetOAuth2() const { return m_oAuth2; }
98 inline bool OAuth2HasBeenSet() const { return m_oAuth2HasBeenSet; }
99 template <typename OAuth2T = LinkedAccountOAuth2>
100 void SetOAuth2(OAuth2T&& value) {
101 m_oAuth2HasBeenSet = true;
102 m_oAuth2 = std::forward<OAuth2T>(value);
103 }
104 template <typename OAuth2T = LinkedAccountOAuth2>
105 LinkedAccount& WithOAuth2(OAuth2T&& value) {
106 SetOAuth2(std::forward<OAuth2T>(value));
107 return *this;
108 }
110 private:
111 LinkedAccountEmail m_email;
112
113 LinkedAccountSms m_sms;
114
115 LinkedAccountDeveloperJwt m_developerJwt;
116
117 LinkedAccountOAuth2 m_oAuth2;
118 bool m_emailHasBeenSet = false;
119 bool m_smsHasBeenSet = false;
120 bool m_developerJwtHasBeenSet = false;
121 bool m_oAuth2HasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace BedrockAgentCore
126} // namespace Aws
LinkedAccount & WithEmail(EmailT &&value)
AWS_BEDROCKAGENTCORE_API LinkedAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeveloperJwt(DeveloperJwtT &&value)
const LinkedAccountDeveloperJwt & GetDeveloperJwt() const
LinkedAccount & WithSms(SmsT &&value)
LinkedAccount & WithOAuth2(OAuth2T &&value)
LinkedAccount & WithDeveloperJwt(DeveloperJwtT &&value)
const LinkedAccountOAuth2 & GetOAuth2() const
AWS_BEDROCKAGENTCORE_API LinkedAccount()=default
const LinkedAccountSms & GetSms() const
AWS_BEDROCKAGENTCORE_API LinkedAccount(Aws::Utils::Json::JsonView jsonValue)
const LinkedAccountEmail & GetEmail() const
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue