/** * 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 SupportApp { namespace Model { /** *

The configuration for a Slack workspace that you added to an Amazon Web * Services account.

See Also:

AWS * API Reference

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

Whether to allow member accounts to authorize Slack workspaces. Member * accounts must be part of an organization in Organizations.

*/ inline bool GetAllowOrganizationMemberAccount() const{ return m_allowOrganizationMemberAccount; } /** *

Whether to allow member accounts to authorize Slack workspaces. Member * accounts must be part of an organization in Organizations.

*/ inline bool AllowOrganizationMemberAccountHasBeenSet() const { return m_allowOrganizationMemberAccountHasBeenSet; } /** *

Whether to allow member accounts to authorize Slack workspaces. Member * accounts must be part of an organization in Organizations.

*/ inline void SetAllowOrganizationMemberAccount(bool value) { m_allowOrganizationMemberAccountHasBeenSet = true; m_allowOrganizationMemberAccount = value; } /** *

Whether to allow member accounts to authorize Slack workspaces. Member * accounts must be part of an organization in Organizations.

*/ inline SlackWorkspaceConfiguration& WithAllowOrganizationMemberAccount(bool value) { SetAllowOrganizationMemberAccount(value); return *this;} /** *

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as * T012ABCDEFG.

*/ inline const Aws::String& GetTeamId() const{ return m_teamId; } /** *

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as * T012ABCDEFG.

*/ inline bool TeamIdHasBeenSet() const { return m_teamIdHasBeenSet; } /** *

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as * T012ABCDEFG.

*/ inline void SetTeamId(const Aws::String& value) { m_teamIdHasBeenSet = true; m_teamId = value; } /** *

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as * T012ABCDEFG.

*/ inline void SetTeamId(Aws::String&& value) { m_teamIdHasBeenSet = true; m_teamId = std::move(value); } /** *

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as * T012ABCDEFG.

*/ inline void SetTeamId(const char* value) { m_teamIdHasBeenSet = true; m_teamId.assign(value); } /** *

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as * T012ABCDEFG.

*/ inline SlackWorkspaceConfiguration& WithTeamId(const Aws::String& value) { SetTeamId(value); return *this;} /** *

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as * T012ABCDEFG.

*/ inline SlackWorkspaceConfiguration& WithTeamId(Aws::String&& value) { SetTeamId(std::move(value)); return *this;} /** *

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as * T012ABCDEFG.

*/ inline SlackWorkspaceConfiguration& WithTeamId(const char* value) { SetTeamId(value); return *this;} /** *

The name of the Slack workspace.

*/ inline const Aws::String& GetTeamName() const{ return m_teamName; } /** *

The name of the Slack workspace.

*/ inline bool TeamNameHasBeenSet() const { return m_teamNameHasBeenSet; } /** *

The name of the Slack workspace.

*/ inline void SetTeamName(const Aws::String& value) { m_teamNameHasBeenSet = true; m_teamName = value; } /** *

The name of the Slack workspace.

*/ inline void SetTeamName(Aws::String&& value) { m_teamNameHasBeenSet = true; m_teamName = std::move(value); } /** *

The name of the Slack workspace.

*/ inline void SetTeamName(const char* value) { m_teamNameHasBeenSet = true; m_teamName.assign(value); } /** *

The name of the Slack workspace.

*/ inline SlackWorkspaceConfiguration& WithTeamName(const Aws::String& value) { SetTeamName(value); return *this;} /** *

The name of the Slack workspace.

*/ inline SlackWorkspaceConfiguration& WithTeamName(Aws::String&& value) { SetTeamName(std::move(value)); return *this;} /** *

The name of the Slack workspace.

*/ inline SlackWorkspaceConfiguration& WithTeamName(const char* value) { SetTeamName(value); return *this;} private: bool m_allowOrganizationMemberAccount; bool m_allowOrganizationMemberAccountHasBeenSet = false; Aws::String m_teamId; bool m_teamIdHasBeenSet = false; Aws::String m_teamName; bool m_teamNameHasBeenSet = false; }; } // namespace Model } // namespace SupportApp } // namespace Aws