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

A temporary password that authorizes the user name returned by * DbUser to log on to the database DbName.

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

A temporary password that authorizes the user name returned by * DbUser to log on to the database DbName.

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

A temporary password that authorizes the user name returned by * DbUser to log on to the database DbName.

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

A temporary password that authorizes the user name returned by * DbUser to log on to the database DbName.

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

A temporary password that authorizes the user name returned by * DbUser to log on to the database DbName.

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

A temporary password that authorizes the user name returned by * DbUser to log on to the database DbName.

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

A temporary password that authorizes the user name returned by * DbUser to log on to the database DbName.

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

A database user name that is authorized to log on to the database * DbName using the password DbPassword. If the specified * DbUser exists in the database, the new user name has the same * database privileges as the the user named in DbUser. By default, * the user is added to PUBLIC.

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

A database user name that is authorized to log on to the database * DbName using the password DbPassword. If the specified * DbUser exists in the database, the new user name has the same * database privileges as the the user named in DbUser. By default, * the user is added to PUBLIC.

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

A database user name that is authorized to log on to the database * DbName using the password DbPassword. If the specified * DbUser exists in the database, the new user name has the same * database privileges as the the user named in DbUser. By default, * the user is added to PUBLIC.

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

A database user name that is authorized to log on to the database * DbName using the password DbPassword. If the specified * DbUser exists in the database, the new user name has the same * database privileges as the the user named in DbUser. By default, * the user is added to PUBLIC.

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

A database user name that is authorized to log on to the database * DbName using the password DbPassword. If the specified * DbUser exists in the database, the new user name has the same * database privileges as the the user named in DbUser. By default, * the user is added to PUBLIC.

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

A database user name that is authorized to log on to the database * DbName using the password DbPassword. If the specified * DbUser exists in the database, the new user name has the same * database privileges as the the user named in DbUser. By default, * the user is added to PUBLIC.

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

A database user name that is authorized to log on to the database * DbName using the password DbPassword. If the specified * DbUser exists in the database, the new user name has the same * database privileges as the the user named in DbUser. By default, * the user is added to PUBLIC.

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

The date and time the password in DbPassword expires.

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

The date and time the password in DbPassword expires.

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

The date and time the password in DbPassword expires.

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

The date and time the password in DbPassword expires.

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

The date and time the password in DbPassword expires.

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

The date and time of when the DbUser and DbPassword * authorization refreshes.

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

The date and time of when the DbUser and DbPassword * authorization refreshes.

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

The date and time of when the DbUser and DbPassword * authorization refreshes.

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

The date and time of when the DbUser and DbPassword * authorization refreshes.

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

The date and time of when the DbUser and DbPassword * authorization refreshes.

*/ inline GetCredentialsResult& WithNextRefreshTime(Aws::Utils::DateTime&& value) { SetNextRefreshTime(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetCredentialsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetCredentialsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetCredentialsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_dbPassword; Aws::String m_dbUser; Aws::Utils::DateTime m_expiration; Aws::Utils::DateTime m_nextRefreshTime; Aws::String m_requestId; }; } // namespace Model } // namespace RedshiftServerless } // namespace Aws