/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaConvert
{
namespace Model
{
/**
* Provides messages from the service about jobs that you have already successfully
* submitted.See Also:
AWS
* API Reference
*/
class JobMessages
{
public:
AWS_MEDIACONVERT_API JobMessages();
AWS_MEDIACONVERT_API JobMessages(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIACONVERT_API JobMessages& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIACONVERT_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* List of messages that are informational only and don't indicate a problem with
* your job.
*/
inline const Aws::Vector& GetInfo() const{ return m_info; }
/**
* List of messages that are informational only and don't indicate a problem with
* your job.
*/
inline bool InfoHasBeenSet() const { return m_infoHasBeenSet; }
/**
* List of messages that are informational only and don't indicate a problem with
* your job.
*/
inline void SetInfo(const Aws::Vector& value) { m_infoHasBeenSet = true; m_info = value; }
/**
* List of messages that are informational only and don't indicate a problem with
* your job.
*/
inline void SetInfo(Aws::Vector&& value) { m_infoHasBeenSet = true; m_info = std::move(value); }
/**
* List of messages that are informational only and don't indicate a problem with
* your job.
*/
inline JobMessages& WithInfo(const Aws::Vector& value) { SetInfo(value); return *this;}
/**
* List of messages that are informational only and don't indicate a problem with
* your job.
*/
inline JobMessages& WithInfo(Aws::Vector&& value) { SetInfo(std::move(value)); return *this;}
/**
* List of messages that are informational only and don't indicate a problem with
* your job.
*/
inline JobMessages& AddInfo(const Aws::String& value) { m_infoHasBeenSet = true; m_info.push_back(value); return *this; }
/**
* List of messages that are informational only and don't indicate a problem with
* your job.
*/
inline JobMessages& AddInfo(Aws::String&& value) { m_infoHasBeenSet = true; m_info.push_back(std::move(value)); return *this; }
/**
* List of messages that are informational only and don't indicate a problem with
* your job.
*/
inline JobMessages& AddInfo(const char* value) { m_infoHasBeenSet = true; m_info.push_back(value); return *this; }
/**
* List of messages that warn about conditions that might cause your job not to run
* or to fail.
*/
inline const Aws::Vector& GetWarning() const{ return m_warning; }
/**
* List of messages that warn about conditions that might cause your job not to run
* or to fail.
*/
inline bool WarningHasBeenSet() const { return m_warningHasBeenSet; }
/**
* List of messages that warn about conditions that might cause your job not to run
* or to fail.
*/
inline void SetWarning(const Aws::Vector& value) { m_warningHasBeenSet = true; m_warning = value; }
/**
* List of messages that warn about conditions that might cause your job not to run
* or to fail.
*/
inline void SetWarning(Aws::Vector&& value) { m_warningHasBeenSet = true; m_warning = std::move(value); }
/**
* List of messages that warn about conditions that might cause your job not to run
* or to fail.
*/
inline JobMessages& WithWarning(const Aws::Vector& value) { SetWarning(value); return *this;}
/**
* List of messages that warn about conditions that might cause your job not to run
* or to fail.
*/
inline JobMessages& WithWarning(Aws::Vector&& value) { SetWarning(std::move(value)); return *this;}
/**
* List of messages that warn about conditions that might cause your job not to run
* or to fail.
*/
inline JobMessages& AddWarning(const Aws::String& value) { m_warningHasBeenSet = true; m_warning.push_back(value); return *this; }
/**
* List of messages that warn about conditions that might cause your job not to run
* or to fail.
*/
inline JobMessages& AddWarning(Aws::String&& value) { m_warningHasBeenSet = true; m_warning.push_back(std::move(value)); return *this; }
/**
* List of messages that warn about conditions that might cause your job not to run
* or to fail.
*/
inline JobMessages& AddWarning(const char* value) { m_warningHasBeenSet = true; m_warning.push_back(value); return *this; }
private:
Aws::Vector m_info;
bool m_infoHasBeenSet = false;
Aws::Vector m_warning;
bool m_warningHasBeenSet = false;
};
} // namespace Model
} // namespace MediaConvert
} // namespace Aws