/** * 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 { /** *

Temporary credentials with authorization to log on to an Amazon Redshift * database.

See Also:

AWS * API Reference

*/ class GetClusterCredentialsResult { public: AWS_REDSHIFT_API GetClusterCredentialsResult(); AWS_REDSHIFT_API GetClusterCredentialsResult(const Aws::AmazonWebServiceResult& result); AWS_REDSHIFT_API GetClusterCredentialsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 * permissions as the the user named in DbUser. By default, the user is added to * PUBLIC. If the DbGroups parameter is specifed, DbUser * is added to the listed groups for any sessions created using these * credentials.

*/ 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 * permissions as the the user named in DbUser. By default, the user is added to * PUBLIC. If the DbGroups parameter is specifed, DbUser * is added to the listed groups for any sessions created using these * credentials.

*/ 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 * permissions as the the user named in DbUser. By default, the user is added to * PUBLIC. If the DbGroups parameter is specifed, DbUser * is added to the listed groups for any sessions created using these * credentials.

*/ 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 * permissions as the the user named in DbUser. By default, the user is added to * PUBLIC. If the DbGroups parameter is specifed, DbUser * is added to the listed groups for any sessions created using these * credentials.

*/ 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 * permissions as the the user named in DbUser. By default, the user is added to * PUBLIC. If the DbGroups parameter is specifed, DbUser * is added to the listed groups for any sessions created using these * credentials.

*/ inline GetClusterCredentialsResult& 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 * permissions as the the user named in DbUser. By default, the user is added to * PUBLIC. If the DbGroups parameter is specifed, DbUser * is added to the listed groups for any sessions created using these * credentials.

*/ inline GetClusterCredentialsResult& 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 * permissions as the the user named in DbUser. By default, the user is added to * PUBLIC. If the DbGroups parameter is specifed, DbUser * is added to the listed groups for any sessions created using these * credentials.

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

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 GetClusterCredentialsResult& 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 GetClusterCredentialsResult& 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 GetClusterCredentialsResult& WithDbPassword(const char* value) { SetDbPassword(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 GetClusterCredentialsResult& WithExpiration(const Aws::Utils::DateTime& value) { SetExpiration(value); return *this;} /** *

The date and time the password in DbPassword expires.

*/ inline GetClusterCredentialsResult& WithExpiration(Aws::Utils::DateTime&& value) { SetExpiration(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 GetClusterCredentialsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetClusterCredentialsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_dbUser; Aws::String m_dbPassword; Aws::Utils::DateTime m_expiration; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace Redshift } // namespace Aws