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

An Amazon Web Service such as Amazon S3 or CloudTrail.

For an * example of how to find an Amazon Web Service name and how to define it in your * assessment scope, see the following:

See Also:

AWS * API Reference

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

The name of the Amazon Web Service.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the Amazon Web Service.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the Amazon Web Service.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the Amazon Web Service.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the Amazon Web Service.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the Amazon Web Service.

*/ inline AWSService& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the Amazon Web Service.

*/ inline AWSService& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the Amazon Web Service.

*/ inline AWSService& WithServiceName(const char* value) { SetServiceName(value); return *this;} private: Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; }; } // namespace Model } // namespace AuditManager } // namespace Aws