/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace MediaLive { namespace Model { /** * A request to create a partner input

See Also:

AWS * API Reference

*/ class CreatePartnerInputRequest : public MediaLiveRequest { public: AWS_MEDIALIVE_API CreatePartnerInputRequest(); // 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 "CreatePartnerInput"; } AWS_MEDIALIVE_API Aws::String SerializePayload() const override; /** * Unique ID of the input. */ inline const Aws::String& GetInputId() const{ return m_inputId; } /** * Unique ID of the input. */ inline bool InputIdHasBeenSet() const { return m_inputIdHasBeenSet; } /** * Unique ID of the input. */ inline void SetInputId(const Aws::String& value) { m_inputIdHasBeenSet = true; m_inputId = value; } /** * Unique ID of the input. */ inline void SetInputId(Aws::String&& value) { m_inputIdHasBeenSet = true; m_inputId = std::move(value); } /** * Unique ID of the input. */ inline void SetInputId(const char* value) { m_inputIdHasBeenSet = true; m_inputId.assign(value); } /** * Unique ID of the input. */ inline CreatePartnerInputRequest& WithInputId(const Aws::String& value) { SetInputId(value); return *this;} /** * Unique ID of the input. */ inline CreatePartnerInputRequest& WithInputId(Aws::String&& value) { SetInputId(std::move(value)); return *this;} /** * Unique ID of the input. */ inline CreatePartnerInputRequest& WithInputId(const char* value) { SetInputId(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 CreatePartnerInputRequest& 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 CreatePartnerInputRequest& 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 CreatePartnerInputRequest& 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 CreatePartnerInputRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** * A collection of key-value pairs. */ inline CreatePartnerInputRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** * A collection of key-value pairs. */ inline CreatePartnerInputRequest& 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 CreatePartnerInputRequest& 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 CreatePartnerInputRequest& 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 CreatePartnerInputRequest& 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 CreatePartnerInputRequest& 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 CreatePartnerInputRequest& 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 CreatePartnerInputRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_inputId; bool m_inputIdHasBeenSet = false; Aws::String m_requestId; bool m_requestIdHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace MediaLive } // namespace Aws