AWS SDK for C++  1.8.71
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 
34  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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
DeleteEnvironmentMembershipRequest & WithUserArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
DeleteEnvironmentMembershipRequest & WithEnvironmentId(const Aws::String &value)
DeleteEnvironmentMembershipRequest & WithEnvironmentId(const char *value)
DeleteEnvironmentMembershipRequest & WithEnvironmentId(Aws::String &&value)
DeleteEnvironmentMembershipRequest & WithUserArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DeleteEnvironmentMembershipRequest & WithUserArn(const char *value)
#define AWS_CLOUD9_API