AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
EnvironmentMember.h
1
6#pragma once
7#include <aws/cloud9/Cloud9_EXPORTS.h>
8#include <aws/cloud9/model/Permissions.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Cloud9
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUD9_API EnvironmentMember();
40 AWS_CLOUD9_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const Permissions& GetPermissions() const{ return m_permissions; }
52 inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; }
53 inline void SetPermissions(const Permissions& value) { m_permissionsHasBeenSet = true; m_permissions = value; }
54 inline void SetPermissions(Permissions&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); }
55 inline EnvironmentMember& WithPermissions(const Permissions& value) { SetPermissions(value); return *this;}
56 inline EnvironmentMember& WithPermissions(Permissions&& value) { SetPermissions(std::move(value)); return *this;}
58
60
64 inline const Aws::String& GetUserId() const{ return m_userId; }
65 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
66 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
67 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
68 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
69 inline EnvironmentMember& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
70 inline EnvironmentMember& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
71 inline EnvironmentMember& WithUserId(const char* value) { SetUserId(value); return *this;}
73
75
78 inline const Aws::String& GetUserArn() const{ return m_userArn; }
79 inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
80 inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
81 inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
82 inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
83 inline EnvironmentMember& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
84 inline EnvironmentMember& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
85 inline EnvironmentMember& WithUserArn(const char* value) { SetUserArn(value); return *this;}
87
89
92 inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
93 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
94 inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
95 inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
96 inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
97 inline EnvironmentMember& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
98 inline EnvironmentMember& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
99 inline EnvironmentMember& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
101
103
107 inline const Aws::Utils::DateTime& GetLastAccess() const{ return m_lastAccess; }
108 inline bool LastAccessHasBeenSet() const { return m_lastAccessHasBeenSet; }
109 inline void SetLastAccess(const Aws::Utils::DateTime& value) { m_lastAccessHasBeenSet = true; m_lastAccess = value; }
110 inline void SetLastAccess(Aws::Utils::DateTime&& value) { m_lastAccessHasBeenSet = true; m_lastAccess = std::move(value); }
111 inline EnvironmentMember& WithLastAccess(const Aws::Utils::DateTime& value) { SetLastAccess(value); return *this;}
112 inline EnvironmentMember& WithLastAccess(Aws::Utils::DateTime&& value) { SetLastAccess(std::move(value)); return *this;}
114 private:
115
116 Permissions m_permissions;
117 bool m_permissionsHasBeenSet = false;
118
119 Aws::String m_userId;
120 bool m_userIdHasBeenSet = false;
121
122 Aws::String m_userArn;
123 bool m_userArnHasBeenSet = false;
124
125 Aws::String m_environmentId;
126 bool m_environmentIdHasBeenSet = false;
127
128 Aws::Utils::DateTime m_lastAccess;
129 bool m_lastAccessHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace Cloud9
134} // namespace Aws
EnvironmentMember & WithPermissions(const Permissions &value)
EnvironmentMember & WithLastAccess(const Aws::Utils::DateTime &value)
void SetLastAccess(const Aws::Utils::DateTime &value)
EnvironmentMember & WithPermissions(Permissions &&value)
AWS_CLOUD9_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPermissions(Permissions &&value)
void SetPermissions(const Permissions &value)
EnvironmentMember & WithUserId(const char *value)
const Aws::String & GetUserId() const
AWS_CLOUD9_API EnvironmentMember & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUD9_API EnvironmentMember(Aws::Utils::Json::JsonView jsonValue)
const Permissions & GetPermissions() const
void SetUserId(const Aws::String &value)
EnvironmentMember & WithUserArn(const Aws::String &value)
void SetEnvironmentId(const Aws::String &value)
EnvironmentMember & WithLastAccess(Aws::Utils::DateTime &&value)
EnvironmentMember & WithUserId(const Aws::String &value)
const Aws::Utils::DateTime & GetLastAccess() const
const Aws::String & GetUserArn() const
EnvironmentMember & WithEnvironmentId(const Aws::String &value)
void SetEnvironmentId(Aws::String &&value)
void SetUserArn(const Aws::String &value)
const Aws::String & GetEnvironmentId() const
EnvironmentMember & WithEnvironmentId(Aws::String &&value)
void SetLastAccess(Aws::Utils::DateTime &&value)
EnvironmentMember & WithUserArn(Aws::String &&value)
EnvironmentMember & WithUserArn(const char *value)
EnvironmentMember & WithEnvironmentId(const char *value)
EnvironmentMember & WithUserId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue