/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace IVS { namespace Model { /** */ class PutMetadataRequest : public IVSRequest { public: AWS_IVS_API PutMetadataRequest(); // 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 "PutMetadata"; } AWS_IVS_API Aws::String SerializePayload() const override; /** *

ARN of the channel into which metadata is inserted. This channel must have an * active stream.

*/ inline const Aws::String& GetChannelArn() const{ return m_channelArn; } /** *

ARN of the channel into which metadata is inserted. This channel must have an * active stream.

*/ inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; } /** *

ARN of the channel into which metadata is inserted. This channel must have an * active stream.

*/ inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; } /** *

ARN of the channel into which metadata is inserted. This channel must have an * active stream.

*/ inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); } /** *

ARN of the channel into which metadata is inserted. This channel must have an * active stream.

*/ inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); } /** *

ARN of the channel into which metadata is inserted. This channel must have an * active stream.

*/ inline PutMetadataRequest& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;} /** *

ARN of the channel into which metadata is inserted. This channel must have an * active stream.

*/ inline PutMetadataRequest& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;} /** *

ARN of the channel into which metadata is inserted. This channel must have an * active stream.

*/ inline PutMetadataRequest& WithChannelArn(const char* value) { SetChannelArn(value); return *this;} /** *

Metadata to insert into the stream. Maximum: 1 KB per request.

*/ inline const Aws::String& GetMetadata() const{ return m_metadata; } /** *

Metadata to insert into the stream. Maximum: 1 KB per request.

*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *

Metadata to insert into the stream. Maximum: 1 KB per request.

*/ inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *

Metadata to insert into the stream. Maximum: 1 KB per request.

*/ inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *

Metadata to insert into the stream. Maximum: 1 KB per request.

*/ inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); } /** *

Metadata to insert into the stream. Maximum: 1 KB per request.

*/ inline PutMetadataRequest& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;} /** *

Metadata to insert into the stream. Maximum: 1 KB per request.

*/ inline PutMetadataRequest& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;} /** *

Metadata to insert into the stream. Maximum: 1 KB per request.

*/ inline PutMetadataRequest& WithMetadata(const char* value) { SetMetadata(value); return *this;} private: Aws::String m_channelArn; bool m_channelArnHasBeenSet = false; Aws::String m_metadata; bool m_metadataHasBeenSet = false; }; } // namespace Model } // namespace IVS } // namespace Aws