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

Provides information about an Amazon Web Service that performed an action on * an affected resource.

See Also:

AWS * API Reference

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

The name of the Amazon Web Service that performed the action.

*/ inline const Aws::String& GetInvokedBy() const{ return m_invokedBy; } /** *

The name of the Amazon Web Service that performed the action.

*/ inline bool InvokedByHasBeenSet() const { return m_invokedByHasBeenSet; } /** *

The name of the Amazon Web Service that performed the action.

*/ inline void SetInvokedBy(const Aws::String& value) { m_invokedByHasBeenSet = true; m_invokedBy = value; } /** *

The name of the Amazon Web Service that performed the action.

*/ inline void SetInvokedBy(Aws::String&& value) { m_invokedByHasBeenSet = true; m_invokedBy = std::move(value); } /** *

The name of the Amazon Web Service that performed the action.

*/ inline void SetInvokedBy(const char* value) { m_invokedByHasBeenSet = true; m_invokedBy.assign(value); } /** *

The name of the Amazon Web Service that performed the action.

*/ inline AwsService& WithInvokedBy(const Aws::String& value) { SetInvokedBy(value); return *this;} /** *

The name of the Amazon Web Service that performed the action.

*/ inline AwsService& WithInvokedBy(Aws::String&& value) { SetInvokedBy(std::move(value)); return *this;} /** *

The name of the Amazon Web Service that performed the action.

*/ inline AwsService& WithInvokedBy(const char* value) { SetInvokedBy(value); return *this;} private: Aws::String m_invokedBy; bool m_invokedByHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws