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

Details about the resource involved in a finding.

See Also:

* AWS API * Reference

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

An object that contains details about the resource involved in a finding.

*/ inline const ResourceDetails& GetDetails() const{ return m_details; } /** *

An object that contains details about the resource involved in a finding.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

An object that contains details about the resource involved in a finding.

*/ inline void SetDetails(const ResourceDetails& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

An object that contains details about the resource involved in a finding.

*/ inline void SetDetails(ResourceDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

An object that contains details about the resource involved in a finding.

*/ inline Resource& WithDetails(const ResourceDetails& value) { SetDetails(value); return *this;} /** *

An object that contains details about the resource involved in a finding.

*/ inline Resource& WithDetails(ResourceDetails&& value) { SetDetails(std::move(value)); return *this;} /** *

The ID of the resource.

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

The ID of the resource.

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

The ID of the resource.

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

The ID of the resource.

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

The ID of the resource.

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

The ID of the resource.

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

The ID of the resource.

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

The ID of the resource.

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

The tags attached to the resource.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags attached to the resource.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags attached to the resource.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags attached to the resource.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags attached to the resource.

*/ inline Resource& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags attached to the resource.

*/ inline Resource& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags attached to the resource.

*/ inline Resource& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags attached to the resource.

*/ inline Resource& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags attached to the resource.

*/ inline Resource& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags attached to the resource.

*/ inline Resource& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags attached to the resource.

*/ inline Resource& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags attached to the resource.

*/ inline Resource& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags attached to the resource.

*/ inline Resource& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The type of resource.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The type of resource.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of resource.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of resource.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of resource.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The type of resource.

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

The type of resource.

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

The type of resource.

*/ inline Resource& WithType(const char* value) { SetType(value); return *this;} private: ResourceDetails m_details; bool m_detailsHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws