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

A resource that allows Enterprise account administrators to configure an * interface to receive events from Amazon Chime.

See Also:

AWS API * Reference

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

The bot ID.

*/ inline const Aws::String& GetBotId() const{ return m_botId; } /** *

The bot ID.

*/ inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; } /** *

The bot ID.

*/ inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; } /** *

The bot ID.

*/ inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); } /** *

The bot ID.

*/ inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); } /** *

The bot ID.

*/ inline Bot& WithBotId(const Aws::String& value) { SetBotId(value); return *this;} /** *

The bot ID.

*/ inline Bot& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;} /** *

The bot ID.

*/ inline Bot& WithBotId(const char* value) { SetBotId(value); return *this;} /** *

The unique ID for the bot user.

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

The unique ID for the bot user.

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

The unique ID for the bot user.

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

The unique ID for the bot user.

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

The unique ID for the bot user.

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

The unique ID for the bot user.

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

The unique ID for the bot user.

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

The unique ID for the bot user.

*/ inline Bot& WithUserId(const char* value) { SetUserId(value); return *this;} /** *

The bot display name.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The bot display name.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The bot display name.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The bot display name.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The bot display name.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The bot display name.

*/ inline Bot& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The bot display name.

*/ inline Bot& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The bot display name.

*/ inline Bot& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

The bot type.

*/ inline const BotType& GetBotType() const{ return m_botType; } /** *

The bot type.

*/ inline bool BotTypeHasBeenSet() const { return m_botTypeHasBeenSet; } /** *

The bot type.

*/ inline void SetBotType(const BotType& value) { m_botTypeHasBeenSet = true; m_botType = value; } /** *

The bot type.

*/ inline void SetBotType(BotType&& value) { m_botTypeHasBeenSet = true; m_botType = std::move(value); } /** *

The bot type.

*/ inline Bot& WithBotType(const BotType& value) { SetBotType(value); return *this;} /** *

The bot type.

*/ inline Bot& WithBotType(BotType&& value) { SetBotType(std::move(value)); return *this;} /** *

When true, the bot is stopped from running in your account.

*/ inline bool GetDisabled() const{ return m_disabled; } /** *

When true, the bot is stopped from running in your account.

*/ inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; } /** *

When true, the bot is stopped from running in your account.

*/ inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; } /** *

When true, the bot is stopped from running in your account.

*/ inline Bot& WithDisabled(bool value) { SetDisabled(value); return *this;} /** *

The bot creation timestamp, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetCreatedTimestamp() const{ return m_createdTimestamp; } /** *

The bot creation timestamp, in ISO 8601 format.

*/ inline bool CreatedTimestampHasBeenSet() const { return m_createdTimestampHasBeenSet; } /** *

The bot creation timestamp, in ISO 8601 format.

*/ inline void SetCreatedTimestamp(const Aws::Utils::DateTime& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = value; } /** *

The bot creation timestamp, in ISO 8601 format.

*/ inline void SetCreatedTimestamp(Aws::Utils::DateTime&& value) { m_createdTimestampHasBeenSet = true; m_createdTimestamp = std::move(value); } /** *

The bot creation timestamp, in ISO 8601 format.

*/ inline Bot& WithCreatedTimestamp(const Aws::Utils::DateTime& value) { SetCreatedTimestamp(value); return *this;} /** *

The bot creation timestamp, in ISO 8601 format.

*/ inline Bot& WithCreatedTimestamp(Aws::Utils::DateTime&& value) { SetCreatedTimestamp(std::move(value)); return *this;} /** *

The updated bot timestamp, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetUpdatedTimestamp() const{ return m_updatedTimestamp; } /** *

The updated bot timestamp, in ISO 8601 format.

*/ inline bool UpdatedTimestampHasBeenSet() const { return m_updatedTimestampHasBeenSet; } /** *

The updated bot timestamp, in ISO 8601 format.

*/ inline void SetUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = value; } /** *

The updated bot timestamp, in ISO 8601 format.

*/ inline void SetUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_updatedTimestampHasBeenSet = true; m_updatedTimestamp = std::move(value); } /** *

The updated bot timestamp, in ISO 8601 format.

*/ inline Bot& WithUpdatedTimestamp(const Aws::Utils::DateTime& value) { SetUpdatedTimestamp(value); return *this;} /** *

The updated bot timestamp, in ISO 8601 format.

*/ inline Bot& WithUpdatedTimestamp(Aws::Utils::DateTime&& value) { SetUpdatedTimestamp(std::move(value)); return *this;} /** *

The bot email address.

*/ inline const Aws::String& GetBotEmail() const{ return m_botEmail; } /** *

The bot email address.

*/ inline bool BotEmailHasBeenSet() const { return m_botEmailHasBeenSet; } /** *

The bot email address.

*/ inline void SetBotEmail(const Aws::String& value) { m_botEmailHasBeenSet = true; m_botEmail = value; } /** *

The bot email address.

*/ inline void SetBotEmail(Aws::String&& value) { m_botEmailHasBeenSet = true; m_botEmail = std::move(value); } /** *

The bot email address.

*/ inline void SetBotEmail(const char* value) { m_botEmailHasBeenSet = true; m_botEmail.assign(value); } /** *

The bot email address.

*/ inline Bot& WithBotEmail(const Aws::String& value) { SetBotEmail(value); return *this;} /** *

The bot email address.

*/ inline Bot& WithBotEmail(Aws::String&& value) { SetBotEmail(std::move(value)); return *this;} /** *

The bot email address.

*/ inline Bot& WithBotEmail(const char* value) { SetBotEmail(value); return *this;} /** *

The security token used to authenticate Amazon Chime with the outgoing event * endpoint.

*/ inline const Aws::String& GetSecurityToken() const{ return m_securityToken; } /** *

The security token used to authenticate Amazon Chime with the outgoing event * endpoint.

*/ inline bool SecurityTokenHasBeenSet() const { return m_securityTokenHasBeenSet; } /** *

The security token used to authenticate Amazon Chime with the outgoing event * endpoint.

*/ inline void SetSecurityToken(const Aws::String& value) { m_securityTokenHasBeenSet = true; m_securityToken = value; } /** *

The security token used to authenticate Amazon Chime with the outgoing event * endpoint.

*/ inline void SetSecurityToken(Aws::String&& value) { m_securityTokenHasBeenSet = true; m_securityToken = std::move(value); } /** *

The security token used to authenticate Amazon Chime with the outgoing event * endpoint.

*/ inline void SetSecurityToken(const char* value) { m_securityTokenHasBeenSet = true; m_securityToken.assign(value); } /** *

The security token used to authenticate Amazon Chime with the outgoing event * endpoint.

*/ inline Bot& WithSecurityToken(const Aws::String& value) { SetSecurityToken(value); return *this;} /** *

The security token used to authenticate Amazon Chime with the outgoing event * endpoint.

*/ inline Bot& WithSecurityToken(Aws::String&& value) { SetSecurityToken(std::move(value)); return *this;} /** *

The security token used to authenticate Amazon Chime with the outgoing event * endpoint.

*/ inline Bot& WithSecurityToken(const char* value) { SetSecurityToken(value); return *this;} private: Aws::String m_botId; bool m_botIdHasBeenSet = false; Aws::String m_userId; bool m_userIdHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; BotType m_botType; bool m_botTypeHasBeenSet = false; bool m_disabled; bool m_disabledHasBeenSet = false; Aws::Utils::DateTime m_createdTimestamp; bool m_createdTimestampHasBeenSet = false; Aws::Utils::DateTime m_updatedTimestamp; bool m_updatedTimestampHasBeenSet = false; Aws::String m_botEmail; bool m_botEmailHasBeenSet = false; Aws::String m_securityToken; bool m_securityTokenHasBeenSet = false; }; } // namespace Model } // namespace Chime } // namespace Aws