AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RegistryCredential.h
1
6#pragma once
7#include <aws/codebuild/CodeBuild_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codebuild/model/CredentialProviderType.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 CodeBuild
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_CODEBUILD_API RegistryCredential();
43 AWS_CODEBUILD_API RegistryCredential(Aws::Utils::Json::JsonView jsonValue);
45 AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
55 inline const Aws::String& GetCredential() const{ return m_credential; }
56 inline bool CredentialHasBeenSet() const { return m_credentialHasBeenSet; }
57 inline void SetCredential(const Aws::String& value) { m_credentialHasBeenSet = true; m_credential = value; }
58 inline void SetCredential(Aws::String&& value) { m_credentialHasBeenSet = true; m_credential = std::move(value); }
59 inline void SetCredential(const char* value) { m_credentialHasBeenSet = true; m_credential.assign(value); }
60 inline RegistryCredential& WithCredential(const Aws::String& value) { SetCredential(value); return *this;}
61 inline RegistryCredential& WithCredential(Aws::String&& value) { SetCredential(std::move(value)); return *this;}
62 inline RegistryCredential& WithCredential(const char* value) { SetCredential(value); return *this;}
64
66
70 inline const CredentialProviderType& GetCredentialProvider() const{ return m_credentialProvider; }
71 inline bool CredentialProviderHasBeenSet() const { return m_credentialProviderHasBeenSet; }
72 inline void SetCredentialProvider(const CredentialProviderType& value) { m_credentialProviderHasBeenSet = true; m_credentialProvider = value; }
73 inline void SetCredentialProvider(CredentialProviderType&& value) { m_credentialProviderHasBeenSet = true; m_credentialProvider = std::move(value); }
77 private:
78
79 Aws::String m_credential;
80 bool m_credentialHasBeenSet = false;
81
82 CredentialProviderType m_credentialProvider;
83 bool m_credentialProviderHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace CodeBuild
88} // namespace Aws
RegistryCredential & WithCredentialProvider(CredentialProviderType &&value)
void SetCredentialProvider(const CredentialProviderType &value)
void SetCredential(const Aws::String &value)
RegistryCredential & WithCredential(const char *value)
RegistryCredential & WithCredential(Aws::String &&value)
RegistryCredential & WithCredential(const Aws::String &value)
const CredentialProviderType & GetCredentialProvider() const
AWS_CODEBUILD_API Aws::Utils::Json::JsonValue Jsonize() const
RegistryCredential & WithCredentialProvider(const CredentialProviderType &value)
void SetCredentialProvider(CredentialProviderType &&value)
AWS_CODEBUILD_API RegistryCredential(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEBUILD_API RegistryCredential & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue