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,125 @@
/**
* 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/medialive/model/InputLocation.h>
#include <aws/medialive/model/AvailBlankingState.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaLive
{
namespace Model
{
/**
* Avail Blanking<p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/medialive-2017-10-14/AvailBlanking">AWS
* API Reference</a></p>
*/
class AWS_MEDIALIVE_API AvailBlanking
{
public:
AvailBlanking();
AvailBlanking(Aws::Utils::Json::JsonView jsonValue);
AvailBlanking& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* Blanking image to be used. Leave empty for solid black. Only bmp and png images
* are supported.
*/
inline const InputLocation& GetAvailBlankingImage() const{ return m_availBlankingImage; }
/**
* Blanking image to be used. Leave empty for solid black. Only bmp and png images
* are supported.
*/
inline bool AvailBlankingImageHasBeenSet() const { return m_availBlankingImageHasBeenSet; }
/**
* Blanking image to be used. Leave empty for solid black. Only bmp and png images
* are supported.
*/
inline void SetAvailBlankingImage(const InputLocation& value) { m_availBlankingImageHasBeenSet = true; m_availBlankingImage = value; }
/**
* Blanking image to be used. Leave empty for solid black. Only bmp and png images
* are supported.
*/
inline void SetAvailBlankingImage(InputLocation&& value) { m_availBlankingImageHasBeenSet = true; m_availBlankingImage = std::move(value); }
/**
* Blanking image to be used. Leave empty for solid black. Only bmp and png images
* are supported.
*/
inline AvailBlanking& WithAvailBlankingImage(const InputLocation& value) { SetAvailBlankingImage(value); return *this;}
/**
* Blanking image to be used. Leave empty for solid black. Only bmp and png images
* are supported.
*/
inline AvailBlanking& WithAvailBlankingImage(InputLocation&& value) { SetAvailBlankingImage(std::move(value)); return *this;}
/**
* When set to enabled, causes video, audio and captions to be blanked when
* insertion metadata is added.
*/
inline const AvailBlankingState& GetState() const{ return m_state; }
/**
* When set to enabled, causes video, audio and captions to be blanked when
* insertion metadata is added.
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* When set to enabled, causes video, audio and captions to be blanked when
* insertion metadata is added.
*/
inline void SetState(const AvailBlankingState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* When set to enabled, causes video, audio and captions to be blanked when
* insertion metadata is added.
*/
inline void SetState(AvailBlankingState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* When set to enabled, causes video, audio and captions to be blanked when
* insertion metadata is added.
*/
inline AvailBlanking& WithState(const AvailBlankingState& value) { SetState(value); return *this;}
/**
* When set to enabled, causes video, audio and captions to be blanked when
* insertion metadata is added.
*/
inline AvailBlanking& WithState(AvailBlankingState&& value) { SetState(std::move(value)); return *this;}
private:
InputLocation m_availBlankingImage;
bool m_availBlankingImageHasBeenSet;
AvailBlankingState m_state;
bool m_stateHasBeenSet;
};
} // namespace Model
} // namespace MediaLive
} // namespace Aws