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

The Security Lake logs source configuration file describes the information * needed to generate Security Lake logs.

See Also:

AWS * API Reference

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

Specify the Amazon Web Services account information where you want to enable * Security Lake.

*/ inline const Aws::Vector& GetAccounts() const{ return m_accounts; } /** *

Specify the Amazon Web Services account information where you want to enable * Security Lake.

*/ inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; } /** *

Specify the Amazon Web Services account information where you want to enable * Security Lake.

*/ inline void SetAccounts(const Aws::Vector& value) { m_accountsHasBeenSet = true; m_accounts = value; } /** *

Specify the Amazon Web Services account information where you want to enable * Security Lake.

*/ inline void SetAccounts(Aws::Vector&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); } /** *

Specify the Amazon Web Services account information where you want to enable * Security Lake.

*/ inline AwsLogSourceConfiguration& WithAccounts(const Aws::Vector& value) { SetAccounts(value); return *this;} /** *

Specify the Amazon Web Services account information where you want to enable * Security Lake.

*/ inline AwsLogSourceConfiguration& WithAccounts(Aws::Vector&& value) { SetAccounts(std::move(value)); return *this;} /** *

Specify the Amazon Web Services account information where you want to enable * Security Lake.

*/ inline AwsLogSourceConfiguration& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; } /** *

Specify the Amazon Web Services account information where you want to enable * Security Lake.

*/ inline AwsLogSourceConfiguration& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; } /** *

Specify the Amazon Web Services account information where you want to enable * Security Lake.

*/ inline AwsLogSourceConfiguration& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; } /** *

Specify the Regions where you want to enable Security Lake.

*/ inline const Aws::Vector& GetRegions() const{ return m_regions; } /** *

Specify the Regions where you want to enable Security Lake.

*/ inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; } /** *

Specify the Regions where you want to enable Security Lake.

*/ inline void SetRegions(const Aws::Vector& value) { m_regionsHasBeenSet = true; m_regions = value; } /** *

Specify the Regions where you want to enable Security Lake.

*/ inline void SetRegions(Aws::Vector&& value) { m_regionsHasBeenSet = true; m_regions = std::move(value); } /** *

Specify the Regions where you want to enable Security Lake.

*/ inline AwsLogSourceConfiguration& WithRegions(const Aws::Vector& value) { SetRegions(value); return *this;} /** *

Specify the Regions where you want to enable Security Lake.

*/ inline AwsLogSourceConfiguration& WithRegions(Aws::Vector&& value) { SetRegions(std::move(value)); return *this;} /** *

Specify the Regions where you want to enable Security Lake.

*/ inline AwsLogSourceConfiguration& AddRegions(const Aws::String& value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; } /** *

Specify the Regions where you want to enable Security Lake.

*/ inline AwsLogSourceConfiguration& AddRegions(Aws::String&& value) { m_regionsHasBeenSet = true; m_regions.push_back(std::move(value)); return *this; } /** *

Specify the Regions where you want to enable Security Lake.

*/ inline AwsLogSourceConfiguration& AddRegions(const char* value) { m_regionsHasBeenSet = true; m_regions.push_back(value); return *this; } /** *

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 AwsLogSourceConfiguration& WithSourceName(const AwsLogSourceName& value) { SetSourceName(value); return *this;} /** *

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

*/ inline AwsLogSourceConfiguration& 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 AwsLogSourceConfiguration& 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 AwsLogSourceConfiguration& 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 AwsLogSourceConfiguration& WithSourceVersion(const char* value) { SetSourceVersion(value); return *this;} private: Aws::Vector m_accounts; bool m_accountsHasBeenSet = false; Aws::Vector m_regions; bool m_regionsHasBeenSet = false; AwsLogSourceName m_sourceName; bool m_sourceNameHasBeenSet = false; Aws::String m_sourceVersion; bool m_sourceVersionHasBeenSet = false; }; } // namespace Model } // namespace SecurityLake } // namespace Aws