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

Contains information about a resource conflict.

See Also:

AWS * API Reference

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

The unique identifier of the resource involved in a conflict.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The unique identifier of the resource involved in a conflict.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The unique identifier of the resource involved in a conflict.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The unique identifier of the resource involved in a conflict.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The unique identifier of the resource involved in a conflict.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The unique identifier of the resource involved in a conflict.

*/ inline ResourceConflict& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The unique identifier of the resource involved in a conflict.

*/ inline ResourceConflict& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The unique identifier of the resource involved in a conflict.

*/ inline ResourceConflict& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The type of the resource involved in a conflict.

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

The type of the resource involved in a conflict.

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

The type of the resource involved in a conflict.

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

The type of the resource involved in a conflict.

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

The type of the resource involved in a conflict.

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

The type of the resource involved in a conflict.

*/ inline ResourceConflict& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} private: Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; }; } // namespace Model } // namespace VerifiedPermissions } // namespace Aws