/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeBuild { namespace Model { /** *

Information about a build project.

See Also:

AWS * API Reference

*/ class AWS_CODEBUILD_API Project { public: Project(); Project(Aws::Utils::Json::JsonView jsonValue); Project& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the build project.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the build project.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the build project.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the build project.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the build project.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the build project.

*/ inline Project& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the build project.

*/ inline Project& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the build project.

*/ inline Project& WithName(const char* value) { SetName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the build project.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the build project.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the build project.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the build project.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the build project.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the build project.

*/ inline Project& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the build project.

*/ inline Project& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the build project.

*/ inline Project& WithArn(const char* value) { SetArn(value); return *this;} /** *

A description that makes the build project easy to identify.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description that makes the build project easy to identify.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description that makes the build project easy to identify.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description that makes the build project easy to identify.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description that makes the build project easy to identify.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description that makes the build project easy to identify.

*/ inline Project& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description that makes the build project easy to identify.

*/ inline Project& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description that makes the build project easy to identify.

*/ inline Project& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Information about the build input source code for this build project.

*/ inline const ProjectSource& GetSource() const{ return m_source; } /** *

Information about the build input source code for this build project.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

Information about the build input source code for this build project.

*/ inline void SetSource(const ProjectSource& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

Information about the build input source code for this build project.

*/ inline void SetSource(ProjectSource&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

Information about the build input source code for this build project.

*/ inline Project& WithSource(const ProjectSource& value) { SetSource(value); return *this;} /** *

Information about the build input source code for this build project.

*/ inline Project& WithSource(ProjectSource&& value) { SetSource(std::move(value)); return *this;} /** *

An array of ProjectSource objects.

*/ inline const Aws::Vector& GetSecondarySources() const{ return m_secondarySources; } /** *

An array of ProjectSource objects.

*/ inline bool SecondarySourcesHasBeenSet() const { return m_secondarySourcesHasBeenSet; } /** *

An array of ProjectSource objects.

*/ inline void SetSecondarySources(const Aws::Vector& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources = value; } /** *

An array of ProjectSource objects.

*/ inline void SetSecondarySources(Aws::Vector&& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources = std::move(value); } /** *

An array of ProjectSource objects.

*/ inline Project& WithSecondarySources(const Aws::Vector& value) { SetSecondarySources(value); return *this;} /** *

An array of ProjectSource objects.

*/ inline Project& WithSecondarySources(Aws::Vector&& value) { SetSecondarySources(std::move(value)); return *this;} /** *

An array of ProjectSource objects.

*/ inline Project& AddSecondarySources(const ProjectSource& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources.push_back(value); return *this; } /** *

An array of ProjectSource objects.

*/ inline Project& AddSecondarySources(ProjectSource&& value) { m_secondarySourcesHasBeenSet = true; m_secondarySources.push_back(std::move(value)); return *this; } /** *

A version of the build input to be built for this project. If not specified, * the latest version is used. If specified, it must be one of:

  • *

    For AWS CodeCommit: the commit ID, branch, or Git tag to use.

  • *

    For GitHub: the commit ID, pull request ID, branch name, or tag name that * corresponds to the version of the source code you want to build. If a pull * request ID is specified, it must use the format pr/pull-request-ID * (for example pr/25). If a branch name is specified, the branch's * HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is * used.

  • For Bitbucket: the commit ID, branch name, or tag name * that corresponds to the version of the source code you want to build. If a * branch name is specified, the branch's HEAD commit ID is used. If not specified, * the default branch's HEAD commit ID is used.

  • For Amazon Simple * Storage Service (Amazon S3): the version ID of the object that represents the * build input ZIP file to use.

If sourceVersion is * specified at the build level, then that version takes precedence over this * sourceVersion (at the project level).

For more information, * see Source * Version Sample with CodeBuild in the AWS CodeBuild User Guide.

*/ inline const Aws::String& GetSourceVersion() const{ return m_sourceVersion; } /** *

A version of the build input to be built for this project. If not specified, * the latest version is used. If specified, it must be one of:

  • *

    For AWS CodeCommit: the commit ID, branch, or Git tag to use.

  • *

    For GitHub: the commit ID, pull request ID, branch name, or tag name that * corresponds to the version of the source code you want to build. If a pull * request ID is specified, it must use the format pr/pull-request-ID * (for example pr/25). If a branch name is specified, the branch's * HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is * used.

  • For Bitbucket: the commit ID, branch name, or tag name * that corresponds to the version of the source code you want to build. If a * branch name is specified, the branch's HEAD commit ID is used. If not specified, * the default branch's HEAD commit ID is used.

  • For Amazon Simple * Storage Service (Amazon S3): the version ID of the object that represents the * build input ZIP file to use.

If sourceVersion is * specified at the build level, then that version takes precedence over this * sourceVersion (at the project level).

For more information, * see Source * Version Sample with CodeBuild in the AWS CodeBuild User Guide.

*/ inline bool SourceVersionHasBeenSet() const { return m_sourceVersionHasBeenSet; } /** *

A version of the build input to be built for this project. If not specified, * the latest version is used. If specified, it must be one of:

  • *

    For AWS CodeCommit: the commit ID, branch, or Git tag to use.

  • *

    For GitHub: the commit ID, pull request ID, branch name, or tag name that * corresponds to the version of the source code you want to build. If a pull * request ID is specified, it must use the format pr/pull-request-ID * (for example pr/25). If a branch name is specified, the branch's * HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is * used.

  • For Bitbucket: the commit ID, branch name, or tag name * that corresponds to the version of the source code you want to build. If a * branch name is specified, the branch's HEAD commit ID is used. If not specified, * the default branch's HEAD commit ID is used.

  • For Amazon Simple * Storage Service (Amazon S3): the version ID of the object that represents the * build input ZIP file to use.

If sourceVersion is * specified at the build level, then that version takes precedence over this * sourceVersion (at the project level).

For more information, * see Source * Version Sample with CodeBuild in the AWS CodeBuild User Guide.

*/ inline void SetSourceVersion(const Aws::String& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = value; } /** *

A version of the build input to be built for this project. If not specified, * the latest version is used. If specified, it must be one of:

  • *

    For AWS CodeCommit: the commit ID, branch, or Git tag to use.

  • *

    For GitHub: the commit ID, pull request ID, branch name, or tag name that * corresponds to the version of the source code you want to build. If a pull * request ID is specified, it must use the format pr/pull-request-ID * (for example pr/25). If a branch name is specified, the branch's * HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is * used.

  • For Bitbucket: the commit ID, branch name, or tag name * that corresponds to the version of the source code you want to build. If a * branch name is specified, the branch's HEAD commit ID is used. If not specified, * the default branch's HEAD commit ID is used.

  • For Amazon Simple * Storage Service (Amazon S3): the version ID of the object that represents the * build input ZIP file to use.

If sourceVersion is * specified at the build level, then that version takes precedence over this * sourceVersion (at the project level).

For more information, * see Source * Version Sample with CodeBuild in the AWS CodeBuild User Guide.

*/ inline void SetSourceVersion(Aws::String&& value) { m_sourceVersionHasBeenSet = true; m_sourceVersion = std::move(value); } /** *

A version of the build input to be built for this project. If not specified, * the latest version is used. If specified, it must be one of:

  • *

    For AWS CodeCommit: the commit ID, branch, or Git tag to use.

  • *

    For GitHub: the commit ID, pull request ID, branch name, or tag name that * corresponds to the version of the source code you want to build. If a pull * request ID is specified, it must use the format pr/pull-request-ID * (for example pr/25). If a branch name is specified, the branch's * HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is * used.

  • For Bitbucket: the commit ID, branch name, or tag name * that corresponds to the version of the source code you want to build. If a * branch name is specified, the branch's HEAD commit ID is used. If not specified, * the default branch's HEAD commit ID is used.

  • For Amazon Simple * Storage Service (Amazon S3): the version ID of the object that represents the * build input ZIP file to use.

If sourceVersion is * specified at the build level, then that version takes precedence over this * sourceVersion (at the project level).

For more information, * see Source * Version Sample with CodeBuild in the AWS CodeBuild User Guide.

*/ inline void SetSourceVersion(const char* value) { m_sourceVersionHasBeenSet = true; m_sourceVersion.assign(value); } /** *

A version of the build input to be built for this project. If not specified, * the latest version is used. If specified, it must be one of:

  • *

    For AWS CodeCommit: the commit ID, branch, or Git tag to use.

  • *

    For GitHub: the commit ID, pull request ID, branch name, or tag name that * corresponds to the version of the source code you want to build. If a pull * request ID is specified, it must use the format pr/pull-request-ID * (for example pr/25). If a branch name is specified, the branch's * HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is * used.

  • For Bitbucket: the commit ID, branch name, or tag name * that corresponds to the version of the source code you want to build. If a * branch name is specified, the branch's HEAD commit ID is used. If not specified, * the default branch's HEAD commit ID is used.

  • For Amazon Simple * Storage Service (Amazon S3): the version ID of the object that represents the * build input ZIP file to use.

If sourceVersion is * specified at the build level, then that version takes precedence over this * sourceVersion (at the project level).

For more information, * see Source * Version Sample with CodeBuild in the AWS CodeBuild User Guide.

*/ inline Project& WithSourceVersion(const Aws::String& value) { SetSourceVersion(value); return *this;} /** *

A version of the build input to be built for this project. If not specified, * the latest version is used. If specified, it must be one of:

  • *

    For AWS CodeCommit: the commit ID, branch, or Git tag to use.

  • *

    For GitHub: the commit ID, pull request ID, branch name, or tag name that * corresponds to the version of the source code you want to build. If a pull * request ID is specified, it must use the format pr/pull-request-ID * (for example pr/25). If a branch name is specified, the branch's * HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is * used.

  • For Bitbucket: the commit ID, branch name, or tag name * that corresponds to the version of the source code you want to build. If a * branch name is specified, the branch's HEAD commit ID is used. If not specified, * the default branch's HEAD commit ID is used.

  • For Amazon Simple * Storage Service (Amazon S3): the version ID of the object that represents the * build input ZIP file to use.

If sourceVersion is * specified at the build level, then that version takes precedence over this * sourceVersion (at the project level).

For more information, * see Source * Version Sample with CodeBuild in the AWS CodeBuild User Guide.

*/ inline Project& WithSourceVersion(Aws::String&& value) { SetSourceVersion(std::move(value)); return *this;} /** *

A version of the build input to be built for this project. If not specified, * the latest version is used. If specified, it must be one of:

  • *

    For AWS CodeCommit: the commit ID, branch, or Git tag to use.

  • *

    For GitHub: the commit ID, pull request ID, branch name, or tag name that * corresponds to the version of the source code you want to build. If a pull * request ID is specified, it must use the format pr/pull-request-ID * (for example pr/25). If a branch name is specified, the branch's * HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is * used.

  • For Bitbucket: the commit ID, branch name, or tag name * that corresponds to the version of the source code you want to build. If a * branch name is specified, the branch's HEAD commit ID is used. If not specified, * the default branch's HEAD commit ID is used.

  • For Amazon Simple * Storage Service (Amazon S3): the version ID of the object that represents the * build input ZIP file to use.

If sourceVersion is * specified at the build level, then that version takes precedence over this * sourceVersion (at the project level).

For more information, * see Source * Version Sample with CodeBuild in the AWS CodeBuild User Guide.

*/ inline Project& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;} /** *

An array of ProjectSourceVersion objects. If * secondarySourceVersions is specified at the build level, then they * take over these secondarySourceVersions (at the project level). *

*/ inline const Aws::Vector& GetSecondarySourceVersions() const{ return m_secondarySourceVersions; } /** *

An array of ProjectSourceVersion objects. If * secondarySourceVersions is specified at the build level, then they * take over these secondarySourceVersions (at the project level). *

*/ inline bool SecondarySourceVersionsHasBeenSet() const { return m_secondarySourceVersionsHasBeenSet; } /** *

An array of ProjectSourceVersion objects. If * secondarySourceVersions is specified at the build level, then they * take over these secondarySourceVersions (at the project level). *

*/ inline void SetSecondarySourceVersions(const Aws::Vector& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions = value; } /** *

An array of ProjectSourceVersion objects. If * secondarySourceVersions is specified at the build level, then they * take over these secondarySourceVersions (at the project level). *

*/ inline void SetSecondarySourceVersions(Aws::Vector&& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions = std::move(value); } /** *

An array of ProjectSourceVersion objects. If * secondarySourceVersions is specified at the build level, then they * take over these secondarySourceVersions (at the project level). *

*/ inline Project& WithSecondarySourceVersions(const Aws::Vector& value) { SetSecondarySourceVersions(value); return *this;} /** *

An array of ProjectSourceVersion objects. If * secondarySourceVersions is specified at the build level, then they * take over these secondarySourceVersions (at the project level). *

*/ inline Project& WithSecondarySourceVersions(Aws::Vector&& value) { SetSecondarySourceVersions(std::move(value)); return *this;} /** *

An array of ProjectSourceVersion objects. If * secondarySourceVersions is specified at the build level, then they * take over these secondarySourceVersions (at the project level). *

*/ inline Project& AddSecondarySourceVersions(const ProjectSourceVersion& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions.push_back(value); return *this; } /** *

An array of ProjectSourceVersion objects. If * secondarySourceVersions is specified at the build level, then they * take over these secondarySourceVersions (at the project level). *

*/ inline Project& AddSecondarySourceVersions(ProjectSourceVersion&& value) { m_secondarySourceVersionsHasBeenSet = true; m_secondarySourceVersions.push_back(std::move(value)); return *this; } /** *

Information about the build output artifacts for the build project.

*/ inline const ProjectArtifacts& GetArtifacts() const{ return m_artifacts; } /** *

Information about the build output artifacts for the build project.

*/ inline bool ArtifactsHasBeenSet() const { return m_artifactsHasBeenSet; } /** *

Information about the build output artifacts for the build project.

*/ inline void SetArtifacts(const ProjectArtifacts& value) { m_artifactsHasBeenSet = true; m_artifacts = value; } /** *

Information about the build output artifacts for the build project.

*/ inline void SetArtifacts(ProjectArtifacts&& value) { m_artifactsHasBeenSet = true; m_artifacts = std::move(value); } /** *

Information about the build output artifacts for the build project.

*/ inline Project& WithArtifacts(const ProjectArtifacts& value) { SetArtifacts(value); return *this;} /** *

Information about the build output artifacts for the build project.

*/ inline Project& WithArtifacts(ProjectArtifacts&& value) { SetArtifacts(std::move(value)); return *this;} /** *

An array of ProjectArtifacts objects.

*/ inline const Aws::Vector& GetSecondaryArtifacts() const{ return m_secondaryArtifacts; } /** *

An array of ProjectArtifacts objects.

*/ inline bool SecondaryArtifactsHasBeenSet() const { return m_secondaryArtifactsHasBeenSet; } /** *

An array of ProjectArtifacts objects.

*/ inline void SetSecondaryArtifacts(const Aws::Vector& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = value; } /** *

An array of ProjectArtifacts objects.

*/ inline void SetSecondaryArtifacts(Aws::Vector&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts = std::move(value); } /** *

An array of ProjectArtifacts objects.

*/ inline Project& WithSecondaryArtifacts(const Aws::Vector& value) { SetSecondaryArtifacts(value); return *this;} /** *

An array of ProjectArtifacts objects.

*/ inline Project& WithSecondaryArtifacts(Aws::Vector&& value) { SetSecondaryArtifacts(std::move(value)); return *this;} /** *

An array of ProjectArtifacts objects.

*/ inline Project& AddSecondaryArtifacts(const ProjectArtifacts& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.push_back(value); return *this; } /** *

An array of ProjectArtifacts objects.

*/ inline Project& AddSecondaryArtifacts(ProjectArtifacts&& value) { m_secondaryArtifactsHasBeenSet = true; m_secondaryArtifacts.push_back(std::move(value)); return *this; } /** *

Information about the cache for the build project.

*/ inline const ProjectCache& GetCache() const{ return m_cache; } /** *

Information about the cache for the build project.

*/ inline bool CacheHasBeenSet() const { return m_cacheHasBeenSet; } /** *

Information about the cache for the build project.

*/ inline void SetCache(const ProjectCache& value) { m_cacheHasBeenSet = true; m_cache = value; } /** *

Information about the cache for the build project.

*/ inline void SetCache(ProjectCache&& value) { m_cacheHasBeenSet = true; m_cache = std::move(value); } /** *

Information about the cache for the build project.

*/ inline Project& WithCache(const ProjectCache& value) { SetCache(value); return *this;} /** *

Information about the cache for the build project.

*/ inline Project& WithCache(ProjectCache&& value) { SetCache(std::move(value)); return *this;} /** *

Information about the build environment for this build project.

*/ inline const ProjectEnvironment& GetEnvironment() const{ return m_environment; } /** *

Information about the build environment for this build project.

*/ inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; } /** *

Information about the build environment for this build project.

*/ inline void SetEnvironment(const ProjectEnvironment& value) { m_environmentHasBeenSet = true; m_environment = value; } /** *

Information about the build environment for this build project.

*/ inline void SetEnvironment(ProjectEnvironment&& value) { m_environmentHasBeenSet = true; m_environment = std::move(value); } /** *

Information about the build environment for this build project.

*/ inline Project& WithEnvironment(const ProjectEnvironment& value) { SetEnvironment(value); return *this;} /** *

Information about the build environment for this build project.

*/ inline Project& WithEnvironment(ProjectEnvironment&& value) { SetEnvironment(std::move(value)); return *this;} /** *

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS * account.

*/ inline const Aws::String& GetServiceRole() const{ return m_serviceRole; } /** *

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS * account.

*/ inline bool ServiceRoleHasBeenSet() const { return m_serviceRoleHasBeenSet; } /** *

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS * account.

*/ inline void SetServiceRole(const Aws::String& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = value; } /** *

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS * account.

*/ inline void SetServiceRole(Aws::String&& value) { m_serviceRoleHasBeenSet = true; m_serviceRole = std::move(value); } /** *

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS * account.

*/ inline void SetServiceRole(const char* value) { m_serviceRoleHasBeenSet = true; m_serviceRole.assign(value); } /** *

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS * account.

*/ inline Project& WithServiceRole(const Aws::String& value) { SetServiceRole(value); return *this;} /** *

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS * account.

*/ inline Project& WithServiceRole(Aws::String&& value) { SetServiceRole(std::move(value)); return *this;} /** *

The ARN of the AWS Identity and Access Management (IAM) role that enables AWS * CodeBuild to interact with dependent AWS services on behalf of the AWS * account.

*/ inline Project& WithServiceRole(const char* value) { SetServiceRole(value); return *this;} /** *

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait * before timing out any related build that did not get marked as completed. The * default is 60 minutes.

*/ inline int GetTimeoutInMinutes() const{ return m_timeoutInMinutes; } /** *

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait * before timing out any related build that did not get marked as completed. The * default is 60 minutes.

*/ inline bool TimeoutInMinutesHasBeenSet() const { return m_timeoutInMinutesHasBeenSet; } /** *

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait * before timing out any related build that did not get marked as completed. The * default is 60 minutes.

*/ inline void SetTimeoutInMinutes(int value) { m_timeoutInMinutesHasBeenSet = true; m_timeoutInMinutes = value; } /** *

How long, in minutes, from 5 to 480 (8 hours), for AWS CodeBuild to wait * before timing out any related build that did not get marked as completed. The * default is 60 minutes.

*/ inline Project& WithTimeoutInMinutes(int value) { SetTimeoutInMinutes(value); return *this;} /** *

The number of minutes a build is allowed to be queued before it times out. *

*/ inline int GetQueuedTimeoutInMinutes() const{ return m_queuedTimeoutInMinutes; } /** *

The number of minutes a build is allowed to be queued before it times out. *

*/ inline bool QueuedTimeoutInMinutesHasBeenSet() const { return m_queuedTimeoutInMinutesHasBeenSet; } /** *

The number of minutes a build is allowed to be queued before it times out. *

*/ inline void SetQueuedTimeoutInMinutes(int value) { m_queuedTimeoutInMinutesHasBeenSet = true; m_queuedTimeoutInMinutes = value; } /** *

The number of minutes a build is allowed to be queued before it times out. *

*/ inline Project& WithQueuedTimeoutInMinutes(int value) { SetQueuedTimeoutInMinutes(value); return *this;} /** *

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used * for encrypting the build output artifacts.

You can use a * cross-account KMS key to encrypt the build output artifacts if your service role * has permission to that key.

You can specify either the Amazon * Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the * format alias/<alias-name>).

*/ inline const Aws::String& GetEncryptionKey() const{ return m_encryptionKey; } /** *

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used * for encrypting the build output artifacts.

You can use a * cross-account KMS key to encrypt the build output artifacts if your service role * has permission to that key.

You can specify either the Amazon * Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the * format alias/<alias-name>).

*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used * for encrypting the build output artifacts.

You can use a * cross-account KMS key to encrypt the build output artifacts if your service role * has permission to that key.

You can specify either the Amazon * Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the * format alias/<alias-name>).

*/ inline void SetEncryptionKey(const Aws::String& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used * for encrypting the build output artifacts.

You can use a * cross-account KMS key to encrypt the build output artifacts if your service role * has permission to that key.

You can specify either the Amazon * Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the * format alias/<alias-name>).

*/ inline void SetEncryptionKey(Aws::String&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used * for encrypting the build output artifacts.

You can use a * cross-account KMS key to encrypt the build output artifacts if your service role * has permission to that key.

You can specify either the Amazon * Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the * format alias/<alias-name>).

*/ inline void SetEncryptionKey(const char* value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey.assign(value); } /** *

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used * for encrypting the build output artifacts.

You can use a * cross-account KMS key to encrypt the build output artifacts if your service role * has permission to that key.

You can specify either the Amazon * Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the * format alias/<alias-name>).

*/ inline Project& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;} /** *

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used * for encrypting the build output artifacts.

You can use a * cross-account KMS key to encrypt the build output artifacts if your service role * has permission to that key.

You can specify either the Amazon * Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the * format alias/<alias-name>).

*/ inline Project& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *

The AWS Key Management Service (AWS KMS) customer master key (CMK) to be used * for encrypting the build output artifacts.

You can use a * cross-account KMS key to encrypt the build output artifacts if your service role * has permission to that key.

You can specify either the Amazon * Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the * format alias/<alias-name>).

*/ inline Project& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;} /** *

A list of tag key and value pairs associated with this build project.

*

These tags are available for use by AWS services that support AWS CodeBuild * build project tags.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of tag key and value pairs associated with this build project.

*

These tags are available for use by AWS services that support AWS CodeBuild * build project tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of tag key and value pairs associated with this build project.

*

These tags are available for use by AWS services that support AWS CodeBuild * build project tags.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of tag key and value pairs associated with this build project.

*

These tags are available for use by AWS services that support AWS CodeBuild * build project tags.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of tag key and value pairs associated with this build project.

*

These tags are available for use by AWS services that support AWS CodeBuild * build project tags.

*/ inline Project& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of tag key and value pairs associated with this build project.

*

These tags are available for use by AWS services that support AWS CodeBuild * build project tags.

*/ inline Project& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of tag key and value pairs associated with this build project.

*

These tags are available for use by AWS services that support AWS CodeBuild * build project tags.

*/ inline Project& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of tag key and value pairs associated with this build project.

*

These tags are available for use by AWS services that support AWS CodeBuild * build project tags.

*/ inline Project& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

When the build project was created, expressed in Unix time format.

*/ inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; } /** *

When the build project was created, expressed in Unix time format.

*/ inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; } /** *

When the build project was created, expressed in Unix time format.

*/ inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; } /** *

When the build project was created, expressed in Unix time format.

*/ inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); } /** *

When the build project was created, expressed in Unix time format.

*/ inline Project& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;} /** *

When the build project was created, expressed in Unix time format.

*/ inline Project& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *

When the build project's settings were last modified, expressed in Unix time * format.

*/ inline const Aws::Utils::DateTime& GetLastModified() const{ return m_lastModified; } /** *

When the build project's settings were last modified, expressed in Unix time * format.

*/ inline bool LastModifiedHasBeenSet() const { return m_lastModifiedHasBeenSet; } /** *

When the build project's settings were last modified, expressed in Unix time * format.

*/ inline void SetLastModified(const Aws::Utils::DateTime& value) { m_lastModifiedHasBeenSet = true; m_lastModified = value; } /** *

When the build project's settings were last modified, expressed in Unix time * format.

*/ inline void SetLastModified(Aws::Utils::DateTime&& value) { m_lastModifiedHasBeenSet = true; m_lastModified = std::move(value); } /** *

When the build project's settings were last modified, expressed in Unix time * format.

*/ inline Project& WithLastModified(const Aws::Utils::DateTime& value) { SetLastModified(value); return *this;} /** *

When the build project's settings were last modified, expressed in Unix time * format.

*/ inline Project& WithLastModified(Aws::Utils::DateTime&& value) { SetLastModified(std::move(value)); return *this;} /** *

Information about a webhook that connects repository events to a build * project in AWS CodeBuild.

*/ inline const Webhook& GetWebhook() const{ return m_webhook; } /** *

Information about a webhook that connects repository events to a build * project in AWS CodeBuild.

*/ inline bool WebhookHasBeenSet() const { return m_webhookHasBeenSet; } /** *

Information about a webhook that connects repository events to a build * project in AWS CodeBuild.

*/ inline void SetWebhook(const Webhook& value) { m_webhookHasBeenSet = true; m_webhook = value; } /** *

Information about a webhook that connects repository events to a build * project in AWS CodeBuild.

*/ inline void SetWebhook(Webhook&& value) { m_webhookHasBeenSet = true; m_webhook = std::move(value); } /** *

Information about a webhook that connects repository events to a build * project in AWS CodeBuild.

*/ inline Project& WithWebhook(const Webhook& value) { SetWebhook(value); return *this;} /** *

Information about a webhook that connects repository events to a build * project in AWS CodeBuild.

*/ inline Project& WithWebhook(Webhook&& value) { SetWebhook(std::move(value)); return *this;} /** *

Information about the VPC configuration that AWS CodeBuild accesses.

*/ inline const VpcConfig& GetVpcConfig() const{ return m_vpcConfig; } /** *

Information about the VPC configuration that AWS CodeBuild accesses.

*/ inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; } /** *

Information about the VPC configuration that AWS CodeBuild accesses.

*/ inline void SetVpcConfig(const VpcConfig& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = value; } /** *

Information about the VPC configuration that AWS CodeBuild accesses.

*/ inline void SetVpcConfig(VpcConfig&& value) { m_vpcConfigHasBeenSet = true; m_vpcConfig = std::move(value); } /** *

Information about the VPC configuration that AWS CodeBuild accesses.

*/ inline Project& WithVpcConfig(const VpcConfig& value) { SetVpcConfig(value); return *this;} /** *

Information about the VPC configuration that AWS CodeBuild accesses.

*/ inline Project& WithVpcConfig(VpcConfig&& value) { SetVpcConfig(std::move(value)); return *this;} /** *

Information about the build badge for the build project.

*/ inline const ProjectBadge& GetBadge() const{ return m_badge; } /** *

Information about the build badge for the build project.

*/ inline bool BadgeHasBeenSet() const { return m_badgeHasBeenSet; } /** *

Information about the build badge for the build project.

*/ inline void SetBadge(const ProjectBadge& value) { m_badgeHasBeenSet = true; m_badge = value; } /** *

Information about the build badge for the build project.

*/ inline void SetBadge(ProjectBadge&& value) { m_badgeHasBeenSet = true; m_badge = std::move(value); } /** *

Information about the build badge for the build project.

*/ inline Project& WithBadge(const ProjectBadge& value) { SetBadge(value); return *this;} /** *

Information about the build badge for the build project.

*/ inline Project& WithBadge(ProjectBadge&& value) { SetBadge(std::move(value)); return *this;} /** *

Information about logs for the build project. A project can create logs in * Amazon CloudWatch Logs, an S3 bucket, or both.

*/ inline const LogsConfig& GetLogsConfig() const{ return m_logsConfig; } /** *

Information about logs for the build project. A project can create logs in * Amazon CloudWatch Logs, an S3 bucket, or both.

*/ inline bool LogsConfigHasBeenSet() const { return m_logsConfigHasBeenSet; } /** *

Information about logs for the build project. A project can create logs in * Amazon CloudWatch Logs, an S3 bucket, or both.

*/ inline void SetLogsConfig(const LogsConfig& value) { m_logsConfigHasBeenSet = true; m_logsConfig = value; } /** *

Information about logs for the build project. A project can create logs in * Amazon CloudWatch Logs, an S3 bucket, or both.

*/ inline void SetLogsConfig(LogsConfig&& value) { m_logsConfigHasBeenSet = true; m_logsConfig = std::move(value); } /** *

Information about logs for the build project. A project can create logs in * Amazon CloudWatch Logs, an S3 bucket, or both.

*/ inline Project& WithLogsConfig(const LogsConfig& value) { SetLogsConfig(value); return *this;} /** *

Information about logs for the build project. A project can create logs in * Amazon CloudWatch Logs, an S3 bucket, or both.

*/ inline Project& WithLogsConfig(LogsConfig&& value) { SetLogsConfig(std::move(value)); return *this;} /** *

An array of ProjectFileSystemLocation objects for a CodeBuild * build project. A ProjectFileSystemLocation object specifies the * identifier, location, mountOptions, * mountPoint, and type of a file system created using * Amazon Elastic File System.

*/ inline const Aws::Vector& GetFileSystemLocations() const{ return m_fileSystemLocations; } /** *

An array of ProjectFileSystemLocation objects for a CodeBuild * build project. A ProjectFileSystemLocation object specifies the * identifier, location, mountOptions, * mountPoint, and type of a file system created using * Amazon Elastic File System.

*/ inline bool FileSystemLocationsHasBeenSet() const { return m_fileSystemLocationsHasBeenSet; } /** *

An array of ProjectFileSystemLocation objects for a CodeBuild * build project. A ProjectFileSystemLocation object specifies the * identifier, location, mountOptions, * mountPoint, and type of a file system created using * Amazon Elastic File System.

*/ inline void SetFileSystemLocations(const Aws::Vector& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations = value; } /** *

An array of ProjectFileSystemLocation objects for a CodeBuild * build project. A ProjectFileSystemLocation object specifies the * identifier, location, mountOptions, * mountPoint, and type of a file system created using * Amazon Elastic File System.

*/ inline void SetFileSystemLocations(Aws::Vector&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations = std::move(value); } /** *

An array of ProjectFileSystemLocation objects for a CodeBuild * build project. A ProjectFileSystemLocation object specifies the * identifier, location, mountOptions, * mountPoint, and type of a file system created using * Amazon Elastic File System.

*/ inline Project& WithFileSystemLocations(const Aws::Vector& value) { SetFileSystemLocations(value); return *this;} /** *

An array of ProjectFileSystemLocation objects for a CodeBuild * build project. A ProjectFileSystemLocation object specifies the * identifier, location, mountOptions, * mountPoint, and type of a file system created using * Amazon Elastic File System.

*/ inline Project& WithFileSystemLocations(Aws::Vector&& value) { SetFileSystemLocations(std::move(value)); return *this;} /** *

An array of ProjectFileSystemLocation objects for a CodeBuild * build project. A ProjectFileSystemLocation object specifies the * identifier, location, mountOptions, * mountPoint, and type of a file system created using * Amazon Elastic File System.

*/ inline Project& AddFileSystemLocations(const ProjectFileSystemLocation& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations.push_back(value); return *this; } /** *

An array of ProjectFileSystemLocation objects for a CodeBuild * build project. A ProjectFileSystemLocation object specifies the * identifier, location, mountOptions, * mountPoint, and type of a file system created using * Amazon Elastic File System.

*/ inline Project& AddFileSystemLocations(ProjectFileSystemLocation&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations.push_back(std::move(value)); return *this; } /** *

A ProjectBuildBatchConfig object that defines the batch build options * for the project.

*/ inline const ProjectBuildBatchConfig& GetBuildBatchConfig() const{ return m_buildBatchConfig; } /** *

A ProjectBuildBatchConfig object that defines the batch build options * for the project.

*/ inline bool BuildBatchConfigHasBeenSet() const { return m_buildBatchConfigHasBeenSet; } /** *

A ProjectBuildBatchConfig object that defines the batch build options * for the project.

*/ inline void SetBuildBatchConfig(const ProjectBuildBatchConfig& value) { m_buildBatchConfigHasBeenSet = true; m_buildBatchConfig = value; } /** *

A ProjectBuildBatchConfig object that defines the batch build options * for the project.

*/ inline void SetBuildBatchConfig(ProjectBuildBatchConfig&& value) { m_buildBatchConfigHasBeenSet = true; m_buildBatchConfig = std::move(value); } /** *

A ProjectBuildBatchConfig object that defines the batch build options * for the project.

*/ inline Project& WithBuildBatchConfig(const ProjectBuildBatchConfig& value) { SetBuildBatchConfig(value); return *this;} /** *

A ProjectBuildBatchConfig object that defines the batch build options * for the project.

*/ inline Project& WithBuildBatchConfig(ProjectBuildBatchConfig&& value) { SetBuildBatchConfig(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_arn; bool m_arnHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; ProjectSource m_source; bool m_sourceHasBeenSet; Aws::Vector m_secondarySources; bool m_secondarySourcesHasBeenSet; Aws::String m_sourceVersion; bool m_sourceVersionHasBeenSet; Aws::Vector m_secondarySourceVersions; bool m_secondarySourceVersionsHasBeenSet; ProjectArtifacts m_artifacts; bool m_artifactsHasBeenSet; Aws::Vector m_secondaryArtifacts; bool m_secondaryArtifactsHasBeenSet; ProjectCache m_cache; bool m_cacheHasBeenSet; ProjectEnvironment m_environment; bool m_environmentHasBeenSet; Aws::String m_serviceRole; bool m_serviceRoleHasBeenSet; int m_timeoutInMinutes; bool m_timeoutInMinutesHasBeenSet; int m_queuedTimeoutInMinutes; bool m_queuedTimeoutInMinutesHasBeenSet; Aws::String m_encryptionKey; bool m_encryptionKeyHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; Aws::Utils::DateTime m_created; bool m_createdHasBeenSet; Aws::Utils::DateTime m_lastModified; bool m_lastModifiedHasBeenSet; Webhook m_webhook; bool m_webhookHasBeenSet; VpcConfig m_vpcConfig; bool m_vpcConfigHasBeenSet; ProjectBadge m_badge; bool m_badgeHasBeenSet; LogsConfig m_logsConfig; bool m_logsConfigHasBeenSet; Aws::Vector m_fileSystemLocations; bool m_fileSystemLocationsHasBeenSet; ProjectBuildBatchConfig m_buildBatchConfig; bool m_buildBatchConfigHasBeenSet; }; } // namespace Model } // namespace CodeBuild } // namespace Aws