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

Describes the sign-in credentials for the container image registry of an * Amazon Lightsail account.

See Also:

AWS * API Reference

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

The container service registry username to use to push container images to * the container image registry of a Lightsail account.

*/ inline const Aws::String& GetUsername() const{ return m_username; } /** *

The container service registry username to use to push container images to * the container image registry of a Lightsail account.

*/ inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; } /** *

The container service registry username to use to push container images to * the container image registry of a Lightsail account.

*/ inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; } /** *

The container service registry username to use to push container images to * the container image registry of a Lightsail account.

*/ inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); } /** *

The container service registry username to use to push container images to * the container image registry of a Lightsail account.

*/ inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); } /** *

The container service registry username to use to push container images to * the container image registry of a Lightsail account.

*/ inline ContainerServiceRegistryLogin& WithUsername(const Aws::String& value) { SetUsername(value); return *this;} /** *

The container service registry username to use to push container images to * the container image registry of a Lightsail account.

*/ inline ContainerServiceRegistryLogin& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;} /** *

The container service registry username to use to push container images to * the container image registry of a Lightsail account.

*/ inline ContainerServiceRegistryLogin& WithUsername(const char* value) { SetUsername(value); return *this;} /** *

The container service registry password to use to push container images to * the container image registry of a Lightsail account

*/ inline const Aws::String& GetPassword() const{ return m_password; } /** *

The container service registry password to use to push container images to * the container image registry of a Lightsail account

*/ inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; } /** *

The container service registry password to use to push container images to * the container image registry of a Lightsail account

*/ inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; } /** *

The container service registry password to use to push container images to * the container image registry of a Lightsail account

*/ inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); } /** *

The container service registry password to use to push container images to * the container image registry of a Lightsail account

*/ inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); } /** *

The container service registry password to use to push container images to * the container image registry of a Lightsail account

*/ inline ContainerServiceRegistryLogin& WithPassword(const Aws::String& value) { SetPassword(value); return *this;} /** *

The container service registry password to use to push container images to * the container image registry of a Lightsail account

*/ inline ContainerServiceRegistryLogin& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;} /** *

The container service registry password to use to push container images to * the container image registry of a Lightsail account

*/ inline ContainerServiceRegistryLogin& WithPassword(const char* value) { SetPassword(value); return *this;} /** *

The timestamp of when the container image registry sign-in credentials * expire.

The log in credentials expire 12 hours after they are created, at * which point you will need to create a new set of log in credentials using the * CreateContainerServiceRegistryLogin action.

*/ inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; } /** *

The timestamp of when the container image registry sign-in credentials * expire.

The log in credentials expire 12 hours after they are created, at * which point you will need to create a new set of log in credentials using the * CreateContainerServiceRegistryLogin action.

*/ inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; } /** *

The timestamp of when the container image registry sign-in credentials * expire.

The log in credentials expire 12 hours after they are created, at * which point you will need to create a new set of log in credentials using the * CreateContainerServiceRegistryLogin action.

*/ inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; } /** *

The timestamp of when the container image registry sign-in credentials * expire.

The log in credentials expire 12 hours after they are created, at * which point you will need to create a new set of log in credentials using the * CreateContainerServiceRegistryLogin action.

*/ inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); } /** *

The timestamp of when the container image registry sign-in credentials * expire.

The log in credentials expire 12 hours after they are created, at * which point you will need to create a new set of log in credentials using the * CreateContainerServiceRegistryLogin action.

*/ inline ContainerServiceRegistryLogin& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;} /** *

The timestamp of when the container image registry sign-in credentials * expire.

The log in credentials expire 12 hours after they are created, at * which point you will need to create a new set of log in credentials using the * CreateContainerServiceRegistryLogin action.

*/ inline ContainerServiceRegistryLogin& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;} /** *

The address to use to push container images to the container image registry * of a Lightsail account.

*/ inline const Aws::String& GetRegistry() const{ return m_registry; } /** *

The address to use to push container images to the container image registry * of a Lightsail account.

*/ inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; } /** *

The address to use to push container images to the container image registry * of a Lightsail account.

*/ inline void SetRegistry(const Aws::String& value) { m_registryHasBeenSet = true; m_registry = value; } /** *

The address to use to push container images to the container image registry * of a Lightsail account.

*/ inline void SetRegistry(Aws::String&& value) { m_registryHasBeenSet = true; m_registry = std::move(value); } /** *

The address to use to push container images to the container image registry * of a Lightsail account.

*/ inline void SetRegistry(const char* value) { m_registryHasBeenSet = true; m_registry.assign(value); } /** *

The address to use to push container images to the container image registry * of a Lightsail account.

*/ inline ContainerServiceRegistryLogin& WithRegistry(const Aws::String& value) { SetRegistry(value); return *this;} /** *

The address to use to push container images to the container image registry * of a Lightsail account.

*/ inline ContainerServiceRegistryLogin& WithRegistry(Aws::String&& value) { SetRegistry(std::move(value)); return *this;} /** *

The address to use to push container images to the container image registry * of a Lightsail account.

*/ inline ContainerServiceRegistryLogin& WithRegistry(const char* value) { SetRegistry(value); return *this;} private: Aws::String m_username; bool m_usernameHasBeenSet = false; Aws::String m_password; bool m_passwordHasBeenSet = false; Aws::Utils::DateTime m_expiresAt; bool m_expiresAtHasBeenSet = false; Aws::String m_registry; bool m_registryHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws