AWS SDK for C++  1.9.40
AWS SDK for C++
DeleteServiceSpecificCredentialRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iam/IAM_EXPORTS.h>
8 #include <aws/iam/IAMRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace IAM
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 "DeleteServiceSpecificCredential"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
48  inline const Aws::String& GetUserName() const{ return m_userName; }
49 
59  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
60 
70  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
71 
81  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
82 
92  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
93 
103  inline DeleteServiceSpecificCredentialRequest& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
104 
114  inline DeleteServiceSpecificCredentialRequest& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
115 
125  inline DeleteServiceSpecificCredentialRequest& WithUserName(const char* value) { SetUserName(value); return *this;}
126 
127 
135  inline const Aws::String& GetServiceSpecificCredentialId() const{ return m_serviceSpecificCredentialId; }
136 
144  inline bool ServiceSpecificCredentialIdHasBeenSet() const { return m_serviceSpecificCredentialIdHasBeenSet; }
145 
153  inline void SetServiceSpecificCredentialId(const Aws::String& value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId = value; }
154 
162  inline void SetServiceSpecificCredentialId(Aws::String&& value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId = std::move(value); }
163 
171  inline void SetServiceSpecificCredentialId(const char* value) { m_serviceSpecificCredentialIdHasBeenSet = true; m_serviceSpecificCredentialId.assign(value); }
172 
180  inline DeleteServiceSpecificCredentialRequest& WithServiceSpecificCredentialId(const Aws::String& value) { SetServiceSpecificCredentialId(value); return *this;}
181 
189  inline DeleteServiceSpecificCredentialRequest& WithServiceSpecificCredentialId(Aws::String&& value) { SetServiceSpecificCredentialId(std::move(value)); return *this;}
190 
198  inline DeleteServiceSpecificCredentialRequest& WithServiceSpecificCredentialId(const char* value) { SetServiceSpecificCredentialId(value); return *this;}
199 
200  private:
201 
202  Aws::String m_userName;
203  bool m_userNameHasBeenSet;
204 
205  Aws::String m_serviceSpecificCredentialId;
206  bool m_serviceSpecificCredentialIdHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace IAM
211 } // namespace Aws
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest
Definition: DeleteServiceSpecificCredentialRequest.h:22
Aws::Http::URI
Definition: URI.h:32
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::WithUserName
DeleteServiceSpecificCredentialRequest & WithUserName(Aws::String &&value)
Definition: DeleteServiceSpecificCredentialRequest.h:114
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::SetServiceSpecificCredentialId
void SetServiceSpecificCredentialId(const char *value)
Definition: DeleteServiceSpecificCredentialRequest.h:171
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::IAM::IAMRequest
Definition: IAMRequest.h:17
Aws::EMR::Model::AuthMode::NOT_SET
@ NOT_SET
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::WithServiceSpecificCredentialId
DeleteServiceSpecificCredentialRequest & WithServiceSpecificCredentialId(const char *value)
Definition: DeleteServiceSpecificCredentialRequest.h:198
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::WithServiceSpecificCredentialId
DeleteServiceSpecificCredentialRequest & WithServiceSpecificCredentialId(const Aws::String &value)
Definition: DeleteServiceSpecificCredentialRequest.h:180
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::GetServiceSpecificCredentialId
const Aws::String & GetServiceSpecificCredentialId() const
Definition: DeleteServiceSpecificCredentialRequest.h:135
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::GetUserName
const Aws::String & GetUserName() const
Definition: DeleteServiceSpecificCredentialRequest.h:48
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::SetServiceSpecificCredentialId
void SetServiceSpecificCredentialId(const Aws::String &value)
Definition: DeleteServiceSpecificCredentialRequest.h:153
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: DeleteServiceSpecificCredentialRequest.h:59
AWS_IAM_API
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:28
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteServiceSpecificCredentialRequest.h:30
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::SerializePayload
Aws::String SerializePayload() const override
AWSString.h
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::WithServiceSpecificCredentialId
DeleteServiceSpecificCredentialRequest & WithServiceSpecificCredentialId(Aws::String &&value)
Definition: DeleteServiceSpecificCredentialRequest.h:189
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::WithUserName
DeleteServiceSpecificCredentialRequest & WithUserName(const char *value)
Definition: DeleteServiceSpecificCredentialRequest.h:125
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::ServiceSpecificCredentialIdHasBeenSet
bool ServiceSpecificCredentialIdHasBeenSet() const
Definition: DeleteServiceSpecificCredentialRequest.h:144
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::SetServiceSpecificCredentialId
void SetServiceSpecificCredentialId(Aws::String &&value)
Definition: DeleteServiceSpecificCredentialRequest.h:162
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::SetUserName
void SetUserName(const Aws::String &value)
Definition: DeleteServiceSpecificCredentialRequest.h:70
IAM_EXPORTS.h
IAMRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::DeleteServiceSpecificCredentialRequest
DeleteServiceSpecificCredentialRequest()
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::WithUserName
DeleteServiceSpecificCredentialRequest & WithUserName(const Aws::String &value)
Definition: DeleteServiceSpecificCredentialRequest.h:103
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::SetUserName
void SetUserName(Aws::String &&value)
Definition: DeleteServiceSpecificCredentialRequest.h:81
Aws::IAM::Model::DeleteServiceSpecificCredentialRequest::SetUserName
void SetUserName(const char *value)
Definition: DeleteServiceSpecificCredentialRequest.h:92