/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include
#include
#include
#include
#include
#include
#include
#include
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace MediaLive
{
namespace Model
{
/**
* The multiplex object.See Also:
AWS
* API Reference
*/
class Multiplex
{
public:
AWS_MEDIALIVE_API Multiplex();
AWS_MEDIALIVE_API Multiplex(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIALIVE_API Multiplex& operator=(Aws::Utils::Json::JsonView jsonValue);
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
/**
* The unique arn of the multiplex.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The unique arn of the multiplex.
*/
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
/**
* The unique arn of the multiplex.
*/
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
/**
* The unique arn of the multiplex.
*/
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
/**
* The unique arn of the multiplex.
*/
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
/**
* The unique arn of the multiplex.
*/
inline Multiplex& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The unique arn of the multiplex.
*/
inline Multiplex& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The unique arn of the multiplex.
*/
inline Multiplex& WithArn(const char* value) { SetArn(value); return *this;}
/**
* A list of availability zones for the multiplex.
*/
inline const Aws::Vector& GetAvailabilityZones() const{ return m_availabilityZones; }
/**
* A list of availability zones for the multiplex.
*/
inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
/**
* A list of availability zones for the multiplex.
*/
inline void SetAvailabilityZones(const Aws::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
/**
* A list of availability zones for the multiplex.
*/
inline void SetAvailabilityZones(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
/**
* A list of availability zones for the multiplex.
*/
inline Multiplex& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;}
/**
* A list of availability zones for the multiplex.
*/
inline Multiplex& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(std::move(value)); return *this;}
/**
* A list of availability zones for the multiplex.
*/
inline Multiplex& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
/**
* A list of availability zones for the multiplex.
*/
inline Multiplex& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
/**
* A list of availability zones for the multiplex.
*/
inline Multiplex& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
/**
* A list of the multiplex output destinations.
*/
inline const Aws::Vector& GetDestinations() const{ return m_destinations; }
/**
* A list of the multiplex output destinations.
*/
inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
/**
* A list of the multiplex output destinations.
*/
inline void SetDestinations(const Aws::Vector& value) { m_destinationsHasBeenSet = true; m_destinations = value; }
/**
* A list of the multiplex output destinations.
*/
inline void SetDestinations(Aws::Vector&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); }
/**
* A list of the multiplex output destinations.
*/
inline Multiplex& WithDestinations(const Aws::Vector& value) { SetDestinations(value); return *this;}
/**
* A list of the multiplex output destinations.
*/
inline Multiplex& WithDestinations(Aws::Vector&& value) { SetDestinations(std::move(value)); return *this;}
/**
* A list of the multiplex output destinations.
*/
inline Multiplex& AddDestinations(const MultiplexOutputDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; }
/**
* A list of the multiplex output destinations.
*/
inline Multiplex& AddDestinations(MultiplexOutputDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; }
/**
* The unique id of the multiplex.
*/
inline const Aws::String& GetId() const{ return m_id; }
/**
* The unique id of the multiplex.
*/
inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
/**
* The unique id of the multiplex.
*/
inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
/**
* The unique id of the multiplex.
*/
inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
/**
* The unique id of the multiplex.
*/
inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
/**
* The unique id of the multiplex.
*/
inline Multiplex& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The unique id of the multiplex.
*/
inline Multiplex& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The unique id of the multiplex.
*/
inline Multiplex& WithId(const char* value) { SetId(value); return *this;}
/**
* Configuration for a multiplex event.
*/
inline const MultiplexSettings& GetMultiplexSettings() const{ return m_multiplexSettings; }
/**
* Configuration for a multiplex event.
*/
inline bool MultiplexSettingsHasBeenSet() const { return m_multiplexSettingsHasBeenSet; }
/**
* Configuration for a multiplex event.
*/
inline void SetMultiplexSettings(const MultiplexSettings& value) { m_multiplexSettingsHasBeenSet = true; m_multiplexSettings = value; }
/**
* Configuration for a multiplex event.
*/
inline void SetMultiplexSettings(MultiplexSettings&& value) { m_multiplexSettingsHasBeenSet = true; m_multiplexSettings = std::move(value); }
/**
* Configuration for a multiplex event.
*/
inline Multiplex& WithMultiplexSettings(const MultiplexSettings& value) { SetMultiplexSettings(value); return *this;}
/**
* Configuration for a multiplex event.
*/
inline Multiplex& WithMultiplexSettings(MultiplexSettings&& value) { SetMultiplexSettings(std::move(value)); return *this;}
/**
* The name of the multiplex.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* The name of the multiplex.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* The name of the multiplex.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* The name of the multiplex.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* The name of the multiplex.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* The name of the multiplex.
*/
inline Multiplex& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the multiplex.
*/
inline Multiplex& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the multiplex.
*/
inline Multiplex& WithName(const char* value) { SetName(value); return *this;}
/**
* The number of currently healthy pipelines.
*/
inline int GetPipelinesRunningCount() const{ return m_pipelinesRunningCount; }
/**
* The number of currently healthy pipelines.
*/
inline bool PipelinesRunningCountHasBeenSet() const { return m_pipelinesRunningCountHasBeenSet; }
/**
* The number of currently healthy pipelines.
*/
inline void SetPipelinesRunningCount(int value) { m_pipelinesRunningCountHasBeenSet = true; m_pipelinesRunningCount = value; }
/**
* The number of currently healthy pipelines.
*/
inline Multiplex& WithPipelinesRunningCount(int value) { SetPipelinesRunningCount(value); return *this;}
/**
* The number of programs in the multiplex.
*/
inline int GetProgramCount() const{ return m_programCount; }
/**
* The number of programs in the multiplex.
*/
inline bool ProgramCountHasBeenSet() const { return m_programCountHasBeenSet; }
/**
* The number of programs in the multiplex.
*/
inline void SetProgramCount(int value) { m_programCountHasBeenSet = true; m_programCount = value; }
/**
* The number of programs in the multiplex.
*/
inline Multiplex& WithProgramCount(int value) { SetProgramCount(value); return *this;}
/**
* The current state of the multiplex.
*/
inline const MultiplexState& GetState() const{ return m_state; }
/**
* The current state of the multiplex.
*/
inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
/**
* The current state of the multiplex.
*/
inline void SetState(const MultiplexState& value) { m_stateHasBeenSet = true; m_state = value; }
/**
* The current state of the multiplex.
*/
inline void SetState(MultiplexState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
/**
* The current state of the multiplex.
*/
inline Multiplex& WithState(const MultiplexState& value) { SetState(value); return *this;}
/**
* The current state of the multiplex.
*/
inline Multiplex& WithState(MultiplexState&& value) { SetState(std::move(value)); return *this;}
/**
* A collection of key-value pairs.
*/
inline const Aws::Map& GetTags() const{ return m_tags; }
/**
* A collection of key-value pairs.
*/
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
/**
* A collection of key-value pairs.
*/
inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; }
/**
* A collection of key-value pairs.
*/
inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
/**
* A collection of key-value pairs.
*/
inline Multiplex& WithTags(const Aws::Map& value) { SetTags(value); return *this;}
/**
* A collection of key-value pairs.
*/
inline Multiplex& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;}
/**
* A collection of key-value pairs.
*/
inline Multiplex& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
/**
* A collection of key-value pairs.
*/
inline Multiplex& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* A collection of key-value pairs.
*/
inline Multiplex& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* A collection of key-value pairs.
*/
inline Multiplex& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* A collection of key-value pairs.
*/
inline Multiplex& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
/**
* A collection of key-value pairs.
*/
inline Multiplex& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
/**
* A collection of key-value pairs.
*/
inline Multiplex& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::String m_arn;
bool m_arnHasBeenSet = false;
Aws::Vector m_availabilityZones;
bool m_availabilityZonesHasBeenSet = false;
Aws::Vector m_destinations;
bool m_destinationsHasBeenSet = false;
Aws::String m_id;
bool m_idHasBeenSet = false;
MultiplexSettings m_multiplexSettings;
bool m_multiplexSettingsHasBeenSet = false;
Aws::String m_name;
bool m_nameHasBeenSet = false;
int m_pipelinesRunningCount;
bool m_pipelinesRunningCountHasBeenSet = false;
int m_programCount;
bool m_programCountHasBeenSet = false;
MultiplexState m_state;
bool m_stateHasBeenSet = false;
Aws::Map m_tags;
bool m_tagsHasBeenSet = false;
};
} // namespace Model
} // namespace MediaLive
} // namespace Aws