AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ApplicationCredential.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ssm-sap/SsmSap_EXPORTS.h>
9#include <aws/ssm-sap/model/CredentialType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SsmSap {
21namespace Model {
22
29 public:
30 AWS_SSMSAP_API ApplicationCredential() = default;
33 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
40 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
41 template <typename DatabaseNameT = Aws::String>
42 void SetDatabaseName(DatabaseNameT&& value) {
43 m_databaseNameHasBeenSet = true;
44 m_databaseName = std::forward<DatabaseNameT>(value);
45 }
46 template <typename DatabaseNameT = Aws::String>
47 ApplicationCredential& WithDatabaseName(DatabaseNameT&& value) {
48 SetDatabaseName(std::forward<DatabaseNameT>(value));
49 return *this;
50 }
52
54
57 inline CredentialType GetCredentialType() const { return m_credentialType; }
58 inline bool CredentialTypeHasBeenSet() const { return m_credentialTypeHasBeenSet; }
59 inline void SetCredentialType(CredentialType value) {
60 m_credentialTypeHasBeenSet = true;
61 m_credentialType = value;
62 }
64 SetCredentialType(value);
65 return *this;
66 }
68
70
74 inline const Aws::String& GetSecretId() const { return m_secretId; }
75 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
76 template <typename SecretIdT = Aws::String>
77 void SetSecretId(SecretIdT&& value) {
78 m_secretIdHasBeenSet = true;
79 m_secretId = std::forward<SecretIdT>(value);
80 }
81 template <typename SecretIdT = Aws::String>
82 ApplicationCredential& WithSecretId(SecretIdT&& value) {
83 SetSecretId(std::forward<SecretIdT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_databaseName;
89
91
92 Aws::String m_secretId;
93 bool m_databaseNameHasBeenSet = false;
94 bool m_credentialTypeHasBeenSet = false;
95 bool m_secretIdHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace SsmSap
100} // namespace Aws
ApplicationCredential & WithDatabaseName(DatabaseNameT &&value)
AWS_SSMSAP_API ApplicationCredential()=default
AWS_SSMSAP_API ApplicationCredential(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMSAP_API ApplicationCredential & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationCredential & WithSecretId(SecretIdT &&value)
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
ApplicationCredential & WithCredentialType(CredentialType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue