AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
48 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
49 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
50 inline ApplicationCredential& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
51 inline ApplicationCredential& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
52 inline ApplicationCredential& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
54
56
59 inline const CredentialType& GetCredentialType() const{ return m_credentialType; }
60 inline bool CredentialTypeHasBeenSet() const { return m_credentialTypeHasBeenSet; }
61 inline void SetCredentialType(const CredentialType& value) { m_credentialTypeHasBeenSet = true; m_credentialType = value; }
62 inline void SetCredentialType(CredentialType&& value) { m_credentialTypeHasBeenSet = true; m_credentialType = std::move(value); }
63 inline ApplicationCredential& WithCredentialType(const CredentialType& value) { SetCredentialType(value); return *this;}
64 inline ApplicationCredential& WithCredentialType(CredentialType&& value) { SetCredentialType(std::move(value)); return *this;}
66
68
72 inline const Aws::String& GetSecretId() const{ return m_secretId; }
73 inline bool SecretIdHasBeenSet() const { return m_secretIdHasBeenSet; }
74 inline void SetSecretId(const Aws::String& value) { m_secretIdHasBeenSet = true; m_secretId = value; }
75 inline void SetSecretId(Aws::String&& value) { m_secretIdHasBeenSet = true; m_secretId = std::move(value); }
76 inline void SetSecretId(const char* value) { m_secretIdHasBeenSet = true; m_secretId.assign(value); }
77 inline ApplicationCredential& WithSecretId(const Aws::String& value) { SetSecretId(value); return *this;}
78 inline ApplicationCredential& WithSecretId(Aws::String&& value) { SetSecretId(std::move(value)); return *this;}
79 inline ApplicationCredential& WithSecretId(const char* value) { SetSecretId(value); return *this;}
81 private:
82
83 Aws::String m_databaseName;
84 bool m_databaseNameHasBeenSet = false;
85
86 CredentialType m_credentialType;
87 bool m_credentialTypeHasBeenSet = false;
88
89 Aws::String m_secretId;
90 bool m_secretIdHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace SsmSap
95} // namespace Aws
ApplicationCredential & WithDatabaseName(Aws::String &&value)
const CredentialType & GetCredentialType() const
ApplicationCredential & WithSecretId(const char *value)
ApplicationCredential & WithSecretId(const Aws::String &value)
ApplicationCredential & WithDatabaseName(const char *value)
void SetCredentialType(const CredentialType &value)
AWS_SSMSAP_API ApplicationCredential(Aws::Utils::Json::JsonView jsonValue)
ApplicationCredential & WithCredentialType(const CredentialType &value)
ApplicationCredential & WithCredentialType(CredentialType &&value)
AWS_SSMSAP_API ApplicationCredential & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationCredential & WithDatabaseName(const Aws::String &value)
void SetDatabaseName(const Aws::String &value)
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
ApplicationCredential & WithSecretId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue