feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,184 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codestar/CodeStar_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
/**
* <p>Information about a team member in a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/TeamMember">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API TeamMember
{
public:
TeamMember();
TeamMember(Aws::Utils::Json::JsonView jsonValue);
TeamMember& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline TeamMember& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline TeamMember& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline TeamMember& WithUserArn(const char* value) { SetUserArn(value); return *this;}
/**
* <p>The role assigned to the user in the project. Project roles have different
* levels of access. For more information, see <a
* href="http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html">Working
* with Teams</a> in the <i>AWS CodeStar User Guide</i>. </p>
*/
inline const Aws::String& GetProjectRole() const{ return m_projectRole; }
/**
* <p>The role assigned to the user in the project. Project roles have different
* levels of access. For more information, see <a
* href="http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html">Working
* with Teams</a> in the <i>AWS CodeStar User Guide</i>. </p>
*/
inline bool ProjectRoleHasBeenSet() const { return m_projectRoleHasBeenSet; }
/**
* <p>The role assigned to the user in the project. Project roles have different
* levels of access. For more information, see <a
* href="http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html">Working
* with Teams</a> in the <i>AWS CodeStar User Guide</i>. </p>
*/
inline void SetProjectRole(const Aws::String& value) { m_projectRoleHasBeenSet = true; m_projectRole = value; }
/**
* <p>The role assigned to the user in the project. Project roles have different
* levels of access. For more information, see <a
* href="http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html">Working
* with Teams</a> in the <i>AWS CodeStar User Guide</i>. </p>
*/
inline void SetProjectRole(Aws::String&& value) { m_projectRoleHasBeenSet = true; m_projectRole = std::move(value); }
/**
* <p>The role assigned to the user in the project. Project roles have different
* levels of access. For more information, see <a
* href="http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html">Working
* with Teams</a> in the <i>AWS CodeStar User Guide</i>. </p>
*/
inline void SetProjectRole(const char* value) { m_projectRoleHasBeenSet = true; m_projectRole.assign(value); }
/**
* <p>The role assigned to the user in the project. Project roles have different
* levels of access. For more information, see <a
* href="http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html">Working
* with Teams</a> in the <i>AWS CodeStar User Guide</i>. </p>
*/
inline TeamMember& WithProjectRole(const Aws::String& value) { SetProjectRole(value); return *this;}
/**
* <p>The role assigned to the user in the project. Project roles have different
* levels of access. For more information, see <a
* href="http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html">Working
* with Teams</a> in the <i>AWS CodeStar User Guide</i>. </p>
*/
inline TeamMember& WithProjectRole(Aws::String&& value) { SetProjectRole(std::move(value)); return *this;}
/**
* <p>The role assigned to the user in the project. Project roles have different
* levels of access. For more information, see <a
* href="http://docs.aws.amazon.com/codestar/latest/userguide/working-with-teams.html">Working
* with Teams</a> in the <i>AWS CodeStar User Guide</i>. </p>
*/
inline TeamMember& WithProjectRole(const char* value) { SetProjectRole(value); return *this;}
/**
* <p>Whether the user is allowed to remotely access project resources using an SSH
* public/private key pair.</p>
*/
inline bool GetRemoteAccessAllowed() const{ return m_remoteAccessAllowed; }
/**
* <p>Whether the user is allowed to remotely access project resources using an SSH
* public/private key pair.</p>
*/
inline bool RemoteAccessAllowedHasBeenSet() const { return m_remoteAccessAllowedHasBeenSet; }
/**
* <p>Whether the user is allowed to remotely access project resources using an SSH
* public/private key pair.</p>
*/
inline void SetRemoteAccessAllowed(bool value) { m_remoteAccessAllowedHasBeenSet = true; m_remoteAccessAllowed = value; }
/**
* <p>Whether the user is allowed to remotely access project resources using an SSH
* public/private key pair.</p>
*/
inline TeamMember& WithRemoteAccessAllowed(bool value) { SetRemoteAccessAllowed(value); return *this;}
private:
Aws::String m_userArn;
bool m_userArnHasBeenSet;
Aws::String m_projectRole;
bool m_projectRoleHasBeenSet;
bool m_remoteAccessAllowed;
bool m_remoteAccessAllowedHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws