/** * 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 { /** *

Information about the build badge for the build project.

See * Also:

AWS * API Reference

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

Set this to true to generate a publicly accessible URL for your project's * build badge.

*/ inline bool GetBadgeEnabled() const{ return m_badgeEnabled; } /** *

Set this to true to generate a publicly accessible URL for your project's * build badge.

*/ inline bool BadgeEnabledHasBeenSet() const { return m_badgeEnabledHasBeenSet; } /** *

Set this to true to generate a publicly accessible URL for your project's * build badge.

*/ inline void SetBadgeEnabled(bool value) { m_badgeEnabledHasBeenSet = true; m_badgeEnabled = value; } /** *

Set this to true to generate a publicly accessible URL for your project's * build badge.

*/ inline ProjectBadge& WithBadgeEnabled(bool value) { SetBadgeEnabled(value); return *this;} /** *

The publicly-accessible URL through which you can access the build badge for * your project.

*/ inline const Aws::String& GetBadgeRequestUrl() const{ return m_badgeRequestUrl; } /** *

The publicly-accessible URL through which you can access the build badge for * your project.

*/ inline bool BadgeRequestUrlHasBeenSet() const { return m_badgeRequestUrlHasBeenSet; } /** *

The publicly-accessible URL through which you can access the build badge for * your project.

*/ inline void SetBadgeRequestUrl(const Aws::String& value) { m_badgeRequestUrlHasBeenSet = true; m_badgeRequestUrl = value; } /** *

The publicly-accessible URL through which you can access the build badge for * your project.

*/ inline void SetBadgeRequestUrl(Aws::String&& value) { m_badgeRequestUrlHasBeenSet = true; m_badgeRequestUrl = std::move(value); } /** *

The publicly-accessible URL through which you can access the build badge for * your project.

*/ inline void SetBadgeRequestUrl(const char* value) { m_badgeRequestUrlHasBeenSet = true; m_badgeRequestUrl.assign(value); } /** *

The publicly-accessible URL through which you can access the build badge for * your project.

*/ inline ProjectBadge& WithBadgeRequestUrl(const Aws::String& value) { SetBadgeRequestUrl(value); return *this;} /** *

The publicly-accessible URL through which you can access the build badge for * your project.

*/ inline ProjectBadge& WithBadgeRequestUrl(Aws::String&& value) { SetBadgeRequestUrl(std::move(value)); return *this;} /** *

The publicly-accessible URL through which you can access the build badge for * your project.

*/ inline ProjectBadge& WithBadgeRequestUrl(const char* value) { SetBadgeRequestUrl(value); return *this;} private: bool m_badgeEnabled; bool m_badgeEnabledHasBeenSet = false; Aws::String m_badgeRequestUrl; bool m_badgeRequestUrlHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws