/** * 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 SecurityLake { namespace Model { /** *

Amazon Security Lake can collect logs and events from natively-supported * Amazon Web Services services.

See Also:

AWS * API Reference

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

The name for a Amazon Web Services source. This must be a Regionally unique * value.

*/ inline const AwsLogSourceName& GetSourceName() const{ return m_sourceName; } /** *

The name for a Amazon Web Services source. This must be a Regionally unique * value.

*/ inline bool SourceNameHasBeenSet() const { return m_sourceNameHasBeenSet; } /** *

The name for a Amazon Web Services source. This must be a Regionally unique * value.

*/ inline void SetSourceName(const AwsLogSourceName& value) { m_sourceNameHasBeenSet = true; m_sourceName = value; } /** *

The name for a Amazon Web Services source. This must be a Regionally unique * value.

*/ inline void SetSourceName(AwsLogSourceName&& value) { m_sourceNameHasBeenSet = true; m_sourceName = std::move(value); } /** *

The name for a Amazon Web Services source. This must be a Regionally unique * value.

*/ inline AwsLogSourceResource& WithSourceName(const AwsLogSourceName& value) { SetSourceName(value); return *this;} /** *

The name for a Amazon Web Services source. This must be a Regionally unique * value.

*/ inline AwsLogSourceResource& WithSourceName(AwsLogSourceName&& value) { SetSourceName(std::move(value)); return *this;} /** *

The version for a Amazon Web Services source. This must be a Regionally * unique value.

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

The version for a Amazon Web Services source. This must be a Regionally * unique value.

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

The version for a Amazon Web Services source. This must be a Regionally * unique value.

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

The version for a Amazon Web Services source. This must be a Regionally * unique value.

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

The version for a Amazon Web Services source. This must be a Regionally * unique value.

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

The version for a Amazon Web Services source. This must be a Regionally * unique value.

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

The version for a Amazon Web Services source. This must be a Regionally * unique value.

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

The version for a Amazon Web Services source. This must be a Regionally * unique value.

*/ inline AwsLogSourceResource& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;} private: AwsLogSourceName m_sourceName; bool m_sourceNameHasBeenSet = false; Aws::String m_sourceVersion; bool m_sourceVersionHasBeenSet = false; }; } // namespace Model } // namespace SecurityLake } // namespace Aws