1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/dataexchange/DataExchange_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/dataexchange/model/ResourceType.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace Utils 15 { 16 namespace Json 17 { 18 class JsonValue; 19 class JsonView; 20 } // namespace Json 21 } // namespace Utils 22 namespace DataExchange 23 { 24 namespace Model 25 { 26 27 /** 28 * <p>The request couldn't be completed because it conflicted with the current 29 * state of the resource.</p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/dataexchange-2017-07-25/ConflictException">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_DATAEXCHANGE_API ConflictException 34 { 35 public: 36 ConflictException(); 37 ConflictException(Aws::Utils::Json::JsonView jsonValue); 38 ConflictException& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 /** 43 * <p>The request couldn't be completed because it conflicted with the current 44 * state of the resource.</p> 45 */ GetMessage()46 inline const Aws::String& GetMessage() const{ return m_message; } 47 48 /** 49 * <p>The request couldn't be completed because it conflicted with the current 50 * state of the resource.</p> 51 */ MessageHasBeenSet()52 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } 53 54 /** 55 * <p>The request couldn't be completed because it conflicted with the current 56 * state of the resource.</p> 57 */ SetMessage(const Aws::String & value)58 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } 59 60 /** 61 * <p>The request couldn't be completed because it conflicted with the current 62 * state of the resource.</p> 63 */ SetMessage(Aws::String && value)64 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } 65 66 /** 67 * <p>The request couldn't be completed because it conflicted with the current 68 * state of the resource.</p> 69 */ SetMessage(const char * value)70 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } 71 72 /** 73 * <p>The request couldn't be completed because it conflicted with the current 74 * state of the resource.</p> 75 */ WithMessage(const Aws::String & value)76 inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 77 78 /** 79 * <p>The request couldn't be completed because it conflicted with the current 80 * state of the resource.</p> 81 */ WithMessage(Aws::String && value)82 inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 83 84 /** 85 * <p>The request couldn't be completed because it conflicted with the current 86 * state of the resource.</p> 87 */ WithMessage(const char * value)88 inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} 89 90 91 /** 92 * <p>The unique identifier for the resource with the conflict.</p> 93 */ GetResourceId()94 inline const Aws::String& GetResourceId() const{ return m_resourceId; } 95 96 /** 97 * <p>The unique identifier for the resource with the conflict.</p> 98 */ ResourceIdHasBeenSet()99 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } 100 101 /** 102 * <p>The unique identifier for the resource with the conflict.</p> 103 */ SetResourceId(const Aws::String & value)104 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } 105 106 /** 107 * <p>The unique identifier for the resource with the conflict.</p> 108 */ SetResourceId(Aws::String && value)109 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } 110 111 /** 112 * <p>The unique identifier for the resource with the conflict.</p> 113 */ SetResourceId(const char * value)114 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } 115 116 /** 117 * <p>The unique identifier for the resource with the conflict.</p> 118 */ WithResourceId(const Aws::String & value)119 inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} 120 121 /** 122 * <p>The unique identifier for the resource with the conflict.</p> 123 */ WithResourceId(Aws::String && value)124 inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} 125 126 /** 127 * <p>The unique identifier for the resource with the conflict.</p> 128 */ WithResourceId(const char * value)129 inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;} 130 131 132 /** 133 * <p>The type of the resource with the conflict.</p> 134 */ GetResourceType()135 inline const ResourceType& GetResourceType() const{ return m_resourceType; } 136 137 /** 138 * <p>The type of the resource with the conflict.</p> 139 */ ResourceTypeHasBeenSet()140 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } 141 142 /** 143 * <p>The type of the resource with the conflict.</p> 144 */ SetResourceType(const ResourceType & value)145 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } 146 147 /** 148 * <p>The type of the resource with the conflict.</p> 149 */ SetResourceType(ResourceType && value)150 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } 151 152 /** 153 * <p>The type of the resource with the conflict.</p> 154 */ WithResourceType(const ResourceType & value)155 inline ConflictException& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} 156 157 /** 158 * <p>The type of the resource with the conflict.</p> 159 */ WithResourceType(ResourceType && value)160 inline ConflictException& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} 161 162 private: 163 164 Aws::String m_message; 165 bool m_messageHasBeenSet; 166 167 Aws::String m_resourceId; 168 bool m_resourceIdHasBeenSet; 169 170 ResourceType m_resourceType; 171 bool m_resourceTypeHasBeenSet; 172 }; 173 174 } // namespace Model 175 } // namespace DataExchange 176 } // namespace Aws 177