133 lines
4.3 KiB
C++
133 lines
4.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iam/IAM_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/iam/model/AccessKeyLastUsed.h>
|
|
#include <aws/iam/model/ResponseMetadata.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
template<typename RESULT_TYPE>
|
|
class AmazonWebServiceResult;
|
|
|
|
namespace Utils
|
|
{
|
|
namespace Xml
|
|
{
|
|
class XmlDocument;
|
|
} // namespace Xml
|
|
} // namespace Utils
|
|
namespace IAM
|
|
{
|
|
namespace Model
|
|
{
|
|
/**
|
|
* <p>Contains the response to a successful <a>GetAccessKeyLastUsed</a> request. It
|
|
* is also returned as a member of the <a>AccessKeyMetaData</a> structure returned
|
|
* by the <a>ListAccessKeys</a> action.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/iam-2010-05-08/GetAccessKeyLastUsedResponse">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_IAM_API GetAccessKeyLastUsedResult
|
|
{
|
|
public:
|
|
GetAccessKeyLastUsedResult();
|
|
GetAccessKeyLastUsedResult(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
|
|
GetAccessKeyLastUsedResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Xml::XmlDocument>& result);
|
|
|
|
|
|
/**
|
|
* <p>The name of the AWS IAM user that owns this access key.</p> <p/>
|
|
*/
|
|
inline const Aws::String& GetUserName() const{ return m_userName; }
|
|
|
|
/**
|
|
* <p>The name of the AWS IAM user that owns this access key.</p> <p/>
|
|
*/
|
|
inline void SetUserName(const Aws::String& value) { m_userName = value; }
|
|
|
|
/**
|
|
* <p>The name of the AWS IAM user that owns this access key.</p> <p/>
|
|
*/
|
|
inline void SetUserName(Aws::String&& value) { m_userName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The name of the AWS IAM user that owns this access key.</p> <p/>
|
|
*/
|
|
inline void SetUserName(const char* value) { m_userName.assign(value); }
|
|
|
|
/**
|
|
* <p>The name of the AWS IAM user that owns this access key.</p> <p/>
|
|
*/
|
|
inline GetAccessKeyLastUsedResult& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the AWS IAM user that owns this access key.</p> <p/>
|
|
*/
|
|
inline GetAccessKeyLastUsedResult& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The name of the AWS IAM user that owns this access key.</p> <p/>
|
|
*/
|
|
inline GetAccessKeyLastUsedResult& WithUserName(const char* value) { SetUserName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>Contains information about the last time the access key was used.</p>
|
|
*/
|
|
inline const AccessKeyLastUsed& GetAccessKeyLastUsed() const{ return m_accessKeyLastUsed; }
|
|
|
|
/**
|
|
* <p>Contains information about the last time the access key was used.</p>
|
|
*/
|
|
inline void SetAccessKeyLastUsed(const AccessKeyLastUsed& value) { m_accessKeyLastUsed = value; }
|
|
|
|
/**
|
|
* <p>Contains information about the last time the access key was used.</p>
|
|
*/
|
|
inline void SetAccessKeyLastUsed(AccessKeyLastUsed&& value) { m_accessKeyLastUsed = std::move(value); }
|
|
|
|
/**
|
|
* <p>Contains information about the last time the access key was used.</p>
|
|
*/
|
|
inline GetAccessKeyLastUsedResult& WithAccessKeyLastUsed(const AccessKeyLastUsed& value) { SetAccessKeyLastUsed(value); return *this;}
|
|
|
|
/**
|
|
* <p>Contains information about the last time the access key was used.</p>
|
|
*/
|
|
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
|