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

Contains information that defines how the CodeBuild build project reports the * build status to the source provider.

See Also:

AWS * API Reference

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

Specifies the context of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the name * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the context * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline const Aws::String& GetContext() const{ return m_context; } /** *

Specifies the context of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the name * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the context * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; } /** *

Specifies the context of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the name * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the context * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline void SetContext(const Aws::String& value) { m_contextHasBeenSet = true; m_context = value; } /** *

Specifies the context of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the name * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the context * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline void SetContext(Aws::String&& value) { m_contextHasBeenSet = true; m_context = std::move(value); } /** *

Specifies the context of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the name * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the context * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline void SetContext(const char* value) { m_contextHasBeenSet = true; m_context.assign(value); } /** *

Specifies the context of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the name * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the context * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline BuildStatusConfig& WithContext(const Aws::String& value) { SetContext(value); return *this;} /** *

Specifies the context of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the name * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the context * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline BuildStatusConfig& WithContext(Aws::String&& value) { SetContext(std::move(value)); return *this;} /** *

Specifies the context of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the name * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the context * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline BuildStatusConfig& WithContext(const char* value) { SetContext(value); return *this;} /** *

Specifies the target url of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the url * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the target_url * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline const Aws::String& GetTargetUrl() const{ return m_targetUrl; } /** *

Specifies the target url of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the url * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the target_url * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline bool TargetUrlHasBeenSet() const { return m_targetUrlHasBeenSet; } /** *

Specifies the target url of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the url * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the target_url * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline void SetTargetUrl(const Aws::String& value) { m_targetUrlHasBeenSet = true; m_targetUrl = value; } /** *

Specifies the target url of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the url * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the target_url * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline void SetTargetUrl(Aws::String&& value) { m_targetUrlHasBeenSet = true; m_targetUrl = std::move(value); } /** *

Specifies the target url of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the url * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the target_url * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline void SetTargetUrl(const char* value) { m_targetUrlHasBeenSet = true; m_targetUrl.assign(value); } /** *

Specifies the target url of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the url * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the target_url * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline BuildStatusConfig& WithTargetUrl(const Aws::String& value) { SetTargetUrl(value); return *this;} /** *

Specifies the target url of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the url * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the target_url * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline BuildStatusConfig& WithTargetUrl(Aws::String&& value) { SetTargetUrl(std::move(value)); return *this;} /** *

Specifies the target url of the build status CodeBuild sends to the source * provider. The usage of this parameter depends on the source provider.

*
Bitbucket

This parameter is used for the url * parameter in the Bitbucket commit status. For more information, see build * in the Bitbucket API documentation.

GitHub/GitHub Enterprise * Server

This parameter is used for the target_url * parameter in the GitHub commit status. For more information, see Create * a commit status in the GitHub developer guide.

*/ inline BuildStatusConfig& WithTargetUrl(const char* value) { SetTargetUrl(value); return *this;} private: Aws::String m_context; bool m_contextHasBeenSet = false; Aws::String m_targetUrl; bool m_targetUrlHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws