/** * 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 Batch { namespace Model { /** *

Specifies the configuration of a Kubernetes secret volume. For * more information, see secret in * the Kubernetes documentation.

See Also:

AWS API * Reference

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

The name of the secret. The name must be allowed as a DNS subdomain name. For * more information, see DNS * subdomain names in the Kubernetes documentation.

*/ inline const Aws::String& GetSecretName() const{ return m_secretName; } /** *

The name of the secret. The name must be allowed as a DNS subdomain name. For * more information, see DNS * subdomain names in the Kubernetes documentation.

*/ inline bool SecretNameHasBeenSet() const { return m_secretNameHasBeenSet; } /** *

The name of the secret. The name must be allowed as a DNS subdomain name. For * more information, see DNS * subdomain names in the Kubernetes documentation.

*/ inline void SetSecretName(const Aws::String& value) { m_secretNameHasBeenSet = true; m_secretName = value; } /** *

The name of the secret. The name must be allowed as a DNS subdomain name. For * more information, see DNS * subdomain names in the Kubernetes documentation.

*/ inline void SetSecretName(Aws::String&& value) { m_secretNameHasBeenSet = true; m_secretName = std::move(value); } /** *

The name of the secret. The name must be allowed as a DNS subdomain name. For * more information, see DNS * subdomain names in the Kubernetes documentation.

*/ inline void SetSecretName(const char* value) { m_secretNameHasBeenSet = true; m_secretName.assign(value); } /** *

The name of the secret. The name must be allowed as a DNS subdomain name. For * more information, see DNS * subdomain names in the Kubernetes documentation.

*/ inline EksSecret& WithSecretName(const Aws::String& value) { SetSecretName(value); return *this;} /** *

The name of the secret. The name must be allowed as a DNS subdomain name. For * more information, see DNS * subdomain names in the Kubernetes documentation.

*/ inline EksSecret& WithSecretName(Aws::String&& value) { SetSecretName(std::move(value)); return *this;} /** *

The name of the secret. The name must be allowed as a DNS subdomain name. For * more information, see DNS * subdomain names in the Kubernetes documentation.

*/ inline EksSecret& WithSecretName(const char* value) { SetSecretName(value); return *this;} /** *

Specifies whether the secret or the secret's keys must be defined.

*/ inline bool GetOptional() const{ return m_optional; } /** *

Specifies whether the secret or the secret's keys must be defined.

*/ inline bool OptionalHasBeenSet() const { return m_optionalHasBeenSet; } /** *

Specifies whether the secret or the secret's keys must be defined.

*/ inline void SetOptional(bool value) { m_optionalHasBeenSet = true; m_optional = value; } /** *

Specifies whether the secret or the secret's keys must be defined.

*/ inline EksSecret& WithOptional(bool value) { SetOptional(value); return *this;} private: Aws::String m_secretName; bool m_secretNameHasBeenSet = false; bool m_optional; bool m_optionalHasBeenSet = false; }; } // namespace Model } // namespace Batch } // namespace Aws