/** * 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 #include #include #include #include #include namespace Aws { namespace MediaLive { namespace Model { /** * The name of the input

See Also:

AWS * API Reference

*/ class CreateInputRequest : public MediaLiveRequest { public: AWS_MEDIALIVE_API CreateInputRequest(); // 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 "CreateInput"; } AWS_MEDIALIVE_API Aws::String SerializePayload() const override; /** * Destination settings for PUSH type inputs. */ inline const Aws::Vector& GetDestinations() const{ return m_destinations; } /** * Destination settings for PUSH type inputs. */ inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; } /** * Destination settings for PUSH type inputs. */ inline void SetDestinations(const Aws::Vector& value) { m_destinationsHasBeenSet = true; m_destinations = value; } /** * Destination settings for PUSH type inputs. */ inline void SetDestinations(Aws::Vector&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); } /** * Destination settings for PUSH type inputs. */ inline CreateInputRequest& WithDestinations(const Aws::Vector& value) { SetDestinations(value); return *this;} /** * Destination settings for PUSH type inputs. */ inline CreateInputRequest& WithDestinations(Aws::Vector&& value) { SetDestinations(std::move(value)); return *this;} /** * Destination settings for PUSH type inputs. */ inline CreateInputRequest& AddDestinations(const InputDestinationRequest& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; } /** * Destination settings for PUSH type inputs. */ inline CreateInputRequest& AddDestinations(InputDestinationRequest&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; } /** * Settings for the devices. */ inline const Aws::Vector& GetInputDevices() const{ return m_inputDevices; } /** * Settings for the devices. */ inline bool InputDevicesHasBeenSet() const { return m_inputDevicesHasBeenSet; } /** * Settings for the devices. */ inline void SetInputDevices(const Aws::Vector& value) { m_inputDevicesHasBeenSet = true; m_inputDevices = value; } /** * Settings for the devices. */ inline void SetInputDevices(Aws::Vector&& value) { m_inputDevicesHasBeenSet = true; m_inputDevices = std::move(value); } /** * Settings for the devices. */ inline CreateInputRequest& WithInputDevices(const Aws::Vector& value) { SetInputDevices(value); return *this;} /** * Settings for the devices. */ inline CreateInputRequest& WithInputDevices(Aws::Vector&& value) { SetInputDevices(std::move(value)); return *this;} /** * Settings for the devices. */ inline CreateInputRequest& AddInputDevices(const InputDeviceSettings& value) { m_inputDevicesHasBeenSet = true; m_inputDevices.push_back(value); return *this; } /** * Settings for the devices. */ inline CreateInputRequest& AddInputDevices(InputDeviceSettings&& value) { m_inputDevicesHasBeenSet = true; m_inputDevices.push_back(std::move(value)); return *this; } /** * A list of security groups referenced by IDs to attach to the input. */ inline const Aws::Vector& GetInputSecurityGroups() const{ return m_inputSecurityGroups; } /** * A list of security groups referenced by IDs to attach to the input. */ inline bool InputSecurityGroupsHasBeenSet() const { return m_inputSecurityGroupsHasBeenSet; } /** * A list of security groups referenced by IDs to attach to the input. */ inline void SetInputSecurityGroups(const Aws::Vector& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups = value; } /** * A list of security groups referenced by IDs to attach to the input. */ inline void SetInputSecurityGroups(Aws::Vector&& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups = std::move(value); } /** * A list of security groups referenced by IDs to attach to the input. */ inline CreateInputRequest& WithInputSecurityGroups(const Aws::Vector& value) { SetInputSecurityGroups(value); return *this;} /** * A list of security groups referenced by IDs to attach to the input. */ inline CreateInputRequest& WithInputSecurityGroups(Aws::Vector&& value) { SetInputSecurityGroups(std::move(value)); return *this;} /** * A list of security groups referenced by IDs to attach to the input. */ inline CreateInputRequest& AddInputSecurityGroups(const Aws::String& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups.push_back(value); return *this; } /** * A list of security groups referenced by IDs to attach to the input. */ inline CreateInputRequest& AddInputSecurityGroups(Aws::String&& value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups.push_back(std::move(value)); return *this; } /** * A list of security groups referenced by IDs to attach to the input. */ inline CreateInputRequest& AddInputSecurityGroups(const char* value) { m_inputSecurityGroupsHasBeenSet = true; m_inputSecurityGroups.push_back(value); return *this; } /** * A list of the MediaConnect Flows that you want to use in this input. You can * specify as few as one Flow and presently, as many as two. The only requirement * is when you have more than one is that each Flow is in a separate Availability * Zone as this ensures your EML input is redundant to AZ issues. */ inline const Aws::Vector& GetMediaConnectFlows() const{ return m_mediaConnectFlows; } /** * A list of the MediaConnect Flows that you want to use in this input. You can * specify as few as one Flow and presently, as many as two. The only requirement * is when you have more than one is that each Flow is in a separate Availability * Zone as this ensures your EML input is redundant to AZ issues. */ inline bool MediaConnectFlowsHasBeenSet() const { return m_mediaConnectFlowsHasBeenSet; } /** * A list of the MediaConnect Flows that you want to use in this input. You can * specify as few as one Flow and presently, as many as two. The only requirement * is when you have more than one is that each Flow is in a separate Availability * Zone as this ensures your EML input is redundant to AZ issues. */ inline void SetMediaConnectFlows(const Aws::Vector& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows = value; } /** * A list of the MediaConnect Flows that you want to use in this input. You can * specify as few as one Flow and presently, as many as two. The only requirement * is when you have more than one is that each Flow is in a separate Availability * Zone as this ensures your EML input is redundant to AZ issues. */ inline void SetMediaConnectFlows(Aws::Vector&& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows = std::move(value); } /** * A list of the MediaConnect Flows that you want to use in this input. You can * specify as few as one Flow and presently, as many as two. The only requirement * is when you have more than one is that each Flow is in a separate Availability * Zone as this ensures your EML input is redundant to AZ issues. */ inline CreateInputRequest& WithMediaConnectFlows(const Aws::Vector& value) { SetMediaConnectFlows(value); return *this;} /** * A list of the MediaConnect Flows that you want to use in this input. You can * specify as few as one Flow and presently, as many as two. The only requirement * is when you have more than one is that each Flow is in a separate Availability * Zone as this ensures your EML input is redundant to AZ issues. */ inline CreateInputRequest& WithMediaConnectFlows(Aws::Vector&& value) { SetMediaConnectFlows(std::move(value)); return *this;} /** * A list of the MediaConnect Flows that you want to use in this input. You can * specify as few as one Flow and presently, as many as two. The only requirement * is when you have more than one is that each Flow is in a separate Availability * Zone as this ensures your EML input is redundant to AZ issues. */ inline CreateInputRequest& AddMediaConnectFlows(const MediaConnectFlowRequest& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows.push_back(value); return *this; } /** * A list of the MediaConnect Flows that you want to use in this input. You can * specify as few as one Flow and presently, as many as two. The only requirement * is when you have more than one is that each Flow is in a separate Availability * Zone as this ensures your EML input is redundant to AZ issues. */ inline CreateInputRequest& AddMediaConnectFlows(MediaConnectFlowRequest&& value) { m_mediaConnectFlowsHasBeenSet = true; m_mediaConnectFlows.push_back(std::move(value)); return *this; } /** * Name of the input. */ inline const Aws::String& GetName() const{ return m_name; } /** * Name of the input. */ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** * Name of the input. */ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** * Name of the input. */ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** * Name of the input. */ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** * Name of the input. */ inline CreateInputRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** * Name of the input. */ inline CreateInputRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** * Name of the input. */ inline CreateInputRequest& WithName(const char* value) { SetName(value); return *this;} /** * Unique identifier of the request to ensure the request is handled exactly once * in case of retries. */ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** * Unique identifier of the request to ensure the request is handled exactly once * in case of retries. */ inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } /** * Unique identifier of the request to ensure the request is handled exactly once * in case of retries. */ inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } /** * Unique identifier of the request to ensure the request is handled exactly once * in case of retries. */ inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } /** * Unique identifier of the request to ensure the request is handled exactly once * in case of retries. */ inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } /** * Unique identifier of the request to ensure the request is handled exactly once * in case of retries. */ inline CreateInputRequest& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** * Unique identifier of the request to ensure the request is handled exactly once * in case of retries. */ inline CreateInputRequest& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** * Unique identifier of the request to ensure the request is handled exactly once * in case of retries. */ inline CreateInputRequest& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** * The Amazon Resource Name (ARN) of the role this input assumes during and after * creation. */ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** * The Amazon Resource Name (ARN) of the role this input assumes during and after * creation. */ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** * The Amazon Resource Name (ARN) of the role this input assumes during and after * creation. */ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** * The Amazon Resource Name (ARN) of the role this input assumes during and after * creation. */ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** * The Amazon Resource Name (ARN) of the role this input assumes during and after * creation. */ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** * The Amazon Resource Name (ARN) of the role this input assumes during and after * creation. */ inline CreateInputRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** * The Amazon Resource Name (ARN) of the role this input assumes during and after * creation. */ inline CreateInputRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** * The Amazon Resource Name (ARN) of the role this input assumes during and after * creation. */ inline CreateInputRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two * source URLs for redundancy. Only specify sources for PULL type Inputs. Leave * Destinations empty. */ inline const Aws::Vector& GetSources() const{ return m_sources; } /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two * source URLs for redundancy. Only specify sources for PULL type Inputs. Leave * Destinations empty. */ inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; } /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two * source URLs for redundancy. Only specify sources for PULL type Inputs. Leave * Destinations empty. */ inline void SetSources(const Aws::Vector& value) { m_sourcesHasBeenSet = true; m_sources = value; } /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two * source URLs for redundancy. Only specify sources for PULL type Inputs. Leave * Destinations empty. */ inline void SetSources(Aws::Vector&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); } /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two * source URLs for redundancy. Only specify sources for PULL type Inputs. Leave * Destinations empty. */ inline CreateInputRequest& WithSources(const Aws::Vector& value) { SetSources(value); return *this;} /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two * source URLs for redundancy. Only specify sources for PULL type Inputs. Leave * Destinations empty. */ inline CreateInputRequest& WithSources(Aws::Vector&& value) { SetSources(std::move(value)); return *this;} /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two * source URLs for redundancy. Only specify sources for PULL type Inputs. Leave * Destinations empty. */ inline CreateInputRequest& AddSources(const InputSourceRequest& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; } /** * The source URLs for a PULL-type input. Every PULL type input needs exactly two * source URLs for redundancy. Only specify sources for PULL type Inputs. Leave * Destinations empty. */ inline CreateInputRequest& AddSources(InputSourceRequest&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(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 CreateInputRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** * A collection of key-value pairs. */ inline CreateInputRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** * A collection of key-value pairs. */ inline CreateInputRequest& 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 CreateInputRequest& 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 CreateInputRequest& 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 CreateInputRequest& 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 CreateInputRequest& 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 CreateInputRequest& 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 CreateInputRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } inline const InputType& GetType() const{ return m_type; } inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } inline void SetType(const InputType& value) { m_typeHasBeenSet = true; m_type = value; } inline void SetType(InputType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } inline CreateInputRequest& WithType(const InputType& value) { SetType(value); return *this;} inline CreateInputRequest& WithType(InputType&& value) { SetType(std::move(value)); return *this;} inline const InputVpcRequest& GetVpc() const{ return m_vpc; } inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; } inline void SetVpc(const InputVpcRequest& value) { m_vpcHasBeenSet = true; m_vpc = value; } inline void SetVpc(InputVpcRequest&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); } inline CreateInputRequest& WithVpc(const InputVpcRequest& value) { SetVpc(value); return *this;} inline CreateInputRequest& WithVpc(InputVpcRequest&& value) { SetVpc(std::move(value)); return *this;} private: Aws::Vector m_destinations; bool m_destinationsHasBeenSet = false; Aws::Vector m_inputDevices; bool m_inputDevicesHasBeenSet = false; Aws::Vector m_inputSecurityGroups; bool m_inputSecurityGroupsHasBeenSet = false; Aws::Vector m_mediaConnectFlows; bool m_mediaConnectFlowsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Vector m_sources; bool m_sourcesHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; InputType m_type; bool m_typeHasBeenSet = false; InputVpcRequest m_vpc; bool m_vpcHasBeenSet = false; }; } // namespace Model } // namespace MediaLive } // namespace Aws