/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

The credentials for access to a private registry.

See Also:

* AWS * API Reference

*/ class AwsCodeBuildProjectEnvironmentRegistryCredential { public: AWS_SECURITYHUB_API AwsCodeBuildProjectEnvironmentRegistryCredential(); AWS_SECURITYHUB_API AwsCodeBuildProjectEnvironmentRegistryCredential(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsCodeBuildProjectEnvironmentRegistryCredential& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN or name of credentials created using Secrets Manager.

*

The credential can use the name of the credentials only if they exist in your * current Amazon Web Services Region.

*/ inline const Aws::String& GetCredential() const{ return m_credential; } /** *

The ARN or name of credentials created using Secrets Manager.

*

The credential can use the name of the credentials only if they exist in your * current Amazon Web Services Region.

*/ inline bool CredentialHasBeenSet() const { return m_credentialHasBeenSet; } /** *

The ARN or name of credentials created using Secrets Manager.

*

The credential can use the name of the credentials only if they exist in your * current Amazon Web Services Region.

*/ inline void SetCredential(const Aws::String& value) { m_credentialHasBeenSet = true; m_credential = value; } /** *

The ARN or name of credentials created using Secrets Manager.

*

The credential can use the name of the credentials only if they exist in your * current Amazon Web Services Region.

*/ inline void SetCredential(Aws::String&& value) { m_credentialHasBeenSet = true; m_credential = std::move(value); } /** *

The ARN or name of credentials created using Secrets Manager.

*

The credential can use the name of the credentials only if they exist in your * current Amazon Web Services Region.

*/ inline void SetCredential(const char* value) { m_credentialHasBeenSet = true; m_credential.assign(value); } /** *

The ARN or name of credentials created using Secrets Manager.

*

The credential can use the name of the credentials only if they exist in your * current Amazon Web Services Region.

*/ inline AwsCodeBuildProjectEnvironmentRegistryCredential& WithCredential(const Aws::String& value) { SetCredential(value); return *this;} /** *

The ARN or name of credentials created using Secrets Manager.

*

The credential can use the name of the credentials only if they exist in your * current Amazon Web Services Region.

*/ inline AwsCodeBuildProjectEnvironmentRegistryCredential& WithCredential(Aws::String&& value) { SetCredential(std::move(value)); return *this;} /** *

The ARN or name of credentials created using Secrets Manager.

*

The credential can use the name of the credentials only if they exist in your * current Amazon Web Services Region.

*/ inline AwsCodeBuildProjectEnvironmentRegistryCredential& WithCredential(const char* value) { SetCredential(value); return *this;} /** *

The service that created the credentials to access a private Docker * registry.

The valid value, SECRETS_MANAGER, is for Secrets * Manager.

*/ inline const Aws::String& GetCredentialProvider() const{ return m_credentialProvider; } /** *

The service that created the credentials to access a private Docker * registry.

The valid value, SECRETS_MANAGER, is for Secrets * Manager.

*/ inline bool CredentialProviderHasBeenSet() const { return m_credentialProviderHasBeenSet; } /** *

The service that created the credentials to access a private Docker * registry.

The valid value, SECRETS_MANAGER, is for Secrets * Manager.

*/ inline void SetCredentialProvider(const Aws::String& value) { m_credentialProviderHasBeenSet = true; m_credentialProvider = value; } /** *

The service that created the credentials to access a private Docker * registry.

The valid value, SECRETS_MANAGER, is for Secrets * Manager.

*/ inline void SetCredentialProvider(Aws::String&& value) { m_credentialProviderHasBeenSet = true; m_credentialProvider = std::move(value); } /** *

The service that created the credentials to access a private Docker * registry.

The valid value, SECRETS_MANAGER, is for Secrets * Manager.

*/ inline void SetCredentialProvider(const char* value) { m_credentialProviderHasBeenSet = true; m_credentialProvider.assign(value); } /** *

The service that created the credentials to access a private Docker * registry.

The valid value, SECRETS_MANAGER, is for Secrets * Manager.

*/ inline AwsCodeBuildProjectEnvironmentRegistryCredential& WithCredentialProvider(const Aws::String& value) { SetCredentialProvider(value); return *this;} /** *

The service that created the credentials to access a private Docker * registry.

The valid value, SECRETS_MANAGER, is for Secrets * Manager.

*/ inline AwsCodeBuildProjectEnvironmentRegistryCredential& WithCredentialProvider(Aws::String&& value) { SetCredentialProvider(std::move(value)); return *this;} /** *

The service that created the credentials to access a private Docker * registry.

The valid value, SECRETS_MANAGER, is for Secrets * Manager.

*/ inline AwsCodeBuildProjectEnvironmentRegistryCredential& WithCredentialProvider(const char* value) { SetCredentialProvider(value); return *this;} private: Aws::String m_credential; bool m_credentialHasBeenSet = false; Aws::String m_credentialProvider; bool m_credentialProviderHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws