AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEnvironmentMembershipRequest.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 "CreateEnvironmentMembership"; }
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 CreateEnvironmentMembershipRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
50 inline CreateEnvironmentMembershipRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
52
54
57 inline const Aws::String& GetUserArn() const{ return m_userArn; }
58 inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
59 inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
60 inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
61 inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
62 inline CreateEnvironmentMembershipRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
63 inline CreateEnvironmentMembershipRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
64 inline CreateEnvironmentMembershipRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
66
68
75 inline const MemberPermissions& GetPermissions() const{ return m_permissions; }
76 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
77 inline void SetPermissions(const MemberPermissions& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
78 inline void SetPermissions(MemberPermissions&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
80 inline CreateEnvironmentMembershipRequest& WithPermissions(MemberPermissions&& value) { SetPermissions(std::move(value)); return *this;}
82 private:
83
84 Aws::String m_environmentId;
85 bool m_environmentIdHasBeenSet = false;
86
87 Aws::String m_userArn;
88 bool m_userArnHasBeenSet = false;
89
90 MemberPermissions m_permissions;
91 bool m_permissionsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Cloud9
96} // namespace Aws
CreateEnvironmentMembershipRequest & WithPermissions(const MemberPermissions &value)
CreateEnvironmentMembershipRequest & WithEnvironmentId(const Aws::String &value)
CreateEnvironmentMembershipRequest & WithEnvironmentId(const char *value)
AWS_CLOUD9_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CLOUD9_API Aws::String SerializePayload() const override
CreateEnvironmentMembershipRequest & WithUserArn(const char *value)
CreateEnvironmentMembershipRequest & WithUserArn(Aws::String &&value)
CreateEnvironmentMembershipRequest & WithEnvironmentId(Aws::String &&value)
CreateEnvironmentMembershipRequest & WithPermissions(MemberPermissions &&value)
CreateEnvironmentMembershipRequest & WithUserArn(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String