/** * 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 { /** *

A viewer session to revoke in the call to * BatchStartViewerSessionRevocation.

See Also:

AWS * API Reference

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

The ARN of the channel associated with the viewer session to revoke.

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

The ARN of the channel associated with the viewer session to revoke.

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

The ARN of the channel associated with the viewer session to revoke.

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

The ARN of the channel associated with the viewer session to revoke.

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

The ARN of the channel associated with the viewer session to revoke.

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

The ARN of the channel associated with the viewer session to revoke.

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

The ARN of the channel associated with the viewer session to revoke.

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

The ARN of the channel associated with the viewer session to revoke.

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

The ID of the viewer associated with the viewer session to revoke. Do not use * this field for personally identifying, confidential, or sensitive * information.

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

The ID of the viewer associated with the viewer session to revoke. Do not use * this field for personally identifying, confidential, or sensitive * information.

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

The ID of the viewer associated with the viewer session to revoke. Do not use * this field for personally identifying, confidential, or sensitive * information.

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

The ID of the viewer associated with the viewer session to revoke. Do not use * this field for personally identifying, confidential, or sensitive * information.

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

The ID of the viewer associated with the viewer session to revoke. Do not use * this field for personally identifying, confidential, or sensitive * information.

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

The ID of the viewer associated with the viewer session to revoke. Do not use * this field for personally identifying, confidential, or sensitive * information.

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

The ID of the viewer associated with the viewer session to revoke. Do not use * this field for personally identifying, confidential, or sensitive * information.

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

The ID of the viewer associated with the viewer session to revoke. Do not use * this field for personally identifying, confidential, or sensitive * information.

*/ inline BatchStartViewerSessionRevocationViewerSession& WithViewerId(const char* value) { SetViewerId(value); return *this;} /** *

An optional filter on which versions of the viewer session to revoke. All * versions less than or equal to the specified version will be revoked. Default: * 0.

*/ inline int GetViewerSessionVersionsLessThanOrEqualTo() const{ return m_viewerSessionVersionsLessThanOrEqualTo; } /** *

An optional filter on which versions of the viewer session to revoke. All * versions less than or equal to the specified version will be revoked. Default: * 0.

*/ inline bool ViewerSessionVersionsLessThanOrEqualToHasBeenSet() const { return m_viewerSessionVersionsLessThanOrEqualToHasBeenSet; } /** *

An optional filter on which versions of the viewer session to revoke. All * versions less than or equal to the specified version will be revoked. Default: * 0.

*/ inline void SetViewerSessionVersionsLessThanOrEqualTo(int value) { m_viewerSessionVersionsLessThanOrEqualToHasBeenSet = true; m_viewerSessionVersionsLessThanOrEqualTo = value; } /** *

An optional filter on which versions of the viewer session to revoke. All * versions less than or equal to the specified version will be revoked. Default: * 0.

*/ inline BatchStartViewerSessionRevocationViewerSession& WithViewerSessionVersionsLessThanOrEqualTo(int value) { SetViewerSessionVersionsLessThanOrEqualTo(value); return *this;} private: Aws::String m_channelArn; bool m_channelArnHasBeenSet = false; Aws::String m_viewerId; bool m_viewerIdHasBeenSet = false; int m_viewerSessionVersionsLessThanOrEqualTo; bool m_viewerSessionVersionsLessThanOrEqualToHasBeenSet = false; }; } // namespace Model } // namespace IVS } // namespace Aws