154 lines
5.2 KiB
C++
154 lines
5.2 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/ivs/IVS_EXPORTS.h>
|
|
#include <aws/ivs/IVSRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSMap.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace IVS
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_IVS_API CreateStreamKeyRequest : public IVSRequest
|
|
{
|
|
public:
|
|
CreateStreamKeyRequest();
|
|
|
|
// 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 "CreateStreamKey"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
|
|
/**
|
|
* <p>ARN of the channel for which to create the stream key.</p>
|
|
*/
|
|
inline const Aws::String& GetChannelArn() const{ return m_channelArn; }
|
|
|
|
/**
|
|
* <p>ARN of the channel for which to create the stream key.</p>
|
|
*/
|
|
inline bool ChannelArnHasBeenSet() const { return m_channelArnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>ARN of the channel for which to create the stream key.</p>
|
|
*/
|
|
inline void SetChannelArn(const Aws::String& value) { m_channelArnHasBeenSet = true; m_channelArn = value; }
|
|
|
|
/**
|
|
* <p>ARN of the channel for which to create the stream key.</p>
|
|
*/
|
|
inline void SetChannelArn(Aws::String&& value) { m_channelArnHasBeenSet = true; m_channelArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>ARN of the channel for which to create the stream key.</p>
|
|
*/
|
|
inline void SetChannelArn(const char* value) { m_channelArnHasBeenSet = true; m_channelArn.assign(value); }
|
|
|
|
/**
|
|
* <p>ARN of the channel for which to create the stream key.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& WithChannelArn(const Aws::String& value) { SetChannelArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>ARN of the channel for which to create the stream key.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& WithChannelArn(Aws::String&& value) { SetChannelArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>ARN of the channel for which to create the stream key.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& WithChannelArn(const char* value) { SetChannelArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
|
|
|
|
/**
|
|
* <p>See <a>Channel$tags</a>.</p>
|
|
*/
|
|
inline CreateStreamKeyRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_channelArn;
|
|
bool m_channelArnHasBeenSet;
|
|
|
|
Aws::Map<Aws::String, Aws::String> m_tags;
|
|
bool m_tagsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IVS
|
|
} // namespace Aws
|