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

A database user name that you provide when you connect to a database. The * database user is mapped 1:1 to the source IAM identity.

*/ inline const Aws::String& GetDbUser() const{ return m_dbUser; } /** *

A database user name that you provide when you connect to a database. The * database user is mapped 1:1 to the source IAM identity.

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

A database user name that you provide when you connect to a database. The * database user is mapped 1:1 to the source IAM identity.

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

A database user name that you provide when you connect to a database. The * database user is mapped 1:1 to the source IAM identity.

*/ inline void SetDbUser(const char* value) { m_dbUser.assign(value); } /** *

A database user name that you provide when you connect to a database. The * database user is mapped 1:1 to the source IAM identity.

*/ inline GetClusterCredentialsWithIAMResult& WithDbUser(const Aws::String& value) { SetDbUser(value); return *this;} /** *

A database user name that you provide when you connect to a database. The * database user is mapped 1:1 to the source IAM identity.

*/ inline GetClusterCredentialsWithIAMResult& WithDbUser(Aws::String&& value) { SetDbUser(std::move(value)); return *this;} /** *

A database user name that you provide when you connect to a database. The * database user is mapped 1:1 to the source IAM identity.

*/ inline GetClusterCredentialsWithIAMResult& WithDbUser(const char* value) { SetDbUser(value); return *this;} /** *

A temporary password that you provide when you connect to a database.

*/ inline const Aws::String& GetDbPassword() const{ return m_dbPassword; } /** *

A temporary password that you provide when you connect to a database.

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

A temporary password that you provide when you connect to a database.

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

A temporary password that you provide when you connect to a database.

*/ inline void SetDbPassword(const char* value) { m_dbPassword.assign(value); } /** *

A temporary password that you provide when you connect to a database.

*/ inline GetClusterCredentialsWithIAMResult& WithDbPassword(const Aws::String& value) { SetDbPassword(value); return *this;} /** *

A temporary password that you provide when you connect to a database.

*/ inline GetClusterCredentialsWithIAMResult& WithDbPassword(Aws::String&& value) { SetDbPassword(std::move(value)); return *this;} /** *

A temporary password that you provide when you connect to a database.

*/ inline GetClusterCredentialsWithIAMResult& WithDbPassword(const char* value) { SetDbPassword(value); return *this;} /** *

The time (UTC) when the temporary password expires. After this timestamp, a * log in with the temporary password fails.

*/ inline const Aws::Utils::DateTime& GetExpiration() const{ return m_expiration; } /** *

The time (UTC) when the temporary password expires. After this timestamp, a * log in with the temporary password fails.

*/ inline void SetExpiration(const Aws::Utils::DateTime& value) { m_expiration = value; } /** *

The time (UTC) when the temporary password expires. After this timestamp, a * log in with the temporary password fails.

*/ inline void SetExpiration(Aws::Utils::DateTime&& value) { m_expiration = std::move(value); } /** *

The time (UTC) when the temporary password expires. After this timestamp, a * log in with the temporary password fails.

*/ inline GetClusterCredentialsWithIAMResult& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;} /** *

The time (UTC) when the temporary password expires. After this timestamp, a * log in with the temporary password fails.

*/ inline GetClusterCredentialsWithIAMResult& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(std::move(value)); return *this;} /** *

Reserved for future use.

*/ inline const Aws::Utils::DateTime& GetNextRefreshTime() const{ return m_nextRefreshTime; } /** *

Reserved for future use.

*/ inline void SetNextRefreshTime(const Aws::Utils::DateTime& value) { m_nextRefreshTime = value; } /** *

Reserved for future use.

*/ inline void SetNextRefreshTime(Aws::Utils::DateTime&& value) { m_nextRefreshTime = std::move(value); } /** *

Reserved for future use.

*/ inline GetClusterCredentialsWithIAMResult& WithNextRefreshTime(const Aws::Utils::DateTime& value) { SetNextRefreshTime(value); return *this;} /** *

Reserved for future use.

*/ inline GetClusterCredentialsWithIAMResult& WithNextRefreshTime(Aws::Utils::DateTime&& value) { SetNextRefreshTime(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline GetClusterCredentialsWithIAMResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetClusterCredentialsWithIAMResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_dbUser; Aws::String m_dbPassword; Aws::Utils::DateTime m_expiration; Aws::Utils::DateTime m_nextRefreshTime; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace Redshift } // namespace Aws