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,277 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API AssociateTeamMemberRequest : public CodeStarRequest
{
public:
AssociateTeamMemberRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "AssociateTeamMember"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the project to which you will add the IAM user.</p>
*/
inline const Aws::String& GetProjectId() const{ return m_projectId; }
/**
* <p>The ID of the project to which you will add the IAM user.</p>
*/
inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
/**
* <p>The ID of the project to which you will add the IAM user.</p>
*/
inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; }
/**
* <p>The ID of the project to which you will add the IAM user.</p>
*/
inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); }
/**
* <p>The ID of the project to which you will add the IAM user.</p>
*/
inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); }
/**
* <p>The ID of the project to which you will add the IAM user.</p>
*/
inline AssociateTeamMemberRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;}
/**
* <p>The ID of the project to which you will add the IAM user.</p>
*/
inline AssociateTeamMemberRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;}
/**
* <p>The ID of the project to which you will add the IAM user.</p>
*/
inline AssociateTeamMemberRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* the team member association to the project. This token can be used to repeat the
* request.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* the team member association to the project. This token can be used to repeat the
* request.</p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* the team member association to the project. This token can be used to repeat the
* request.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* the team member association to the project. This token can be used to repeat the
* request.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* the team member association to the project. This token can be used to repeat the
* request.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* the team member association to the project. This token can be used to repeat the
* request.</p>
*/
inline AssociateTeamMemberRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* the team member association to the project. This token can be used to repeat the
* request.</p>
*/
inline AssociateTeamMemberRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* the team member association to the project. This token can be used to repeat the
* request.</p>
*/
inline AssociateTeamMemberRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS
* CodeStar project.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS
* CodeStar project.</p>
*/
inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS
* CodeStar project.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS
* CodeStar project.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS
* CodeStar project.</p>
*/
inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS
* CodeStar project.</p>
*/
inline AssociateTeamMemberRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS
* CodeStar project.</p>
*/
inline AssociateTeamMemberRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the IAM user you want to add to the AWS
* CodeStar project.</p>
*/
inline AssociateTeamMemberRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
/**
* <p>The AWS CodeStar project role that will apply to this user. This role
* determines what actions a user can take in an AWS CodeStar project.</p>
*/
inline const Aws::String& GetProjectRole() const{ return m_projectRole; }
/**
* <p>The AWS CodeStar project role that will apply to this user. This role
* determines what actions a user can take in an AWS CodeStar project.</p>
*/
inline bool ProjectRoleHasBeenSet() const { return m_projectRoleHasBeenSet; }
/**
* <p>The AWS CodeStar project role that will apply to this user. This role
* determines what actions a user can take in an AWS CodeStar project.</p>
*/
inline void SetProjectRole(const Aws::String& value) { m_projectRoleHasBeenSet = true; m_projectRole = value; }
/**
* <p>The AWS CodeStar project role that will apply to this user. This role
* determines what actions a user can take in an AWS CodeStar project.</p>
*/
inline void SetProjectRole(Aws::String&& value) { m_projectRoleHasBeenSet = true; m_projectRole = std::move(value); }
/**
* <p>The AWS CodeStar project role that will apply to this user. This role
* determines what actions a user can take in an AWS CodeStar project.</p>
*/
inline void SetProjectRole(const char* value) { m_projectRoleHasBeenSet = true; m_projectRole.assign(value); }
/**
* <p>The AWS CodeStar project role that will apply to this user. This role
* determines what actions a user can take in an AWS CodeStar project.</p>
*/
inline AssociateTeamMemberRequest& WithProjectRole(const Aws::String& value) { SetProjectRole(value); return *this;}
/**
* <p>The AWS CodeStar project role that will apply to this user. This role
* determines what actions a user can take in an AWS CodeStar project.</p>
*/
inline AssociateTeamMemberRequest& WithProjectRole(Aws::String&& value) { SetProjectRole(std::move(value)); return *this;}
/**
* <p>The AWS CodeStar project role that will apply to this user. This role
* determines what actions a user can take in an AWS CodeStar project.</p>
*/
inline AssociateTeamMemberRequest& WithProjectRole(const char* value) { SetProjectRole(value); return *this;}
/**
* <p>Whether the team member is allowed to use an SSH public/private key pair to
* remotely access project resources, for example Amazon EC2 instances.</p>
*/
inline bool GetRemoteAccessAllowed() const{ return m_remoteAccessAllowed; }
/**
* <p>Whether the team member is allowed to use an SSH public/private key pair to
* remotely access project resources, for example Amazon EC2 instances.</p>
*/
inline bool RemoteAccessAllowedHasBeenSet() const { return m_remoteAccessAllowedHasBeenSet; }
/**
* <p>Whether the team member is allowed to use an SSH public/private key pair to
* remotely access project resources, for example Amazon EC2 instances.</p>
*/
inline void SetRemoteAccessAllowed(bool value) { m_remoteAccessAllowedHasBeenSet = true; m_remoteAccessAllowed = value; }
/**
* <p>Whether the team member is allowed to use an SSH public/private key pair to
* remotely access project resources, for example Amazon EC2 instances.</p>
*/
inline AssociateTeamMemberRequest& WithRemoteAccessAllowed(bool value) { SetRemoteAccessAllowed(value); return *this;}
private:
Aws::String m_projectId;
bool m_projectIdHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
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

View File

@@ -0,0 +1,84 @@
/**
* 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
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API AssociateTeamMemberResult
{
public:
AssociateTeamMemberResult();
AssociateTeamMemberResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
AssociateTeamMemberResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The user- or system-generated token from the initial request that can be used
* to repeat the request.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>The user- or system-generated token from the initial request that can be used
* to repeat the request.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestToken = value; }
/**
* <p>The user- or system-generated token from the initial request that can be used
* to repeat the request.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestToken = std::move(value); }
/**
* <p>The user- or system-generated token from the initial request that can be used
* to repeat the request.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestToken.assign(value); }
/**
* <p>The user- or system-generated token from the initial request that can be used
* to repeat the request.</p>
*/
inline AssociateTeamMemberResult& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>The user- or system-generated token from the initial request that can be used
* to repeat the request.</p>
*/
inline AssociateTeamMemberResult& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>The user- or system-generated token from the initial request that can be used
* to repeat the request.</p>
*/
inline AssociateTeamMemberResult& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
private:
Aws::String m_clientRequestToken;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,133 @@
/**
* 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/codestar/model/CodeSource.h>
#include <aws/codestar/model/CodeDestination.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
/**
* <p>Location and destination information about the source code files provided
* with the project request. The source code is uploaded to the new project source
* repository after project creation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/Code">AWS API
* Reference</a></p>
*/
class AWS_CODESTAR_API Code
{
public:
Code();
Code(Aws::Utils::Json::JsonView jsonValue);
Code& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The location where the source code files provided with the project request
* are stored. AWS CodeStar retrieves the files during project creation.</p>
*/
inline const CodeSource& GetSource() const{ return m_source; }
/**
* <p>The location where the source code files provided with the project request
* are stored. AWS CodeStar retrieves the files during project creation.</p>
*/
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
/**
* <p>The location where the source code files provided with the project request
* are stored. AWS CodeStar retrieves the files during project creation.</p>
*/
inline void SetSource(const CodeSource& value) { m_sourceHasBeenSet = true; m_source = value; }
/**
* <p>The location where the source code files provided with the project request
* are stored. AWS CodeStar retrieves the files during project creation.</p>
*/
inline void SetSource(CodeSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
/**
* <p>The location where the source code files provided with the project request
* are stored. AWS CodeStar retrieves the files during project creation.</p>
*/
inline Code& WithSource(const CodeSource& value) { SetSource(value); return *this;}
/**
* <p>The location where the source code files provided with the project request
* are stored. AWS CodeStar retrieves the files during project creation.</p>
*/
inline Code& WithSource(CodeSource&& value) { SetSource(std::move(value)); return *this;}
/**
* <p>The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit
* or GitHub. After AWS CodeStar provisions the new repository, the source code
* files provided with the project request are placed in the repository.</p>
*/
inline const CodeDestination& GetDestination() const{ return m_destination; }
/**
* <p>The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit
* or GitHub. After AWS CodeStar provisions the new repository, the source code
* files provided with the project request are placed in the repository.</p>
*/
inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
/**
* <p>The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit
* or GitHub. After AWS CodeStar provisions the new repository, the source code
* files provided with the project request are placed in the repository.</p>
*/
inline void SetDestination(const CodeDestination& value) { m_destinationHasBeenSet = true; m_destination = value; }
/**
* <p>The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit
* or GitHub. After AWS CodeStar provisions the new repository, the source code
* files provided with the project request are placed in the repository.</p>
*/
inline void SetDestination(CodeDestination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
/**
* <p>The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit
* or GitHub. After AWS CodeStar provisions the new repository, the source code
* files provided with the project request are placed in the repository.</p>
*/
inline Code& WithDestination(const CodeDestination& value) { SetDestination(value); return *this;}
/**
* <p>The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit
* or GitHub. After AWS CodeStar provisions the new repository, the source code
* files provided with the project request are placed in the repository.</p>
*/
inline Code& WithDestination(CodeDestination&& value) { SetDestination(std::move(value)); return *this;}
private:
CodeSource m_source;
bool m_sourceHasBeenSet;
CodeDestination m_destination;
bool m_destinationHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,90 @@
/**
* 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 the AWS CodeCommit repository to be created in AWS
* CodeStar. This is where the source code files provided with the project request
* will be uploaded after project creation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CodeCommitCodeDestination">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API CodeCommitCodeDestination
{
public:
CodeCommitCodeDestination();
CodeCommitCodeDestination(Aws::Utils::Json::JsonView jsonValue);
CodeCommitCodeDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The name of the AWS CodeCommit repository to be created in AWS CodeStar.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the AWS CodeCommit repository to be created in AWS CodeStar.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the AWS CodeCommit repository to be created in AWS CodeStar.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the AWS CodeCommit repository to be created in AWS CodeStar.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the AWS CodeCommit repository to be created in AWS CodeStar.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the AWS CodeCommit repository to be created in AWS CodeStar.</p>
*/
inline CodeCommitCodeDestination& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the AWS CodeCommit repository to be created in AWS CodeStar.</p>
*/
inline CodeCommitCodeDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the AWS CodeCommit repository to be created in AWS CodeStar.</p>
*/
inline CodeCommitCodeDestination& WithName(const char* value) { SetName(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,140 @@
/**
* 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/codestar/model/CodeCommitCodeDestination.h>
#include <aws/codestar/model/GitHubCodeDestination.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
/**
* <p>The repository to be created in AWS CodeStar. Valid values are AWS CodeCommit
* or GitHub. After AWS CodeStar provisions the new repository, the source code
* files provided with the project request are placed in the
* repository.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CodeDestination">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API CodeDestination
{
public:
CodeDestination();
CodeDestination(Aws::Utils::Json::JsonView jsonValue);
CodeDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Information about the AWS CodeCommit repository to be created in AWS
* CodeStar. This is where the source code files provided with the project request
* will be uploaded after project creation.</p>
*/
inline const CodeCommitCodeDestination& GetCodeCommit() const{ return m_codeCommit; }
/**
* <p>Information about the AWS CodeCommit repository to be created in AWS
* CodeStar. This is where the source code files provided with the project request
* will be uploaded after project creation.</p>
*/
inline bool CodeCommitHasBeenSet() const { return m_codeCommitHasBeenSet; }
/**
* <p>Information about the AWS CodeCommit repository to be created in AWS
* CodeStar. This is where the source code files provided with the project request
* will be uploaded after project creation.</p>
*/
inline void SetCodeCommit(const CodeCommitCodeDestination& value) { m_codeCommitHasBeenSet = true; m_codeCommit = value; }
/**
* <p>Information about the AWS CodeCommit repository to be created in AWS
* CodeStar. This is where the source code files provided with the project request
* will be uploaded after project creation.</p>
*/
inline void SetCodeCommit(CodeCommitCodeDestination&& value) { m_codeCommitHasBeenSet = true; m_codeCommit = std::move(value); }
/**
* <p>Information about the AWS CodeCommit repository to be created in AWS
* CodeStar. This is where the source code files provided with the project request
* will be uploaded after project creation.</p>
*/
inline CodeDestination& WithCodeCommit(const CodeCommitCodeDestination& value) { SetCodeCommit(value); return *this;}
/**
* <p>Information about the AWS CodeCommit repository to be created in AWS
* CodeStar. This is where the source code files provided with the project request
* will be uploaded after project creation.</p>
*/
inline CodeDestination& WithCodeCommit(CodeCommitCodeDestination&& value) { SetCodeCommit(std::move(value)); return *this;}
/**
* <p>Information about the GitHub repository to be created in AWS CodeStar. This
* is where the source code files provided with the project request will be
* uploaded after project creation.</p>
*/
inline const GitHubCodeDestination& GetGitHub() const{ return m_gitHub; }
/**
* <p>Information about the GitHub repository to be created in AWS CodeStar. This
* is where the source code files provided with the project request will be
* uploaded after project creation.</p>
*/
inline bool GitHubHasBeenSet() const { return m_gitHubHasBeenSet; }
/**
* <p>Information about the GitHub repository to be created in AWS CodeStar. This
* is where the source code files provided with the project request will be
* uploaded after project creation.</p>
*/
inline void SetGitHub(const GitHubCodeDestination& value) { m_gitHubHasBeenSet = true; m_gitHub = value; }
/**
* <p>Information about the GitHub repository to be created in AWS CodeStar. This
* is where the source code files provided with the project request will be
* uploaded after project creation.</p>
*/
inline void SetGitHub(GitHubCodeDestination&& value) { m_gitHubHasBeenSet = true; m_gitHub = std::move(value); }
/**
* <p>Information about the GitHub repository to be created in AWS CodeStar. This
* is where the source code files provided with the project request will be
* uploaded after project creation.</p>
*/
inline CodeDestination& WithGitHub(const GitHubCodeDestination& value) { SetGitHub(value); return *this;}
/**
* <p>Information about the GitHub repository to be created in AWS CodeStar. This
* is where the source code files provided with the project request will be
* uploaded after project creation.</p>
*/
inline CodeDestination& WithGitHub(GitHubCodeDestination&& value) { SetGitHub(std::move(value)); return *this;}
private:
CodeCommitCodeDestination m_codeCommit;
bool m_codeCommitHasBeenSet;
GitHubCodeDestination m_gitHub;
bool m_gitHubHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,86 @@
/**
* 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/codestar/model/S3Location.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
/**
* <p>The location where the source code files provided with the project request
* are stored. AWS CodeStar retrieves the files during project
* creation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/CodeSource">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API CodeSource
{
public:
CodeSource();
CodeSource(Aws::Utils::Json::JsonView jsonValue);
CodeSource& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Information about the Amazon S3 location where the source code files provided
* with the project request are stored. </p>
*/
inline const S3Location& GetS3() const{ return m_s3; }
/**
* <p>Information about the Amazon S3 location where the source code files provided
* with the project request are stored. </p>
*/
inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
/**
* <p>Information about the Amazon S3 location where the source code files provided
* with the project request are stored. </p>
*/
inline void SetS3(const S3Location& value) { m_s3HasBeenSet = true; m_s3 = value; }
/**
* <p>Information about the Amazon S3 location where the source code files provided
* with the project request are stored. </p>
*/
inline void SetS3(S3Location&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); }
/**
* <p>Information about the Amazon S3 location where the source code files provided
* with the project request are stored. </p>
*/
inline CodeSource& WithS3(const S3Location& value) { SetS3(value); return *this;}
/**
* <p>Information about the Amazon S3 location where the source code files provided
* with the project request are stored. </p>
*/
inline CodeSource& WithS3(S3Location&& value) { SetS3(std::move(value)); return *this;}
private:
S3Location m_s3;
bool m_s3HasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,404 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/codestar/model/Toolchain.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <aws/codestar/model/Code.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API CreateProjectRequest : public CodeStarRequest
{
public:
CreateProjectRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateProject"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The display name for the project to be created in AWS CodeStar.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The display name for the project to be created in AWS CodeStar.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The display name for the project to be created in AWS CodeStar.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The display name for the project to be created in AWS CodeStar.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The display name for the project to be created in AWS CodeStar.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The display name for the project to be created in AWS CodeStar.</p>
*/
inline CreateProjectRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The display name for the project to be created in AWS CodeStar.</p>
*/
inline CreateProjectRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The display name for the project to be created in AWS CodeStar.</p>
*/
inline CreateProjectRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The ID of the project to be created in AWS CodeStar.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the project to be created in AWS CodeStar.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the project to be created in AWS CodeStar.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the project to be created in AWS CodeStar.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the project to be created in AWS CodeStar.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the project to be created in AWS CodeStar.</p>
*/
inline CreateProjectRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the project to be created in AWS CodeStar.</p>
*/
inline CreateProjectRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the project to be created in AWS CodeStar.</p>
*/
inline CreateProjectRequest& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The description of the project, if any.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the project, if any.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the project, if any.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the project, if any.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the project, if any.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the project, if any.</p>
*/
inline CreateProjectRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the project, if any.</p>
*/
inline CreateProjectRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the project, if any.</p>
*/
inline CreateProjectRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. This token can be used to repeat the request.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. This token can be used to repeat the request.</p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. This token can be used to repeat the request.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. This token can be used to repeat the request.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. This token can be used to repeat the request.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. This token can be used to repeat the request.</p>
*/
inline CreateProjectRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. This token can be used to repeat the request.</p>
*/
inline CreateProjectRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. This token can be used to repeat the request.</p>
*/
inline CreateProjectRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>A list of the Code objects submitted with the project request. If this
* parameter is specified, the request must also include the toolchain
* parameter.</p>
*/
inline const Aws::Vector<Code>& GetSourceCode() const{ return m_sourceCode; }
/**
* <p>A list of the Code objects submitted with the project request. If this
* parameter is specified, the request must also include the toolchain
* parameter.</p>
*/
inline bool SourceCodeHasBeenSet() const { return m_sourceCodeHasBeenSet; }
/**
* <p>A list of the Code objects submitted with the project request. If this
* parameter is specified, the request must also include the toolchain
* parameter.</p>
*/
inline void SetSourceCode(const Aws::Vector<Code>& value) { m_sourceCodeHasBeenSet = true; m_sourceCode = value; }
/**
* <p>A list of the Code objects submitted with the project request. If this
* parameter is specified, the request must also include the toolchain
* parameter.</p>
*/
inline void SetSourceCode(Aws::Vector<Code>&& value) { m_sourceCodeHasBeenSet = true; m_sourceCode = std::move(value); }
/**
* <p>A list of the Code objects submitted with the project request. If this
* parameter is specified, the request must also include the toolchain
* parameter.</p>
*/
inline CreateProjectRequest& WithSourceCode(const Aws::Vector<Code>& value) { SetSourceCode(value); return *this;}
/**
* <p>A list of the Code objects submitted with the project request. If this
* parameter is specified, the request must also include the toolchain
* parameter.</p>
*/
inline CreateProjectRequest& WithSourceCode(Aws::Vector<Code>&& value) { SetSourceCode(std::move(value)); return *this;}
/**
* <p>A list of the Code objects submitted with the project request. If this
* parameter is specified, the request must also include the toolchain
* parameter.</p>
*/
inline CreateProjectRequest& AddSourceCode(const Code& value) { m_sourceCodeHasBeenSet = true; m_sourceCode.push_back(value); return *this; }
/**
* <p>A list of the Code objects submitted with the project request. If this
* parameter is specified, the request must also include the toolchain
* parameter.</p>
*/
inline CreateProjectRequest& AddSourceCode(Code&& value) { m_sourceCodeHasBeenSet = true; m_sourceCode.push_back(std::move(value)); return *this; }
/**
* <p>The name of the toolchain template file submitted with the project request.
* If this parameter is specified, the request must also include the sourceCode
* parameter.</p>
*/
inline const Toolchain& GetToolchain() const{ return m_toolchain; }
/**
* <p>The name of the toolchain template file submitted with the project request.
* If this parameter is specified, the request must also include the sourceCode
* parameter.</p>
*/
inline bool ToolchainHasBeenSet() const { return m_toolchainHasBeenSet; }
/**
* <p>The name of the toolchain template file submitted with the project request.
* If this parameter is specified, the request must also include the sourceCode
* parameter.</p>
*/
inline void SetToolchain(const Toolchain& value) { m_toolchainHasBeenSet = true; m_toolchain = value; }
/**
* <p>The name of the toolchain template file submitted with the project request.
* If this parameter is specified, the request must also include the sourceCode
* parameter.</p>
*/
inline void SetToolchain(Toolchain&& value) { m_toolchainHasBeenSet = true; m_toolchain = std::move(value); }
/**
* <p>The name of the toolchain template file submitted with the project request.
* If this parameter is specified, the request must also include the sourceCode
* parameter.</p>
*/
inline CreateProjectRequest& WithToolchain(const Toolchain& value) { SetToolchain(value); return *this;}
/**
* <p>The name of the toolchain template file submitted with the project request.
* If this parameter is specified, the request must also include the sourceCode
* parameter.</p>
*/
inline CreateProjectRequest& WithToolchain(Toolchain&& value) { SetToolchain(std::move(value)); return *this;}
/**
* <p>The tags created for the project.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags created for the project.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags created for the project.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags created for the project.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags created for the project.</p>
*/
inline CreateProjectRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags created for the project.</p>
*/
inline CreateProjectRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags created for the project.</p>
*/
inline CreateProjectRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags created for the project.</p>
*/
inline CreateProjectRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags created for the project.</p>
*/
inline CreateProjectRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags created for the project.</p>
*/
inline CreateProjectRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags created for the project.</p>
*/
inline CreateProjectRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags created for the project.</p>
*/
inline CreateProjectRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags created for the project.</p>
*/
inline CreateProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
Aws::Vector<Code> m_sourceCode;
bool m_sourceCodeHasBeenSet;
Toolchain m_toolchain;
bool m_toolchainHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,198 @@
/**
* 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
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API CreateProjectResult
{
public:
CreateProjectResult();
CreateProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the project.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The ID of the project.</p>
*/
inline CreateProjectResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline CreateProjectResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline CreateProjectResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline CreateProjectResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline CreateProjectResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the created project.</p>
*/
inline CreateProjectResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestToken = value; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestToken = std::move(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestToken.assign(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline CreateProjectResult& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline CreateProjectResult& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation.</p>
*/
inline CreateProjectResult& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline const Aws::String& GetProjectTemplateId() const{ return m_projectTemplateId; }
/**
* <p>Reserved for future use.</p>
*/
inline void SetProjectTemplateId(const Aws::String& value) { m_projectTemplateId = value; }
/**
* <p>Reserved for future use.</p>
*/
inline void SetProjectTemplateId(Aws::String&& value) { m_projectTemplateId = std::move(value); }
/**
* <p>Reserved for future use.</p>
*/
inline void SetProjectTemplateId(const char* value) { m_projectTemplateId.assign(value); }
/**
* <p>Reserved for future use.</p>
*/
inline CreateProjectResult& WithProjectTemplateId(const Aws::String& value) { SetProjectTemplateId(value); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline CreateProjectResult& WithProjectTemplateId(Aws::String&& value) { SetProjectTemplateId(std::move(value)); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline CreateProjectResult& WithProjectTemplateId(const char* value) { SetProjectTemplateId(value); return *this;}
private:
Aws::String m_id;
Aws::String m_arn;
Aws::String m_clientRequestToken;
Aws::String m_projectTemplateId;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,249 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API CreateUserProfileRequest : public CodeStarRequest
{
public:
CreateUserProfileRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateUserProfile"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <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 CreateUserProfileRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline CreateUserProfileRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline CreateUserProfileRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar. </p>
*/
inline const Aws::String& GetDisplayName() const{ return m_displayName; }
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar. </p>
*/
inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar. </p>
*/
inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar. </p>
*/
inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar. </p>
*/
inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar. </p>
*/
inline CreateUserProfileRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar. </p>
*/
inline CreateUserProfileRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar. </p>
*/
inline CreateUserProfileRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
/**
* <p>The email address that will be displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
/**
* <p>The email address that will be displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
/**
* <p>The email address that will be displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
/**
* <p>The email address that will be displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
/**
* <p>The email address that will be displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
/**
* <p>The email address that will be displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline CreateUserProfileRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
/**
* <p>The email address that will be displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline CreateUserProfileRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
/**
* <p>The email address that will be displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline CreateUserProfileRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::move(value); }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline void SetSshPublicKey(const char* value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey.assign(value); }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline CreateUserProfileRequest& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline CreateUserProfileRequest& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline CreateUserProfileRequest& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
private:
Aws::String m_userArn;
bool m_userArnHasBeenSet;
Aws::String m_displayName;
bool m_displayNameHasBeenSet;
Aws::String m_emailAddress;
bool m_emailAddressHasBeenSet;
Aws::String m_sshPublicKey;
bool m_sshPublicKeyHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,283 @@
/**
* 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 <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API CreateUserProfileResult
{
public:
CreateUserProfileResult();
CreateUserProfileResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
CreateUserProfileResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <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 void SetUserArn(const Aws::String& value) { m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline void SetUserArn(const char* value) { m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline CreateUserProfileResult& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline CreateUserProfileResult& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline CreateUserProfileResult& WithUserArn(const char* value) { SetUserArn(value); return *this;}
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline const Aws::String& GetDisplayName() const{ return m_displayName; }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetDisplayName(const Aws::String& value) { m_displayName = value; }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetDisplayName(Aws::String&& value) { m_displayName = std::move(value); }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetDisplayName(const char* value) { m_displayName.assign(value); }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline CreateUserProfileResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline CreateUserProfileResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline CreateUserProfileResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(const Aws::String& value) { m_emailAddress = value; }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(Aws::String&& value) { m_emailAddress = std::move(value); }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(const char* value) { m_emailAddress.assign(value); }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline CreateUserProfileResult& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline CreateUserProfileResult& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline CreateUserProfileResult& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKey = value; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKey = std::move(value); }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline void SetSshPublicKey(const char* value) { m_sshPublicKey.assign(value); }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline CreateUserProfileResult& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline CreateUserProfileResult& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline CreateUserProfileResult& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
/**
* <p>The date the user profile was created, in timestamp format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
/**
* <p>The date the user profile was created, in timestamp format.</p>
*/
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
/**
* <p>The date the user profile was created, in timestamp format.</p>
*/
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
/**
* <p>The date the user profile was created, in timestamp format.</p>
*/
inline CreateUserProfileResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
/**
* <p>The date the user profile was created, in timestamp format.</p>
*/
inline CreateUserProfileResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The date the user profile was last modified, in timestamp format.</p>
*/
inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const{ return m_lastModifiedTimestamp; }
/**
* <p>The date the user profile was last modified, in timestamp format.</p>
*/
inline void SetLastModifiedTimestamp(const Aws::Utils::DateTime& value) { m_lastModifiedTimestamp = value; }
/**
* <p>The date the user profile was last modified, in timestamp format.</p>
*/
inline void SetLastModifiedTimestamp(Aws::Utils::DateTime&& value) { m_lastModifiedTimestamp = std::move(value); }
/**
* <p>The date the user profile was last modified, in timestamp format.</p>
*/
inline CreateUserProfileResult& WithLastModifiedTimestamp(const Aws::Utils::DateTime& value) { SetLastModifiedTimestamp(value); return *this;}
/**
* <p>The date the user profile was last modified, in timestamp format.</p>
*/
inline CreateUserProfileResult& WithLastModifiedTimestamp(Aws::Utils::DateTime&& value) { SetLastModifiedTimestamp(std::move(value)); return *this;}
private:
Aws::String m_userArn;
Aws::String m_displayName;
Aws::String m_emailAddress;
Aws::String m_sshPublicKey;
Aws::Utils::DateTime m_createdTimestamp;
Aws::Utils::DateTime m_lastModifiedTimestamp;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API DeleteProjectRequest : public CodeStarRequest
{
public:
DeleteProjectRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteProject"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the project to be deleted in AWS CodeStar.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the project to be deleted in AWS CodeStar.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the project to be deleted in AWS CodeStar.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the project to be deleted in AWS CodeStar.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the project to be deleted in AWS CodeStar.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the project to be deleted in AWS CodeStar.</p>
*/
inline DeleteProjectRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the project to be deleted in AWS CodeStar.</p>
*/
inline DeleteProjectRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the project to be deleted in AWS CodeStar.</p>
*/
inline DeleteProjectRequest& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project deletion. This token can be used to repeat the request. </p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project deletion. This token can be used to repeat the request. </p>
*/
inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project deletion. This token can be used to repeat the request. </p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project deletion. This token can be used to repeat the request. </p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project deletion. This token can be used to repeat the request. </p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project deletion. This token can be used to repeat the request. </p>
*/
inline DeleteProjectRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project deletion. This token can be used to repeat the request. </p>
*/
inline DeleteProjectRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project deletion. This token can be used to repeat the request. </p>
*/
inline DeleteProjectRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>Whether to send a delete request for the primary stack in AWS CloudFormation
* originally used to generate the project and its resources. This option will
* delete all AWS resources for the project (except for any buckets in Amazon S3)
* as well as deleting the project itself. Recommended for most use cases.</p>
*/
inline bool GetDeleteStack() const{ return m_deleteStack; }
/**
* <p>Whether to send a delete request for the primary stack in AWS CloudFormation
* originally used to generate the project and its resources. This option will
* delete all AWS resources for the project (except for any buckets in Amazon S3)
* as well as deleting the project itself. Recommended for most use cases.</p>
*/
inline bool DeleteStackHasBeenSet() const { return m_deleteStackHasBeenSet; }
/**
* <p>Whether to send a delete request for the primary stack in AWS CloudFormation
* originally used to generate the project and its resources. This option will
* delete all AWS resources for the project (except for any buckets in Amazon S3)
* as well as deleting the project itself. Recommended for most use cases.</p>
*/
inline void SetDeleteStack(bool value) { m_deleteStackHasBeenSet = true; m_deleteStack = value; }
/**
* <p>Whether to send a delete request for the primary stack in AWS CloudFormation
* originally used to generate the project and its resources. This option will
* delete all AWS resources for the project (except for any buckets in Amazon S3)
* as well as deleting the project itself. Recommended for most use cases.</p>
*/
inline DeleteProjectRequest& WithDeleteStack(bool value) { SetDeleteStack(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_clientRequestToken;
bool m_clientRequestTokenHasBeenSet;
bool m_deleteStack;
bool m_deleteStackHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* 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
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API DeleteProjectResult
{
public:
DeleteProjectResult();
DeleteProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The ID of the primary stack in AWS CloudFormation that will be deleted as
* part of deleting the project and its resources.</p>
*/
inline const Aws::String& GetStackId() const{ return m_stackId; }
/**
* <p>The ID of the primary stack in AWS CloudFormation that will be deleted as
* part of deleting the project and its resources.</p>
*/
inline void SetStackId(const Aws::String& value) { m_stackId = value; }
/**
* <p>The ID of the primary stack in AWS CloudFormation that will be deleted as
* part of deleting the project and its resources.</p>
*/
inline void SetStackId(Aws::String&& value) { m_stackId = std::move(value); }
/**
* <p>The ID of the primary stack in AWS CloudFormation that will be deleted as
* part of deleting the project and its resources.</p>
*/
inline void SetStackId(const char* value) { m_stackId.assign(value); }
/**
* <p>The ID of the primary stack in AWS CloudFormation that will be deleted as
* part of deleting the project and its resources.</p>
*/
inline DeleteProjectResult& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
/**
* <p>The ID of the primary stack in AWS CloudFormation that will be deleted as
* part of deleting the project and its resources.</p>
*/
inline DeleteProjectResult& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
/**
* <p>The ID of the primary stack in AWS CloudFormation that will be deleted as
* part of deleting the project and its resources.</p>
*/
inline DeleteProjectResult& WithStackId(const char* value) { SetStackId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the deleted project.</p>
*/
inline const Aws::String& GetProjectArn() const{ return m_projectArn; }
/**
* <p>The Amazon Resource Name (ARN) of the deleted project.</p>
*/
inline void SetProjectArn(const Aws::String& value) { m_projectArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the deleted project.</p>
*/
inline void SetProjectArn(Aws::String&& value) { m_projectArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the deleted project.</p>
*/
inline void SetProjectArn(const char* value) { m_projectArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the deleted project.</p>
*/
inline DeleteProjectResult& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the deleted project.</p>
*/
inline DeleteProjectResult& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the deleted project.</p>
*/
inline DeleteProjectResult& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
private:
Aws::String m_stackId;
Aws::String m_projectArn;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API DeleteUserProfileRequest : public CodeStarRequest
{
public:
DeleteUserProfileRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DeleteUserProfile"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.</p>
*/
inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.</p>
*/
inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.</p>
*/
inline DeleteUserProfileRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.</p>
*/
inline DeleteUserProfileRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user to delete from AWS CodeStar.</p>
*/
inline DeleteUserProfileRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
private:
Aws::String m_userArn;
bool m_userArnHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* 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
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API DeleteUserProfileResult
{
public:
DeleteUserProfileResult();
DeleteUserProfileResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DeleteUserProfileResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.</p>
*/
inline void SetUserArn(const char* value) { m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.</p>
*/
inline DeleteUserProfileResult& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.</p>
*/
inline DeleteUserProfileResult& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user deleted from AWS CodeStar.</p>
*/
inline DeleteUserProfileResult& WithUserArn(const char* value) { SetUserArn(value); return *this;}
private:
Aws::String m_userArn;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API DescribeProjectRequest : public CodeStarRequest
{
public:
DescribeProjectRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeProject"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the project.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the project.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the project.</p>
*/
inline DescribeProjectRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline DescribeProjectRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline DescribeProjectRequest& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,377 @@
/**
* 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 <aws/core/utils/DateTime.h>
#include <aws/codestar/model/ProjectStatus.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API DescribeProjectResult
{
public:
DescribeProjectResult();
DescribeProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The display name for the project.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The display name for the project.</p>
*/
inline void SetName(const Aws::String& value) { m_name = value; }
/**
* <p>The display name for the project.</p>
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* <p>The display name for the project.</p>
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* <p>The display name for the project.</p>
*/
inline DescribeProjectResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The display name for the project.</p>
*/
inline DescribeProjectResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The display name for the project.</p>
*/
inline DescribeProjectResult& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(const Aws::String& value) { m_id = value; }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* <p>The ID of the project.</p>
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* <p>The ID of the project.</p>
*/
inline DescribeProjectResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline DescribeProjectResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline DescribeProjectResult& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the project.</p>
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* <p>The Amazon Resource Name (ARN) for the project.</p>
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* <p>The Amazon Resource Name (ARN) for the project.</p>
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) for the project.</p>
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) for the project.</p>
*/
inline DescribeProjectResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the project.</p>
*/
inline DescribeProjectResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) for the project.</p>
*/
inline DescribeProjectResult& WithArn(const char* value) { SetArn(value); return *this;}
/**
* <p>The description of the project, if any.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the project, if any.</p>
*/
inline void SetDescription(const Aws::String& value) { m_description = value; }
/**
* <p>The description of the project, if any.</p>
*/
inline void SetDescription(Aws::String&& value) { m_description = std::move(value); }
/**
* <p>The description of the project, if any.</p>
*/
inline void SetDescription(const char* value) { m_description.assign(value); }
/**
* <p>The description of the project, if any.</p>
*/
inline DescribeProjectResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the project, if any.</p>
*/
inline DescribeProjectResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the project, if any.</p>
*/
inline DescribeProjectResult& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. </p>
*/
inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. </p>
*/
inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestToken = value; }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. </p>
*/
inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestToken = std::move(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. </p>
*/
inline void SetClientRequestToken(const char* value) { m_clientRequestToken.assign(value); }
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. </p>
*/
inline DescribeProjectResult& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. </p>
*/
inline DescribeProjectResult& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
/**
* <p>A user- or system-generated token that identifies the entity that requested
* project creation. </p>
*/
inline DescribeProjectResult& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
/**
* <p>The date and time the project was created, in timestamp format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimeStamp() const{ return m_createdTimeStamp; }
/**
* <p>The date and time the project was created, in timestamp format.</p>
*/
inline void SetCreatedTimeStamp(const Aws::Utils::DateTime& value) { m_createdTimeStamp = value; }
/**
* <p>The date and time the project was created, in timestamp format.</p>
*/
inline void SetCreatedTimeStamp(Aws::Utils::DateTime&& value) { m_createdTimeStamp = std::move(value); }
/**
* <p>The date and time the project was created, in timestamp format.</p>
*/
inline DescribeProjectResult& WithCreatedTimeStamp(const Aws::Utils::DateTime& value) { SetCreatedTimeStamp(value); return *this;}
/**
* <p>The date and time the project was created, in timestamp format.</p>
*/
inline DescribeProjectResult& WithCreatedTimeStamp(Aws::Utils::DateTime&& value) { SetCreatedTimeStamp(std::move(value)); return *this;}
/**
* <p>The ID of the primary stack in AWS CloudFormation used to generate resources
* for the project.</p>
*/
inline const Aws::String& GetStackId() const{ return m_stackId; }
/**
* <p>The ID of the primary stack in AWS CloudFormation used to generate resources
* for the project.</p>
*/
inline void SetStackId(const Aws::String& value) { m_stackId = value; }
/**
* <p>The ID of the primary stack in AWS CloudFormation used to generate resources
* for the project.</p>
*/
inline void SetStackId(Aws::String&& value) { m_stackId = std::move(value); }
/**
* <p>The ID of the primary stack in AWS CloudFormation used to generate resources
* for the project.</p>
*/
inline void SetStackId(const char* value) { m_stackId.assign(value); }
/**
* <p>The ID of the primary stack in AWS CloudFormation used to generate resources
* for the project.</p>
*/
inline DescribeProjectResult& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
/**
* <p>The ID of the primary stack in AWS CloudFormation used to generate resources
* for the project.</p>
*/
inline DescribeProjectResult& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
/**
* <p>The ID of the primary stack in AWS CloudFormation used to generate resources
* for the project.</p>
*/
inline DescribeProjectResult& WithStackId(const char* value) { SetStackId(value); return *this;}
/**
* <p>The ID for the AWS CodeStar project template used to create the project.</p>
*/
inline const Aws::String& GetProjectTemplateId() const{ return m_projectTemplateId; }
/**
* <p>The ID for the AWS CodeStar project template used to create the project.</p>
*/
inline void SetProjectTemplateId(const Aws::String& value) { m_projectTemplateId = value; }
/**
* <p>The ID for the AWS CodeStar project template used to create the project.</p>
*/
inline void SetProjectTemplateId(Aws::String&& value) { m_projectTemplateId = std::move(value); }
/**
* <p>The ID for the AWS CodeStar project template used to create the project.</p>
*/
inline void SetProjectTemplateId(const char* value) { m_projectTemplateId.assign(value); }
/**
* <p>The ID for the AWS CodeStar project template used to create the project.</p>
*/
inline DescribeProjectResult& WithProjectTemplateId(const Aws::String& value) { SetProjectTemplateId(value); return *this;}
/**
* <p>The ID for the AWS CodeStar project template used to create the project.</p>
*/
inline DescribeProjectResult& WithProjectTemplateId(Aws::String&& value) { SetProjectTemplateId(std::move(value)); return *this;}
/**
* <p>The ID for the AWS CodeStar project template used to create the project.</p>
*/
inline DescribeProjectResult& WithProjectTemplateId(const char* value) { SetProjectTemplateId(value); return *this;}
/**
* <p>The project creation or deletion status.</p>
*/
inline const ProjectStatus& GetStatus() const{ return m_status; }
/**
* <p>The project creation or deletion status.</p>
*/
inline void SetStatus(const ProjectStatus& value) { m_status = value; }
/**
* <p>The project creation or deletion status.</p>
*/
inline void SetStatus(ProjectStatus&& value) { m_status = std::move(value); }
/**
* <p>The project creation or deletion status.</p>
*/
inline DescribeProjectResult& WithStatus(const ProjectStatus& value) { SetStatus(value); return *this;}
/**
* <p>The project creation or deletion status.</p>
*/
inline DescribeProjectResult& WithStatus(ProjectStatus&& value) { SetStatus(std::move(value)); return *this;}
private:
Aws::String m_name;
Aws::String m_id;
Aws::String m_arn;
Aws::String m_description;
Aws::String m_clientRequestToken;
Aws::Utils::DateTime m_createdTimeStamp;
Aws::String m_stackId;
Aws::String m_projectTemplateId;
ProjectStatus m_status;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,85 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API DescribeUserProfileRequest : public CodeStarRequest
{
public:
DescribeUserProfileRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeUserProfile"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline DescribeUserProfileRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline DescribeUserProfileRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline DescribeUserProfileRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
private:
Aws::String m_userArn;
bool m_userArnHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,335 @@
/**
* 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 <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API DescribeUserProfileResult
{
public:
DescribeUserProfileResult();
DescribeUserProfileResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DescribeUserProfileResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline void SetUserArn(const char* value) { m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline DescribeUserProfileResult& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline DescribeUserProfileResult& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user.</p>
*/
inline DescribeUserProfileResult& WithUserArn(const char* value) { SetUserArn(value); return *this;}
/**
* <p>The display name shown for the user in AWS CodeStar projects. For example,
* this could be set to both first and last name ("Mary Major") or a single name
* ("Mary"). The display name is also used to generate the initial icon associated
* with the user in AWS CodeStar projects. If spaces are included in the display
* name, the first character that appears after the space will be used as the
* second character in the user initial icon. The initial icon displays a maximum
* of two characters, so a display name with more than one space (for example "Mary
* Jane Major") would generate an initial icon using the first character and the
* first character after the space ("MJ", not "MM").</p>
*/
inline const Aws::String& GetDisplayName() const{ return m_displayName; }
/**
* <p>The display name shown for the user in AWS CodeStar projects. For example,
* this could be set to both first and last name ("Mary Major") or a single name
* ("Mary"). The display name is also used to generate the initial icon associated
* with the user in AWS CodeStar projects. If spaces are included in the display
* name, the first character that appears after the space will be used as the
* second character in the user initial icon. The initial icon displays a maximum
* of two characters, so a display name with more than one space (for example "Mary
* Jane Major") would generate an initial icon using the first character and the
* first character after the space ("MJ", not "MM").</p>
*/
inline void SetDisplayName(const Aws::String& value) { m_displayName = value; }
/**
* <p>The display name shown for the user in AWS CodeStar projects. For example,
* this could be set to both first and last name ("Mary Major") or a single name
* ("Mary"). The display name is also used to generate the initial icon associated
* with the user in AWS CodeStar projects. If spaces are included in the display
* name, the first character that appears after the space will be used as the
* second character in the user initial icon. The initial icon displays a maximum
* of two characters, so a display name with more than one space (for example "Mary
* Jane Major") would generate an initial icon using the first character and the
* first character after the space ("MJ", not "MM").</p>
*/
inline void SetDisplayName(Aws::String&& value) { m_displayName = std::move(value); }
/**
* <p>The display name shown for the user in AWS CodeStar projects. For example,
* this could be set to both first and last name ("Mary Major") or a single name
* ("Mary"). The display name is also used to generate the initial icon associated
* with the user in AWS CodeStar projects. If spaces are included in the display
* name, the first character that appears after the space will be used as the
* second character in the user initial icon. The initial icon displays a maximum
* of two characters, so a display name with more than one space (for example "Mary
* Jane Major") would generate an initial icon using the first character and the
* first character after the space ("MJ", not "MM").</p>
*/
inline void SetDisplayName(const char* value) { m_displayName.assign(value); }
/**
* <p>The display name shown for the user in AWS CodeStar projects. For example,
* this could be set to both first and last name ("Mary Major") or a single name
* ("Mary"). The display name is also used to generate the initial icon associated
* with the user in AWS CodeStar projects. If spaces are included in the display
* name, the first character that appears after the space will be used as the
* second character in the user initial icon. The initial icon displays a maximum
* of two characters, so a display name with more than one space (for example "Mary
* Jane Major") would generate an initial icon using the first character and the
* first character after the space ("MJ", not "MM").</p>
*/
inline DescribeUserProfileResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
/**
* <p>The display name shown for the user in AWS CodeStar projects. For example,
* this could be set to both first and last name ("Mary Major") or a single name
* ("Mary"). The display name is also used to generate the initial icon associated
* with the user in AWS CodeStar projects. If spaces are included in the display
* name, the first character that appears after the space will be used as the
* second character in the user initial icon. The initial icon displays a maximum
* of two characters, so a display name with more than one space (for example "Mary
* Jane Major") would generate an initial icon using the first character and the
* first character after the space ("MJ", not "MM").</p>
*/
inline DescribeUserProfileResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
/**
* <p>The display name shown for the user in AWS CodeStar projects. For example,
* this could be set to both first and last name ("Mary Major") or a single name
* ("Mary"). The display name is also used to generate the initial icon associated
* with the user in AWS CodeStar projects. If spaces are included in the display
* name, the first character that appears after the space will be used as the
* second character in the user initial icon. The initial icon displays a maximum
* of two characters, so a display name with more than one space (for example "Mary
* Jane Major") would generate an initial icon using the first character and the
* first character after the space ("MJ", not "MM").</p>
*/
inline DescribeUserProfileResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
/**
* <p>The email address for the user. Optional.</p>
*/
inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
/**
* <p>The email address for the user. Optional.</p>
*/
inline void SetEmailAddress(const Aws::String& value) { m_emailAddress = value; }
/**
* <p>The email address for the user. Optional.</p>
*/
inline void SetEmailAddress(Aws::String&& value) { m_emailAddress = std::move(value); }
/**
* <p>The email address for the user. Optional.</p>
*/
inline void SetEmailAddress(const char* value) { m_emailAddress.assign(value); }
/**
* <p>The email address for the user. Optional.</p>
*/
inline DescribeUserProfileResult& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
/**
* <p>The email address for the user. Optional.</p>
*/
inline DescribeUserProfileResult& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
/**
* <p>The email address for the user. Optional.</p>
*/
inline DescribeUserProfileResult& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
/**
* <p>The SSH public key associated with the user. This SSH public key is
* associated with the user profile, and can be used in conjunction with the
* associated private key for access to project resources, such as Amazon EC2
* instances, if a project owner grants remote access to those resources.</p>
*/
inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
/**
* <p>The SSH public key associated with the user. This SSH public key is
* associated with the user profile, and can be used in conjunction with the
* associated private key for access to project resources, such as Amazon EC2
* instances, if a project owner grants remote access to those resources.</p>
*/
inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKey = value; }
/**
* <p>The SSH public key associated with the user. This SSH public key is
* associated with the user profile, and can be used in conjunction with the
* associated private key for access to project resources, such as Amazon EC2
* instances, if a project owner grants remote access to those resources.</p>
*/
inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKey = std::move(value); }
/**
* <p>The SSH public key associated with the user. This SSH public key is
* associated with the user profile, and can be used in conjunction with the
* associated private key for access to project resources, such as Amazon EC2
* instances, if a project owner grants remote access to those resources.</p>
*/
inline void SetSshPublicKey(const char* value) { m_sshPublicKey.assign(value); }
/**
* <p>The SSH public key associated with the user. This SSH public key is
* associated with the user profile, and can be used in conjunction with the
* associated private key for access to project resources, such as Amazon EC2
* instances, if a project owner grants remote access to those resources.</p>
*/
inline DescribeUserProfileResult& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
/**
* <p>The SSH public key associated with the user. This SSH public key is
* associated with the user profile, and can be used in conjunction with the
* associated private key for access to project resources, such as Amazon EC2
* instances, if a project owner grants remote access to those resources.</p>
*/
inline DescribeUserProfileResult& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
/**
* <p>The SSH public key associated with the user. This SSH public key is
* associated with the user profile, and can be used in conjunction with the
* associated private key for access to project resources, such as Amazon EC2
* instances, if a project owner grants remote access to those resources.</p>
*/
inline DescribeUserProfileResult& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
/**
* <p>The date and time when the user profile was created in AWS CodeStar, in
* timestamp format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
/**
* <p>The date and time when the user profile was created in AWS CodeStar, in
* timestamp format.</p>
*/
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
/**
* <p>The date and time when the user profile was created in AWS CodeStar, in
* timestamp format.</p>
*/
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
/**
* <p>The date and time when the user profile was created in AWS CodeStar, in
* timestamp format.</p>
*/
inline DescribeUserProfileResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
/**
* <p>The date and time when the user profile was created in AWS CodeStar, in
* timestamp format.</p>
*/
inline DescribeUserProfileResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The date and time when the user profile was last modified, in timestamp
* format.</p>
*/
inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const{ return m_lastModifiedTimestamp; }
/**
* <p>The date and time when the user profile was last modified, in timestamp
* format.</p>
*/
inline void SetLastModifiedTimestamp(const Aws::Utils::DateTime& value) { m_lastModifiedTimestamp = value; }
/**
* <p>The date and time when the user profile was last modified, in timestamp
* format.</p>
*/
inline void SetLastModifiedTimestamp(Aws::Utils::DateTime&& value) { m_lastModifiedTimestamp = std::move(value); }
/**
* <p>The date and time when the user profile was last modified, in timestamp
* format.</p>
*/
inline DescribeUserProfileResult& WithLastModifiedTimestamp(const Aws::Utils::DateTime& value) { SetLastModifiedTimestamp(value); return *this;}
/**
* <p>The date and time when the user profile was last modified, in timestamp
* format.</p>
*/
inline DescribeUserProfileResult& WithLastModifiedTimestamp(Aws::Utils::DateTime&& value) { SetLastModifiedTimestamp(std::move(value)); return *this;}
private:
Aws::String m_userArn;
Aws::String m_displayName;
Aws::String m_emailAddress;
Aws::String m_sshPublicKey;
Aws::Utils::DateTime m_createdTimestamp;
Aws::Utils::DateTime m_lastModifiedTimestamp;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,145 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API DisassociateTeamMemberRequest : public CodeStarRequest
{
public:
DisassociateTeamMemberRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DisassociateTeamMember"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the AWS CodeStar project from which you want to remove a team
* member.</p>
*/
inline const Aws::String& GetProjectId() const{ return m_projectId; }
/**
* <p>The ID of the AWS CodeStar project from which you want to remove a team
* member.</p>
*/
inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
/**
* <p>The ID of the AWS CodeStar project from which you want to remove a team
* member.</p>
*/
inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; }
/**
* <p>The ID of the AWS CodeStar project from which you want to remove a team
* member.</p>
*/
inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); }
/**
* <p>The ID of the AWS CodeStar project from which you want to remove a team
* member.</p>
*/
inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); }
/**
* <p>The ID of the AWS CodeStar project from which you want to remove a team
* member.</p>
*/
inline DisassociateTeamMemberRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;}
/**
* <p>The ID of the AWS CodeStar project from which you want to remove a team
* member.</p>
*/
inline DisassociateTeamMemberRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;}
/**
* <p>The ID of the AWS CodeStar project from which you want to remove a team
* member.</p>
*/
inline DisassociateTeamMemberRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM user or group whom you want to
* remove from the project.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM user or group whom you want to
* remove from the project.</p>
*/
inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM user or group whom you want to
* remove from the project.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the IAM user or group whom you want to
* remove from the project.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM user or group whom you want to
* remove from the project.</p>
*/
inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the IAM user or group whom you want to
* remove from the project.</p>
*/
inline DisassociateTeamMemberRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM user or group whom you want to
* remove from the project.</p>
*/
inline DisassociateTeamMemberRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the IAM user or group whom you want to
* remove from the project.</p>
*/
inline DisassociateTeamMemberRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
private:
Aws::String m_projectId;
bool m_projectIdHasBeenSet;
Aws::String m_userArn;
bool m_userArnHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codestar/CodeStar_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API DisassociateTeamMemberResult
{
public:
DisassociateTeamMemberResult();
DisassociateTeamMemberResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
DisassociateTeamMemberResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,346 @@
/**
* 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 the GitHub repository to be created in AWS CodeStar. This
* is where the source code files provided with the project request will be
* uploaded after project creation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/GitHubCodeDestination">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API GitHubCodeDestination
{
public:
GitHubCodeDestination();
GitHubCodeDestination(Aws::Utils::Json::JsonView jsonValue);
GitHubCodeDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>Name of the GitHub repository to be created in AWS CodeStar.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>Name of the GitHub repository to be created in AWS CodeStar.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>Name of the GitHub repository to be created in AWS CodeStar.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>Name of the GitHub repository to be created in AWS CodeStar.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>Name of the GitHub repository to be created in AWS CodeStar.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>Name of the GitHub repository to be created in AWS CodeStar.</p>
*/
inline GitHubCodeDestination& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>Name of the GitHub repository to be created in AWS CodeStar.</p>
*/
inline GitHubCodeDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>Name of the GitHub repository to be created in AWS CodeStar.</p>
*/
inline GitHubCodeDestination& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>Description for the GitHub repository to be created in AWS CodeStar. This
* description displays in GitHub after the repository is created.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>Description for the GitHub repository to be created in AWS CodeStar. This
* description displays in GitHub after the repository is created.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>Description for the GitHub repository to be created in AWS CodeStar. This
* description displays in GitHub after the repository is created.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>Description for the GitHub repository to be created in AWS CodeStar. This
* description displays in GitHub after the repository is created.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>Description for the GitHub repository to be created in AWS CodeStar. This
* description displays in GitHub after the repository is created.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>Description for the GitHub repository to be created in AWS CodeStar. This
* description displays in GitHub after the repository is created.</p>
*/
inline GitHubCodeDestination& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>Description for the GitHub repository to be created in AWS CodeStar. This
* description displays in GitHub after the repository is created.</p>
*/
inline GitHubCodeDestination& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>Description for the GitHub repository to be created in AWS CodeStar. This
* description displays in GitHub after the repository is created.</p>
*/
inline GitHubCodeDestination& WithDescription(const char* value) { SetDescription(value); return *this;}
/**
* <p>The type of GitHub repository to be created in AWS CodeStar. Valid values are
* User or Organization.</p>
*/
inline const Aws::String& GetType() const{ return m_type; }
/**
* <p>The type of GitHub repository to be created in AWS CodeStar. Valid values are
* User or Organization.</p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p>The type of GitHub repository to be created in AWS CodeStar. Valid values are
* User or Organization.</p>
*/
inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p>The type of GitHub repository to be created in AWS CodeStar. Valid values are
* User or Organization.</p>
*/
inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p>The type of GitHub repository to be created in AWS CodeStar. Valid values are
* User or Organization.</p>
*/
inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
/**
* <p>The type of GitHub repository to be created in AWS CodeStar. Valid values are
* User or Organization.</p>
*/
inline GitHubCodeDestination& WithType(const Aws::String& value) { SetType(value); return *this;}
/**
* <p>The type of GitHub repository to be created in AWS CodeStar. Valid values are
* User or Organization.</p>
*/
inline GitHubCodeDestination& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
/**
* <p>The type of GitHub repository to be created in AWS CodeStar. Valid values are
* User or Organization.</p>
*/
inline GitHubCodeDestination& WithType(const char* value) { SetType(value); return *this;}
/**
* <p>The GitHub username for the owner of the GitHub repository to be created in
* AWS CodeStar. If this repository should be owned by a GitHub organization,
* provide its name.</p>
*/
inline const Aws::String& GetOwner() const{ return m_owner; }
/**
* <p>The GitHub username for the owner of the GitHub repository to be created in
* AWS CodeStar. If this repository should be owned by a GitHub organization,
* provide its name.</p>
*/
inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
/**
* <p>The GitHub username for the owner of the GitHub repository to be created in
* AWS CodeStar. If this repository should be owned by a GitHub organization,
* provide its name.</p>
*/
inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
/**
* <p>The GitHub username for the owner of the GitHub repository to be created in
* AWS CodeStar. If this repository should be owned by a GitHub organization,
* provide its name.</p>
*/
inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
/**
* <p>The GitHub username for the owner of the GitHub repository to be created in
* AWS CodeStar. If this repository should be owned by a GitHub organization,
* provide its name.</p>
*/
inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
/**
* <p>The GitHub username for the owner of the GitHub repository to be created in
* AWS CodeStar. If this repository should be owned by a GitHub organization,
* provide its name.</p>
*/
inline GitHubCodeDestination& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
/**
* <p>The GitHub username for the owner of the GitHub repository to be created in
* AWS CodeStar. If this repository should be owned by a GitHub organization,
* provide its name.</p>
*/
inline GitHubCodeDestination& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
/**
* <p>The GitHub username for the owner of the GitHub repository to be created in
* AWS CodeStar. If this repository should be owned by a GitHub organization,
* provide its name.</p>
*/
inline GitHubCodeDestination& WithOwner(const char* value) { SetOwner(value); return *this;}
/**
* <p>Whether the GitHub repository is to be a private repository.</p>
*/
inline bool GetPrivateRepository() const{ return m_privateRepository; }
/**
* <p>Whether the GitHub repository is to be a private repository.</p>
*/
inline bool PrivateRepositoryHasBeenSet() const { return m_privateRepositoryHasBeenSet; }
/**
* <p>Whether the GitHub repository is to be a private repository.</p>
*/
inline void SetPrivateRepository(bool value) { m_privateRepositoryHasBeenSet = true; m_privateRepository = value; }
/**
* <p>Whether the GitHub repository is to be a private repository.</p>
*/
inline GitHubCodeDestination& WithPrivateRepository(bool value) { SetPrivateRepository(value); return *this;}
/**
* <p>Whether to enable issues for the GitHub repository.</p>
*/
inline bool GetIssuesEnabled() const{ return m_issuesEnabled; }
/**
* <p>Whether to enable issues for the GitHub repository.</p>
*/
inline bool IssuesEnabledHasBeenSet() const { return m_issuesEnabledHasBeenSet; }
/**
* <p>Whether to enable issues for the GitHub repository.</p>
*/
inline void SetIssuesEnabled(bool value) { m_issuesEnabledHasBeenSet = true; m_issuesEnabled = value; }
/**
* <p>Whether to enable issues for the GitHub repository.</p>
*/
inline GitHubCodeDestination& WithIssuesEnabled(bool value) { SetIssuesEnabled(value); return *this;}
/**
* <p>The GitHub user's personal access token for the GitHub repository.</p>
*/
inline const Aws::String& GetToken() const{ return m_token; }
/**
* <p>The GitHub user's personal access token for the GitHub repository.</p>
*/
inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; }
/**
* <p>The GitHub user's personal access token for the GitHub repository.</p>
*/
inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; }
/**
* <p>The GitHub user's personal access token for the GitHub repository.</p>
*/
inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); }
/**
* <p>The GitHub user's personal access token for the GitHub repository.</p>
*/
inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); }
/**
* <p>The GitHub user's personal access token for the GitHub repository.</p>
*/
inline GitHubCodeDestination& WithToken(const Aws::String& value) { SetToken(value); return *this;}
/**
* <p>The GitHub user's personal access token for the GitHub repository.</p>
*/
inline GitHubCodeDestination& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;}
/**
* <p>The GitHub user's personal access token for the GitHub repository.</p>
*/
inline GitHubCodeDestination& WithToken(const char* value) { SetToken(value); return *this;}
private:
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
Aws::String m_type;
bool m_typeHasBeenSet;
Aws::String m_owner;
bool m_ownerHasBeenSet;
bool m_privateRepository;
bool m_privateRepositoryHasBeenSet;
bool m_issuesEnabled;
bool m_issuesEnabledHasBeenSet;
Aws::String m_token;
bool m_tokenHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,121 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API ListProjectsRequest : public CodeStarRequest
{
public:
ListProjectsRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListProjects"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The continuation token to be used to return the next set of results, if the
* results cannot be returned in one response.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The continuation token to be used to return the next set of results, if the
* results cannot be returned in one response.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The continuation token to be used to return the next set of results, if the
* results cannot be returned in one response.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The continuation token to be used to return the next set of results, if the
* results cannot be returned in one response.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The continuation token to be used to return the next set of results, if the
* results cannot be returned in one response.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The continuation token to be used to return the next set of results, if the
* results cannot be returned in one response.</p>
*/
inline ListProjectsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The continuation token to be used to return the next set of results, if the
* results cannot be returned in one response.</p>
*/
inline ListProjectsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The continuation token to be used to return the next set of results, if the
* results cannot be returned in one response.</p>
*/
inline ListProjectsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum amount of data that can be contained in a single set of
* results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum amount of data that can be contained in a single set of
* results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum amount of data that can be contained in a single set of
* results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum amount of data that can be contained in a single set of
* results.</p>
*/
inline ListProjectsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codestar/model/ProjectSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API ListProjectsResult
{
public:
ListProjectsResult();
ListProjectsResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListProjectsResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of projects.</p>
*/
inline const Aws::Vector<ProjectSummary>& GetProjects() const{ return m_projects; }
/**
* <p>A list of projects.</p>
*/
inline void SetProjects(const Aws::Vector<ProjectSummary>& value) { m_projects = value; }
/**
* <p>A list of projects.</p>
*/
inline void SetProjects(Aws::Vector<ProjectSummary>&& value) { m_projects = std::move(value); }
/**
* <p>A list of projects.</p>
*/
inline ListProjectsResult& WithProjects(const Aws::Vector<ProjectSummary>& value) { SetProjects(value); return *this;}
/**
* <p>A list of projects.</p>
*/
inline ListProjectsResult& WithProjects(Aws::Vector<ProjectSummary>&& value) { SetProjects(std::move(value)); return *this;}
/**
* <p>A list of projects.</p>
*/
inline ListProjectsResult& AddProjects(const ProjectSummary& value) { m_projects.push_back(value); return *this; }
/**
* <p>A list of projects.</p>
*/
inline ListProjectsResult& AddProjects(ProjectSummary&& value) { m_projects.push_back(std::move(value)); return *this; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListProjectsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListProjectsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListProjectsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<ProjectSummary> m_projects;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,165 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API ListResourcesRequest : public CodeStarRequest
{
public:
ListResourcesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListResources"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the project.</p>
*/
inline const Aws::String& GetProjectId() const{ return m_projectId; }
/**
* <p>The ID of the project.</p>
*/
inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
/**
* <p>The ID of the project.</p>
*/
inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; }
/**
* <p>The ID of the project.</p>
*/
inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); }
/**
* <p>The ID of the project.</p>
*/
inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); }
/**
* <p>The ID of the project.</p>
*/
inline ListResourcesRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline ListResourcesRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline ListResourcesRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;}
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline ListResourcesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline ListResourcesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline ListResourcesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum amount of data that can be contained in a single set of
* results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum amount of data that can be contained in a single set of
* results.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum amount of data that can be contained in a single set of
* results.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum amount of data that can be contained in a single set of
* results.</p>
*/
inline ListResourcesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_projectId;
bool m_projectIdHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codestar/model/Resource.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API ListResourcesResult
{
public:
ListResourcesResult();
ListResourcesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListResourcesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>An array of resources associated with the project. </p>
*/
inline const Aws::Vector<Resource>& GetResources() const{ return m_resources; }
/**
* <p>An array of resources associated with the project. </p>
*/
inline void SetResources(const Aws::Vector<Resource>& value) { m_resources = value; }
/**
* <p>An array of resources associated with the project. </p>
*/
inline void SetResources(Aws::Vector<Resource>&& value) { m_resources = std::move(value); }
/**
* <p>An array of resources associated with the project. </p>
*/
inline ListResourcesResult& WithResources(const Aws::Vector<Resource>& value) { SetResources(value); return *this;}
/**
* <p>An array of resources associated with the project. </p>
*/
inline ListResourcesResult& WithResources(Aws::Vector<Resource>&& value) { SetResources(std::move(value)); return *this;}
/**
* <p>An array of resources associated with the project. </p>
*/
inline ListResourcesResult& AddResources(const Resource& value) { m_resources.push_back(value); return *this; }
/**
* <p>An array of resources associated with the project. </p>
*/
inline ListResourcesResult& AddResources(Resource&& value) { m_resources.push_back(std::move(value)); return *this; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListResourcesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListResourcesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListResourcesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<Resource> m_resources;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,153 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API ListTagsForProjectRequest : public CodeStarRequest
{
public:
ListTagsForProjectRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListTagsForProject"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the project to get tags for.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the project to get tags for.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the project to get tags for.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the project to get tags for.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the project to get tags for.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the project to get tags for.</p>
*/
inline ListTagsForProjectRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the project to get tags for.</p>
*/
inline ListTagsForProjectRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the project to get tags for.</p>
*/
inline ListTagsForProjectRequest& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Reserved for future use.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>Reserved for future use.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>Reserved for future use.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>Reserved for future use.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>Reserved for future use.</p>
*/
inline ListTagsForProjectRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline ListTagsForProjectRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline ListTagsForProjectRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>Reserved for future use.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>Reserved for future use.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>Reserved for future use.</p>
*/
inline ListTagsForProjectRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* 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/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API ListTagsForProjectResult
{
public:
ListTagsForProjectResult();
ListTagsForProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTagsForProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The tags for the project.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags for the project.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* <p>The tags for the project.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* <p>The tags for the project.</p>
*/
inline ListTagsForProjectResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags for the project.</p>
*/
inline ListTagsForProjectResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags for the project.</p>
*/
inline ListTagsForProjectResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline ListTagsForProjectResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline ListTagsForProjectResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline ListTagsForProjectResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline ListTagsForProjectResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline ListTagsForProjectResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline ListTagsForProjectResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
/**
* <p>Reserved for future use.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>Reserved for future use.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>Reserved for future use.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>Reserved for future use.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>Reserved for future use.</p>
*/
inline ListTagsForProjectResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline ListTagsForProjectResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>Reserved for future use.</p>
*/
inline ListTagsForProjectResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Map<Aws::String, Aws::String> m_tags;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,161 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API ListTeamMembersRequest : public CodeStarRequest
{
public:
ListTeamMembersRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListTeamMembers"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the project for which you want to list team members.</p>
*/
inline const Aws::String& GetProjectId() const{ return m_projectId; }
/**
* <p>The ID of the project for which you want to list team members.</p>
*/
inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
/**
* <p>The ID of the project for which you want to list team members.</p>
*/
inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; }
/**
* <p>The ID of the project for which you want to list team members.</p>
*/
inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); }
/**
* <p>The ID of the project for which you want to list team members.</p>
*/
inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); }
/**
* <p>The ID of the project for which you want to list team members.</p>
*/
inline ListTeamMembersRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;}
/**
* <p>The ID of the project for which you want to list team members.</p>
*/
inline ListTeamMembersRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;}
/**
* <p>The ID of the project for which you want to list team members.</p>
*/
inline ListTeamMembersRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;}
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline ListTeamMembersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline ListTeamMembersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline ListTeamMembersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of team members you want returned in a response.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of team members you want returned in a response.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of team members you want returned in a response.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of team members you want returned in a response.</p>
*/
inline ListTeamMembersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_projectId;
bool m_projectIdHasBeenSet;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codestar/model/TeamMember.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API ListTeamMembersResult
{
public:
ListTeamMembersResult();
ListTeamMembersResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListTeamMembersResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>A list of team member objects for the project.</p>
*/
inline const Aws::Vector<TeamMember>& GetTeamMembers() const{ return m_teamMembers; }
/**
* <p>A list of team member objects for the project.</p>
*/
inline void SetTeamMembers(const Aws::Vector<TeamMember>& value) { m_teamMembers = value; }
/**
* <p>A list of team member objects for the project.</p>
*/
inline void SetTeamMembers(Aws::Vector<TeamMember>&& value) { m_teamMembers = std::move(value); }
/**
* <p>A list of team member objects for the project.</p>
*/
inline ListTeamMembersResult& WithTeamMembers(const Aws::Vector<TeamMember>& value) { SetTeamMembers(value); return *this;}
/**
* <p>A list of team member objects for the project.</p>
*/
inline ListTeamMembersResult& WithTeamMembers(Aws::Vector<TeamMember>&& value) { SetTeamMembers(std::move(value)); return *this;}
/**
* <p>A list of team member objects for the project.</p>
*/
inline ListTeamMembersResult& AddTeamMembers(const TeamMember& value) { m_teamMembers.push_back(value); return *this; }
/**
* <p>A list of team member objects for the project.</p>
*/
inline ListTeamMembersResult& AddTeamMembers(TeamMember&& value) { m_teamMembers.push_back(std::move(value)); return *this; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListTeamMembersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListTeamMembersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListTeamMembersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<TeamMember> m_teamMembers;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,117 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API ListUserProfilesRequest : public CodeStarRequest
{
public:
ListUserProfilesRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "ListUserProfiles"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline ListUserProfilesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline ListUserProfilesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The continuation token for the next set of results, if the results cannot be
* returned in one response.</p>
*/
inline ListUserProfilesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
/**
* <p>The maximum number of results to return in a response.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
/**
* <p>The maximum number of results to return in a response.</p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
/**
* <p>The maximum number of results to return in a response.</p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
/**
* <p>The maximum number of results to return in a response.</p>
*/
inline ListUserProfilesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
private:
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet;
int m_maxResults;
bool m_maxResultsHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,124 @@
/**
* 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/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codestar/model/UserProfileSummary.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API ListUserProfilesResult
{
public:
ListUserProfilesResult();
ListUserProfilesResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
ListUserProfilesResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>All the user profiles configured in AWS CodeStar for an AWS account.</p>
*/
inline const Aws::Vector<UserProfileSummary>& GetUserProfiles() const{ return m_userProfiles; }
/**
* <p>All the user profiles configured in AWS CodeStar for an AWS account.</p>
*/
inline void SetUserProfiles(const Aws::Vector<UserProfileSummary>& value) { m_userProfiles = value; }
/**
* <p>All the user profiles configured in AWS CodeStar for an AWS account.</p>
*/
inline void SetUserProfiles(Aws::Vector<UserProfileSummary>&& value) { m_userProfiles = std::move(value); }
/**
* <p>All the user profiles configured in AWS CodeStar for an AWS account.</p>
*/
inline ListUserProfilesResult& WithUserProfiles(const Aws::Vector<UserProfileSummary>& value) { SetUserProfiles(value); return *this;}
/**
* <p>All the user profiles configured in AWS CodeStar for an AWS account.</p>
*/
inline ListUserProfilesResult& WithUserProfiles(Aws::Vector<UserProfileSummary>&& value) { SetUserProfiles(std::move(value)); return *this;}
/**
* <p>All the user profiles configured in AWS CodeStar for an AWS account.</p>
*/
inline ListUserProfilesResult& AddUserProfiles(const UserProfileSummary& value) { m_userProfiles.push_back(value); return *this; }
/**
* <p>All the user profiles configured in AWS CodeStar for an AWS account.</p>
*/
inline ListUserProfilesResult& AddUserProfiles(UserProfileSummary&& value) { m_userProfiles.push_back(std::move(value)); return *this; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListUserProfilesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListUserProfilesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
/**
* <p>The continuation token to use when requesting the next set of results, if
* there are more results to be returned.</p>
*/
inline ListUserProfilesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
private:
Aws::Vector<UserProfileSummary> m_userProfiles;
Aws::String m_nextToken;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,141 @@
/**
* 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>An indication of whether a project creation or deletion is failed or
* successful.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ProjectStatus">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API ProjectStatus
{
public:
ProjectStatus();
ProjectStatus(Aws::Utils::Json::JsonView jsonValue);
ProjectStatus& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The phase of completion for a project creation or deletion.</p>
*/
inline const Aws::String& GetState() const{ return m_state; }
/**
* <p>The phase of completion for a project creation or deletion.</p>
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* <p>The phase of completion for a project creation or deletion.</p>
*/
inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* <p>The phase of completion for a project creation or deletion.</p>
*/
inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* <p>The phase of completion for a project creation or deletion.</p>
*/
inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); }
/**
* <p>The phase of completion for a project creation or deletion.</p>
*/
inline ProjectStatus& WithState(const Aws::String& value) { SetState(value); return *this;}
/**
* <p>The phase of completion for a project creation or deletion.</p>
*/
inline ProjectStatus& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;}
/**
* <p>The phase of completion for a project creation or deletion.</p>
*/
inline ProjectStatus& WithState(const char* value) { SetState(value); return *this;}
/**
* <p>In the case of a project creation or deletion failure, a reason for the
* failure.</p>
*/
inline const Aws::String& GetReason() const{ return m_reason; }
/**
* <p>In the case of a project creation or deletion failure, a reason for the
* failure.</p>
*/
inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
/**
* <p>In the case of a project creation or deletion failure, a reason for the
* failure.</p>
*/
inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
/**
* <p>In the case of a project creation or deletion failure, a reason for the
* failure.</p>
*/
inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
/**
* <p>In the case of a project creation or deletion failure, a reason for the
* failure.</p>
*/
inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
/**
* <p>In the case of a project creation or deletion failure, a reason for the
* failure.</p>
*/
inline ProjectStatus& WithReason(const Aws::String& value) { SetReason(value); return *this;}
/**
* <p>In the case of a project creation or deletion failure, a reason for the
* failure.</p>
*/
inline ProjectStatus& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
/**
* <p>In the case of a project creation or deletion failure, a reason for the
* failure.</p>
*/
inline ProjectStatus& WithReason(const char* value) { SetReason(value); return *this;}
private:
Aws::String m_state;
bool m_stateHasBeenSet;
Aws::String m_reason;
bool m_reasonHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,132 @@
/**
* 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 the metadata for a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ProjectSummary">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API ProjectSummary
{
public:
ProjectSummary();
ProjectSummary(Aws::Utils::Json::JsonView jsonValue);
ProjectSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The ID of the project.</p>
*/
inline const Aws::String& GetProjectId() const{ return m_projectId; }
/**
* <p>The ID of the project.</p>
*/
inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
/**
* <p>The ID of the project.</p>
*/
inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; }
/**
* <p>The ID of the project.</p>
*/
inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); }
/**
* <p>The ID of the project.</p>
*/
inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); }
/**
* <p>The ID of the project.</p>
*/
inline ProjectSummary& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline ProjectSummary& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline ProjectSummary& WithProjectId(const char* value) { SetProjectId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the project.</p>
*/
inline const Aws::String& GetProjectArn() const{ return m_projectArn; }
/**
* <p>The Amazon Resource Name (ARN) of the project.</p>
*/
inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the project.</p>
*/
inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the project.</p>
*/
inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the project.</p>
*/
inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the project.</p>
*/
inline ProjectSummary& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the project.</p>
*/
inline ProjectSummary& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the project.</p>
*/
inline ProjectSummary& WithProjectArn(const char* value) { SetProjectArn(value); return *this;}
private:
Aws::String m_projectId;
bool m_projectIdHasBeenSet;
Aws::String m_projectArn;
bool m_projectArnHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,88 @@
/**
* 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 resource for a project.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/Resource">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API Resource
{
public:
Resource();
Resource(Aws::Utils::Json::JsonView jsonValue);
Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon Resource Name (ARN) of the resource.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The Amazon Resource Name (ARN) of the resource.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the resource.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The Amazon Resource Name (ARN) of the resource.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the resource.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the resource.</p>
*/
inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the resource.</p>
*/
inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the resource.</p>
*/
inline Resource& WithId(const char* value) { SetId(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,149 @@
/**
* 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>The Amazon S3 location where the source code files provided with the project
* request are stored.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/S3Location">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API S3Location
{
public:
S3Location();
S3Location(Aws::Utils::Json::JsonView jsonValue);
S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon S3 bucket name where the source code files provided with the
* project request are stored.</p>
*/
inline const Aws::String& GetBucketName() const{ return m_bucketName; }
/**
* <p>The Amazon S3 bucket name where the source code files provided with the
* project request are stored.</p>
*/
inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
/**
* <p>The Amazon S3 bucket name where the source code files provided with the
* project request are stored.</p>
*/
inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
/**
* <p>The Amazon S3 bucket name where the source code files provided with the
* project request are stored.</p>
*/
inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
/**
* <p>The Amazon S3 bucket name where the source code files provided with the
* project request are stored.</p>
*/
inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
/**
* <p>The Amazon S3 bucket name where the source code files provided with the
* project request are stored.</p>
*/
inline S3Location& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
/**
* <p>The Amazon S3 bucket name where the source code files provided with the
* project request are stored.</p>
*/
inline S3Location& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
/**
* <p>The Amazon S3 bucket name where the source code files provided with the
* project request are stored.</p>
*/
inline S3Location& WithBucketName(const char* value) { SetBucketName(value); return *this;}
/**
* <p>The Amazon S3 object key where the source code files provided with the
* project request are stored.</p>
*/
inline const Aws::String& GetBucketKey() const{ return m_bucketKey; }
/**
* <p>The Amazon S3 object key where the source code files provided with the
* project request are stored.</p>
*/
inline bool BucketKeyHasBeenSet() const { return m_bucketKeyHasBeenSet; }
/**
* <p>The Amazon S3 object key where the source code files provided with the
* project request are stored.</p>
*/
inline void SetBucketKey(const Aws::String& value) { m_bucketKeyHasBeenSet = true; m_bucketKey = value; }
/**
* <p>The Amazon S3 object key where the source code files provided with the
* project request are stored.</p>
*/
inline void SetBucketKey(Aws::String&& value) { m_bucketKeyHasBeenSet = true; m_bucketKey = std::move(value); }
/**
* <p>The Amazon S3 object key where the source code files provided with the
* project request are stored.</p>
*/
inline void SetBucketKey(const char* value) { m_bucketKeyHasBeenSet = true; m_bucketKey.assign(value); }
/**
* <p>The Amazon S3 object key where the source code files provided with the
* project request are stored.</p>
*/
inline S3Location& WithBucketKey(const Aws::String& value) { SetBucketKey(value); return *this;}
/**
* <p>The Amazon S3 object key where the source code files provided with the
* project request are stored.</p>
*/
inline S3Location& WithBucketKey(Aws::String&& value) { SetBucketKey(std::move(value)); return *this;}
/**
* <p>The Amazon S3 object key where the source code files provided with the
* project request are stored.</p>
*/
inline S3Location& WithBucketKey(const char* value) { SetBucketKey(value); return *this;}
private:
Aws::String m_bucketName;
bool m_bucketNameHasBeenSet;
Aws::String m_bucketKey;
bool m_bucketKeyHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,155 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API TagProjectRequest : public CodeStarRequest
{
public:
TagProjectRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "TagProject"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the project you want to add a tag to.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the project you want to add a tag to.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the project you want to add a tag to.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the project you want to add a tag to.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the project you want to add a tag to.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the project you want to add a tag to.</p>
*/
inline TagProjectRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the project you want to add a tag to.</p>
*/
inline TagProjectRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the project you want to add a tag to.</p>
*/
inline TagProjectRequest& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The tags you want to add to the project.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags you want to add to the project.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags you want to add to the project.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags you want to add to the project.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags you want to add to the project.</p>
*/
inline TagProjectRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags you want to add to the project.</p>
*/
inline TagProjectRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags you want to add to the project.</p>
*/
inline TagProjectRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* <p>The tags you want to add to the project.</p>
*/
inline TagProjectRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags you want to add to the project.</p>
*/
inline TagProjectRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags you want to add to the project.</p>
*/
inline TagProjectRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags you want to add to the project.</p>
*/
inline TagProjectRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags you want to add to the project.</p>
*/
inline TagProjectRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags you want to add to the project.</p>
*/
inline TagProjectRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,103 @@
/**
* 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/AWSMap.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API TagProjectResult
{
public:
TagProjectResult();
TagProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
TagProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The tags for the project.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags for the project.</p>
*/
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tags = value; }
/**
* <p>The tags for the project.</p>
*/
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tags = std::move(value); }
/**
* <p>The tags for the project.</p>
*/
inline TagProjectResult& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags for the project.</p>
*/
inline TagProjectResult& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags for the project.</p>
*/
inline TagProjectResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline TagProjectResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline TagProjectResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline TagProjectResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline TagProjectResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline TagProjectResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* <p>The tags for the project.</p>
*/
inline TagProjectResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
private:
Aws::Map<Aws::String, Aws::String> m_tags;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

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

View File

@@ -0,0 +1,228 @@
/**
* 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/codestar/model/ToolchainSource.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSMap.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
/**
* <p>The toolchain template file provided with the project request. AWS CodeStar
* uses the template to provision the toolchain stack in AWS
* CloudFormation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/Toolchain">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API Toolchain
{
public:
Toolchain();
Toolchain(Aws::Utils::Json::JsonView jsonValue);
Toolchain& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon S3 location where the toolchain template file provided with the
* project request is stored. AWS CodeStar retrieves the file during project
* creation.</p>
*/
inline const ToolchainSource& GetSource() const{ return m_source; }
/**
* <p>The Amazon S3 location where the toolchain template file provided with the
* project request is stored. AWS CodeStar retrieves the file during project
* creation.</p>
*/
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
/**
* <p>The Amazon S3 location where the toolchain template file provided with the
* project request is stored. AWS CodeStar retrieves the file during project
* creation.</p>
*/
inline void SetSource(const ToolchainSource& value) { m_sourceHasBeenSet = true; m_source = value; }
/**
* <p>The Amazon S3 location where the toolchain template file provided with the
* project request is stored. AWS CodeStar retrieves the file during project
* creation.</p>
*/
inline void SetSource(ToolchainSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
/**
* <p>The Amazon S3 location where the toolchain template file provided with the
* project request is stored. AWS CodeStar retrieves the file during project
* creation.</p>
*/
inline Toolchain& WithSource(const ToolchainSource& value) { SetSource(value); return *this;}
/**
* <p>The Amazon S3 location where the toolchain template file provided with the
* project request is stored. AWS CodeStar retrieves the file during project
* creation.</p>
*/
inline Toolchain& WithSource(ToolchainSource&& value) { SetSource(std::move(value)); return *this;}
/**
* <p>The service role ARN for AWS CodeStar to use for the toolchain template
* during stack provisioning.</p>
*/
inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
/**
* <p>The service role ARN for AWS CodeStar to use for the toolchain template
* during stack provisioning.</p>
*/
inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
/**
* <p>The service role ARN for AWS CodeStar to use for the toolchain template
* during stack provisioning.</p>
*/
inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
/**
* <p>The service role ARN for AWS CodeStar to use for the toolchain template
* during stack provisioning.</p>
*/
inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
/**
* <p>The service role ARN for AWS CodeStar to use for the toolchain template
* during stack provisioning.</p>
*/
inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
/**
* <p>The service role ARN for AWS CodeStar to use for the toolchain template
* during stack provisioning.</p>
*/
inline Toolchain& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* <p>The service role ARN for AWS CodeStar to use for the toolchain template
* during stack provisioning.</p>
*/
inline Toolchain& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* <p>The service role ARN for AWS CodeStar to use for the toolchain template
* during stack provisioning.</p>
*/
inline Toolchain& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline const Aws::Map<Aws::String, Aws::String>& GetStackParameters() const{ return m_stackParameters; }
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline bool StackParametersHasBeenSet() const { return m_stackParametersHasBeenSet; }
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline void SetStackParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_stackParametersHasBeenSet = true; m_stackParameters = value; }
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline void SetStackParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_stackParametersHasBeenSet = true; m_stackParameters = std::move(value); }
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline Toolchain& WithStackParameters(const Aws::Map<Aws::String, Aws::String>& value) { SetStackParameters(value); return *this;}
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline Toolchain& WithStackParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetStackParameters(std::move(value)); return *this;}
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline Toolchain& AddStackParameters(const Aws::String& key, const Aws::String& value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(key, value); return *this; }
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline Toolchain& AddStackParameters(Aws::String&& key, const Aws::String& value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline Toolchain& AddStackParameters(const Aws::String& key, Aws::String&& value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline Toolchain& AddStackParameters(Aws::String&& key, Aws::String&& value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(std::move(key), std::move(value)); return *this; }
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline Toolchain& AddStackParameters(const char* key, Aws::String&& value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(key, std::move(value)); return *this; }
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline Toolchain& AddStackParameters(Aws::String&& key, const char* value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(std::move(key), value); return *this; }
/**
* <p>The list of parameter overrides to be passed into the toolchain template
* during stack provisioning, if any.</p>
*/
inline Toolchain& AddStackParameters(const char* key, const char* value) { m_stackParametersHasBeenSet = true; m_stackParameters.emplace(key, value); return *this; }
private:
ToolchainSource m_source;
bool m_sourceHasBeenSet;
Aws::String m_roleArn;
bool m_roleArnHasBeenSet;
Aws::Map<Aws::String, Aws::String> m_stackParameters;
bool m_stackParametersHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,86 @@
/**
* 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/codestar/model/S3Location.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
/**
* <p>The Amazon S3 location where the toolchain template file provided with the
* project request is stored. AWS CodeStar retrieves the file during project
* creation.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/ToolchainSource">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API ToolchainSource
{
public:
ToolchainSource();
ToolchainSource(Aws::Utils::Json::JsonView jsonValue);
ToolchainSource& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The Amazon S3 bucket where the toolchain template file provided with the
* project request is stored.</p>
*/
inline const S3Location& GetS3() const{ return m_s3; }
/**
* <p>The Amazon S3 bucket where the toolchain template file provided with the
* project request is stored.</p>
*/
inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
/**
* <p>The Amazon S3 bucket where the toolchain template file provided with the
* project request is stored.</p>
*/
inline void SetS3(const S3Location& value) { m_s3HasBeenSet = true; m_s3 = value; }
/**
* <p>The Amazon S3 bucket where the toolchain template file provided with the
* project request is stored.</p>
*/
inline void SetS3(S3Location&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); }
/**
* <p>The Amazon S3 bucket where the toolchain template file provided with the
* project request is stored.</p>
*/
inline ToolchainSource& WithS3(const S3Location& value) { SetS3(value); return *this;}
/**
* <p>The Amazon S3 bucket where the toolchain template file provided with the
* project request is stored.</p>
*/
inline ToolchainSource& WithS3(S3Location&& value) { SetS3(std::move(value)); return *this;}
private:
S3Location m_s3;
bool m_s3HasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,135 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API UntagProjectRequest : public CodeStarRequest
{
public:
UntagProjectRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UntagProject"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the project to remove tags from.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the project to remove tags from.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the project to remove tags from.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the project to remove tags from.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the project to remove tags from.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the project to remove tags from.</p>
*/
inline UntagProjectRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the project to remove tags from.</p>
*/
inline UntagProjectRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the project to remove tags from.</p>
*/
inline UntagProjectRequest& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The tags to remove from the project.</p>
*/
inline const Aws::Vector<Aws::String>& GetTags() const{ return m_tags; }
/**
* <p>The tags to remove from the project.</p>
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* <p>The tags to remove from the project.</p>
*/
inline void SetTags(const Aws::Vector<Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* <p>The tags to remove from the project.</p>
*/
inline void SetTags(Aws::Vector<Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* <p>The tags to remove from the project.</p>
*/
inline UntagProjectRequest& WithTags(const Aws::Vector<Aws::String>& value) { SetTags(value); return *this;}
/**
* <p>The tags to remove from the project.</p>
*/
inline UntagProjectRequest& WithTags(Aws::Vector<Aws::String>&& value) { SetTags(std::move(value)); return *this;}
/**
* <p>The tags to remove from the project.</p>
*/
inline UntagProjectRequest& AddTags(const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
/**
* <p>The tags to remove from the project.</p>
*/
inline UntagProjectRequest& AddTags(Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
/**
* <p>The tags to remove from the project.</p>
*/
inline UntagProjectRequest& AddTags(const char* value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::Vector<Aws::String> m_tags;
bool m_tagsHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codestar/CodeStar_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API UntagProjectResult
{
public:
UntagProjectResult();
UntagProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UntagProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,173 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API UpdateProjectRequest : public CodeStarRequest
{
public:
UpdateProjectRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdateProject"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the project you want to update.</p>
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* <p>The ID of the project you want to update.</p>
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* <p>The ID of the project you want to update.</p>
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* <p>The ID of the project you want to update.</p>
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* <p>The ID of the project you want to update.</p>
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* <p>The ID of the project you want to update.</p>
*/
inline UpdateProjectRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* <p>The ID of the project you want to update.</p>
*/
inline UpdateProjectRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* <p>The ID of the project you want to update.</p>
*/
inline UpdateProjectRequest& WithId(const char* value) { SetId(value); return *this;}
/**
* <p>The name of the project you want to update.</p>
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* <p>The name of the project you want to update.</p>
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* <p>The name of the project you want to update.</p>
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* <p>The name of the project you want to update.</p>
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* <p>The name of the project you want to update.</p>
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* <p>The name of the project you want to update.</p>
*/
inline UpdateProjectRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* <p>The name of the project you want to update.</p>
*/
inline UpdateProjectRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* <p>The name of the project you want to update.</p>
*/
inline UpdateProjectRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* <p>The description of the project, if any.</p>
*/
inline const Aws::String& GetDescription() const{ return m_description; }
/**
* <p>The description of the project, if any.</p>
*/
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
/**
* <p>The description of the project, if any.</p>
*/
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
/**
* <p>The description of the project, if any.</p>
*/
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
/**
* <p>The description of the project, if any.</p>
*/
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
/**
* <p>The description of the project, if any.</p>
*/
inline UpdateProjectRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
/**
* <p>The description of the project, if any.</p>
*/
inline UpdateProjectRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
/**
* <p>The description of the project, if any.</p>
*/
inline UpdateProjectRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
private:
Aws::String m_id;
bool m_idHasBeenSet;
Aws::String m_name;
bool m_nameHasBeenSet;
Aws::String m_description;
bool m_descriptionHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,36 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codestar/CodeStar_EXPORTS.h>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API UpdateProjectResult
{
public:
UpdateProjectResult();
UpdateProjectResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateProjectResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,241 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API UpdateTeamMemberRequest : public CodeStarRequest
{
public:
UpdateTeamMemberRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdateTeamMember"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID of the project.</p>
*/
inline const Aws::String& GetProjectId() const{ return m_projectId; }
/**
* <p>The ID of the project.</p>
*/
inline bool ProjectIdHasBeenSet() const { return m_projectIdHasBeenSet; }
/**
* <p>The ID of the project.</p>
*/
inline void SetProjectId(const Aws::String& value) { m_projectIdHasBeenSet = true; m_projectId = value; }
/**
* <p>The ID of the project.</p>
*/
inline void SetProjectId(Aws::String&& value) { m_projectIdHasBeenSet = true; m_projectId = std::move(value); }
/**
* <p>The ID of the project.</p>
*/
inline void SetProjectId(const char* value) { m_projectIdHasBeenSet = true; m_projectId.assign(value); }
/**
* <p>The ID of the project.</p>
*/
inline UpdateTeamMemberRequest& WithProjectId(const Aws::String& value) { SetProjectId(value); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline UpdateTeamMemberRequest& WithProjectId(Aws::String&& value) { SetProjectId(std::move(value)); return *this;}
/**
* <p>The ID of the project.</p>
*/
inline UpdateTeamMemberRequest& WithProjectId(const char* value) { SetProjectId(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user for whom you want to change team
* membership attributes.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The Amazon Resource Name (ARN) of the user for whom you want to change team
* membership attributes.</p>
*/
inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
/**
* <p>The Amazon Resource Name (ARN) of the user for whom you want to change team
* membership attributes.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the user for whom you want to change team
* membership attributes.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user for whom you want to change team
* membership attributes.</p>
*/
inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user for whom you want to change team
* membership attributes.</p>
*/
inline UpdateTeamMemberRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user for whom you want to change team
* membership attributes.</p>
*/
inline UpdateTeamMemberRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user for whom you want to change team
* membership attributes.</p>
*/
inline UpdateTeamMemberRequest& 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 UpdateTeamMemberRequest& 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 UpdateTeamMemberRequest& 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 UpdateTeamMemberRequest& WithProjectRole(const char* value) { SetProjectRole(value); return *this;}
/**
* <p>Whether a team member is allowed to remotely access project resources using
* the SSH public key associated with the user's profile. Even if this is set to
* True, the user must associate a public key with their profile before the user
* can access resources.</p>
*/
inline bool GetRemoteAccessAllowed() const{ return m_remoteAccessAllowed; }
/**
* <p>Whether a team member is allowed to remotely access project resources using
* the SSH public key associated with the user's profile. Even if this is set to
* True, the user must associate a public key with their profile before the user
* can access resources.</p>
*/
inline bool RemoteAccessAllowedHasBeenSet() const { return m_remoteAccessAllowedHasBeenSet; }
/**
* <p>Whether a team member is allowed to remotely access project resources using
* the SSH public key associated with the user's profile. Even if this is set to
* True, the user must associate a public key with their profile before the user
* can access resources.</p>
*/
inline void SetRemoteAccessAllowed(bool value) { m_remoteAccessAllowedHasBeenSet = true; m_remoteAccessAllowed = value; }
/**
* <p>Whether a team member is allowed to remotely access project resources using
* the SSH public key associated with the user's profile. Even if this is set to
* True, the user must associate a public key with their profile before the user
* can access resources.</p>
*/
inline UpdateTeamMemberRequest& WithRemoteAccessAllowed(bool value) { SetRemoteAccessAllowed(value); return *this;}
private:
Aws::String m_projectId;
bool m_projectIdHasBeenSet;
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

View File

@@ -0,0 +1,143 @@
/**
* 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
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API UpdateTeamMemberResult
{
public:
UpdateTeamMemberResult();
UpdateTeamMemberResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateTeamMemberResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <p>The Amazon Resource Name (ARN) of the user whose team membership attributes
* were updated.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The Amazon Resource Name (ARN) of the user whose team membership attributes
* were updated.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the user whose team membership attributes
* were updated.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user whose team membership attributes
* were updated.</p>
*/
inline void SetUserArn(const char* value) { m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user whose team membership attributes
* were updated.</p>
*/
inline UpdateTeamMemberResult& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user whose team membership attributes
* were updated.</p>
*/
inline UpdateTeamMemberResult& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user whose team membership attributes
* were updated.</p>
*/
inline UpdateTeamMemberResult& WithUserArn(const char* value) { SetUserArn(value); return *this;}
/**
* <p>The project role granted to the user.</p>
*/
inline const Aws::String& GetProjectRole() const{ return m_projectRole; }
/**
* <p>The project role granted to the user.</p>
*/
inline void SetProjectRole(const Aws::String& value) { m_projectRole = value; }
/**
* <p>The project role granted to the user.</p>
*/
inline void SetProjectRole(Aws::String&& value) { m_projectRole = std::move(value); }
/**
* <p>The project role granted to the user.</p>
*/
inline void SetProjectRole(const char* value) { m_projectRole.assign(value); }
/**
* <p>The project role granted to the user.</p>
*/
inline UpdateTeamMemberResult& WithProjectRole(const Aws::String& value) { SetProjectRole(value); return *this;}
/**
* <p>The project role granted to the user.</p>
*/
inline UpdateTeamMemberResult& WithProjectRole(Aws::String&& value) { SetProjectRole(std::move(value)); return *this;}
/**
* <p>The project role granted to the user.</p>
*/
inline UpdateTeamMemberResult& WithProjectRole(const char* value) { SetProjectRole(value); return *this;}
/**
* <p>Whether a team member is allowed to remotely access project resources using
* the SSH public key associated with the user's profile.</p>
*/
inline bool GetRemoteAccessAllowed() const{ return m_remoteAccessAllowed; }
/**
* <p>Whether a team member is allowed to remotely access project resources using
* the SSH public key associated with the user's profile.</p>
*/
inline void SetRemoteAccessAllowed(bool value) { m_remoteAccessAllowed = value; }
/**
* <p>Whether a team member is allowed to remotely access project resources using
* the SSH public key associated with the user's profile.</p>
*/
inline UpdateTeamMemberResult& WithRemoteAccessAllowed(bool value) { SetRemoteAccessAllowed(value); return *this;}
private:
Aws::String m_userArn;
Aws::String m_projectRole;
bool m_remoteAccessAllowed;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,257 @@
/**
* 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/codestar/CodeStarRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace CodeStar
{
namespace Model
{
/**
*/
class AWS_CODESTAR_API UpdateUserProfileRequest : public CodeStarRequest
{
public:
UpdateUserProfileRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "UpdateUserProfile"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline const Aws::String& GetUserArn() const{ return m_userArn; }
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline bool UserArnHasBeenSet() const { return m_userArnHasBeenSet; }
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetUserArn(const Aws::String& value) { m_userArnHasBeenSet = true; m_userArn = value; }
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArnHasBeenSet = true; m_userArn = std::move(value); }
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetUserArn(const char* value) { m_userArnHasBeenSet = true; m_userArn.assign(value); }
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileRequest& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileRequest& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The name that will be displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileRequest& WithUserArn(const char* value) { SetUserArn(value); return *this;}
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline const Aws::String& GetDisplayName() const{ return m_displayName; }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileRequest& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileRequest& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileRequest& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::move(value); }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline void SetSshPublicKey(const char* value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey.assign(value); }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline UpdateUserProfileRequest& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline UpdateUserProfileRequest& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline UpdateUserProfileRequest& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
private:
Aws::String m_userArn;
bool m_userArnHasBeenSet;
Aws::String m_displayName;
bool m_displayNameHasBeenSet;
Aws::String m_emailAddress;
bool m_emailAddressHasBeenSet;
Aws::String m_sshPublicKey;
bool m_sshPublicKeyHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,283 @@
/**
* 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 <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
template<typename RESULT_TYPE>
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace CodeStar
{
namespace Model
{
class AWS_CODESTAR_API UpdateUserProfileResult
{
public:
UpdateUserProfileResult();
UpdateUserProfileResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
UpdateUserProfileResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
/**
* <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 void SetUserArn(const Aws::String& value) { m_userArn = value; }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline void SetUserArn(Aws::String&& value) { m_userArn = std::move(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline void SetUserArn(const char* value) { m_userArn.assign(value); }
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline UpdateUserProfileResult& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline UpdateUserProfileResult& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline UpdateUserProfileResult& WithUserArn(const char* value) { SetUserArn(value); return *this;}
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline const Aws::String& GetDisplayName() const{ return m_displayName; }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetDisplayName(const Aws::String& value) { m_displayName = value; }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetDisplayName(Aws::String&& value) { m_displayName = std::move(value); }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline void SetDisplayName(const char* value) { m_displayName.assign(value); }
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileResult& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileResult& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
/**
* <p>The name that is displayed as the friendly name for the user in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileResult& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(const Aws::String& value) { m_emailAddress = value; }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(Aws::String&& value) { m_emailAddress = std::move(value); }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline void SetEmailAddress(const char* value) { m_emailAddress.assign(value); }
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileResult& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileResult& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
/**
* <p>The email address that is displayed as part of the user's profile in AWS
* CodeStar.</p>
*/
inline UpdateUserProfileResult& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKey = value; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKey = std::move(value); }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline void SetSshPublicKey(const char* value) { m_sshPublicKey.assign(value); }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline UpdateUserProfileResult& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline UpdateUserProfileResult& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. This is the
* public portion of the public/private keypair the user can use to access project
* resources if a project owner allows the user remote access to those
* resources.</p>
*/
inline UpdateUserProfileResult& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
/**
* <p>The date the user profile was created, in timestamp format.</p>
*/
inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; }
/**
* <p>The date the user profile was created, in timestamp format.</p>
*/
inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestamp = value; }
/**
* <p>The date the user profile was created, in timestamp format.</p>
*/
inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestamp = std::move(value); }
/**
* <p>The date the user profile was created, in timestamp format.</p>
*/
inline UpdateUserProfileResult& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;}
/**
* <p>The date the user profile was created, in timestamp format.</p>
*/
inline UpdateUserProfileResult& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;}
/**
* <p>The date the user profile was last modified, in timestamp format.</p>
*/
inline const Aws::Utils::DateTime& GetLastModifiedTimestamp() const{ return m_lastModifiedTimestamp; }
/**
* <p>The date the user profile was last modified, in timestamp format.</p>
*/
inline void SetLastModifiedTimestamp(const Aws::Utils::DateTime& value) { m_lastModifiedTimestamp = value; }
/**
* <p>The date the user profile was last modified, in timestamp format.</p>
*/
inline void SetLastModifiedTimestamp(Aws::Utils::DateTime&& value) { m_lastModifiedTimestamp = std::move(value); }
/**
* <p>The date the user profile was last modified, in timestamp format.</p>
*/
inline UpdateUserProfileResult& WithLastModifiedTimestamp(const Aws::Utils::DateTime& value) { SetLastModifiedTimestamp(value); return *this;}
/**
* <p>The date the user profile was last modified, in timestamp format.</p>
*/
inline UpdateUserProfileResult& WithLastModifiedTimestamp(Aws::Utils::DateTime&& value) { SetLastModifiedTimestamp(std::move(value)); return *this;}
private:
Aws::String m_userArn;
Aws::String m_displayName;
Aws::String m_emailAddress;
Aws::String m_sshPublicKey;
Aws::Utils::DateTime m_createdTimestamp;
Aws::Utils::DateTime m_lastModifiedTimestamp;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws

View File

@@ -0,0 +1,301 @@
/**
* 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 user's profile in AWS CodeStar.</p><p><h3>See Also:</h3>
* <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codestar-2017-04-19/UserProfileSummary">AWS
* API Reference</a></p>
*/
class AWS_CODESTAR_API UserProfileSummary
{
public:
UserProfileSummary();
UserProfileSummary(Aws::Utils::Json::JsonView jsonValue);
UserProfileSummary& 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 UserProfileSummary& WithUserArn(const Aws::String& value) { SetUserArn(value); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline UserProfileSummary& WithUserArn(Aws::String&& value) { SetUserArn(std::move(value)); return *this;}
/**
* <p>The Amazon Resource Name (ARN) of the user in IAM.</p>
*/
inline UserProfileSummary& WithUserArn(const char* value) { SetUserArn(value); return *this;}
/**
* <p>The display name of a user in AWS CodeStar. For example, this could be set to
* both first and last name ("Mary Major") or a single name ("Mary"). The display
* name is also used to generate the initial icon associated with the user in AWS
* CodeStar projects. If spaces are included in the display name, the first
* character that appears after the space will be used as the second character in
* the user initial icon. The initial icon displays a maximum of two characters, so
* a display name with more than one space (for example "Mary Jane Major") would
* generate an initial icon using the first character and the first character after
* the space ("MJ", not "MM").</p>
*/
inline const Aws::String& GetDisplayName() const{ return m_displayName; }
/**
* <p>The display name of a user in AWS CodeStar. For example, this could be set to
* both first and last name ("Mary Major") or a single name ("Mary"). The display
* name is also used to generate the initial icon associated with the user in AWS
* CodeStar projects. If spaces are included in the display name, the first
* character that appears after the space will be used as the second character in
* the user initial icon. The initial icon displays a maximum of two characters, so
* a display name with more than one space (for example "Mary Jane Major") would
* generate an initial icon using the first character and the first character after
* the space ("MJ", not "MM").</p>
*/
inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
/**
* <p>The display name of a user in AWS CodeStar. For example, this could be set to
* both first and last name ("Mary Major") or a single name ("Mary"). The display
* name is also used to generate the initial icon associated with the user in AWS
* CodeStar projects. If spaces are included in the display name, the first
* character that appears after the space will be used as the second character in
* the user initial icon. The initial icon displays a maximum of two characters, so
* a display name with more than one space (for example "Mary Jane Major") would
* generate an initial icon using the first character and the first character after
* the space ("MJ", not "MM").</p>
*/
inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
/**
* <p>The display name of a user in AWS CodeStar. For example, this could be set to
* both first and last name ("Mary Major") or a single name ("Mary"). The display
* name is also used to generate the initial icon associated with the user in AWS
* CodeStar projects. If spaces are included in the display name, the first
* character that appears after the space will be used as the second character in
* the user initial icon. The initial icon displays a maximum of two characters, so
* a display name with more than one space (for example "Mary Jane Major") would
* generate an initial icon using the first character and the first character after
* the space ("MJ", not "MM").</p>
*/
inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
/**
* <p>The display name of a user in AWS CodeStar. For example, this could be set to
* both first and last name ("Mary Major") or a single name ("Mary"). The display
* name is also used to generate the initial icon associated with the user in AWS
* CodeStar projects. If spaces are included in the display name, the first
* character that appears after the space will be used as the second character in
* the user initial icon. The initial icon displays a maximum of two characters, so
* a display name with more than one space (for example "Mary Jane Major") would
* generate an initial icon using the first character and the first character after
* the space ("MJ", not "MM").</p>
*/
inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
/**
* <p>The display name of a user in AWS CodeStar. For example, this could be set to
* both first and last name ("Mary Major") or a single name ("Mary"). The display
* name is also used to generate the initial icon associated with the user in AWS
* CodeStar projects. If spaces are included in the display name, the first
* character that appears after the space will be used as the second character in
* the user initial icon. The initial icon displays a maximum of two characters, so
* a display name with more than one space (for example "Mary Jane Major") would
* generate an initial icon using the first character and the first character after
* the space ("MJ", not "MM").</p>
*/
inline UserProfileSummary& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
/**
* <p>The display name of a user in AWS CodeStar. For example, this could be set to
* both first and last name ("Mary Major") or a single name ("Mary"). The display
* name is also used to generate the initial icon associated with the user in AWS
* CodeStar projects. If spaces are included in the display name, the first
* character that appears after the space will be used as the second character in
* the user initial icon. The initial icon displays a maximum of two characters, so
* a display name with more than one space (for example "Mary Jane Major") would
* generate an initial icon using the first character and the first character after
* the space ("MJ", not "MM").</p>
*/
inline UserProfileSummary& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
/**
* <p>The display name of a user in AWS CodeStar. For example, this could be set to
* both first and last name ("Mary Major") or a single name ("Mary"). The display
* name is also used to generate the initial icon associated with the user in AWS
* CodeStar projects. If spaces are included in the display name, the first
* character that appears after the space will be used as the second character in
* the user initial icon. The initial icon displays a maximum of two characters, so
* a display name with more than one space (for example "Mary Jane Major") would
* generate an initial icon using the first character and the first character after
* the space ("MJ", not "MM").</p>
*/
inline UserProfileSummary& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
/**
* <p>The email address associated with the user.</p>
*/
inline const Aws::String& GetEmailAddress() const{ return m_emailAddress; }
/**
* <p>The email address associated with the user.</p>
*/
inline bool EmailAddressHasBeenSet() const { return m_emailAddressHasBeenSet; }
/**
* <p>The email address associated with the user.</p>
*/
inline void SetEmailAddress(const Aws::String& value) { m_emailAddressHasBeenSet = true; m_emailAddress = value; }
/**
* <p>The email address associated with the user.</p>
*/
inline void SetEmailAddress(Aws::String&& value) { m_emailAddressHasBeenSet = true; m_emailAddress = std::move(value); }
/**
* <p>The email address associated with the user.</p>
*/
inline void SetEmailAddress(const char* value) { m_emailAddressHasBeenSet = true; m_emailAddress.assign(value); }
/**
* <p>The email address associated with the user.</p>
*/
inline UserProfileSummary& WithEmailAddress(const Aws::String& value) { SetEmailAddress(value); return *this;}
/**
* <p>The email address associated with the user.</p>
*/
inline UserProfileSummary& WithEmailAddress(Aws::String&& value) { SetEmailAddress(std::move(value)); return *this;}
/**
* <p>The email address associated with the user.</p>
*/
inline UserProfileSummary& WithEmailAddress(const char* value) { SetEmailAddress(value); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline const Aws::String& GetSshPublicKey() const{ return m_sshPublicKey; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline bool SshPublicKeyHasBeenSet() const { return m_sshPublicKeyHasBeenSet; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline void SetSshPublicKey(const Aws::String& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = value; }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline void SetSshPublicKey(Aws::String&& value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey = std::move(value); }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline void SetSshPublicKey(const char* value) { m_sshPublicKeyHasBeenSet = true; m_sshPublicKey.assign(value); }
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline UserProfileSummary& WithSshPublicKey(const Aws::String& value) { SetSshPublicKey(value); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline UserProfileSummary& WithSshPublicKey(Aws::String&& value) { SetSshPublicKey(std::move(value)); return *this;}
/**
* <p>The SSH public key associated with the user in AWS CodeStar. If a project
* owner allows the user remote access to project resources, this public key will
* be used along with the user's private key for SSH access.</p>
*/
inline UserProfileSummary& WithSshPublicKey(const char* value) { SetSshPublicKey(value); return *this;}
private:
Aws::String m_userArn;
bool m_userArnHasBeenSet;
Aws::String m_displayName;
bool m_displayNameHasBeenSet;
Aws::String m_emailAddress;
bool m_emailAddressHasBeenSet;
Aws::String m_sshPublicKey;
bool m_sshPublicKeyHasBeenSet;
};
} // namespace Model
} // namespace CodeStar
} // namespace Aws