feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,104 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/medialive/MediaLive_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 MediaLive
{
namespace Model
{
/**
* Settings to identify the start of the clip.<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/StartTimecode">AWS
* API Reference</a></p>
*/
class AWS_MEDIALIVE_API StartTimecode
{
public:
StartTimecode();
StartTimecode(Aws::Utils::Json::JsonView jsonValue);
StartTimecode& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The timecode for the frame where you want to start the clip. Optional; if not
* specified, the clip starts at first frame in the file. Enter the timecode as
* HH:MM:SS:FF or HH:MM:SS;FF.
*/
inline const Aws::String& GetTimecode() const{ return m_timecode; }
/**
* The timecode for the frame where you want to start the clip. Optional; if not
* specified, the clip starts at first frame in the file. Enter the timecode as
* HH:MM:SS:FF or HH:MM:SS;FF.
*/
inline bool TimecodeHasBeenSet() const { return m_timecodeHasBeenSet; }
/**
* The timecode for the frame where you want to start the clip. Optional; if not
* specified, the clip starts at first frame in the file. Enter the timecode as
* HH:MM:SS:FF or HH:MM:SS;FF.
*/
inline void SetTimecode(const Aws::String& value) { m_timecodeHasBeenSet = true; m_timecode = value; }
/**
* The timecode for the frame where you want to start the clip. Optional; if not
* specified, the clip starts at first frame in the file. Enter the timecode as
* HH:MM:SS:FF or HH:MM:SS;FF.
*/
inline void SetTimecode(Aws::String&& value) { m_timecodeHasBeenSet = true; m_timecode = std::move(value); }
/**
* The timecode for the frame where you want to start the clip. Optional; if not
* specified, the clip starts at first frame in the file. Enter the timecode as
* HH:MM:SS:FF or HH:MM:SS;FF.
*/
inline void SetTimecode(const char* value) { m_timecodeHasBeenSet = true; m_timecode.assign(value); }
/**
* The timecode for the frame where you want to start the clip. Optional; if not
* specified, the clip starts at first frame in the file. Enter the timecode as
* HH:MM:SS:FF or HH:MM:SS;FF.
*/
inline StartTimecode& WithTimecode(const Aws::String& value) { SetTimecode(value); return *this;}
/**
* The timecode for the frame where you want to start the clip. Optional; if not
* specified, the clip starts at first frame in the file. Enter the timecode as
* HH:MM:SS:FF or HH:MM:SS;FF.
*/
inline StartTimecode& WithTimecode(Aws::String&& value) { SetTimecode(std::move(value)); return *this;}
/**
* The timecode for the frame where you want to start the clip. Optional; if not
* specified, the clip starts at first frame in the file. Enter the timecode as
* HH:MM:SS:FF or HH:MM:SS;FF.
*/
inline StartTimecode& WithTimecode(const char* value) { SetTimecode(value); return *this;}
private:
Aws::String m_timecode;
bool m_timecodeHasBeenSet;
};
} // namespace Model
} // namespace MediaLive
} // namespace Aws