/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoT { namespace Model { /** *

Information about the resource that was noncompliant with the audit * check.

See Also:

AWS * API Reference

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

The type of the noncompliant resource.

*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *

The type of the noncompliant resource.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of the noncompliant resource.

*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of the noncompliant resource.

*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of the noncompliant resource.

*/ inline NonCompliantResource& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *

The type of the noncompliant resource.

*/ inline NonCompliantResource& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *

Information that identifies the noncompliant resource.

*/ inline const ResourceIdentifier& GetResourceIdentifier() const{ return m_resourceIdentifier; } /** *

Information that identifies the noncompliant resource.

*/ inline bool ResourceIdentifierHasBeenSet() const { return m_resourceIdentifierHasBeenSet; } /** *

Information that identifies the noncompliant resource.

*/ inline void SetResourceIdentifier(const ResourceIdentifier& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = value; } /** *

Information that identifies the noncompliant resource.

*/ inline void SetResourceIdentifier(ResourceIdentifier&& value) { m_resourceIdentifierHasBeenSet = true; m_resourceIdentifier = std::move(value); } /** *

Information that identifies the noncompliant resource.

*/ inline NonCompliantResource& WithResourceIdentifier(const ResourceIdentifier& value) { SetResourceIdentifier(value); return *this;} /** *

Information that identifies the noncompliant resource.

*/ inline NonCompliantResource& WithResourceIdentifier(ResourceIdentifier&& value) { SetResourceIdentifier(std::move(value)); return *this;} /** *

Other information about the noncompliant resource.

*/ inline const Aws::Map& GetAdditionalInfo() const{ return m_additionalInfo; } /** *

Other information about the noncompliant resource.

*/ inline bool AdditionalInfoHasBeenSet() const { return m_additionalInfoHasBeenSet; } /** *

Other information about the noncompliant resource.

*/ inline void SetAdditionalInfo(const Aws::Map& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = value; } /** *

Other information about the noncompliant resource.

*/ inline void SetAdditionalInfo(Aws::Map&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo = std::move(value); } /** *

Other information about the noncompliant resource.

*/ inline NonCompliantResource& WithAdditionalInfo(const Aws::Map& value) { SetAdditionalInfo(value); return *this;} /** *

Other information about the noncompliant resource.

*/ inline NonCompliantResource& WithAdditionalInfo(Aws::Map&& value) { SetAdditionalInfo(std::move(value)); return *this;} /** *

Other information about the noncompliant resource.

*/ inline NonCompliantResource& AddAdditionalInfo(const Aws::String& key, const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; } /** *

Other information about the noncompliant resource.

*/ inline NonCompliantResource& AddAdditionalInfo(Aws::String&& key, const Aws::String& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; } /** *

Other information about the noncompliant resource.

*/ inline NonCompliantResource& AddAdditionalInfo(const Aws::String& key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; } /** *

Other information about the noncompliant resource.

*/ inline NonCompliantResource& AddAdditionalInfo(Aws::String&& key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), std::move(value)); return *this; } /** *

Other information about the noncompliant resource.

*/ inline NonCompliantResource& AddAdditionalInfo(const char* key, Aws::String&& value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, std::move(value)); return *this; } /** *

Other information about the noncompliant resource.

*/ inline NonCompliantResource& AddAdditionalInfo(Aws::String&& key, const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(std::move(key), value); return *this; } /** *

Other information about the noncompliant resource.

*/ inline NonCompliantResource& AddAdditionalInfo(const char* key, const char* value) { m_additionalInfoHasBeenSet = true; m_additionalInfo.emplace(key, value); return *this; } private: ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; ResourceIdentifier m_resourceIdentifier; bool m_resourceIdentifierHasBeenSet = false; Aws::Map m_additionalInfo; bool m_additionalInfoHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws