/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::Utils::Json; using namespace Aws::Utils; namespace Aws { namespace DLM { namespace Model { LimitExceededException::LimitExceededException() : m_messageHasBeenSet(false), m_codeHasBeenSet(false), m_resourceTypeHasBeenSet(false) { } LimitExceededException::LimitExceededException(JsonView jsonValue) : m_messageHasBeenSet(false), m_codeHasBeenSet(false), m_resourceTypeHasBeenSet(false) { *this = jsonValue; } LimitExceededException& LimitExceededException::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Message")) { m_message = jsonValue.GetString("Message"); m_messageHasBeenSet = true; } if(jsonValue.ValueExists("Code")) { m_code = jsonValue.GetString("Code"); m_codeHasBeenSet = true; } if(jsonValue.ValueExists("ResourceType")) { m_resourceType = jsonValue.GetString("ResourceType"); m_resourceTypeHasBeenSet = true; } return *this; } JsonValue LimitExceededException::Jsonize() const { JsonValue payload; if(m_messageHasBeenSet) { payload.WithString("Message", m_message); } if(m_codeHasBeenSet) { payload.WithString("Code", m_code); } if(m_resourceTypeHasBeenSet) { payload.WithString("ResourceType", m_resourceType); } return payload; } } // namespace Model } // namespace DLM } // namespace Aws