186 lines
7.5 KiB
C++
186 lines
7.5 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/mediaconvert/MediaConvert_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace MediaConvert
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* Optional. Configuration for a destination queue to which the job can hop once a
|
|
* customer-defined minimum wait time has passed.<p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/mediaconvert-2017-08-29/HopDestination">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_MEDIACONVERT_API HopDestination
|
|
{
|
|
public:
|
|
HopDestination();
|
|
HopDestination(Aws::Utils::Json::JsonView jsonValue);
|
|
HopDestination& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* Optional. When you set up a job to use queue hopping, you can specify a
|
|
* different relative priority for the job in the destination queue. If you don't
|
|
* specify, the relative priority will remain the same as in the previous queue.
|
|
*/
|
|
inline int GetPriority() const{ return m_priority; }
|
|
|
|
/**
|
|
* Optional. When you set up a job to use queue hopping, you can specify a
|
|
* different relative priority for the job in the destination queue. If you don't
|
|
* specify, the relative priority will remain the same as in the previous queue.
|
|
*/
|
|
inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
|
|
|
|
/**
|
|
* Optional. When you set up a job to use queue hopping, you can specify a
|
|
* different relative priority for the job in the destination queue. If you don't
|
|
* specify, the relative priority will remain the same as in the previous queue.
|
|
*/
|
|
inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
|
|
|
|
/**
|
|
* Optional. When you set up a job to use queue hopping, you can specify a
|
|
* different relative priority for the job in the destination queue. If you don't
|
|
* specify, the relative priority will remain the same as in the previous queue.
|
|
*/
|
|
inline HopDestination& WithPriority(int value) { SetPriority(value); return *this;}
|
|
|
|
|
|
/**
|
|
* Optional unless the job is submitted on the default queue. When you set up a job
|
|
* to use queue hopping, you can specify a destination queue. This queue cannot be
|
|
* the original queue to which the job is submitted. If the original queue isn't
|
|
* the default queue and you don't specify the destination queue, the job will move
|
|
* to the default queue.
|
|
*/
|
|
inline const Aws::String& GetQueue() const{ return m_queue; }
|
|
|
|
/**
|
|
* Optional unless the job is submitted on the default queue. When you set up a job
|
|
* to use queue hopping, you can specify a destination queue. This queue cannot be
|
|
* the original queue to which the job is submitted. If the original queue isn't
|
|
* the default queue and you don't specify the destination queue, the job will move
|
|
* to the default queue.
|
|
*/
|
|
inline bool QueueHasBeenSet() const { return m_queueHasBeenSet; }
|
|
|
|
/**
|
|
* Optional unless the job is submitted on the default queue. When you set up a job
|
|
* to use queue hopping, you can specify a destination queue. This queue cannot be
|
|
* the original queue to which the job is submitted. If the original queue isn't
|
|
* the default queue and you don't specify the destination queue, the job will move
|
|
* to the default queue.
|
|
*/
|
|
inline void SetQueue(const Aws::String& value) { m_queueHasBeenSet = true; m_queue = value; }
|
|
|
|
/**
|
|
* Optional unless the job is submitted on the default queue. When you set up a job
|
|
* to use queue hopping, you can specify a destination queue. This queue cannot be
|
|
* the original queue to which the job is submitted. If the original queue isn't
|
|
* the default queue and you don't specify the destination queue, the job will move
|
|
* to the default queue.
|
|
*/
|
|
inline void SetQueue(Aws::String&& value) { m_queueHasBeenSet = true; m_queue = std::move(value); }
|
|
|
|
/**
|
|
* Optional unless the job is submitted on the default queue. When you set up a job
|
|
* to use queue hopping, you can specify a destination queue. This queue cannot be
|
|
* the original queue to which the job is submitted. If the original queue isn't
|
|
* the default queue and you don't specify the destination queue, the job will move
|
|
* to the default queue.
|
|
*/
|
|
inline void SetQueue(const char* value) { m_queueHasBeenSet = true; m_queue.assign(value); }
|
|
|
|
/**
|
|
* Optional unless the job is submitted on the default queue. When you set up a job
|
|
* to use queue hopping, you can specify a destination queue. This queue cannot be
|
|
* the original queue to which the job is submitted. If the original queue isn't
|
|
* the default queue and you don't specify the destination queue, the job will move
|
|
* to the default queue.
|
|
*/
|
|
inline HopDestination& WithQueue(const Aws::String& value) { SetQueue(value); return *this;}
|
|
|
|
/**
|
|
* Optional unless the job is submitted on the default queue. When you set up a job
|
|
* to use queue hopping, you can specify a destination queue. This queue cannot be
|
|
* the original queue to which the job is submitted. If the original queue isn't
|
|
* the default queue and you don't specify the destination queue, the job will move
|
|
* to the default queue.
|
|
*/
|
|
inline HopDestination& WithQueue(Aws::String&& value) { SetQueue(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* Optional unless the job is submitted on the default queue. When you set up a job
|
|
* to use queue hopping, you can specify a destination queue. This queue cannot be
|
|
* the original queue to which the job is submitted. If the original queue isn't
|
|
* the default queue and you don't specify the destination queue, the job will move
|
|
* to the default queue.
|
|
*/
|
|
inline HopDestination& WithQueue(const char* value) { SetQueue(value); return *this;}
|
|
|
|
|
|
/**
|
|
* Required for setting up a job to use queue hopping. Minimum wait time in minutes
|
|
* until the job can hop to the destination queue. Valid range is 1 to 1440
|
|
* minutes, inclusive.
|
|
*/
|
|
inline int GetWaitMinutes() const{ return m_waitMinutes; }
|
|
|
|
/**
|
|
* Required for setting up a job to use queue hopping. Minimum wait time in minutes
|
|
* until the job can hop to the destination queue. Valid range is 1 to 1440
|
|
* minutes, inclusive.
|
|
*/
|
|
inline bool WaitMinutesHasBeenSet() const { return m_waitMinutesHasBeenSet; }
|
|
|
|
/**
|
|
* Required for setting up a job to use queue hopping. Minimum wait time in minutes
|
|
* until the job can hop to the destination queue. Valid range is 1 to 1440
|
|
* minutes, inclusive.
|
|
*/
|
|
inline void SetWaitMinutes(int value) { m_waitMinutesHasBeenSet = true; m_waitMinutes = value; }
|
|
|
|
/**
|
|
* Required for setting up a job to use queue hopping. Minimum wait time in minutes
|
|
* until the job can hop to the destination queue. Valid range is 1 to 1440
|
|
* minutes, inclusive.
|
|
*/
|
|
inline HopDestination& WithWaitMinutes(int value) { SetWaitMinutes(value); return *this;}
|
|
|
|
private:
|
|
|
|
int m_priority;
|
|
bool m_priorityHasBeenSet;
|
|
|
|
Aws::String m_queue;
|
|
bool m_queueHasBeenSet;
|
|
|
|
int m_waitMinutes;
|
|
bool m_waitMinutesHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace MediaConvert
|
|
} // namespace Aws
|