/** * 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 CloudWatchLogs { namespace Model { RejectedLogEventsInfo::RejectedLogEventsInfo() : m_tooNewLogEventStartIndex(0), m_tooNewLogEventStartIndexHasBeenSet(false), m_tooOldLogEventEndIndex(0), m_tooOldLogEventEndIndexHasBeenSet(false), m_expiredLogEventEndIndex(0), m_expiredLogEventEndIndexHasBeenSet(false) { } RejectedLogEventsInfo::RejectedLogEventsInfo(JsonView jsonValue) : m_tooNewLogEventStartIndex(0), m_tooNewLogEventStartIndexHasBeenSet(false), m_tooOldLogEventEndIndex(0), m_tooOldLogEventEndIndexHasBeenSet(false), m_expiredLogEventEndIndex(0), m_expiredLogEventEndIndexHasBeenSet(false) { *this = jsonValue; } RejectedLogEventsInfo& RejectedLogEventsInfo::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("tooNewLogEventStartIndex")) { m_tooNewLogEventStartIndex = jsonValue.GetInteger("tooNewLogEventStartIndex"); m_tooNewLogEventStartIndexHasBeenSet = true; } if(jsonValue.ValueExists("tooOldLogEventEndIndex")) { m_tooOldLogEventEndIndex = jsonValue.GetInteger("tooOldLogEventEndIndex"); m_tooOldLogEventEndIndexHasBeenSet = true; } if(jsonValue.ValueExists("expiredLogEventEndIndex")) { m_expiredLogEventEndIndex = jsonValue.GetInteger("expiredLogEventEndIndex"); m_expiredLogEventEndIndexHasBeenSet = true; } return *this; } JsonValue RejectedLogEventsInfo::Jsonize() const { JsonValue payload; if(m_tooNewLogEventStartIndexHasBeenSet) { payload.WithInteger("tooNewLogEventStartIndex", m_tooNewLogEventStartIndex); } if(m_tooOldLogEventEndIndexHasBeenSet) { payload.WithInteger("tooOldLogEventEndIndex", m_tooOldLogEventEndIndex); } if(m_expiredLogEventEndIndexHasBeenSet) { payload.WithInteger("expiredLogEventEndIndex", m_expiredLogEventEndIndex); } return payload; } } // namespace Model } // namespace CloudWatchLogs } // namespace Aws