/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace SecretsManager { namespace Model { class AWS_SECRETSMANAGER_API CreateSecretResult { public: CreateSecretResult(); CreateSecretResult(const Aws::AmazonWebServiceResult& result); CreateSecretResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the secret that you just created.

*

Secrets Manager automatically adds several random characters to the * name at the end of the ARN when you initially create a secret. This affects only * the ARN and not the actual friendly name. This ensures that if you create a new * secret with the same name as an old secret that you previously deleted, then * users with access to the old secret don't automatically get access to the * new secret because the ARNs are different.

*/ inline const Aws::String& GetARN() const{ return m_aRN; } /** *

The Amazon Resource Name (ARN) of the secret that you just created.

*

Secrets Manager automatically adds several random characters to the * name at the end of the ARN when you initially create a secret. This affects only * the ARN and not the actual friendly name. This ensures that if you create a new * secret with the same name as an old secret that you previously deleted, then * users with access to the old secret don't automatically get access to the * new secret because the ARNs are different.

*/ inline void SetARN(const Aws::String& value) { m_aRN = value; } /** *

The Amazon Resource Name (ARN) of the secret that you just created.

*

Secrets Manager automatically adds several random characters to the * name at the end of the ARN when you initially create a secret. This affects only * the ARN and not the actual friendly name. This ensures that if you create a new * secret with the same name as an old secret that you previously deleted, then * users with access to the old secret don't automatically get access to the * new secret because the ARNs are different.

*/ inline void SetARN(Aws::String&& value) { m_aRN = std::move(value); } /** *

The Amazon Resource Name (ARN) of the secret that you just created.

*

Secrets Manager automatically adds several random characters to the * name at the end of the ARN when you initially create a secret. This affects only * the ARN and not the actual friendly name. This ensures that if you create a new * secret with the same name as an old secret that you previously deleted, then * users with access to the old secret don't automatically get access to the * new secret because the ARNs are different.

*/ inline void SetARN(const char* value) { m_aRN.assign(value); } /** *

The Amazon Resource Name (ARN) of the secret that you just created.

*

Secrets Manager automatically adds several random characters to the * name at the end of the ARN when you initially create a secret. This affects only * the ARN and not the actual friendly name. This ensures that if you create a new * secret with the same name as an old secret that you previously deleted, then * users with access to the old secret don't automatically get access to the * new secret because the ARNs are different.

*/ inline CreateSecretResult& WithARN(const Aws::String& value) { SetARN(value); return *this;} /** *

The Amazon Resource Name (ARN) of the secret that you just created.

*

Secrets Manager automatically adds several random characters to the * name at the end of the ARN when you initially create a secret. This affects only * the ARN and not the actual friendly name. This ensures that if you create a new * secret with the same name as an old secret that you previously deleted, then * users with access to the old secret don't automatically get access to the * new secret because the ARNs are different.

*/ inline CreateSecretResult& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the secret that you just created.

*

Secrets Manager automatically adds several random characters to the * name at the end of the ARN when you initially create a secret. This affects only * the ARN and not the actual friendly name. This ensures that if you create a new * secret with the same name as an old secret that you previously deleted, then * users with access to the old secret don't automatically get access to the * new secret because the ARNs are different.

*/ inline CreateSecretResult& WithARN(const char* value) { SetARN(value); return *this;} /** *

The friendly name of the secret that you just created.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The friendly name of the secret that you just created.

*/ inline void SetName(const Aws::String& value) { m_name = value; } /** *

The friendly name of the secret that you just created.

*/ inline void SetName(Aws::String&& value) { m_name = std::move(value); } /** *

The friendly name of the secret that you just created.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The friendly name of the secret that you just created.

*/ inline CreateSecretResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The friendly name of the secret that you just created.

*/ inline CreateSecretResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The friendly name of the secret that you just created.

*/ inline CreateSecretResult& WithName(const char* value) { SetName(value); return *this;} /** *

The unique identifier associated with the version of the secret you just * created.

*/ inline const Aws::String& GetVersionId() const{ return m_versionId; } /** *

The unique identifier associated with the version of the secret you just * created.

*/ inline void SetVersionId(const Aws::String& value) { m_versionId = value; } /** *

The unique identifier associated with the version of the secret you just * created.

*/ inline void SetVersionId(Aws::String&& value) { m_versionId = std::move(value); } /** *

The unique identifier associated with the version of the secret you just * created.

*/ inline void SetVersionId(const char* value) { m_versionId.assign(value); } /** *

The unique identifier associated with the version of the secret you just * created.

*/ inline CreateSecretResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} /** *

The unique identifier associated with the version of the secret you just * created.

*/ inline CreateSecretResult& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} /** *

The unique identifier associated with the version of the secret you just * created.

*/ inline CreateSecretResult& WithVersionId(const char* value) { SetVersionId(value); return *this;} private: Aws::String m_aRN; Aws::String m_name; Aws::String m_versionId; }; } // namespace Model } // namespace SecretsManager } // namespace Aws