/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Your request has conflicting operations. This can occur if you're trying to
* perform more than one operation on the same resource at the same time or it
* could be that the requested action isn't valid for the current state or
* configuration of the resource.See Also:
AWS
* API Reference
The reason for the exception.
*/ inline const ConflictExceptionReason& GetReason() const{ return m_reason; } /** *The reason for the exception.
*/ inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } /** *The reason for the exception.
*/ inline void SetReason(const ConflictExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } /** *The reason for the exception.
*/ inline void SetReason(ConflictExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } /** *The reason for the exception.
*/ inline ConflictException& WithReason(const ConflictExceptionReason& value) { SetReason(value); return *this;} /** *The reason for the exception.
*/ inline ConflictException& WithReason(ConflictExceptionReason&& value) { SetReason(std::move(value)); return *this;} /** *The type of resource that caused the exception.
*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *The type of resource that caused the exception.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The type of resource that caused the exception.
*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The type of resource that caused the exception.
*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The type of resource that caused the exception.
*/ inline ConflictException& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *The type of resource that caused the exception.
*/ inline ConflictException& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *The unique identifier of the request.
*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *The unique identifier of the request.
*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *The unique identifier of the request.
*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *The unique identifier of the request.
*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *The unique identifier of the request.
*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *The unique identifier of the request.
*/ inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *The unique identifier of the request.
*/ inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *The unique identifier of the request.
*/ inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;} private: Aws::String m_message; bool m_messageHasBeenSet = false; ConflictExceptionReason m_reason; bool m_reasonHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; }; } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws