/** * 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 MediaTailor { namespace Model { /** *

Splice insert message configuration.

See Also:

AWS * API Reference

*/ class SpliceInsertMessage { public: AWS_MEDIATAILOR_API SpliceInsertMessage(); AWS_MEDIATAILOR_API SpliceInsertMessage(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIATAILOR_API SpliceInsertMessage& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIATAILOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

This is written to splice_insert.avail_num, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline int GetAvailNum() const{ return m_availNum; } /** *

This is written to splice_insert.avail_num, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline bool AvailNumHasBeenSet() const { return m_availNumHasBeenSet; } /** *

This is written to splice_insert.avail_num, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline void SetAvailNum(int value) { m_availNumHasBeenSet = true; m_availNum = value; } /** *

This is written to splice_insert.avail_num, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline SpliceInsertMessage& WithAvailNum(int value) { SetAvailNum(value); return *this;} /** *

This is written to splice_insert.avails_expected, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline int GetAvailsExpected() const{ return m_availsExpected; } /** *

This is written to splice_insert.avails_expected, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline bool AvailsExpectedHasBeenSet() const { return m_availsExpectedHasBeenSet; } /** *

This is written to splice_insert.avails_expected, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline void SetAvailsExpected(int value) { m_availsExpectedHasBeenSet = true; m_availsExpected = value; } /** *

This is written to splice_insert.avails_expected, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline SpliceInsertMessage& WithAvailsExpected(int value) { SetAvailsExpected(value); return *this;} /** *

This is written to splice_insert.splice_event_id, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 1.

*/ inline int GetSpliceEventId() const{ return m_spliceEventId; } /** *

This is written to splice_insert.splice_event_id, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 1.

*/ inline bool SpliceEventIdHasBeenSet() const { return m_spliceEventIdHasBeenSet; } /** *

This is written to splice_insert.splice_event_id, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 1.

*/ inline void SetSpliceEventId(int value) { m_spliceEventIdHasBeenSet = true; m_spliceEventId = value; } /** *

This is written to splice_insert.splice_event_id, as defined in * section 9.7.3.1 of the SCTE-35 specification. The default value is * 1.

*/ inline SpliceInsertMessage& WithSpliceEventId(int value) { SetSpliceEventId(value); return *this;} /** *

This is written to splice_insert.unique_program_id, as defined * in section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline int GetUniqueProgramId() const{ return m_uniqueProgramId; } /** *

This is written to splice_insert.unique_program_id, as defined * in section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline bool UniqueProgramIdHasBeenSet() const { return m_uniqueProgramIdHasBeenSet; } /** *

This is written to splice_insert.unique_program_id, as defined * in section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline void SetUniqueProgramId(int value) { m_uniqueProgramIdHasBeenSet = true; m_uniqueProgramId = value; } /** *

This is written to splice_insert.unique_program_id, as defined * in section 9.7.3.1 of the SCTE-35 specification. The default value is * 0. Values must be between 0 and 256, * inclusive.

*/ inline SpliceInsertMessage& WithUniqueProgramId(int value) { SetUniqueProgramId(value); return *this;} private: int m_availNum; bool m_availNumHasBeenSet = false; int m_availsExpected; bool m_availsExpectedHasBeenSet = false; int m_spliceEventId; bool m_spliceEventIdHasBeenSet = false; int m_uniqueProgramId; bool m_uniqueProgramIdHasBeenSet = false; }; } // namespace Model } // namespace MediaTailor } // namespace Aws