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

Information about the authorization settings for CodeBuild to access the * source code to be built.

This information is for the CodeBuild console's * use only. Your code should not get or set this information * directly.

See Also:

AWS * API Reference

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

This data type is deprecated and is no longer accurate or used.

*

The authorization type to use. The only valid value is * OAUTH, which represents the OAuth authorization type.

*/ inline const SourceAuthType& GetType() const{ return m_type; } /** *

This data type is deprecated and is no longer accurate or used.

*

The authorization type to use. The only valid value is * OAUTH, which represents the OAuth authorization type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

This data type is deprecated and is no longer accurate or used.

*

The authorization type to use. The only valid value is * OAUTH, which represents the OAuth authorization type.

*/ inline void SetType(const SourceAuthType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

This data type is deprecated and is no longer accurate or used.

*

The authorization type to use. The only valid value is * OAUTH, which represents the OAuth authorization type.

*/ inline void SetType(SourceAuthType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

This data type is deprecated and is no longer accurate or used.

*

The authorization type to use. The only valid value is * OAUTH, which represents the OAuth authorization type.

*/ inline SourceAuth& WithType(const SourceAuthType& value) { SetType(value); return *this;} /** *

This data type is deprecated and is no longer accurate or used.

*

The authorization type to use. The only valid value is * OAUTH, which represents the OAuth authorization type.

*/ inline SourceAuth& WithType(SourceAuthType&& value) { SetType(std::move(value)); return *this;} /** *

The resource value that applies to the specified authorization type.

*/ inline const Aws::String& GetResource() const{ return m_resource; } /** *

The resource value that applies to the specified authorization type.

*/ inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; } /** *

The resource value that applies to the specified authorization type.

*/ inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; } /** *

The resource value that applies to the specified authorization type.

*/ inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); } /** *

The resource value that applies to the specified authorization type.

*/ inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); } /** *

The resource value that applies to the specified authorization type.

*/ inline SourceAuth& WithResource(const Aws::String& value) { SetResource(value); return *this;} /** *

The resource value that applies to the specified authorization type.

*/ inline SourceAuth& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;} /** *

The resource value that applies to the specified authorization type.

*/ inline SourceAuth& WithResource(const char* value) { SetResource(value); return *this;} private: SourceAuthType m_type; bool m_typeHasBeenSet = false; Aws::String m_resource; bool m_resourceHasBeenSet = false; }; } // namespace Model } // namespace CodeBuild } // namespace Aws