/** * 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 ConfigService { namespace Model { StoredQuery::StoredQuery() : m_queryIdHasBeenSet(false), m_queryArnHasBeenSet(false), m_queryNameHasBeenSet(false), m_descriptionHasBeenSet(false), m_expressionHasBeenSet(false) { } StoredQuery::StoredQuery(JsonView jsonValue) : m_queryIdHasBeenSet(false), m_queryArnHasBeenSet(false), m_queryNameHasBeenSet(false), m_descriptionHasBeenSet(false), m_expressionHasBeenSet(false) { *this = jsonValue; } StoredQuery& StoredQuery::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("QueryId")) { m_queryId = jsonValue.GetString("QueryId"); m_queryIdHasBeenSet = true; } if(jsonValue.ValueExists("QueryArn")) { m_queryArn = jsonValue.GetString("QueryArn"); m_queryArnHasBeenSet = true; } if(jsonValue.ValueExists("QueryName")) { m_queryName = jsonValue.GetString("QueryName"); m_queryNameHasBeenSet = true; } if(jsonValue.ValueExists("Description")) { m_description = jsonValue.GetString("Description"); m_descriptionHasBeenSet = true; } if(jsonValue.ValueExists("Expression")) { m_expression = jsonValue.GetString("Expression"); m_expressionHasBeenSet = true; } return *this; } JsonValue StoredQuery::Jsonize() const { JsonValue payload; if(m_queryIdHasBeenSet) { payload.WithString("QueryId", m_queryId); } if(m_queryArnHasBeenSet) { payload.WithString("QueryArn", m_queryArn); } if(m_queryNameHasBeenSet) { payload.WithString("QueryName", m_queryName); } if(m_descriptionHasBeenSet) { payload.WithString("Description", m_description); } if(m_expressionHasBeenSet) { payload.WithString("Expression", m_expression); } return payload; } } // namespace Model } // namespace ConfigService } // namespace Aws