AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateAccessKeyRequest.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iam/model/StatusType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace IAM
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAccessKey"; }
32
33 AWS_IAM_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
48 inline const Aws::String& GetUserName() const{ return m_userName; }
49 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
50 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
51 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
52 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
53 inline UpdateAccessKeyRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
54 inline UpdateAccessKeyRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
55 inline UpdateAccessKeyRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
57
59
65 inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
66 inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
67 inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
68 inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
69 inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
70 inline UpdateAccessKeyRequest& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
71 inline UpdateAccessKeyRequest& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
72 inline UpdateAccessKeyRequest& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
74
76
81 inline const StatusType& GetStatus() const{ return m_status; }
82 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
83 inline void SetStatus(const StatusType& value) { m_statusHasBeenSet = true; m_status = value; }
84 inline void SetStatus(StatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
85 inline UpdateAccessKeyRequest& WithStatus(const StatusType& value) { SetStatus(value); return *this;}
86 inline UpdateAccessKeyRequest& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;}
88 private:
89
90 Aws::String m_userName;
91 bool m_userNameHasBeenSet = false;
92
93 Aws::String m_accessKeyId;
94 bool m_accessKeyIdHasBeenSet = false;
95
96 StatusType m_status;
97 bool m_statusHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace IAM
102} // namespace Aws
void SetUserName(const Aws::String &value)
UpdateAccessKeyRequest & WithStatus(StatusType &&value)
UpdateAccessKeyRequest & WithUserName(Aws::String &&value)
UpdateAccessKeyRequest & WithUserName(const Aws::String &value)
void SetAccessKeyId(const Aws::String &value)
UpdateAccessKeyRequest & WithAccessKeyId(Aws::String &&value)
AWS_IAM_API Aws::String SerializePayload() const override
UpdateAccessKeyRequest & WithAccessKeyId(const Aws::String &value)
UpdateAccessKeyRequest & WithUserName(const char *value)
UpdateAccessKeyRequest & WithStatus(const StatusType &value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
UpdateAccessKeyRequest & WithAccessKeyId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String