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

Information about a resource, such as an Amazon S3 bucket or AWS Lambda * function, that contains a finding.

See Also:

AWS * API Reference

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

The identifier for the resource.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier for the resource.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier for the resource.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier for the resource.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier for the resource.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier for the resource.

*/ inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier for the resource.

*/ inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier for the resource.

*/ inline Resource& WithId(const char* value) { SetId(value); return *this;} /** *

The identifier for a section of the resource, such as an AWS Lambda * layer.

*/ inline const Aws::String& GetSubResourceId() const{ return m_subResourceId; } /** *

The identifier for a section of the resource, such as an AWS Lambda * layer.

*/ inline bool SubResourceIdHasBeenSet() const { return m_subResourceIdHasBeenSet; } /** *

The identifier for a section of the resource, such as an AWS Lambda * layer.

*/ inline void SetSubResourceId(const Aws::String& value) { m_subResourceIdHasBeenSet = true; m_subResourceId = value; } /** *

The identifier for a section of the resource, such as an AWS Lambda * layer.

*/ inline void SetSubResourceId(Aws::String&& value) { m_subResourceIdHasBeenSet = true; m_subResourceId = std::move(value); } /** *

The identifier for a section of the resource, such as an AWS Lambda * layer.

*/ inline void SetSubResourceId(const char* value) { m_subResourceIdHasBeenSet = true; m_subResourceId.assign(value); } /** *

The identifier for a section of the resource, such as an AWS Lambda * layer.

*/ inline Resource& WithSubResourceId(const Aws::String& value) { SetSubResourceId(value); return *this;} /** *

The identifier for a section of the resource, such as an AWS Lambda * layer.

*/ inline Resource& WithSubResourceId(Aws::String&& value) { SetSubResourceId(std::move(value)); return *this;} /** *

The identifier for a section of the resource, such as an AWS Lambda * layer.

*/ inline Resource& WithSubResourceId(const char* value) { SetSubResourceId(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_subResourceId; bool m_subResourceIdHasBeenSet = false; }; } // namespace Model } // namespace CodeGuruSecurity } // namespace Aws