/** * 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 #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeBuild { namespace Model { /** *

Information about a build.

See Also:

AWS API * Reference

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

The unique ID for the build.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique ID for the build.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The unique ID for the build.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The unique ID for the build.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The unique ID for the build.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The unique ID for the build.

*/ inline Build& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique ID for the build.

*/ inline Build& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique ID for the build.

*/ inline Build& WithId(const char* value) { SetId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the build.

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

The Amazon Resource Name (ARN) of the build.

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

The Amazon Resource Name (ARN) of the build.

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

The Amazon Resource Name (ARN) of the build.

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

The Amazon Resource Name (ARN) of the build.

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

The Amazon Resource Name (ARN) of the build.

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

The Amazon Resource Name (ARN) of the build.

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

The Amazon Resource Name (ARN) of the build.

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

The number of the build. For each project, the buildNumber of * its first build is 1. The buildNumber of each * subsequent build is incremented by 1. If a build is deleted, the * buildNumber of other builds does not change.

*/ inline long long GetBuildNumber() const{ return m_buildNumber; } /** *

The number of the build. For each project, the buildNumber of * its first build is 1. The buildNumber of each * subsequent build is incremented by 1. If a build is deleted, the * buildNumber of other builds does not change.

*/ inline bool BuildNumberHasBeenSet() const { return m_buildNumberHasBeenSet; } /** *

The number of the build. For each project, the buildNumber of * its first build is 1. The buildNumber of each * subsequent build is incremented by 1. If a build is deleted, the * buildNumber of other builds does not change.

*/ inline void SetBuildNumber(long long value) { m_buildNumberHasBeenSet = true; m_buildNumber = value; } /** *

The number of the build. For each project, the buildNumber of * its first build is 1. The buildNumber of each * subsequent build is incremented by 1. If a build is deleted, the * buildNumber of other builds does not change.

*/ inline Build& WithBuildNumber(long long value) { SetBuildNumber(value); return *this;} /** *

When the build process started, expressed in Unix time format.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

When the build process started, expressed in Unix time format.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

When the build process started, expressed in Unix time format.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

When the build process started, expressed in Unix time format.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

When the build process started, expressed in Unix time format.

*/ inline Build& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

When the build process started, expressed in Unix time format.

*/ inline Build& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

When the build process ended, expressed in Unix time format.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

When the build process ended, expressed in Unix time format.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

When the build process ended, expressed in Unix time format.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

When the build process ended, expressed in Unix time format.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

When the build process ended, expressed in Unix time format.

*/ inline Build& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

When the build process ended, expressed in Unix time format.

*/ inline Build& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The current build phase.

*/ inline const Aws::String& GetCurrentPhase() const{ return m_currentPhase; } /** *

The current build phase.

*/ inline bool CurrentPhaseHasBeenSet() const { return m_currentPhaseHasBeenSet; } /** *

The current build phase.

*/ inline void SetCurrentPhase(const Aws::String& value) { m_currentPhaseHasBeenSet = true; m_currentPhase = value; } /** *

The current build phase.

*/ inline void SetCurrentPhase(Aws::String&& value) { m_currentPhaseHasBeenSet = true; m_currentPhase = std::move(value); } /** *

The current build phase.

*/ inline void SetCurrentPhase(const char* value) { m_currentPhaseHasBeenSet = true; m_currentPhase.assign(value); } /** *

The current build phase.

*/ inline Build& WithCurrentPhase(const Aws::String& value) { SetCurrentPhase(value); return *this;} /** *

The current build phase.

*/ inline Build& WithCurrentPhase(Aws::String&& value) { SetCurrentPhase(std::move(value)); return *this;} /** *

The current build phase.

*/ inline Build& WithCurrentPhase(const char* value) { SetCurrentPhase(value); return *this;} /** *

The current status of the build. Valid values include:

  • * FAILED: The build failed.

  • FAULT: * The build faulted.

  • IN_PROGRESS: The build is * still in progress.

  • STOPPED: The build * stopped.

  • SUCCEEDED: The build succeeded.

    *
  • TIMED_OUT: The build timed out.

*/ inline const StatusType& GetBuildStatus() const{ return m_buildStatus; } /** *

The current status of the build. Valid values include:

  • * FAILED: The build failed.

  • FAULT: * The build faulted.

  • IN_PROGRESS: The build is * still in progress.

  • STOPPED: The build * stopped.

  • SUCCEEDED: The build succeeded.

    *
  • TIMED_OUT: The build timed out.

*/ inline bool BuildStatusHasBeenSet() const { return m_buildStatusHasBeenSet; } /** *

The current status of the build. Valid values include:

  • * FAILED: The build failed.

  • FAULT: * The build faulted.

  • IN_PROGRESS: The build is * still in progress.

  • STOPPED: The build * stopped.

  • SUCCEEDED: The build succeeded.

    *
  • TIMED_OUT: The build timed out.

*/ inline void SetBuildStatus(const StatusType& value) { m_buildStatusHasBeenSet = true; m_buildStatus = value; } /** *

The current status of the build. Valid values include:

  • * FAILED: The build failed.

  • FAULT: * The build faulted.

  • IN_PROGRESS: The build is * still in progress.

  • STOPPED: The build * stopped.

  • SUCCEEDED: The build succeeded.

    *
  • TIMED_OUT: The build timed out.

*/ inline void SetBuildStatus(StatusType&& value) { m_buildStatusHasBeenSet = true; m_buildStatus = std::move(value); } /** *

The current status of the build. Valid values include:

  • * FAILED: The build failed.

  • FAULT: * The build faulted.

  • IN_PROGRESS: The build is * still in progress.

  • STOPPED: The build * stopped.

  • SUCCEEDED: The build succeeded.

    *
  • TIMED_OUT: The build timed out.

*/ inline Build& WithBuildStatus(const StatusType& value) { SetBuildStatus(value); return *this;} /** *

The current status of the build. Valid values include:

  • * FAILED: The build failed.

  • FAULT: * The build faulted.

  • IN_PROGRESS: The build is * still in progress.

  • STOPPED: The build * stopped.

  • SUCCEEDED: The build succeeded.

    *
  • TIMED_OUT: The build timed out.

*/ inline Build& WithBuildStatus(StatusType&& value) { SetBuildStatus(std::move(value)); return *this;} /** *

Any version identifier for the version of the source code to be built. If * sourceVersion is specified at the project level, then this * sourceVersion (at the build level) takes precedence.

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

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

Any version identifier for the version of the source code to be built. If * sourceVersion is specified at the project level, then this * sourceVersion (at the build level) takes precedence.

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

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

Any version identifier for the version of the source code to be built. If * sourceVersion is specified at the project level, then this * sourceVersion (at the build level) takes precedence.

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

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

Any version identifier for the version of the source code to be built. If * sourceVersion is specified at the project level, then this * sourceVersion (at the build level) takes precedence.

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

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

Any version identifier for the version of the source code to be built. If * sourceVersion is specified at the project level, then this * sourceVersion (at the build level) takes precedence.

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

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

Any version identifier for the version of the source code to be built. If * sourceVersion is specified at the project level, then this * sourceVersion (at the build level) takes precedence.

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

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

Any version identifier for the version of the source code to be built. If * sourceVersion is specified at the project level, then this * sourceVersion (at the build level) takes precedence.

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

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

Any version identifier for the version of the source code to be built. If * sourceVersion is specified at the project level, then this * sourceVersion (at the build level) takes precedence.

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

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

An identifier for the version of this build's source code.

  • *

    For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. *

  • For CodePipeline, the source revision provided by * CodePipeline.

  • For Amazon S3, this does not apply.

  • *
*/ inline const Aws::String& GetResolvedSourceVersion() const{ return m_resolvedSourceVersion; } /** *

An identifier for the version of this build's source code.

  • *

    For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. *

  • For CodePipeline, the source revision provided by * CodePipeline.

  • For Amazon S3, this does not apply.

  • *
*/ inline bool ResolvedSourceVersionHasBeenSet() const { return m_resolvedSourceVersionHasBeenSet; } /** *

An identifier for the version of this build's source code.

  • *

    For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. *

  • For CodePipeline, the source revision provided by * CodePipeline.

  • For Amazon S3, this does not apply.

  • *
*/ inline void SetResolvedSourceVersion(const Aws::String& value) { m_resolvedSourceVersionHasBeenSet = true; m_resolvedSourceVersion = value; } /** *

An identifier for the version of this build's source code.

  • *

    For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. *

  • For CodePipeline, the source revision provided by * CodePipeline.

  • For Amazon S3, this does not apply.

  • *
*/ inline void SetResolvedSourceVersion(Aws::String&& value) { m_resolvedSourceVersionHasBeenSet = true; m_resolvedSourceVersion = std::move(value); } /** *

An identifier for the version of this build's source code.

  • *

    For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. *

  • For CodePipeline, the source revision provided by * CodePipeline.

  • For Amazon S3, this does not apply.

  • *
*/ inline void SetResolvedSourceVersion(const char* value) { m_resolvedSourceVersionHasBeenSet = true; m_resolvedSourceVersion.assign(value); } /** *

An identifier for the version of this build's source code.

  • *

    For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. *

  • For CodePipeline, the source revision provided by * CodePipeline.

  • For Amazon S3, this does not apply.

  • *
*/ inline Build& WithResolvedSourceVersion(const Aws::String& value) { SetResolvedSourceVersion(value); return *this;} /** *

An identifier for the version of this build's source code.

  • *

    For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. *

  • For CodePipeline, the source revision provided by * CodePipeline.

  • For Amazon S3, this does not apply.

  • *
*/ inline Build& WithResolvedSourceVersion(Aws::String&& value) { SetResolvedSourceVersion(std::move(value)); return *this;} /** *

An identifier for the version of this build's source code.

  • *

    For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID. *

  • For CodePipeline, the source revision provided by * CodePipeline.

  • For Amazon S3, this does not apply.

  • *
*/ inline Build& WithResolvedSourceVersion(const char* value) { SetResolvedSourceVersion(value); return *this;} /** *

The name of the CodeBuild project.

*/ inline const Aws::String& GetProjectName() const{ return m_projectName; } /** *

The name of the CodeBuild project.

*/ inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; } /** *

The name of the CodeBuild project.

*/ inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; } /** *

The name of the CodeBuild project.

*/ inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); } /** *

The name of the CodeBuild project.

*/ inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); } /** *

The name of the CodeBuild project.

*/ inline Build& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;} /** *

The name of the CodeBuild project.

*/ inline Build& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;} /** *

The name of the CodeBuild project.

*/ inline Build& WithProjectName(const char* value) { SetProjectName(value); return *this;} /** *

Information about all previous build phases that are complete and information * about any current build phase that is not yet complete.

*/ inline const Aws::Vector& GetPhases() const{ return m_phases; } /** *

Information about all previous build phases that are complete and information * about any current build phase that is not yet complete.

*/ inline bool PhasesHasBeenSet() const { return m_phasesHasBeenSet; } /** *

Information about all previous build phases that are complete and information * about any current build phase that is not yet complete.

*/ inline void SetPhases(const Aws::Vector& value) { m_phasesHasBeenSet = true; m_phases = value; } /** *

Information about all previous build phases that are complete and information * about any current build phase that is not yet complete.

*/ inline void SetPhases(Aws::Vector&& value) { m_phasesHasBeenSet = true; m_phases = std::move(value); } /** *

Information about all previous build phases that are complete and information * about any current build phase that is not yet complete.

*/ inline Build& WithPhases(const Aws::Vector& value) { SetPhases(value); return *this;} /** *

Information about all previous build phases that are complete and information * about any current build phase that is not yet complete.

*/ inline Build& WithPhases(Aws::Vector&& value) { SetPhases(std::move(value)); return *this;} /** *

Information about all previous build phases that are complete and information * about any current build phase that is not yet complete.

*/ inline Build& AddPhases(const BuildPhase& value) { m_phasesHasBeenSet = true; m_phases.push_back(value); return *this; } /** *

Information about all previous build phases that are complete and information * about any current build phase that is not yet complete.

*/ inline Build& AddPhases(BuildPhase&& value) { m_phasesHasBeenSet = true; m_phases.push_back(std::move(value)); return *this; } /** *

Information about the source code to be built.

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

Information about the source code to be built.

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

Information about the source code to be built.

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

Information about the source code to be built.

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

Information about the source code to be built.

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

Information about the source code to be built.

*/ inline Build& 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 Build& WithSecondarySources(const Aws::Vector& value) { SetSecondarySources(value); return *this;} /** *

An array of ProjectSource objects.

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

An array of ProjectSource objects.

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

An array of ProjectSource objects.

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

An array of ProjectSourceVersion objects. Each * ProjectSourceVersion must be one of:

  • For * 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 S3: * the version ID of the object that represents the build input ZIP file to * use.

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

An array of ProjectSourceVersion objects. Each * ProjectSourceVersion must be one of:

  • For * 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 S3: * the version ID of the object that represents the build input ZIP file to * use.

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

An array of ProjectSourceVersion objects. Each * ProjectSourceVersion must be one of:

  • For * 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 S3: * the version ID of the object that represents the build input ZIP file to * use.

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

An array of ProjectSourceVersion objects. Each * ProjectSourceVersion must be one of:

  • For * 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 S3: * the version ID of the object that represents the build input ZIP file to * use.

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

An array of ProjectSourceVersion objects. Each * ProjectSourceVersion must be one of:

  • For * 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 S3: * the version ID of the object that represents the build input ZIP file to * use.

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

An array of ProjectSourceVersion objects. Each * ProjectSourceVersion must be one of:

  • For * 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 S3: * the version ID of the object that represents the build input ZIP file to * use.

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

An array of ProjectSourceVersion objects. Each * ProjectSourceVersion must be one of:

  • For * 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 S3: * the version ID of the object that represents the build input ZIP file to * use.

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

An array of ProjectSourceVersion objects. Each * ProjectSourceVersion must be one of:

  • For * 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 S3: * the version ID of the object that represents the build input ZIP file to * use.

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

Information about the output artifacts for the build.

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

Information about the output artifacts for the build.

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

Information about the output artifacts for the build.

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

Information about the output artifacts for the build.

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

Information about the output artifacts for the build.

*/ inline Build& WithArtifacts(const BuildArtifacts& value) { SetArtifacts(value); return *this;} /** *

Information about the output artifacts for the build.

*/ inline Build& WithArtifacts(BuildArtifacts&& 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 Build& WithSecondaryArtifacts(const Aws::Vector& value) { SetSecondaryArtifacts(value); return *this;} /** *

An array of ProjectArtifacts objects.

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

An array of ProjectArtifacts objects.

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

An array of ProjectArtifacts objects.

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

Information about the cache for the build.

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

Information about the cache for the build.

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

Information about the cache for the build.

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

Information about the cache for the build.

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

Information about the cache for the build.

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

Information about the cache for the build.

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

Information about the build environment for this build.

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

Information about the build environment for this build.

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

Information about the build environment for this build.

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

Information about the build environment for this build.

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

Information about the build environment for this build.

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

Information about the build environment for this build.

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

The name of a service role used for this build.

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

The name of a service role used for this build.

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

The name of a service role used for this build.

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

The name of a service role used for this build.

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

The name of a service role used for this build.

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

The name of a service role used for this build.

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

The name of a service role used for this build.

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

The name of a service role used for this build.

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

Information about the build's logs in CloudWatch Logs.

*/ inline const LogsLocation& GetLogs() const{ return m_logs; } /** *

Information about the build's logs in CloudWatch Logs.

*/ inline bool LogsHasBeenSet() const { return m_logsHasBeenSet; } /** *

Information about the build's logs in CloudWatch Logs.

*/ inline void SetLogs(const LogsLocation& value) { m_logsHasBeenSet = true; m_logs = value; } /** *

Information about the build's logs in CloudWatch Logs.

*/ inline void SetLogs(LogsLocation&& value) { m_logsHasBeenSet = true; m_logs = std::move(value); } /** *

Information about the build's logs in CloudWatch Logs.

*/ inline Build& WithLogs(const LogsLocation& value) { SetLogs(value); return *this;} /** *

Information about the build's logs in CloudWatch Logs.

*/ inline Build& WithLogs(LogsLocation&& value) { SetLogs(std::move(value)); return *this;} /** *

How long, in minutes, for CodeBuild to wait before timing out this build if * it does not get marked as completed.

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

How long, in minutes, for CodeBuild to wait before timing out this build if * it does not get marked as completed.

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

How long, in minutes, for CodeBuild to wait before timing out this build if * it does not get marked as completed.

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

How long, in minutes, for CodeBuild to wait before timing out this build if * it does not get marked as completed.

*/ inline Build& 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 Build& WithQueuedTimeoutInMinutes(int value) { SetQueuedTimeoutInMinutes(value); return *this;} /** *

Whether the build is complete. True if complete; otherwise, false.

*/ inline bool GetBuildComplete() const{ return m_buildComplete; } /** *

Whether the build is complete. True if complete; otherwise, false.

*/ inline bool BuildCompleteHasBeenSet() const { return m_buildCompleteHasBeenSet; } /** *

Whether the build is complete. True if complete; otherwise, false.

*/ inline void SetBuildComplete(bool value) { m_buildCompleteHasBeenSet = true; m_buildComplete = value; } /** *

Whether the build is complete. True if complete; otherwise, false.

*/ inline Build& WithBuildComplete(bool value) { SetBuildComplete(value); return *this;} /** *

The entity that started the build. Valid values include:

  • If * CodePipeline started the build, the pipeline's name (for example, * codepipeline/my-demo-pipeline).

  • If an IAM user * started the build, the user's name (for example, MyUserName).

    *
  • If the Jenkins plugin for CodeBuild started the build, the string * CodeBuild-Jenkins-Plugin.

*/ inline const Aws::String& GetInitiator() const{ return m_initiator; } /** *

The entity that started the build. Valid values include:

  • If * CodePipeline started the build, the pipeline's name (for example, * codepipeline/my-demo-pipeline).

  • If an IAM user * started the build, the user's name (for example, MyUserName).

    *
  • If the Jenkins plugin for CodeBuild started the build, the string * CodeBuild-Jenkins-Plugin.

*/ inline bool InitiatorHasBeenSet() const { return m_initiatorHasBeenSet; } /** *

The entity that started the build. Valid values include:

  • If * CodePipeline started the build, the pipeline's name (for example, * codepipeline/my-demo-pipeline).

  • If an IAM user * started the build, the user's name (for example, MyUserName).

    *
  • If the Jenkins plugin for CodeBuild started the build, the string * CodeBuild-Jenkins-Plugin.

*/ inline void SetInitiator(const Aws::String& value) { m_initiatorHasBeenSet = true; m_initiator = value; } /** *

The entity that started the build. Valid values include:

  • If * CodePipeline started the build, the pipeline's name (for example, * codepipeline/my-demo-pipeline).

  • If an IAM user * started the build, the user's name (for example, MyUserName).

    *
  • If the Jenkins plugin for CodeBuild started the build, the string * CodeBuild-Jenkins-Plugin.

*/ inline void SetInitiator(Aws::String&& value) { m_initiatorHasBeenSet = true; m_initiator = std::move(value); } /** *

The entity that started the build. Valid values include:

  • If * CodePipeline started the build, the pipeline's name (for example, * codepipeline/my-demo-pipeline).

  • If an IAM user * started the build, the user's name (for example, MyUserName).

    *
  • If the Jenkins plugin for CodeBuild started the build, the string * CodeBuild-Jenkins-Plugin.

*/ inline void SetInitiator(const char* value) { m_initiatorHasBeenSet = true; m_initiator.assign(value); } /** *

The entity that started the build. Valid values include:

  • If * CodePipeline started the build, the pipeline's name (for example, * codepipeline/my-demo-pipeline).

  • If an IAM user * started the build, the user's name (for example, MyUserName).

    *
  • If the Jenkins plugin for CodeBuild started the build, the string * CodeBuild-Jenkins-Plugin.

*/ inline Build& WithInitiator(const Aws::String& value) { SetInitiator(value); return *this;} /** *

The entity that started the build. Valid values include:

  • If * CodePipeline started the build, the pipeline's name (for example, * codepipeline/my-demo-pipeline).

  • If an IAM user * started the build, the user's name (for example, MyUserName).

    *
  • If the Jenkins plugin for CodeBuild started the build, the string * CodeBuild-Jenkins-Plugin.

*/ inline Build& WithInitiator(Aws::String&& value) { SetInitiator(std::move(value)); return *this;} /** *

The entity that started the build. Valid values include:

  • If * CodePipeline started the build, the pipeline's name (for example, * codepipeline/my-demo-pipeline).

  • If an IAM user * started the build, the user's name (for example, MyUserName).

    *
  • If the Jenkins plugin for CodeBuild started the build, the string * CodeBuild-Jenkins-Plugin.

*/ inline Build& WithInitiator(const char* value) { SetInitiator(value); return *this;} /** *

If your CodeBuild project accesses resources in an Amazon VPC, you provide * this parameter that identifies the VPC ID and the list of security group IDs and * subnet IDs. The security groups and subnets must belong to the same VPC. You * must provide at least one security group and one subnet ID.

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

If your CodeBuild project accesses resources in an Amazon VPC, you provide * this parameter that identifies the VPC ID and the list of security group IDs and * subnet IDs. The security groups and subnets must belong to the same VPC. You * must provide at least one security group and one subnet ID.

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

If your CodeBuild project accesses resources in an Amazon VPC, you provide * this parameter that identifies the VPC ID and the list of security group IDs and * subnet IDs. The security groups and subnets must belong to the same VPC. You * must provide at least one security group and one subnet ID.

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

If your CodeBuild project accesses resources in an Amazon VPC, you provide * this parameter that identifies the VPC ID and the list of security group IDs and * subnet IDs. The security groups and subnets must belong to the same VPC. You * must provide at least one security group and one subnet ID.

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

If your CodeBuild project accesses resources in an Amazon VPC, you provide * this parameter that identifies the VPC ID and the list of security group IDs and * subnet IDs. The security groups and subnets must belong to the same VPC. You * must provide at least one security group and one subnet ID.

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

If your CodeBuild project accesses resources in an Amazon VPC, you provide * this parameter that identifies the VPC ID and the list of security group IDs and * subnet IDs. The security groups and subnets must belong to the same VPC. You * must provide at least one security group and one subnet ID.

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

Describes a network interface.

*/ inline const NetworkInterface& GetNetworkInterface() const{ return m_networkInterface; } /** *

Describes a network interface.

*/ inline bool NetworkInterfaceHasBeenSet() const { return m_networkInterfaceHasBeenSet; } /** *

Describes a network interface.

*/ inline void SetNetworkInterface(const NetworkInterface& value) { m_networkInterfaceHasBeenSet = true; m_networkInterface = value; } /** *

Describes a network interface.

*/ inline void SetNetworkInterface(NetworkInterface&& value) { m_networkInterfaceHasBeenSet = true; m_networkInterface = std::move(value); } /** *

Describes a network interface.

*/ inline Build& WithNetworkInterface(const NetworkInterface& value) { SetNetworkInterface(value); return *this;} /** *

Describes a network interface.

*/ inline Build& WithNetworkInterface(NetworkInterface&& value) { SetNetworkInterface(std::move(value)); return *this;} /** *

The Key Management Service 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 Key Management Service 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 Key Management Service 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 Key Management Service 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 Key Management Service 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 Key Management Service 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 Build& WithEncryptionKey(const Aws::String& value) { SetEncryptionKey(value); return *this;} /** *

The Key Management Service 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 Build& WithEncryptionKey(Aws::String&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *

The Key Management Service 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 Build& WithEncryptionKey(const char* value) { SetEncryptionKey(value); return *this;} /** *

A list of exported environment variables for this build.

Exported * environment variables are used in conjunction with CodePipeline to export * environment variables from the current build stage to subsequent stages in the * pipeline. For more information, see Working * with variables in the CodePipeline User Guide.

*/ inline const Aws::Vector& GetExportedEnvironmentVariables() const{ return m_exportedEnvironmentVariables; } /** *

A list of exported environment variables for this build.

Exported * environment variables are used in conjunction with CodePipeline to export * environment variables from the current build stage to subsequent stages in the * pipeline. For more information, see Working * with variables in the CodePipeline User Guide.

*/ inline bool ExportedEnvironmentVariablesHasBeenSet() const { return m_exportedEnvironmentVariablesHasBeenSet; } /** *

A list of exported environment variables for this build.

Exported * environment variables are used in conjunction with CodePipeline to export * environment variables from the current build stage to subsequent stages in the * pipeline. For more information, see Working * with variables in the CodePipeline User Guide.

*/ inline void SetExportedEnvironmentVariables(const Aws::Vector& value) { m_exportedEnvironmentVariablesHasBeenSet = true; m_exportedEnvironmentVariables = value; } /** *

A list of exported environment variables for this build.

Exported * environment variables are used in conjunction with CodePipeline to export * environment variables from the current build stage to subsequent stages in the * pipeline. For more information, see Working * with variables in the CodePipeline User Guide.

*/ inline void SetExportedEnvironmentVariables(Aws::Vector&& value) { m_exportedEnvironmentVariablesHasBeenSet = true; m_exportedEnvironmentVariables = std::move(value); } /** *

A list of exported environment variables for this build.

Exported * environment variables are used in conjunction with CodePipeline to export * environment variables from the current build stage to subsequent stages in the * pipeline. For more information, see Working * with variables in the CodePipeline User Guide.

*/ inline Build& WithExportedEnvironmentVariables(const Aws::Vector& value) { SetExportedEnvironmentVariables(value); return *this;} /** *

A list of exported environment variables for this build.

Exported * environment variables are used in conjunction with CodePipeline to export * environment variables from the current build stage to subsequent stages in the * pipeline. For more information, see Working * with variables in the CodePipeline User Guide.

*/ inline Build& WithExportedEnvironmentVariables(Aws::Vector&& value) { SetExportedEnvironmentVariables(std::move(value)); return *this;} /** *

A list of exported environment variables for this build.

Exported * environment variables are used in conjunction with CodePipeline to export * environment variables from the current build stage to subsequent stages in the * pipeline. For more information, see Working * with variables in the CodePipeline User Guide.

*/ inline Build& AddExportedEnvironmentVariables(const ExportedEnvironmentVariable& value) { m_exportedEnvironmentVariablesHasBeenSet = true; m_exportedEnvironmentVariables.push_back(value); return *this; } /** *

A list of exported environment variables for this build.

Exported * environment variables are used in conjunction with CodePipeline to export * environment variables from the current build stage to subsequent stages in the * pipeline. For more information, see Working * with variables in the CodePipeline User Guide.

*/ inline Build& AddExportedEnvironmentVariables(ExportedEnvironmentVariable&& value) { m_exportedEnvironmentVariablesHasBeenSet = true; m_exportedEnvironmentVariables.push_back(std::move(value)); return *this; } /** *

An array of the ARNs associated with this build's reports.

*/ inline const Aws::Vector& GetReportArns() const{ return m_reportArns; } /** *

An array of the ARNs associated with this build's reports.

*/ inline bool ReportArnsHasBeenSet() const { return m_reportArnsHasBeenSet; } /** *

An array of the ARNs associated with this build's reports.

*/ inline void SetReportArns(const Aws::Vector& value) { m_reportArnsHasBeenSet = true; m_reportArns = value; } /** *

An array of the ARNs associated with this build's reports.

*/ inline void SetReportArns(Aws::Vector&& value) { m_reportArnsHasBeenSet = true; m_reportArns = std::move(value); } /** *

An array of the ARNs associated with this build's reports.

*/ inline Build& WithReportArns(const Aws::Vector& value) { SetReportArns(value); return *this;} /** *

An array of the ARNs associated with this build's reports.

*/ inline Build& WithReportArns(Aws::Vector&& value) { SetReportArns(std::move(value)); return *this;} /** *

An array of the ARNs associated with this build's reports.

*/ inline Build& AddReportArns(const Aws::String& value) { m_reportArnsHasBeenSet = true; m_reportArns.push_back(value); return *this; } /** *

An array of the ARNs associated with this build's reports.

*/ inline Build& AddReportArns(Aws::String&& value) { m_reportArnsHasBeenSet = true; m_reportArns.push_back(std::move(value)); return *this; } /** *

An array of the ARNs associated with this build's reports.

*/ inline Build& AddReportArns(const char* value) { m_reportArnsHasBeenSet = true; m_reportArns.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 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 Build& 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 Build& 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 Build& 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 Build& AddFileSystemLocations(ProjectFileSystemLocation&& value) { m_fileSystemLocationsHasBeenSet = true; m_fileSystemLocations.push_back(std::move(value)); return *this; } /** *

Contains information about the debug session for this build.

*/ inline const DebugSession& GetDebugSession() const{ return m_debugSession; } /** *

Contains information about the debug session for this build.

*/ inline bool DebugSessionHasBeenSet() const { return m_debugSessionHasBeenSet; } /** *

Contains information about the debug session for this build.

*/ inline void SetDebugSession(const DebugSession& value) { m_debugSessionHasBeenSet = true; m_debugSession = value; } /** *

Contains information about the debug session for this build.

*/ inline void SetDebugSession(DebugSession&& value) { m_debugSessionHasBeenSet = true; m_debugSession = std::move(value); } /** *

Contains information about the debug session for this build.

*/ inline Build& WithDebugSession(const DebugSession& value) { SetDebugSession(value); return *this;} /** *

Contains information about the debug session for this build.

*/ inline Build& WithDebugSession(DebugSession&& value) { SetDebugSession(std::move(value)); return *this;} /** *

The ARN of the batch build that this build is a member of, if applicable.

*/ inline const Aws::String& GetBuildBatchArn() const{ return m_buildBatchArn; } /** *

The ARN of the batch build that this build is a member of, if applicable.

*/ inline bool BuildBatchArnHasBeenSet() const { return m_buildBatchArnHasBeenSet; } /** *

The ARN of the batch build that this build is a member of, if applicable.

*/ inline void SetBuildBatchArn(const Aws::String& value) { m_buildBatchArnHasBeenSet = true; m_buildBatchArn = value; } /** *

The ARN of the batch build that this build is a member of, if applicable.

*/ inline void SetBuildBatchArn(Aws::String&& value) { m_buildBatchArnHasBeenSet = true; m_buildBatchArn = std::move(value); } /** *

The ARN of the batch build that this build is a member of, if applicable.

*/ inline void SetBuildBatchArn(const char* value) { m_buildBatchArnHasBeenSet = true; m_buildBatchArn.assign(value); } /** *

The ARN of the batch build that this build is a member of, if applicable.

*/ inline Build& WithBuildBatchArn(const Aws::String& value) { SetBuildBatchArn(value); return *this;} /** *

The ARN of the batch build that this build is a member of, if applicable.

*/ inline Build& WithBuildBatchArn(Aws::String&& value) { SetBuildBatchArn(std::move(value)); return *this;} /** *

The ARN of the batch build that this build is a member of, if applicable.

*/ inline Build& WithBuildBatchArn(const char* value) { SetBuildBatchArn(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; long long m_buildNumber; bool m_buildNumberHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::String m_currentPhase; bool m_currentPhaseHasBeenSet = false; StatusType m_buildStatus; bool m_buildStatusHasBeenSet = false; Aws::String m_sourceVersion; bool m_sourceVersionHasBeenSet = false; Aws::String m_resolvedSourceVersion; bool m_resolvedSourceVersionHasBeenSet = false; Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::Vector m_phases; bool m_phasesHasBeenSet = false; ProjectSource m_source; bool m_sourceHasBeenSet = false; Aws::Vector m_secondarySources; bool m_secondarySourcesHasBeenSet = false; Aws::Vector m_secondarySourceVersions; bool m_secondarySourceVersionsHasBeenSet = false; BuildArtifacts m_artifacts; bool m_artifactsHasBeenSet = false; Aws::Vector m_secondaryArtifacts; bool m_secondaryArtifactsHasBeenSet = false; ProjectCache m_cache; bool m_cacheHasBeenSet = false; ProjectEnvironment m_environment; bool m_environmentHasBeenSet = false; Aws::String m_serviceRole; bool m_serviceRoleHasBeenSet = false; LogsLocation m_logs; bool m_logsHasBeenSet = false; int m_timeoutInMinutes; bool m_timeoutInMinutesHasBeenSet = false; int m_queuedTimeoutInMinutes; bool m_queuedTimeoutInMinutesHasBeenSet = false; bool m_buildComplete; bool m_buildCompleteHasBeenSet = false; Aws::String m_initiator; bool m_initiatorHasBeenSet = false; VpcConfig m_vpcConfig; bool m_vpcConfigHasBeenSet = false; NetworkInterface m_networkInterface; bool m_networkInterfaceHasBeenSet = false; Aws::String m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; Aws::Vector m_exportedEnvironmentVariables; bool m_exportedEnvironmentVariablesHasBeenSet = false; Aws::Vector m_reportArns; bool m_reportArnsHasBeenSet = false; Aws::Vector m_fileSystemLocations; bool m_fileSystemLocationsHasBeenSet = false; DebugSession m_debugSession; bool m_debugSessionHasBeenSet = false; Aws::String m_buildBatchArn; bool m_buildBatchArnHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws