/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Occurs when a conflict with a previous successful write is detected. This
* generally occurs when the previous write did not have time to propagate to the
* host serving the current request. A retry (with appropriate backoff logic) is
* the recommended response to this exception.See Also:
AWS
* API Reference
The resource name.
*/ inline const Aws::String& GetResourceName() const{ return m_resourceName; } /** *The resource name.
*/ inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } /** *The resource name.
*/ inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } /** *The resource name.
*/ inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } /** *The resource name.
*/ inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } /** *The resource name.
*/ inline ConflictException& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;} /** *The resource name.
*/ inline ConflictException& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;} /** *The resource name.
*/ inline ConflictException& WithResourceName(const char* value) { SetResourceName(value); return *this;} /** *The resource type.
*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *The resource type.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The resource type.
*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The resource type.
*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The resource type.
*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *The resource type.
*/ inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *The resource type.
*/ inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *The resource type.
*/ inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_resourceName; bool m_resourceNameHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; }; } // namespace Model } // namespace SecurityLake } // namespace Aws