AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEnvironmentMembershipRequest.h
1
6#pragma once
7#include <aws/cloud9/Cloud9_EXPORTS.h>
8#include <aws/cloud9/Cloud9Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloud9/model/MemberPermissions.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Cloud9
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironmentMembership"; }
32
33 AWS_CLOUD9_API Aws::String SerializePayload() const override;
34
36
37
39
43 inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
44 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
45 inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
46 inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
47 inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
49 inline UpdateEnvironmentMembershipRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
50 inline UpdateEnvironmentMembershipRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
52
54
58 inline const Aws::String& GetUserArn() const{ return m_userArn; }
59 inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
60 inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
61 inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
62 inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
63 inline UpdateEnvironmentMembershipRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
64 inline UpdateEnvironmentMembershipRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
65 inline UpdateEnvironmentMembershipRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
67
69
76 inline const MemberPermissions& GetPermissions() const{ return m_permissions; }
77 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
78 inline void SetPermissions(const MemberPermissions& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
79 inline void SetPermissions(MemberPermissions&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
81 inline UpdateEnvironmentMembershipRequest& WithPermissions(MemberPermissions&& value) { SetPermissions(std::move(value)); return *this;}
83 private:
84
85 Aws::String m_environmentId;
86 bool m_environmentIdHasBeenSet = false;
87
88 Aws::String m_userArn;
89 bool m_userArnHasBeenSet = false;
90
91 MemberPermissions m_permissions;
92 bool m_permissionsHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace Cloud9
97} // namespace Aws
UpdateEnvironmentMembershipRequest & WithEnvironmentId(const char *value)
UpdateEnvironmentMembershipRequest & WithUserArn(const char *value)
AWS_CLOUD9_API Aws::String SerializePayload() const override
UpdateEnvironmentMembershipRequest & WithUserArn(Aws::String &&value)
UpdateEnvironmentMembershipRequest & WithEnvironmentId(const Aws::String &value)
AWS_CLOUD9_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEnvironmentMembershipRequest & WithPermissions(MemberPermissions &&value)
UpdateEnvironmentMembershipRequest & WithPermissions(const MemberPermissions &value)
UpdateEnvironmentMembershipRequest & WithUserArn(const Aws::String &value)
UpdateEnvironmentMembershipRequest & WithEnvironmentId(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String