AWS SDK for C++  0.12.9
AWS SDK for C++
GetAccessKeyLastUsedResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iam/IAM_EXPORTS.h>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlDocument;
31 } // namespace Xml
32 } // namespace Utils
33 namespace IAM
34 {
35 namespace Model
36 {
43  {
44  public:
48 
52  inline const Aws::String& GetUserName() const{ return m_userName; }
53 
57  inline void SetUserName(const Aws::String& value) { m_userName = value; }
58 
62  inline void SetUserName(Aws::String&& value) { m_userName = value; }
63 
67  inline void SetUserName(const char* value) { m_userName.assign(value); }
68 
72  inline GetAccessKeyLastUsedResult& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
73 
77  inline GetAccessKeyLastUsedResult& WithUserName(Aws::String&& value) { SetUserName(value); return *this;}
78 
82  inline GetAccessKeyLastUsedResult& WithUserName(const char* value) { SetUserName(value); return *this;}
83 
87  inline const AccessKeyLastUsed& GetAccessKeyLastUsed() const{ return m_accessKeyLastUsed; }
88 
92  inline void SetAccessKeyLastUsed(const AccessKeyLastUsed& value) { m_accessKeyLastUsed = value; }
93 
97  inline void SetAccessKeyLastUsed(AccessKeyLastUsed&& value) { m_accessKeyLastUsed = value; }
98 
102  inline GetAccessKeyLastUsedResult& WithAccessKeyLastUsed(const AccessKeyLastUsed& value) { SetAccessKeyLastUsed(value); return *this;}
103 
107  inline GetAccessKeyLastUsedResult& WithAccessKeyLastUsed(AccessKeyLastUsed&& value) { SetAccessKeyLastUsed(value); return *this;}
108 
109 
110  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
111 
112 
113  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
114 
115 
116  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
117 
118 
119  inline GetAccessKeyLastUsedResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
120 
121 
122  inline GetAccessKeyLastUsedResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
123 
124  private:
125  Aws::String m_userName;
126  AccessKeyLastUsed m_accessKeyLastUsed;
127  ResponseMetadata m_responseMetadata;
128  };
129 
130 } // namespace Model
131 } // namespace IAM
132 } // namespace Aws
const ResponseMetadata & GetResponseMetadata() const
GetAccessKeyLastUsedResult & WithUserName(const Aws::String &value)
GetAccessKeyLastUsedResult & WithUserName(const char *value)
void SetAccessKeyLastUsed(AccessKeyLastUsed &&value)
const AccessKeyLastUsed & GetAccessKeyLastUsed() const
GetAccessKeyLastUsedResult & WithResponseMetadata(const ResponseMetadata &value)
void SetAccessKeyLastUsed(const AccessKeyLastUsed &value)
GetAccessKeyLastUsedResult & WithAccessKeyLastUsed(const AccessKeyLastUsed &value)
void SetResponseMetadata(const ResponseMetadata &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetAccessKeyLastUsedResult & WithUserName(Aws::String &&value)
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
GetAccessKeyLastUsedResult & WithAccessKeyLastUsed(AccessKeyLastUsed &&value)
GetAccessKeyLastUsedResult & WithResponseMetadata(ResponseMetadata &&value)
JSON (JavaScript Object Notation).