/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MediaConvert { namespace Model { /** * Contains any warning codes and their count for the job.

See Also:

* AWS * API Reference

*/ class WarningGroup { public: AWS_MEDIACONVERT_API WarningGroup(); AWS_MEDIACONVERT_API WarningGroup(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIACONVERT_API WarningGroup& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const; /** * Warning code that identifies a specific warning in the job. For more * information, see * https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html */ inline int GetCode() const{ return m_code; } /** * Warning code that identifies a specific warning in the job. For more * information, see * https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html */ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** * Warning code that identifies a specific warning in the job. For more * information, see * https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html */ inline void SetCode(int value) { m_codeHasBeenSet = true; m_code = value; } /** * Warning code that identifies a specific warning in the job. For more * information, see * https://docs.aws.amazon.com/mediaconvert/latest/ug/warning_codes.html */ inline WarningGroup& WithCode(int value) { SetCode(value); return *this;} /** * The number of times this warning occurred in the job. */ inline int GetCount() const{ return m_count; } /** * The number of times this warning occurred in the job. */ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** * The number of times this warning occurred in the job. */ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** * The number of times this warning occurred in the job. */ inline WarningGroup& WithCount(int value) { SetCount(value); return *this;} private: int m_code; bool m_codeHasBeenSet = false; int m_count; bool m_countHasBeenSet = false; }; } // namespace Model } // namespace MediaConvert } // namespace Aws