AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ApplicationCredential.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-sap/model/CredentialType.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 SsmSap
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SSMSAP_API ApplicationCredential() = default;
38 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
46 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
47 template<typename DatabaseNameT = Aws::String>
48 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
49 template<typename DatabaseNameT = Aws::String>
50 ApplicationCredential& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
52
54
57 inline CredentialType GetCredentialType() const { return m_credentialType; }
58 inline bool CredentialTypeHasBeenSet() const { return m_credentialTypeHasBeenSet; }
59 inline void SetCredentialType(CredentialType value) { m_credentialTypeHasBeenSet = true; m_credentialType = value; }
62
64
68 inline const Aws::String& GetSecretId() const { return m_secretId; }
69 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
70 template<typename SecretIdT = Aws::String>
71 void SetSecretId(SecretIdT&& value) { m_secretIdHasBeenSet = true; m_secretId = std::forward<SecretIdT>(value); }
72 template<typename SecretIdT = Aws::String>
73 ApplicationCredential& WithSecretId(SecretIdT&& value) { SetSecretId(std::forward<SecretIdT>(value)); return *this;}
75 private:
76
77 Aws::String m_databaseName;
78 bool m_databaseNameHasBeenSet = false;
79
81 bool m_credentialTypeHasBeenSet = false;
82
83 Aws::String m_secretId;
84 bool m_secretIdHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace SsmSap
89} // 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