/**
* 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 MediaLive
{
namespace Model
{
/**
* A request to create a multiplex.See Also:
AWS
* API Reference
*/
class CreateMultiplexRequest : public MediaLiveRequest
{
public:
AWS_MEDIALIVE_API CreateMultiplexRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "CreateMultiplex"; }
AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
/**
* A list of availability zones for the multiplex. You must specify exactly two.
*/
inline const Aws::Vector& GetAvailabilityZones() const{ return m_availabilityZones; }
/**
* A list of availability zones for the multiplex. You must specify exactly two.
*/
inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
/**
* A list of availability zones for the multiplex. You must specify exactly two.
*/
inline void SetAvailabilityZones(const Aws::Vector& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
/**
* A list of availability zones for the multiplex. You must specify exactly two.
*/
inline void SetAvailabilityZones(Aws::Vector&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
/**
* A list of availability zones for the multiplex. You must specify exactly two.
*/
inline CreateMultiplexRequest& WithAvailabilityZones(const Aws::Vector& value) { SetAvailabilityZones(value); return *this;}
/**
* A list of availability zones for the multiplex. You must specify exactly two.
*/
inline CreateMultiplexRequest& WithAvailabilityZones(Aws::Vector&& value) { SetAvailabilityZones(std::move(value)); return *this;}
/**
* A list of availability zones for the multiplex. You must specify exactly two.
*/
inline CreateMultiplexRequest& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
/**
* A list of availability zones for the multiplex. You must specify exactly two.
*/
inline CreateMultiplexRequest& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
/**
* A list of availability zones for the multiplex. You must specify exactly two.
*/
inline CreateMultiplexRequest& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(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 CreateMultiplexRequest& WithMultiplexSettings(const MultiplexSettings& value) { SetMultiplexSettings(value); return *this;}
/**
* Configuration for a multiplex event.
*/
inline CreateMultiplexRequest& WithMultiplexSettings(MultiplexSettings&& value) { SetMultiplexSettings(std::move(value)); return *this;}
/**
* Name of multiplex.
*/
inline const Aws::String& GetName() const{ return m_name; }
/**
* Name of multiplex.
*/
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
/**
* Name of multiplex.
*/
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
/**
* Name of multiplex.
*/
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
/**
* Name of multiplex.
*/
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
/**
* Name of multiplex.
*/
inline CreateMultiplexRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* Name of multiplex.
*/
inline CreateMultiplexRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* Name of multiplex.
*/
inline CreateMultiplexRequest& WithName(const char* value) { SetName(value); return *this;}
/**
* Unique request ID. This prevents retries from creating multiple
resources.
*/
inline const Aws::String& GetRequestId() const{ return m_requestId; }
/**
* Unique request ID. This prevents retries from creating multiple
resources.
*/
inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
/**
* Unique request ID. This prevents retries from creating multiple
resources.
*/
inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
/**
* Unique request ID. This prevents retries from creating multiple
resources.
*/
inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
/**
* Unique request ID. This prevents retries from creating multiple
resources.
*/
inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
/**
* Unique request ID. This prevents retries from creating multiple
resources.
*/
inline CreateMultiplexRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
/**
* Unique request ID. This prevents retries from creating multiple
resources.
*/
inline CreateMultiplexRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
/**
* Unique request ID. This prevents retries from creating multiple
resources.
*/
inline CreateMultiplexRequest& WithRequestId(const char* value) { SetRequestId(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 CreateMultiplexRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;}
/**
* A collection of key-value pairs.
*/
inline CreateMultiplexRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;}
/**
* A collection of key-value pairs.
*/
inline CreateMultiplexRequest& 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 CreateMultiplexRequest& 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 CreateMultiplexRequest& 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 CreateMultiplexRequest& 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 CreateMultiplexRequest& 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 CreateMultiplexRequest& 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 CreateMultiplexRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
private:
Aws::Vector m_availabilityZones;
bool m_availabilityZonesHasBeenSet = false;
MultiplexSettings m_multiplexSettings;
bool m_multiplexSettingsHasBeenSet = false;
Aws::String m_name;
bool m_nameHasBeenSet = false;
Aws::String m_requestId;
bool m_requestIdHasBeenSet = false;
Aws::Map m_tags;
bool m_tagsHasBeenSet = false;
};
} // namespace Model
} // namespace MediaLive
} // namespace Aws