/** * 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 namespace Aws { namespace ivsrealtime { namespace Model { /** */ class CreateParticipantTokenRequest : public IvsrealtimeRequest { public: AWS_IVSREALTIME_API CreateParticipantTokenRequest(); // 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 "CreateParticipantToken"; } AWS_IVSREALTIME_API Aws::String SerializePayload() const override; /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline const Aws::Map& GetAttributes() const{ return m_attributes; } /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline CreateParticipantTokenRequest& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline CreateParticipantTokenRequest& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline CreateParticipantTokenRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline CreateParticipantTokenRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline CreateParticipantTokenRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline CreateParticipantTokenRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline CreateParticipantTokenRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline CreateParticipantTokenRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

Application-provided attributes to encode into the token and attach to a * stage. Map keys and values can contain UTF-8 encoded text. The maximum length of * this field is 1 KB total. This field is exposed to all stage participants and * should not be used for personally identifying, confidential, or sensitive * information.

*/ inline CreateParticipantTokenRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

Set of capabilities that the user is allowed to perform in the stage. * Default: PUBLISH, SUBSCRIBE.

*/ inline const Aws::Vector& GetCapabilities() const{ return m_capabilities; } /** *

Set of capabilities that the user is allowed to perform in the stage. * Default: PUBLISH, SUBSCRIBE.

*/ inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; } /** *

Set of capabilities that the user is allowed to perform in the stage. * Default: PUBLISH, SUBSCRIBE.

*/ inline void SetCapabilities(const Aws::Vector& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; } /** *

Set of capabilities that the user is allowed to perform in the stage. * Default: PUBLISH, SUBSCRIBE.

*/ inline void SetCapabilities(Aws::Vector&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); } /** *

Set of capabilities that the user is allowed to perform in the stage. * Default: PUBLISH, SUBSCRIBE.

*/ inline CreateParticipantTokenRequest& WithCapabilities(const Aws::Vector& value) { SetCapabilities(value); return *this;} /** *

Set of capabilities that the user is allowed to perform in the stage. * Default: PUBLISH, SUBSCRIBE.

*/ inline CreateParticipantTokenRequest& WithCapabilities(Aws::Vector&& value) { SetCapabilities(std::move(value)); return *this;} /** *

Set of capabilities that the user is allowed to perform in the stage. * Default: PUBLISH, SUBSCRIBE.

*/ inline CreateParticipantTokenRequest& AddCapabilities(const ParticipantTokenCapability& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; } /** *

Set of capabilities that the user is allowed to perform in the stage. * Default: PUBLISH, SUBSCRIBE.

*/ inline CreateParticipantTokenRequest& AddCapabilities(ParticipantTokenCapability&& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(std::move(value)); return *this; } /** *

Duration (in minutes), after which the token expires. Default: 720 (12 * hours).

*/ inline int GetDuration() const{ return m_duration; } /** *

Duration (in minutes), after which the token expires. Default: 720 (12 * hours).

*/ inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } /** *

Duration (in minutes), after which the token expires. Default: 720 (12 * hours).

*/ inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; } /** *

Duration (in minutes), after which the token expires. Default: 720 (12 * hours).

*/ inline CreateParticipantTokenRequest& WithDuration(int value) { SetDuration(value); return *this;} /** *

ARN of the stage to which this token is scoped.

*/ inline const Aws::String& GetStageArn() const{ return m_stageArn; } /** *

ARN of the stage to which this token is scoped.

*/ inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; } /** *

ARN of the stage to which this token is scoped.

*/ inline void SetStageArn(const Aws::String& value) { m_stageArnHasBeenSet = true; m_stageArn = value; } /** *

ARN of the stage to which this token is scoped.

*/ inline void SetStageArn(Aws::String&& value) { m_stageArnHasBeenSet = true; m_stageArn = std::move(value); } /** *

ARN of the stage to which this token is scoped.

*/ inline void SetStageArn(const char* value) { m_stageArnHasBeenSet = true; m_stageArn.assign(value); } /** *

ARN of the stage to which this token is scoped.

*/ inline CreateParticipantTokenRequest& WithStageArn(const Aws::String& value) { SetStageArn(value); return *this;} /** *

ARN of the stage to which this token is scoped.

*/ inline CreateParticipantTokenRequest& WithStageArn(Aws::String&& value) { SetStageArn(std::move(value)); return *this;} /** *

ARN of the stage to which this token is scoped.

*/ inline CreateParticipantTokenRequest& WithStageArn(const char* value) { SetStageArn(value); return *this;} /** *

Name that can be specified to help identify the token. This can be any UTF-8 * encoded text. This field is exposed to all stage participants and should not * be used for personally identifying, confidential, or sensitive information. *

*/ inline const Aws::String& GetUserId() const{ return m_userId; } /** *

Name that can be specified to help identify the token. This can be any UTF-8 * encoded text. This field is exposed to all stage participants and should not * be used for personally identifying, confidential, or sensitive information. *

*/ inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; } /** *

Name that can be specified to help identify the token. This can be any UTF-8 * encoded text. This field is exposed to all stage participants and should not * be used for personally identifying, confidential, or sensitive information. *

*/ inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; } /** *

Name that can be specified to help identify the token. This can be any UTF-8 * encoded text. This field is exposed to all stage participants and should not * be used for personally identifying, confidential, or sensitive information. *

*/ inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); } /** *

Name that can be specified to help identify the token. This can be any UTF-8 * encoded text. This field is exposed to all stage participants and should not * be used for personally identifying, confidential, or sensitive information. *

*/ inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); } /** *

Name that can be specified to help identify the token. This can be any UTF-8 * encoded text. This field is exposed to all stage participants and should not * be used for personally identifying, confidential, or sensitive information. *

*/ inline CreateParticipantTokenRequest& WithUserId(const Aws::String& value) { SetUserId(value); return *this;} /** *

Name that can be specified to help identify the token. This can be any UTF-8 * encoded text. This field is exposed to all stage participants and should not * be used for personally identifying, confidential, or sensitive information. *

*/ inline CreateParticipantTokenRequest& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;} /** *

Name that can be specified to help identify the token. This can be any UTF-8 * encoded text. This field is exposed to all stage participants and should not * be used for personally identifying, confidential, or sensitive information. *

*/ inline CreateParticipantTokenRequest& WithUserId(const char* value) { SetUserId(value); return *this;} private: Aws::Map m_attributes; bool m_attributesHasBeenSet = false; Aws::Vector m_capabilities; bool m_capabilitiesHasBeenSet = false; int m_duration; bool m_durationHasBeenSet = false; Aws::String m_stageArn; bool m_stageArnHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; }; } // namespace Model } // namespace ivsrealtime } // namespace Aws