AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateAccessKeyRequest.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>
17 #include <aws/iam/IAMRequest.h>
20 
21 namespace Aws
22 {
23 namespace IAM
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
42  inline const Aws::String& GetUserName() const{ return m_userName; }
43 
50  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
51 
58  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = value; }
59 
66  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
67 
74  inline UpdateAccessKeyRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
75 
82  inline UpdateAccessKeyRequest& WithUserName(Aws::String&& value) { SetUserName(value); return *this;}
83 
90  inline UpdateAccessKeyRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
91 
98  inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
99 
106  inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
107 
114  inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
115 
122  inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
123 
130  inline UpdateAccessKeyRequest& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
131 
138  inline UpdateAccessKeyRequest& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(value); return *this;}
139 
146  inline UpdateAccessKeyRequest& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
147 
153  inline const StatusType& GetStatus() const{ return m_status; }
154 
160  inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
161 
167  inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = value; }
168 
174  inline UpdateAccessKeyRequest& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
175 
181  inline UpdateAccessKeyRequest& WithStatus(StatusType&& value) { SetStatus(value); return *this;}
182 
183  private:
184  Aws::String m_userName;
185  bool m_userNameHasBeenSet;
186  Aws::String m_accessKeyId;
187  bool m_accessKeyIdHasBeenSet;
188  StatusType m_status;
189  bool m_statusHasBeenSet;
190  };
191 
192 } // namespace Model
193 } // namespace IAM
194 } // namespace Aws
void SetUserName(const Aws::String &value)
UpdateAccessKeyRequest & WithUserName(const char *value)
void SetAccessKeyId(const Aws::String &value)
UpdateAccessKeyRequest & WithAccessKeyId(const Aws::String &value)
UpdateAccessKeyRequest & WithUserName(const Aws::String &value)
UpdateAccessKeyRequest & WithAccessKeyId(const char *value)
UpdateAccessKeyRequest & WithAccessKeyId(Aws::String &&value)
UpdateAccessKeyRequest & WithUserName(Aws::String &&value)
const Aws::String & GetAccessKeyId() const
UpdateAccessKeyRequest & WithStatus(StatusType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:34
UpdateAccessKeyRequest & WithStatus(const StatusType &value)
JSON (JavaScript Object Notation).