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/codeartifact/CodeArtifact_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <aws/codeartifact/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 CodeArtifact 23 { 24 namespace Model 25 { 26 27 /** 28 * <p> The operation did not succeed because the resource requested is not found in 29 * the service. </p><p><h3>See Also:</h3> <a 30 * href="http://docs.aws.amazon.com/goto/WebAPI/codeartifact-2018-09-22/ResourceNotFoundException">AWS 31 * API Reference</a></p> 32 */ 33 class AWS_CODEARTIFACT_API ResourceNotFoundException 34 { 35 public: 36 ResourceNotFoundException(); 37 ResourceNotFoundException(Aws::Utils::Json::JsonView jsonValue); 38 ResourceNotFoundException& operator=(Aws::Utils::Json::JsonView jsonValue); 39 Aws::Utils::Json::JsonValue Jsonize() const; 40 41 42 GetMessage()43 inline const Aws::String& GetMessage() const{ return m_message; } 44 45 MessageHasBeenSet()46 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } 47 48 SetMessage(const Aws::String & value)49 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } 50 51 SetMessage(Aws::String && value)52 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } 53 54 SetMessage(const char * value)55 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } 56 57 WithMessage(const Aws::String & value)58 inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} 59 60 WithMessage(Aws::String && value)61 inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} 62 63 WithMessage(const char * value)64 inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} 65 66 67 /** 68 * <p> The ID of the resource. </p> 69 */ GetResourceId()70 inline const Aws::String& GetResourceId() const{ return m_resourceId; } 71 72 /** 73 * <p> The ID of the resource. </p> 74 */ ResourceIdHasBeenSet()75 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } 76 77 /** 78 * <p> The ID of the resource. </p> 79 */ SetResourceId(const Aws::String & value)80 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } 81 82 /** 83 * <p> The ID of the resource. </p> 84 */ SetResourceId(Aws::String && value)85 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } 86 87 /** 88 * <p> The ID of the resource. </p> 89 */ SetResourceId(const char * value)90 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } 91 92 /** 93 * <p> The ID of the resource. </p> 94 */ WithResourceId(const Aws::String & value)95 inline ResourceNotFoundException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} 96 97 /** 98 * <p> The ID of the resource. </p> 99 */ WithResourceId(Aws::String && value)100 inline ResourceNotFoundException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} 101 102 /** 103 * <p> The ID of the resource. </p> 104 */ WithResourceId(const char * value)105 inline ResourceNotFoundException& WithResourceId(const char* value) { SetResourceId(value); return *this;} 106 107 108 /** 109 * <p> The type of AWS resource. </p> 110 */ GetResourceType()111 inline const ResourceType& GetResourceType() const{ return m_resourceType; } 112 113 /** 114 * <p> The type of AWS resource. </p> 115 */ ResourceTypeHasBeenSet()116 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } 117 118 /** 119 * <p> The type of AWS resource. </p> 120 */ SetResourceType(const ResourceType & value)121 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } 122 123 /** 124 * <p> The type of AWS resource. </p> 125 */ SetResourceType(ResourceType && value)126 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } 127 128 /** 129 * <p> The type of AWS resource. </p> 130 */ WithResourceType(const ResourceType & value)131 inline ResourceNotFoundException& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} 132 133 /** 134 * <p> The type of AWS resource. </p> 135 */ WithResourceType(ResourceType && value)136 inline ResourceNotFoundException& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} 137 138 private: 139 140 Aws::String m_message; 141 bool m_messageHasBeenSet; 142 143 Aws::String m_resourceId; 144 bool m_resourceIdHasBeenSet; 145 146 ResourceType m_resourceType; 147 bool m_resourceTypeHasBeenSet; 148 }; 149 150 } // namespace Model 151 } // namespace CodeArtifact 152 } // namespace Aws 153