feat(hos_client_create, hos_client_destory): 多次调用destory不会导致重复释放

This commit is contained in:
彭宣正
2020-12-14 17:24:58 +08:00
parent 505d529c32
commit 10b370e486
55976 changed files with 8544395 additions and 2 deletions

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/AccessDeniedException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
AccessDeniedException::AccessDeniedException() :
m_exceptionMessageHasBeenSet(false)
{
}
AccessDeniedException::AccessDeniedException(JsonView jsonValue) :
m_exceptionMessageHasBeenSet(false)
{
*this = jsonValue;
}
AccessDeniedException& AccessDeniedException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("exceptionMessage"))
{
m_exceptionMessage = jsonValue.GetString("exceptionMessage");
m_exceptionMessageHasBeenSet = true;
}
return *this;
}
JsonValue AccessDeniedException::Jsonize() const
{
JsonValue payload;
if(m_exceptionMessageHasBeenSet)
{
payload.WithString("exceptionMessage", m_exceptionMessage);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,89 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/BatchError.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
BatchError::BatchError() :
m_arnHasBeenSet(false),
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
}
BatchError::BatchError(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_codeHasBeenSet(false),
m_messageHasBeenSet(false)
{
*this = jsonValue;
}
BatchError& BatchError::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("code"))
{
m_code = jsonValue.GetString("code");
m_codeHasBeenSet = true;
}
if(jsonValue.ValueExists("message"))
{
m_message = jsonValue.GetString("message");
m_messageHasBeenSet = true;
}
return *this;
}
JsonValue BatchError::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_codeHasBeenSet)
{
payload.WithString("code", m_code);
}
if(m_messageHasBeenSet)
{
payload.WithString("message", m_message);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/BatchGetChannelRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
BatchGetChannelRequest::BatchGetChannelRequest() :
m_arnsHasBeenSet(false)
{
}
Aws::String BatchGetChannelRequest::SerializePayload() const
{
JsonValue payload;
if(m_arnsHasBeenSet)
{
Array<JsonValue> arnsJsonList(m_arns.size());
for(unsigned arnsIndex = 0; arnsIndex < arnsJsonList.GetLength(); ++arnsIndex)
{
arnsJsonList[arnsIndex].AsString(m_arns[arnsIndex]);
}
payload.WithArray("arns", std::move(arnsJsonList));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,52 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/BatchGetChannelResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
BatchGetChannelResult::BatchGetChannelResult()
{
}
BatchGetChannelResult::BatchGetChannelResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
BatchGetChannelResult& BatchGetChannelResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("channels"))
{
Array<JsonView> channelsJsonList = jsonValue.GetArray("channels");
for(unsigned channelsIndex = 0; channelsIndex < channelsJsonList.GetLength(); ++channelsIndex)
{
m_channels.push_back(channelsJsonList[channelsIndex].AsObject());
}
}
if(jsonValue.ValueExists("errors"))
{
Array<JsonView> errorsJsonList = jsonValue.GetArray("errors");
for(unsigned errorsIndex = 0; errorsIndex < errorsJsonList.GetLength(); ++errorsIndex)
{
m_errors.push_back(errorsJsonList[errorsIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/BatchGetStreamKeyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
BatchGetStreamKeyRequest::BatchGetStreamKeyRequest() :
m_arnsHasBeenSet(false)
{
}
Aws::String BatchGetStreamKeyRequest::SerializePayload() const
{
JsonValue payload;
if(m_arnsHasBeenSet)
{
Array<JsonValue> arnsJsonList(m_arns.size());
for(unsigned arnsIndex = 0; arnsIndex < arnsJsonList.GetLength(); ++arnsIndex)
{
arnsJsonList[arnsIndex].AsString(m_arns[arnsIndex]);
}
payload.WithArray("arns", std::move(arnsJsonList));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,52 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/BatchGetStreamKeyResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
BatchGetStreamKeyResult::BatchGetStreamKeyResult()
{
}
BatchGetStreamKeyResult::BatchGetStreamKeyResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
BatchGetStreamKeyResult& BatchGetStreamKeyResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("streamKeys"))
{
Array<JsonView> streamKeysJsonList = jsonValue.GetArray("streamKeys");
for(unsigned streamKeysIndex = 0; streamKeysIndex < streamKeysJsonList.GetLength(); ++streamKeysIndex)
{
m_streamKeys.push_back(streamKeysJsonList[streamKeysIndex].AsObject());
}
}
if(jsonValue.ValueExists("errors"))
{
Array<JsonView> errorsJsonList = jsonValue.GetArray("errors");
for(unsigned errorsIndex = 0; errorsIndex < errorsJsonList.GetLength(); ++errorsIndex)
{
m_errors.push_back(errorsJsonList[errorsIndex].AsObject());
}
}
return *this;
}

View File

@@ -0,0 +1,176 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/Channel.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
Channel::Channel() :
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_latencyMode(ChannelLatencyMode::NOT_SET),
m_latencyModeHasBeenSet(false),
m_type(ChannelType::NOT_SET),
m_typeHasBeenSet(false),
m_ingestEndpointHasBeenSet(false),
m_playbackUrlHasBeenSet(false),
m_authorized(false),
m_authorizedHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Channel::Channel(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_latencyMode(ChannelLatencyMode::NOT_SET),
m_latencyModeHasBeenSet(false),
m_type(ChannelType::NOT_SET),
m_typeHasBeenSet(false),
m_ingestEndpointHasBeenSet(false),
m_playbackUrlHasBeenSet(false),
m_authorized(false),
m_authorizedHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
Channel& Channel::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("name"))
{
m_name = jsonValue.GetString("name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("latencyMode"))
{
m_latencyMode = ChannelLatencyModeMapper::GetChannelLatencyModeForName(jsonValue.GetString("latencyMode"));
m_latencyModeHasBeenSet = true;
}
if(jsonValue.ValueExists("type"))
{
m_type = ChannelTypeMapper::GetChannelTypeForName(jsonValue.GetString("type"));
m_typeHasBeenSet = true;
}
if(jsonValue.ValueExists("ingestEndpoint"))
{
m_ingestEndpoint = jsonValue.GetString("ingestEndpoint");
m_ingestEndpointHasBeenSet = true;
}
if(jsonValue.ValueExists("playbackUrl"))
{
m_playbackUrl = jsonValue.GetString("playbackUrl");
m_playbackUrlHasBeenSet = true;
}
if(jsonValue.ValueExists("authorized"))
{
m_authorized = jsonValue.GetBool("authorized");
m_authorizedHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue Channel::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_latencyModeHasBeenSet)
{
payload.WithString("latencyMode", ChannelLatencyModeMapper::GetNameForChannelLatencyMode(m_latencyMode));
}
if(m_typeHasBeenSet)
{
payload.WithString("type", ChannelTypeMapper::GetNameForChannelType(m_type));
}
if(m_ingestEndpointHasBeenSet)
{
payload.WithString("ingestEndpoint", m_ingestEndpoint);
}
if(m_playbackUrlHasBeenSet)
{
payload.WithString("playbackUrl", m_playbackUrl);
}
if(m_authorizedHasBeenSet)
{
payload.WithBool("authorized", m_authorized);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ChannelLatencyMode.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
namespace ChannelLatencyModeMapper
{
static const int NORMAL_HASH = HashingUtils::HashString("NORMAL");
static const int LOW_HASH = HashingUtils::HashString("LOW");
ChannelLatencyMode GetChannelLatencyModeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == NORMAL_HASH)
{
return ChannelLatencyMode::NORMAL;
}
else if (hashCode == LOW_HASH)
{
return ChannelLatencyMode::LOW;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ChannelLatencyMode>(hashCode);
}
return ChannelLatencyMode::NOT_SET;
}
Aws::String GetNameForChannelLatencyMode(ChannelLatencyMode enumValue)
{
switch(enumValue)
{
case ChannelLatencyMode::NORMAL:
return "NORMAL";
case ChannelLatencyMode::LOW:
return "LOW";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ChannelLatencyModeMapper
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ChannelNotBroadcasting.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
ChannelNotBroadcasting::ChannelNotBroadcasting() :
m_exceptionMessageHasBeenSet(false)
{
}
ChannelNotBroadcasting::ChannelNotBroadcasting(JsonView jsonValue) :
m_exceptionMessageHasBeenSet(false)
{
*this = jsonValue;
}
ChannelNotBroadcasting& ChannelNotBroadcasting::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("exceptionMessage"))
{
m_exceptionMessage = jsonValue.GetString("exceptionMessage");
m_exceptionMessageHasBeenSet = true;
}
return *this;
}
JsonValue ChannelNotBroadcasting::Jsonize() const
{
JsonValue payload;
if(m_exceptionMessageHasBeenSet)
{
payload.WithString("exceptionMessage", m_exceptionMessage);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,130 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ChannelSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
ChannelSummary::ChannelSummary() :
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_latencyMode(ChannelLatencyMode::NOT_SET),
m_latencyModeHasBeenSet(false),
m_authorized(false),
m_authorizedHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
ChannelSummary::ChannelSummary(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_latencyMode(ChannelLatencyMode::NOT_SET),
m_latencyModeHasBeenSet(false),
m_authorized(false),
m_authorizedHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
ChannelSummary& ChannelSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("name"))
{
m_name = jsonValue.GetString("name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("latencyMode"))
{
m_latencyMode = ChannelLatencyModeMapper::GetChannelLatencyModeForName(jsonValue.GetString("latencyMode"));
m_latencyModeHasBeenSet = true;
}
if(jsonValue.ValueExists("authorized"))
{
m_authorized = jsonValue.GetBool("authorized");
m_authorizedHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue ChannelSummary::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_latencyModeHasBeenSet)
{
payload.WithString("latencyMode", ChannelLatencyModeMapper::GetNameForChannelLatencyMode(m_latencyMode));
}
if(m_authorizedHasBeenSet)
{
payload.WithBool("authorized", m_authorized);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ChannelType.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
namespace ChannelTypeMapper
{
static const int BASIC_HASH = HashingUtils::HashString("BASIC");
static const int STANDARD_HASH = HashingUtils::HashString("STANDARD");
ChannelType GetChannelTypeForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == BASIC_HASH)
{
return ChannelType::BASIC;
}
else if (hashCode == STANDARD_HASH)
{
return ChannelType::STANDARD;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<ChannelType>(hashCode);
}
return ChannelType::NOT_SET;
}
Aws::String GetNameForChannelType(ChannelType enumValue)
{
switch(enumValue)
{
case ChannelType::BASIC:
return "BASIC";
case ChannelType::STANDARD:
return "STANDARD";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace ChannelTypeMapper
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ConflictException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
ConflictException::ConflictException() :
m_exceptionMessageHasBeenSet(false)
{
}
ConflictException::ConflictException(JsonView jsonValue) :
m_exceptionMessageHasBeenSet(false)
{
*this = jsonValue;
}
ConflictException& ConflictException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("exceptionMessage"))
{
m_exceptionMessage = jsonValue.GetString("exceptionMessage");
m_exceptionMessageHasBeenSet = true;
}
return *this;
}
JsonValue ConflictException::Jsonize() const
{
JsonValue payload;
if(m_exceptionMessageHasBeenSet)
{
payload.WithString("exceptionMessage", m_exceptionMessage);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,69 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/CreateChannelRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateChannelRequest::CreateChannelRequest() :
m_nameHasBeenSet(false),
m_latencyMode(ChannelLatencyMode::NOT_SET),
m_latencyModeHasBeenSet(false),
m_type(ChannelType::NOT_SET),
m_typeHasBeenSet(false),
m_authorized(false),
m_authorizedHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateChannelRequest::SerializePayload() const
{
JsonValue payload;
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_latencyModeHasBeenSet)
{
payload.WithString("latencyMode", ChannelLatencyModeMapper::GetNameForChannelLatencyMode(m_latencyMode));
}
if(m_typeHasBeenSet)
{
payload.WithString("type", ChannelTypeMapper::GetNameForChannelType(m_type));
}
if(m_authorizedHasBeenSet)
{
payload.WithBool("authorized", m_authorized);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,46 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/CreateChannelResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateChannelResult::CreateChannelResult()
{
}
CreateChannelResult::CreateChannelResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateChannelResult& CreateChannelResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("channel"))
{
m_channel = jsonValue.GetObject("channel");
}
if(jsonValue.ValueExists("streamKey"))
{
m_streamKey = jsonValue.GetObject("streamKey");
}
return *this;
}

View File

@@ -0,0 +1,47 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/CreateStreamKeyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
CreateStreamKeyRequest::CreateStreamKeyRequest() :
m_channelArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String CreateStreamKeyRequest::SerializePayload() const
{
JsonValue payload;
if(m_channelArnHasBeenSet)
{
payload.WithString("channelArn", m_channelArn);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/CreateStreamKeyResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
CreateStreamKeyResult::CreateStreamKeyResult()
{
}
CreateStreamKeyResult::CreateStreamKeyResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
CreateStreamKeyResult& CreateStreamKeyResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("streamKey"))
{
m_streamKey = jsonValue.GetObject("streamKey");
}
return *this;
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/DeleteChannelRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteChannelRequest::DeleteChannelRequest() :
m_arnHasBeenSet(false)
{
}
Aws::String DeleteChannelRequest::SerializePayload() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/DeletePlaybackKeyPairRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeletePlaybackKeyPairRequest::DeletePlaybackKeyPairRequest() :
m_arnHasBeenSet(false)
{
}
Aws::String DeletePlaybackKeyPairRequest::SerializePayload() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/DeletePlaybackKeyPairResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
DeletePlaybackKeyPairResult::DeletePlaybackKeyPairResult()
{
}
DeletePlaybackKeyPairResult::DeletePlaybackKeyPairResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
DeletePlaybackKeyPairResult& DeletePlaybackKeyPairResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/DeleteStreamKeyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
DeleteStreamKeyRequest::DeleteStreamKeyRequest() :
m_arnHasBeenSet(false)
{
}
Aws::String DeleteStreamKeyRequest::SerializePayload() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/GetChannelRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetChannelRequest::GetChannelRequest() :
m_arnHasBeenSet(false)
{
}
Aws::String GetChannelRequest::SerializePayload() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/GetChannelResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetChannelResult::GetChannelResult()
{
}
GetChannelResult::GetChannelResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetChannelResult& GetChannelResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("channel"))
{
m_channel = jsonValue.GetObject("channel");
}
return *this;
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/GetPlaybackKeyPairRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetPlaybackKeyPairRequest::GetPlaybackKeyPairRequest() :
m_arnHasBeenSet(false)
{
}
Aws::String GetPlaybackKeyPairRequest::SerializePayload() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/GetPlaybackKeyPairResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetPlaybackKeyPairResult::GetPlaybackKeyPairResult()
{
}
GetPlaybackKeyPairResult::GetPlaybackKeyPairResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetPlaybackKeyPairResult& GetPlaybackKeyPairResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("keyPair"))
{
m_keyPair = jsonValue.GetObject("keyPair");
}
return *this;
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/GetStreamKeyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetStreamKeyRequest::GetStreamKeyRequest() :
m_arnHasBeenSet(false)
{
}
Aws::String GetStreamKeyRequest::SerializePayload() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/GetStreamKeyResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetStreamKeyResult::GetStreamKeyResult()
{
}
GetStreamKeyResult::GetStreamKeyResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetStreamKeyResult& GetStreamKeyResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("streamKey"))
{
m_streamKey = jsonValue.GetObject("streamKey");
}
return *this;
}

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/GetStreamRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
GetStreamRequest::GetStreamRequest() :
m_channelArnHasBeenSet(false)
{
}
Aws::String GetStreamRequest::SerializePayload() const
{
JsonValue payload;
if(m_channelArnHasBeenSet)
{
payload.WithString("channelArn", m_channelArn);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/GetStreamResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
GetStreamResult::GetStreamResult()
{
}
GetStreamResult::GetStreamResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
GetStreamResult& GetStreamResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("stream"))
{
m_stream = jsonValue.GetObject("stream");
}
return *this;
}

View File

@@ -0,0 +1,54 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ImportPlaybackKeyPairRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ImportPlaybackKeyPairRequest::ImportPlaybackKeyPairRequest() :
m_publicKeyMaterialHasBeenSet(false),
m_nameHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String ImportPlaybackKeyPairRequest::SerializePayload() const
{
JsonValue payload;
if(m_publicKeyMaterialHasBeenSet)
{
payload.WithString("publicKeyMaterial", m_publicKeyMaterial);
}
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ImportPlaybackKeyPairResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ImportPlaybackKeyPairResult::ImportPlaybackKeyPairResult()
{
}
ImportPlaybackKeyPairResult::ImportPlaybackKeyPairResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ImportPlaybackKeyPairResult& ImportPlaybackKeyPairResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("keyPair"))
{
m_keyPair = jsonValue.GetObject("keyPair");
}
return *this;
}

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/InternalServerException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
InternalServerException::InternalServerException() :
m_exceptionMessageHasBeenSet(false)
{
}
InternalServerException::InternalServerException(JsonView jsonValue) :
m_exceptionMessageHasBeenSet(false)
{
*this = jsonValue;
}
InternalServerException& InternalServerException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("exceptionMessage"))
{
m_exceptionMessage = jsonValue.GetString("exceptionMessage");
m_exceptionMessageHasBeenSet = true;
}
return *this;
}
JsonValue InternalServerException::Jsonize() const
{
JsonValue payload;
if(m_exceptionMessageHasBeenSet)
{
payload.WithString("exceptionMessage", m_exceptionMessage);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ListChannelsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListChannelsRequest::ListChannelsRequest() :
m_filterByNameHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListChannelsRequest::SerializePayload() const
{
JsonValue payload;
if(m_filterByNameHasBeenSet)
{
payload.WithString("filterByName", m_filterByName);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("maxResults", m_maxResults);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ListChannelsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListChannelsResult::ListChannelsResult()
{
}
ListChannelsResult::ListChannelsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListChannelsResult& ListChannelsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("channels"))
{
Array<JsonView> channelsJsonList = jsonValue.GetArray("channels");
for(unsigned channelsIndex = 0; channelsIndex < channelsJsonList.GetLength(); ++channelsIndex)
{
m_channels.push_back(channelsJsonList[channelsIndex].AsObject());
}
}
if(jsonValue.ValueExists("nextToken"))
{
m_nextToken = jsonValue.GetString("nextToken");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ListPlaybackKeyPairsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListPlaybackKeyPairsRequest::ListPlaybackKeyPairsRequest() :
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListPlaybackKeyPairsRequest::SerializePayload() const
{
JsonValue payload;
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("maxResults", m_maxResults);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ListPlaybackKeyPairsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListPlaybackKeyPairsResult::ListPlaybackKeyPairsResult()
{
}
ListPlaybackKeyPairsResult::ListPlaybackKeyPairsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListPlaybackKeyPairsResult& ListPlaybackKeyPairsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("keyPairs"))
{
Array<JsonView> keyPairsJsonList = jsonValue.GetArray("keyPairs");
for(unsigned keyPairsIndex = 0; keyPairsIndex < keyPairsJsonList.GetLength(); ++keyPairsIndex)
{
m_keyPairs.push_back(keyPairsJsonList[keyPairsIndex].AsObject());
}
}
if(jsonValue.ValueExists("nextToken"))
{
m_nextToken = jsonValue.GetString("nextToken");
}
return *this;
}

View File

@@ -0,0 +1,50 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ListStreamKeysRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListStreamKeysRequest::ListStreamKeysRequest() :
m_channelArnHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListStreamKeysRequest::SerializePayload() const
{
JsonValue payload;
if(m_channelArnHasBeenSet)
{
payload.WithString("channelArn", m_channelArn);
}
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("maxResults", m_maxResults);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ListStreamKeysResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListStreamKeysResult::ListStreamKeysResult()
{
}
ListStreamKeysResult::ListStreamKeysResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListStreamKeysResult& ListStreamKeysResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("streamKeys"))
{
Array<JsonView> streamKeysJsonList = jsonValue.GetArray("streamKeys");
for(unsigned streamKeysIndex = 0; streamKeysIndex < streamKeysJsonList.GetLength(); ++streamKeysIndex)
{
m_streamKeys.push_back(streamKeysJsonList[streamKeysIndex].AsObject());
}
}
if(jsonValue.ValueExists("nextToken"))
{
m_nextToken = jsonValue.GetString("nextToken");
}
return *this;
}

View File

@@ -0,0 +1,43 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ListStreamsRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListStreamsRequest::ListStreamsRequest() :
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListStreamsRequest::SerializePayload() const
{
JsonValue payload;
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("maxResults", m_maxResults);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ListStreamsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListStreamsResult::ListStreamsResult()
{
}
ListStreamsResult::ListStreamsResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListStreamsResult& ListStreamsResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("streams"))
{
Array<JsonView> streamsJsonList = jsonValue.GetArray("streams");
for(unsigned streamsIndex = 0; streamsIndex < streamsJsonList.GetLength(); ++streamsIndex)
{
m_streams.push_back(streamsJsonList[streamsIndex].AsObject());
}
}
if(jsonValue.ValueExists("nextToken"))
{
m_nextToken = jsonValue.GetString("nextToken");
}
return *this;
}

View File

@@ -0,0 +1,44 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ListTagsForResourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
ListTagsForResourceRequest::ListTagsForResourceRequest() :
m_resourceArnHasBeenSet(false),
m_nextTokenHasBeenSet(false),
m_maxResults(0),
m_maxResultsHasBeenSet(false)
{
}
Aws::String ListTagsForResourceRequest::SerializePayload() const
{
JsonValue payload;
if(m_nextTokenHasBeenSet)
{
payload.WithString("nextToken", m_nextToken);
}
if(m_maxResultsHasBeenSet)
{
payload.WithInteger("maxResults", m_maxResults);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,49 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ListTagsForResourceResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
ListTagsForResourceResult::ListTagsForResourceResult()
{
}
ListTagsForResourceResult::ListTagsForResourceResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
ListTagsForResourceResult& ListTagsForResourceResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
}
if(jsonValue.ValueExists("nextToken"))
{
m_nextToken = jsonValue.GetString("nextToken");
}
return *this;
}

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/PendingVerification.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
PendingVerification::PendingVerification() :
m_exceptionMessageHasBeenSet(false)
{
}
PendingVerification::PendingVerification(JsonView jsonValue) :
m_exceptionMessageHasBeenSet(false)
{
*this = jsonValue;
}
PendingVerification& PendingVerification::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("exceptionMessage"))
{
m_exceptionMessage = jsonValue.GetString("exceptionMessage");
m_exceptionMessageHasBeenSet = true;
}
return *this;
}
JsonValue PendingVerification::Jsonize() const
{
JsonValue payload;
if(m_exceptionMessageHasBeenSet)
{
payload.WithString("exceptionMessage", m_exceptionMessage);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,112 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/PlaybackKeyPair.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
PlaybackKeyPair::PlaybackKeyPair() :
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_fingerprintHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
PlaybackKeyPair::PlaybackKeyPair(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_fingerprintHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
PlaybackKeyPair& PlaybackKeyPair::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("name"))
{
m_name = jsonValue.GetString("name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("fingerprint"))
{
m_fingerprint = jsonValue.GetString("fingerprint");
m_fingerprintHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue PlaybackKeyPair::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_fingerprintHasBeenSet)
{
payload.WithString("fingerprint", m_fingerprint);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/PlaybackKeyPairSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
PlaybackKeyPairSummary::PlaybackKeyPairSummary() :
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
PlaybackKeyPairSummary::PlaybackKeyPairSummary(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
PlaybackKeyPairSummary& PlaybackKeyPairSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("name"))
{
m_name = jsonValue.GetString("name");
m_nameHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue PlaybackKeyPairSummary::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,42 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/PutMetadataRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
PutMetadataRequest::PutMetadataRequest() :
m_channelArnHasBeenSet(false),
m_metadataHasBeenSet(false)
{
}
Aws::String PutMetadataRequest::SerializePayload() const
{
JsonValue payload;
if(m_channelArnHasBeenSet)
{
payload.WithString("channelArn", m_channelArn);
}
if(m_metadataHasBeenSet)
{
payload.WithString("metadata", m_metadata);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ResourceNotFoundException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
ResourceNotFoundException::ResourceNotFoundException() :
m_exceptionMessageHasBeenSet(false)
{
}
ResourceNotFoundException::ResourceNotFoundException(JsonView jsonValue) :
m_exceptionMessageHasBeenSet(false)
{
*this = jsonValue;
}
ResourceNotFoundException& ResourceNotFoundException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("exceptionMessage"))
{
m_exceptionMessage = jsonValue.GetString("exceptionMessage");
m_exceptionMessageHasBeenSet = true;
}
return *this;
}
JsonValue ResourceNotFoundException::Jsonize() const
{
JsonValue payload;
if(m_exceptionMessageHasBeenSet)
{
payload.WithString("exceptionMessage", m_exceptionMessage);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ServiceQuotaExceededException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
ServiceQuotaExceededException::ServiceQuotaExceededException() :
m_exceptionMessageHasBeenSet(false)
{
}
ServiceQuotaExceededException::ServiceQuotaExceededException(JsonView jsonValue) :
m_exceptionMessageHasBeenSet(false)
{
*this = jsonValue;
}
ServiceQuotaExceededException& ServiceQuotaExceededException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("exceptionMessage"))
{
m_exceptionMessage = jsonValue.GetString("exceptionMessage");
m_exceptionMessageHasBeenSet = true;
}
return *this;
}
JsonValue ServiceQuotaExceededException::Jsonize() const
{
JsonValue payload;
if(m_exceptionMessageHasBeenSet)
{
payload.WithString("exceptionMessage", m_exceptionMessage);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,35 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/StopStreamRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
StopStreamRequest::StopStreamRequest() :
m_channelArnHasBeenSet(false)
{
}
Aws::String StopStreamRequest::SerializePayload() const
{
JsonValue payload;
if(m_channelArnHasBeenSet)
{
payload.WithString("channelArn", m_channelArn);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/StopStreamResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
StopStreamResult::StopStreamResult()
{
}
StopStreamResult::StopStreamResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
StopStreamResult& StopStreamResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,137 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/Stream.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
Stream::Stream() :
m_channelArnHasBeenSet(false),
m_playbackUrlHasBeenSet(false),
m_startTimeHasBeenSet(false),
m_state(StreamState::NOT_SET),
m_stateHasBeenSet(false),
m_health(StreamHealth::NOT_SET),
m_healthHasBeenSet(false),
m_viewerCount(0),
m_viewerCountHasBeenSet(false)
{
}
Stream::Stream(JsonView jsonValue) :
m_channelArnHasBeenSet(false),
m_playbackUrlHasBeenSet(false),
m_startTimeHasBeenSet(false),
m_state(StreamState::NOT_SET),
m_stateHasBeenSet(false),
m_health(StreamHealth::NOT_SET),
m_healthHasBeenSet(false),
m_viewerCount(0),
m_viewerCountHasBeenSet(false)
{
*this = jsonValue;
}
Stream& Stream::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("channelArn"))
{
m_channelArn = jsonValue.GetString("channelArn");
m_channelArnHasBeenSet = true;
}
if(jsonValue.ValueExists("playbackUrl"))
{
m_playbackUrl = jsonValue.GetString("playbackUrl");
m_playbackUrlHasBeenSet = true;
}
if(jsonValue.ValueExists("startTime"))
{
m_startTime = jsonValue.GetDouble("startTime");
m_startTimeHasBeenSet = true;
}
if(jsonValue.ValueExists("state"))
{
m_state = StreamStateMapper::GetStreamStateForName(jsonValue.GetString("state"));
m_stateHasBeenSet = true;
}
if(jsonValue.ValueExists("health"))
{
m_health = StreamHealthMapper::GetStreamHealthForName(jsonValue.GetString("health"));
m_healthHasBeenSet = true;
}
if(jsonValue.ValueExists("viewerCount"))
{
m_viewerCount = jsonValue.GetInt64("viewerCount");
m_viewerCountHasBeenSet = true;
}
return *this;
}
JsonValue Stream::Jsonize() const
{
JsonValue payload;
if(m_channelArnHasBeenSet)
{
payload.WithString("channelArn", m_channelArn);
}
if(m_playbackUrlHasBeenSet)
{
payload.WithString("playbackUrl", m_playbackUrl);
}
if(m_startTimeHasBeenSet)
{
payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision());
}
if(m_stateHasBeenSet)
{
payload.WithString("state", StreamStateMapper::GetNameForStreamState(m_state));
}
if(m_healthHasBeenSet)
{
payload.WithString("health", StreamHealthMapper::GetNameForStreamHealth(m_health));
}
if(m_viewerCountHasBeenSet)
{
payload.WithInt64("viewerCount", m_viewerCount);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,77 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/StreamHealth.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
namespace StreamHealthMapper
{
static const int HEALTHY_HASH = HashingUtils::HashString("HEALTHY");
static const int STARVING_HASH = HashingUtils::HashString("STARVING");
static const int UNKNOWN_HASH = HashingUtils::HashString("UNKNOWN");
StreamHealth GetStreamHealthForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == HEALTHY_HASH)
{
return StreamHealth::HEALTHY;
}
else if (hashCode == STARVING_HASH)
{
return StreamHealth::STARVING;
}
else if (hashCode == UNKNOWN_HASH)
{
return StreamHealth::UNKNOWN;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<StreamHealth>(hashCode);
}
return StreamHealth::NOT_SET;
}
Aws::String GetNameForStreamHealth(StreamHealth enumValue)
{
switch(enumValue)
{
case StreamHealth::HEALTHY:
return "HEALTHY";
case StreamHealth::STARVING:
return "STARVING";
case StreamHealth::UNKNOWN:
return "UNKNOWN";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace StreamHealthMapper
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,112 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/StreamKey.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
StreamKey::StreamKey() :
m_arnHasBeenSet(false),
m_valueHasBeenSet(false),
m_channelArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
StreamKey::StreamKey(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_valueHasBeenSet(false),
m_channelArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
StreamKey& StreamKey::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("value"))
{
m_value = jsonValue.GetString("value");
m_valueHasBeenSet = true;
}
if(jsonValue.ValueExists("channelArn"))
{
m_channelArn = jsonValue.GetString("channelArn");
m_channelArnHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue StreamKey::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_valueHasBeenSet)
{
payload.WithString("value", m_value);
}
if(m_channelArnHasBeenSet)
{
payload.WithString("channelArn", m_channelArn);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,97 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/StreamKeySummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
StreamKeySummary::StreamKeySummary() :
m_arnHasBeenSet(false),
m_channelArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
StreamKeySummary::StreamKeySummary(JsonView jsonValue) :
m_arnHasBeenSet(false),
m_channelArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
*this = jsonValue;
}
StreamKeySummary& StreamKeySummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("arn"))
{
m_arn = jsonValue.GetString("arn");
m_arnHasBeenSet = true;
}
if(jsonValue.ValueExists("channelArn"))
{
m_channelArn = jsonValue.GetString("channelArn");
m_channelArnHasBeenSet = true;
}
if(jsonValue.ValueExists("tags"))
{
Aws::Map<Aws::String, JsonView> tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects();
for(auto& tagsItem : tagsJsonMap)
{
m_tags[tagsItem.first] = tagsItem.second.AsString();
}
m_tagsHasBeenSet = true;
}
return *this;
}
JsonValue StreamKeySummary::Jsonize() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_channelArnHasBeenSet)
{
payload.WithString("channelArn", m_channelArn);
}
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,70 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/StreamState.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
namespace StreamStateMapper
{
static const int LIVE_HASH = HashingUtils::HashString("LIVE");
static const int OFFLINE_HASH = HashingUtils::HashString("OFFLINE");
StreamState GetStreamStateForName(const Aws::String& name)
{
int hashCode = HashingUtils::HashString(name.c_str());
if (hashCode == LIVE_HASH)
{
return StreamState::LIVE;
}
else if (hashCode == OFFLINE_HASH)
{
return StreamState::OFFLINE;
}
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
overflowContainer->StoreOverflow(hashCode, name);
return static_cast<StreamState>(hashCode);
}
return StreamState::NOT_SET;
}
Aws::String GetNameForStreamState(StreamState enumValue)
{
switch(enumValue)
{
case StreamState::LIVE:
return "LIVE";
case StreamState::OFFLINE:
return "OFFLINE";
default:
EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer();
if(overflowContainer)
{
return overflowContainer->RetrieveOverflow(static_cast<int>(enumValue));
}
return {};
}
}
} // namespace StreamStateMapper
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,122 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/StreamSummary.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
StreamSummary::StreamSummary() :
m_channelArnHasBeenSet(false),
m_state(StreamState::NOT_SET),
m_stateHasBeenSet(false),
m_health(StreamHealth::NOT_SET),
m_healthHasBeenSet(false),
m_viewerCount(0),
m_viewerCountHasBeenSet(false),
m_startTimeHasBeenSet(false)
{
}
StreamSummary::StreamSummary(JsonView jsonValue) :
m_channelArnHasBeenSet(false),
m_state(StreamState::NOT_SET),
m_stateHasBeenSet(false),
m_health(StreamHealth::NOT_SET),
m_healthHasBeenSet(false),
m_viewerCount(0),
m_viewerCountHasBeenSet(false),
m_startTimeHasBeenSet(false)
{
*this = jsonValue;
}
StreamSummary& StreamSummary::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("channelArn"))
{
m_channelArn = jsonValue.GetString("channelArn");
m_channelArnHasBeenSet = true;
}
if(jsonValue.ValueExists("state"))
{
m_state = StreamStateMapper::GetStreamStateForName(jsonValue.GetString("state"));
m_stateHasBeenSet = true;
}
if(jsonValue.ValueExists("health"))
{
m_health = StreamHealthMapper::GetStreamHealthForName(jsonValue.GetString("health"));
m_healthHasBeenSet = true;
}
if(jsonValue.ValueExists("viewerCount"))
{
m_viewerCount = jsonValue.GetInt64("viewerCount");
m_viewerCountHasBeenSet = true;
}
if(jsonValue.ValueExists("startTime"))
{
m_startTime = jsonValue.GetDouble("startTime");
m_startTimeHasBeenSet = true;
}
return *this;
}
JsonValue StreamSummary::Jsonize() const
{
JsonValue payload;
if(m_channelArnHasBeenSet)
{
payload.WithString("channelArn", m_channelArn);
}
if(m_stateHasBeenSet)
{
payload.WithString("state", StreamStateMapper::GetNameForStreamState(m_state));
}
if(m_healthHasBeenSet)
{
payload.WithString("health", StreamHealthMapper::GetNameForStreamHealth(m_health));
}
if(m_viewerCountHasBeenSet)
{
payload.WithInt64("viewerCount", m_viewerCount);
}
if(m_startTimeHasBeenSet)
{
payload.WithDouble("startTime", m_startTime.SecondsWithMSPrecision());
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/StreamUnavailable.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
StreamUnavailable::StreamUnavailable() :
m_exceptionMessageHasBeenSet(false)
{
}
StreamUnavailable::StreamUnavailable(JsonView jsonValue) :
m_exceptionMessageHasBeenSet(false)
{
*this = jsonValue;
}
StreamUnavailable& StreamUnavailable::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("exceptionMessage"))
{
m_exceptionMessage = jsonValue.GetString("exceptionMessage");
m_exceptionMessageHasBeenSet = true;
}
return *this;
}
JsonValue StreamUnavailable::Jsonize() const
{
JsonValue payload;
if(m_exceptionMessageHasBeenSet)
{
payload.WithString("exceptionMessage", m_exceptionMessage);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,41 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/TagResourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
TagResourceRequest::TagResourceRequest() :
m_resourceArnHasBeenSet(false),
m_tagsHasBeenSet(false)
{
}
Aws::String TagResourceRequest::SerializePayload() const
{
JsonValue payload;
if(m_tagsHasBeenSet)
{
JsonValue tagsJsonMap;
for(auto& tagsItem : m_tags)
{
tagsJsonMap.WithString(tagsItem.first, tagsItem.second);
}
payload.WithObject("tags", std::move(tagsJsonMap));
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/TagResourceResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
TagResourceResult::TagResourceResult()
{
}
TagResourceResult::TagResourceResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
TagResourceResult& TagResourceResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ThrottlingException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
ThrottlingException::ThrottlingException() :
m_exceptionMessageHasBeenSet(false)
{
}
ThrottlingException::ThrottlingException(JsonView jsonValue) :
m_exceptionMessageHasBeenSet(false)
{
*this = jsonValue;
}
ThrottlingException& ThrottlingException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("exceptionMessage"))
{
m_exceptionMessage = jsonValue.GetString("exceptionMessage");
m_exceptionMessageHasBeenSet = true;
}
return *this;
}
JsonValue ThrottlingException::Jsonize() const
{
JsonValue payload;
if(m_exceptionMessageHasBeenSet)
{
payload.WithString("exceptionMessage", m_exceptionMessage);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws

View File

@@ -0,0 +1,45 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/UntagResourceRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws::Http;
UntagResourceRequest::UntagResourceRequest() :
m_resourceArnHasBeenSet(false),
m_tagKeysHasBeenSet(false)
{
}
Aws::String UntagResourceRequest::SerializePayload() const
{
return {};
}
void UntagResourceRequest::AddQueryStringParameters(URI& uri) const
{
Aws::StringStream ss;
if(m_tagKeysHasBeenSet)
{
for(const auto& item : m_tagKeys)
{
ss << item;
uri.AddQueryStringParameter("tagKeys", ss.str());
ss.str("");
}
}
}

View File

@@ -0,0 +1,34 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/UntagResourceResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UntagResourceResult::UntagResourceResult()
{
}
UntagResourceResult::UntagResourceResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UntagResourceResult& UntagResourceResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
AWS_UNREFERENCED_PARAM(result);
return *this;
}

View File

@@ -0,0 +1,64 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/UpdateChannelRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
UpdateChannelRequest::UpdateChannelRequest() :
m_arnHasBeenSet(false),
m_nameHasBeenSet(false),
m_latencyMode(ChannelLatencyMode::NOT_SET),
m_latencyModeHasBeenSet(false),
m_type(ChannelType::NOT_SET),
m_typeHasBeenSet(false),
m_authorized(false),
m_authorizedHasBeenSet(false)
{
}
Aws::String UpdateChannelRequest::SerializePayload() const
{
JsonValue payload;
if(m_arnHasBeenSet)
{
payload.WithString("arn", m_arn);
}
if(m_nameHasBeenSet)
{
payload.WithString("name", m_name);
}
if(m_latencyModeHasBeenSet)
{
payload.WithString("latencyMode", ChannelLatencyModeMapper::GetNameForChannelLatencyMode(m_latencyMode));
}
if(m_typeHasBeenSet)
{
payload.WithString("type", ChannelTypeMapper::GetNameForChannelType(m_type));
}
if(m_authorizedHasBeenSet)
{
payload.WithBool("authorized", m_authorized);
}
return payload.View().WriteReadable();
}

View File

@@ -0,0 +1,40 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/UpdateChannelResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/UnreferencedParam.h>
#include <utility>
using namespace Aws::IVS::Model;
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
using namespace Aws;
UpdateChannelResult::UpdateChannelResult()
{
}
UpdateChannelResult::UpdateChannelResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
*this = result;
}
UpdateChannelResult& UpdateChannelResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
{
JsonView jsonValue = result.GetPayload().View();
if(jsonValue.ValueExists("channel"))
{
m_channel = jsonValue.GetObject("channel");
}
return *this;
}

View File

@@ -0,0 +1,59 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ivs/model/ValidationException.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace IVS
{
namespace Model
{
ValidationException::ValidationException() :
m_exceptionMessageHasBeenSet(false)
{
}
ValidationException::ValidationException(JsonView jsonValue) :
m_exceptionMessageHasBeenSet(false)
{
*this = jsonValue;
}
ValidationException& ValidationException::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("exceptionMessage"))
{
m_exceptionMessage = jsonValue.GetString("exceptionMessage");
m_exceptionMessageHasBeenSet = true;
}
return *this;
}
JsonValue ValidationException::Jsonize() const
{
JsonValue payload;
if(m_exceptionMessageHasBeenSet)
{
payload.WithString("exceptionMessage", m_exceptionMessage);
}
return payload;
}
} // namespace Model
} // namespace IVS
} // namespace Aws