AWS SDK for C++  0.12.9
AWS SDK for C++
AccessKeyLastUsed.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 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace IAM
31 {
32 namespace Model
33 {
34 
41  {
42  public:
45  AccessKeyLastUsed& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
58  inline const Aws::Utils::DateTime& GetLastUsedDate() const{ return m_lastUsedDate; }
59 
68  inline void SetLastUsedDate(const Aws::Utils::DateTime& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = value; }
69 
78  inline void SetLastUsedDate(Aws::Utils::DateTime&& value) { m_lastUsedDateHasBeenSet = true; m_lastUsedDate = value; }
79 
88  inline AccessKeyLastUsed& WithLastUsedDate(const Aws::Utils::DateTime& value) { SetLastUsedDate(value); return *this;}
89 
98  inline AccessKeyLastUsed& WithLastUsedDate(Aws::Utils::DateTime&& value) { SetLastUsedDate(value); return *this;}
99 
107  inline const Aws::String& GetServiceName() const{ return m_serviceName; }
108 
116  inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
117 
125  inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
126 
134  inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
135 
143  inline AccessKeyLastUsed& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
144 
152  inline AccessKeyLastUsed& WithServiceName(Aws::String&& value) { SetServiceName(value); return *this;}
153 
161  inline AccessKeyLastUsed& WithServiceName(const char* value) { SetServiceName(value); return *this;}
162 
173  inline const Aws::String& GetRegion() const{ return m_region; }
174 
185  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
186 
197  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = value; }
198 
209  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
210 
221  inline AccessKeyLastUsed& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
222 
233  inline AccessKeyLastUsed& WithRegion(Aws::String&& value) { SetRegion(value); return *this;}
234 
245  inline AccessKeyLastUsed& WithRegion(const char* value) { SetRegion(value); return *this;}
246 
247  private:
248  Aws::Utils::DateTime m_lastUsedDate;
249  bool m_lastUsedDateHasBeenSet;
250  Aws::String m_serviceName;
251  bool m_serviceNameHasBeenSet;
252  Aws::String m_region;
253  bool m_regionHasBeenSet;
254  };
255 
256 } // namespace Model
257 } // namespace IAM
258 } // namespace Aws
AccessKeyLastUsed & WithRegion(const Aws::String &value)
AccessKeyLastUsed & WithRegion(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUsedDate() const
AccessKeyLastUsed & WithServiceName(Aws::String &&value)
AccessKeyLastUsed & WithLastUsedDate(Aws::Utils::DateTime &&value)
void SetRegion(const Aws::String &value)
AccessKeyLastUsed & WithServiceName(const char *value)
void SetServiceName(Aws::String &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetLastUsedDate(const Aws::Utils::DateTime &value)
void SetServiceName(const char *value)
void SetServiceName(const Aws::String &value)
AccessKeyLastUsed & WithRegion(const char *value)
void SetLastUsedDate(Aws::Utils::DateTime &&value)
AccessKeyLastUsed & WithLastUsedDate(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AccessKeyLastUsed & WithServiceName(const Aws::String &value)
const Aws::String & GetRegion() const
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
const Aws::String & GetServiceName() const
void SetRegion(Aws::String &&value)
JSON (JavaScript Object Notation).