/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains the response to a successful GetAccessKeyLastUsed request. It
* is also returned as a member of the AccessKeyMetaData structure returned
* by the ListAccessKeys action.See Also:
AWS
* API Reference
The name of the IAM user that owns this access key.
*/ inline const Aws::String& GetUserName() const{ return m_userName; } /** *The name of the IAM user that owns this access key.
*/ inline void SetUserName(const Aws::String& value) { m_userName = value; } /** *The name of the IAM user that owns this access key.
*/ inline void SetUserName(Aws::String&& value) { m_userName = std::move(value); } /** *The name of the IAM user that owns this access key.
*/ inline void SetUserName(const char* value) { m_userName.assign(value); } /** *The name of the IAM user that owns this access key.
*/ inline GetAccessKeyLastUsedResult& WithUserName(const Aws::String& value) { SetUserName(value); return *this;} /** *The name of the IAM user that owns this access key.
*/ inline GetAccessKeyLastUsedResult& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;} /** *The name of the IAM user that owns this access key.
*/ inline GetAccessKeyLastUsedResult& WithUserName(const char* value) { SetUserName(value); return *this;} /** *Contains information about the last time the access key was used.
*/ inline const AccessKeyLastUsed& GetAccessKeyLastUsed() const{ return m_accessKeyLastUsed; } /** *Contains information about the last time the access key was used.
*/ inline void SetAccessKeyLastUsed(const AccessKeyLastUsed& value) { m_accessKeyLastUsed = value; } /** *Contains information about the last time the access key was used.
*/ inline void SetAccessKeyLastUsed(AccessKeyLastUsed&& value) { m_accessKeyLastUsed = std::move(value); } /** *Contains information about the last time the access key was used.
*/ inline GetAccessKeyLastUsedResult& WithAccessKeyLastUsed(const AccessKeyLastUsed& value) { SetAccessKeyLastUsed(value); return *this;} /** *Contains information about the last time the access key was used.
*/ inline GetAccessKeyLastUsedResult& WithAccessKeyLastUsed(AccessKeyLastUsed&& value) { SetAccessKeyLastUsed(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 GetAccessKeyLastUsedResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline GetAccessKeyLastUsedResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_userName; AccessKeyLastUsed m_accessKeyLastUsed; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace IAM } // namespace Aws