AWS SDK for C++  1.9.175
AWS SDK for C++
DeleteEnvironmentMembershipRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Cloud9
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 "DeleteEnvironmentMembership"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
41 
45  inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
46 
50  inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
51 
55  inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
56 
60  inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
61 
65  inline DeleteEnvironmentMembershipRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
66 
70  inline DeleteEnvironmentMembershipRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
71 
75  inline DeleteEnvironmentMembershipRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
76 
77 
82  inline const Aws::String& GetUserArn() const{ return m_userArn; }
83 
88  inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
89 
94  inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
95 
100  inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
101 
106  inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
107 
112  inline DeleteEnvironmentMembershipRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
113 
118  inline DeleteEnvironmentMembershipRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
119 
124  inline DeleteEnvironmentMembershipRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
125 
126  private:
127 
128  Aws::String m_environmentId;
129  bool m_environmentIdHasBeenSet;
130 
131  Aws::String m_userArn;
132  bool m_userArnHasBeenSet;
133  };
134 
135 } // namespace Model
136 } // namespace Cloud9
137 } // namespace Aws
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest
Definition: DeleteEnvironmentMembershipRequest.h:22
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::SetEnvironmentId
void SetEnvironmentId(const char *value)
Definition: DeleteEnvironmentMembershipRequest.h:60
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::SetEnvironmentId
void SetEnvironmentId(Aws::String &&value)
Definition: DeleteEnvironmentMembershipRequest.h:55
AWS_CLOUD9_API
#define AWS_CLOUD9_API
Definition: Cloud9_EXPORTS.h:28
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::SetUserArn
void SetUserArn(Aws::String &&value)
Definition: DeleteEnvironmentMembershipRequest.h:100
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::GetUserArn
const Aws::String & GetUserArn() const
Definition: DeleteEnvironmentMembershipRequest.h:82
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::UserArnHasBeenSet
bool UserArnHasBeenSet() const
Definition: DeleteEnvironmentMembershipRequest.h:88
Cloud9Request.h
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::SetUserArn
void SetUserArn(const char *value)
Definition: DeleteEnvironmentMembershipRequest.h:106
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::GetEnvironmentId
const Aws::String & GetEnvironmentId() const
Definition: DeleteEnvironmentMembershipRequest.h:40
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::DeleteEnvironmentMembershipRequest
DeleteEnvironmentMembershipRequest()
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::WithUserArn
DeleteEnvironmentMembershipRequest & WithUserArn(Aws::String &&value)
Definition: DeleteEnvironmentMembershipRequest.h:118
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::SetEnvironmentId
void SetEnvironmentId(const Aws::String &value)
Definition: DeleteEnvironmentMembershipRequest.h:50
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteEnvironmentMembershipRequest.h:30
AWSString.h
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::WithUserArn
DeleteEnvironmentMembershipRequest & WithUserArn(const char *value)
Definition: DeleteEnvironmentMembershipRequest.h:124
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::WithEnvironmentId
DeleteEnvironmentMembershipRequest & WithEnvironmentId(const Aws::String &value)
Definition: DeleteEnvironmentMembershipRequest.h:65
Aws::Cloud9::Cloud9Request
Definition: Cloud9Request.h:17
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::WithEnvironmentId
DeleteEnvironmentMembershipRequest & WithEnvironmentId(const char *value)
Definition: DeleteEnvironmentMembershipRequest.h:75
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::WithEnvironmentId
DeleteEnvironmentMembershipRequest & WithEnvironmentId(Aws::String &&value)
Definition: DeleteEnvironmentMembershipRequest.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::EnvironmentIdHasBeenSet
bool EnvironmentIdHasBeenSet() const
Definition: DeleteEnvironmentMembershipRequest.h:45
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::WithUserArn
DeleteEnvironmentMembershipRequest & WithUserArn(const Aws::String &value)
Definition: DeleteEnvironmentMembershipRequest.h:112
Cloud9_EXPORTS.h
Aws::Cloud9::Model::DeleteEnvironmentMembershipRequest::SetUserArn
void SetUserArn(const Aws::String &value)
Definition: DeleteEnvironmentMembershipRequest.h:94