AWS SDK for C++  1.9.104
AWS SDK for C++
GetAccessKeyInfoRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sts/STS_EXPORTS.h>
8 #include <aws/sts/STSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace STS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "GetAccessKeyInfo"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
44  inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
45 
51  inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
52 
58  inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
59 
65  inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
66 
72  inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
73 
79  inline GetAccessKeyInfoRequest& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
80 
86  inline GetAccessKeyInfoRequest& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
87 
93  inline GetAccessKeyInfoRequest& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
94 
95  private:
96 
97  Aws::String m_accessKeyId;
98  bool m_accessKeyIdHasBeenSet;
99  };
100 
101 } // namespace Model
102 } // namespace STS
103 } // namespace Aws
Aws::STS::STSRequest
Definition: STSRequest.h:17
Aws::Http::URI
Definition: URI.h:32
Aws::STS::Model::GetAccessKeyInfoRequest::SetAccessKeyId
void SetAccessKeyId(const char *value)
Definition: GetAccessKeyInfoRequest.h:72
Aws::STS::Model::GetAccessKeyInfoRequest::WithAccessKeyId
GetAccessKeyInfoRequest & WithAccessKeyId(const char *value)
Definition: GetAccessKeyInfoRequest.h:93
AWS_STS_API
#define AWS_STS_API
Definition: STS_EXPORTS.h:28
Aws::STS::Model::GetAccessKeyInfoRequest::SetAccessKeyId
void SetAccessKeyId(Aws::String &&value)
Definition: GetAccessKeyInfoRequest.h:65
Aws::STS::Model::GetAccessKeyInfoRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::STS::Model::GetAccessKeyInfoRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetAccessKeyInfoRequest.h:30
STS_EXPORTS.h
Aws::STS::Model::GetAccessKeyInfoRequest::WithAccessKeyId
GetAccessKeyInfoRequest & WithAccessKeyId(Aws::String &&value)
Definition: GetAccessKeyInfoRequest.h:86
Aws::STS::Model::GetAccessKeyInfoRequest::AccessKeyIdHasBeenSet
bool AccessKeyIdHasBeenSet() const
Definition: GetAccessKeyInfoRequest.h:51
AWSString.h
Aws::STS::Model::GetAccessKeyInfoRequest
Definition: GetAccessKeyInfoRequest.h:22
Aws::STS::Model::GetAccessKeyInfoRequest::GetAccessKeyInfoRequest
GetAccessKeyInfoRequest()
Aws::STS::Model::GetAccessKeyInfoRequest::SetAccessKeyId
void SetAccessKeyId(const Aws::String &value)
Definition: GetAccessKeyInfoRequest.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::STS::Model::GetAccessKeyInfoRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::STS::Model::GetAccessKeyInfoRequest::GetAccessKeyId
const Aws::String & GetAccessKeyId() const
Definition: GetAccessKeyInfoRequest.h:44
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::STS::Model::GetAccessKeyInfoRequest::WithAccessKeyId
GetAccessKeyInfoRequest & WithAccessKeyId(const Aws::String &value)
Definition: GetAccessKeyInfoRequest.h:79
STSRequest.h