/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IVS { namespace Model { /** *

Error for a request in the batch for BatchStartViewerSessionRevocation. Each * error is related to a specific channel-ARN and viewer-ID pair.

See * Also:

AWS * API Reference

*/ class BatchStartViewerSessionRevocationError { public: AWS_IVS_API BatchStartViewerSessionRevocationError(); AWS_IVS_API BatchStartViewerSessionRevocationError(Aws::Utils::Json::JsonView jsonValue); AWS_IVS_API BatchStartViewerSessionRevocationError& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Channel ARN.

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

Error code.

*/ inline const Aws::String& GetCode() const{ return m_code; } /** *

Error code.

*/ inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; } /** *

Error code.

*/ inline void SetCode(const Aws::String& value) { m_codeHasBeenSet = true; m_code = value; } /** *

Error code.

*/ inline void SetCode(Aws::String&& value) { m_codeHasBeenSet = true; m_code = std::move(value); } /** *

Error code.

*/ inline void SetCode(const char* value) { m_codeHasBeenSet = true; m_code.assign(value); } /** *

Error code.

*/ inline BatchStartViewerSessionRevocationError& WithCode(const Aws::String& value) { SetCode(value); return *this;} /** *

Error code.

*/ inline BatchStartViewerSessionRevocationError& WithCode(Aws::String&& value) { SetCode(std::move(value)); return *this;} /** *

Error code.

*/ inline BatchStartViewerSessionRevocationError& WithCode(const char* value) { SetCode(value); return *this;} /** *

Error message, determined by the application.

*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *

Error message, determined by the application.

*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *

Error message, determined by the application.

*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *

Error message, determined by the application.

*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *

Error message, determined by the application.

*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *

Error message, determined by the application.

*/ inline BatchStartViewerSessionRevocationError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *

Error message, determined by the application.

*/ inline BatchStartViewerSessionRevocationError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *

Error message, determined by the application.

*/ inline BatchStartViewerSessionRevocationError& WithMessage(const char* value) { SetMessage(value); return *this;} /** *

The ID of the viewer session to revoke.

*/ inline const Aws::String& GetViewerId() const{ return m_viewerId; } /** *

The ID of the viewer session to revoke.

*/ inline bool ViewerIdHasBeenSet() const { return m_viewerIdHasBeenSet; } /** *

The ID of the viewer session to revoke.

*/ inline void SetViewerId(const Aws::String& value) { m_viewerIdHasBeenSet = true; m_viewerId = value; } /** *

The ID of the viewer session to revoke.

*/ inline void SetViewerId(Aws::String&& value) { m_viewerIdHasBeenSet = true; m_viewerId = std::move(value); } /** *

The ID of the viewer session to revoke.

*/ inline void SetViewerId(const char* value) { m_viewerIdHasBeenSet = true; m_viewerId.assign(value); } /** *

The ID of the viewer session to revoke.

*/ inline BatchStartViewerSessionRevocationError& WithViewerId(const Aws::String& value) { SetViewerId(value); return *this;} /** *

The ID of the viewer session to revoke.

*/ inline BatchStartViewerSessionRevocationError& WithViewerId(Aws::String&& value) { SetViewerId(std::move(value)); return *this;} /** *

The ID of the viewer session to revoke.

*/ inline BatchStartViewerSessionRevocationError& WithViewerId(const char* value) { SetViewerId(value); return *this;} private: Aws::String m_channelArn; bool m_channelArnHasBeenSet = false; Aws::String m_code; bool m_codeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::String m_viewerId; bool m_viewerIdHasBeenSet = false; }; } // namespace Model } // namespace IVS } // namespace Aws