/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A resource related to a finding.See Also:
AWS
* API Reference
The type of the resource that details are provided for. If possible, set
* Type to one of the supported resource types. For example, if the
* resource is an EC2 instance, then set Type to
* AwsEc2Instance.
If the resource does not match any of the
* provided types, then set Type to Other.
The type of the resource that details are provided for. If possible, set
* Type to one of the supported resource types. For example, if the
* resource is an EC2 instance, then set Type to
* AwsEc2Instance.
If the resource does not match any of the
* provided types, then set Type to Other.
The type of the resource that details are provided for. If possible, set
* Type to one of the supported resource types. For example, if the
* resource is an EC2 instance, then set Type to
* AwsEc2Instance.
If the resource does not match any of the
* provided types, then set Type to Other.
The type of the resource that details are provided for. If possible, set
* Type to one of the supported resource types. For example, if the
* resource is an EC2 instance, then set Type to
* AwsEc2Instance.
If the resource does not match any of the
* provided types, then set Type to Other.
The type of the resource that details are provided for. If possible, set
* Type to one of the supported resource types. For example, if the
* resource is an EC2 instance, then set Type to
* AwsEc2Instance.
If the resource does not match any of the
* provided types, then set Type to Other.
The type of the resource that details are provided for. If possible, set
* Type to one of the supported resource types. For example, if the
* resource is an EC2 instance, then set Type to
* AwsEc2Instance.
If the resource does not match any of the
* provided types, then set Type to Other.
The type of the resource that details are provided for. If possible, set
* Type to one of the supported resource types. For example, if the
* resource is an EC2 instance, then set Type to
* AwsEc2Instance.
If the resource does not match any of the
* provided types, then set Type to Other.
The type of the resource that details are provided for. If possible, set
* Type to one of the supported resource types. For example, if the
* resource is an EC2 instance, then set Type to
* AwsEc2Instance.
If the resource does not match any of the
* provided types, then set Type to Other.
The canonical identifier for the given resource type.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The canonical identifier for the given resource type.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The canonical identifier for the given resource type.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The canonical identifier for the given resource type.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The canonical identifier for the given resource type.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The canonical identifier for the given resource type.
*/ inline Resource& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The canonical identifier for the given resource type.
*/ inline Resource& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The canonical identifier for the given resource type.
*/ inline Resource& WithId(const char* value) { SetId(value); return *this;} /** *The canonical AWS partition name that the Region is assigned to.
*/ inline const Partition& GetPartition() const{ return m_partition; } /** *The canonical AWS partition name that the Region is assigned to.
*/ inline bool PartitionHasBeenSet() const { return m_partitionHasBeenSet; } /** *The canonical AWS partition name that the Region is assigned to.
*/ inline void SetPartition(const Partition& value) { m_partitionHasBeenSet = true; m_partition = value; } /** *The canonical AWS partition name that the Region is assigned to.
*/ inline void SetPartition(Partition&& value) { m_partitionHasBeenSet = true; m_partition = std::move(value); } /** *The canonical AWS partition name that the Region is assigned to.
*/ inline Resource& WithPartition(const Partition& value) { SetPartition(value); return *this;} /** *The canonical AWS partition name that the Region is assigned to.
*/ inline Resource& WithPartition(Partition&& value) { SetPartition(std::move(value)); return *this;} /** *The canonical AWS external Region name where this resource is located.
*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *The canonical AWS external Region name where this resource is located.
*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *The canonical AWS external Region name where this resource is located.
*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *The canonical AWS external Region name where this resource is located.
*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *The canonical AWS external Region name where this resource is located.
*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *The canonical AWS external Region name where this resource is located.
*/ inline Resource& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *The canonical AWS external Region name where this resource is located.
*/ inline Resource& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *The canonical AWS external Region name where this resource is located.
*/ inline Resource& WithRegion(const char* value) { SetRegion(value); return *this;} /** *A list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline const Aws::MapA list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *A list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline void SetTags(const Aws::MapA list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline void SetTags(Aws::MapA list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline Resource& WithTags(const Aws::MapA list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline Resource& WithTags(Aws::MapA list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline Resource& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *A list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline Resource& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *A list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline Resource& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *A list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline Resource& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *A list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline Resource& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *A list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline Resource& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *A list of AWS tags associated with a resource at the time the finding was * processed.
*/ inline Resource& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *Additional details about the resource related to a finding.
*/ inline const ResourceDetails& GetDetails() const{ return m_details; } /** *Additional details about the resource related to a finding.
*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *Additional details about the resource related to a finding.
*/ inline void SetDetails(const ResourceDetails& value) { m_detailsHasBeenSet = true; m_details = value; } /** *Additional details about the resource related to a finding.
*/ inline void SetDetails(ResourceDetails&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *Additional details about the resource related to a finding.
*/ inline Resource& WithDetails(const ResourceDetails& value) { SetDetails(value); return *this;} /** *Additional details about the resource related to a finding.
*/ inline Resource& WithDetails(ResourceDetails&& value) { SetDetails(std::move(value)); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet; Aws::String m_id; bool m_idHasBeenSet; Partition m_partition; bool m_partitionHasBeenSet; Aws::String m_region; bool m_regionHasBeenSet; Aws::Map