AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateServiceSpecificCredentialRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/iam/IAM_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace IAM {
15namespace Model {
16
20 public:
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceSpecificCredential"; }
28
29 AWS_IAM_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
45 inline const Aws::String& GetUserName() const { return m_userName; }
46 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
47 template <typename UserNameT = Aws::String>
48 void SetUserName(UserNameT&& value) {
49 m_userNameHasBeenSet = true;
50 m_userName = std::forward<UserNameT>(value);
51 }
52 template <typename UserNameT = Aws::String>
54 SetUserName(std::forward<UserNameT>(value));
55 return *this;
56 }
58
60
65 inline const Aws::String& GetServiceName() const { return m_serviceName; }
66 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
67 template <typename ServiceNameT = Aws::String>
68 void SetServiceName(ServiceNameT&& value) {
69 m_serviceNameHasBeenSet = true;
70 m_serviceName = std::forward<ServiceNameT>(value);
71 }
72 template <typename ServiceNameT = Aws::String>
74 SetServiceName(std::forward<ServiceNameT>(value));
75 return *this;
76 }
78
80
85 inline int GetCredentialAgeDays() const { return m_credentialAgeDays; }
86 inline bool CredentialAgeDaysHasBeenSet() const { return m_credentialAgeDaysHasBeenSet; }
87 inline void SetCredentialAgeDays(int value) {
88 m_credentialAgeDaysHasBeenSet = true;
89 m_credentialAgeDays = value;
90 }
93 return *this;
94 }
96 private:
97 Aws::String m_userName;
98
99 Aws::String m_serviceName;
100
101 int m_credentialAgeDays{0};
102 bool m_userNameHasBeenSet = false;
103 bool m_serviceNameHasBeenSet = false;
104 bool m_credentialAgeDaysHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace IAM
109} // namespace Aws
CreateServiceSpecificCredentialRequest & WithUserName(UserNameT &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateServiceSpecificCredentialRequest & WithServiceName(ServiceNameT &&value)
AWS_IAM_API Aws::String SerializePayload() const override
CreateServiceSpecificCredentialRequest & WithCredentialAgeDays(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String