/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Connect { namespace Model { /** */ class CreateSecurityProfileRequest : public ConnectRequest { public: AWS_CONNECT_API CreateSecurityProfileRequest(); // 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 "CreateSecurityProfile"; } AWS_CONNECT_API Aws::String SerializePayload() const override; /** *

The name of the security profile.

*/ inline const Aws::String& GetSecurityProfileName() const{ return m_securityProfileName; } /** *

The name of the security profile.

*/ inline bool SecurityProfileNameHasBeenSet() const { return m_securityProfileNameHasBeenSet; } /** *

The name of the security profile.

*/ inline void SetSecurityProfileName(const Aws::String& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = value; } /** *

The name of the security profile.

*/ inline void SetSecurityProfileName(Aws::String&& value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName = std::move(value); } /** *

The name of the security profile.

*/ inline void SetSecurityProfileName(const char* value) { m_securityProfileNameHasBeenSet = true; m_securityProfileName.assign(value); } /** *

The name of the security profile.

*/ inline CreateSecurityProfileRequest& WithSecurityProfileName(const Aws::String& value) { SetSecurityProfileName(value); return *this;} /** *

The name of the security profile.

*/ inline CreateSecurityProfileRequest& WithSecurityProfileName(Aws::String&& value) { SetSecurityProfileName(std::move(value)); return *this;} /** *

The name of the security profile.

*/ inline CreateSecurityProfileRequest& WithSecurityProfileName(const char* value) { SetSecurityProfileName(value); return *this;} /** *

The description of the security profile.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description of the security profile.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

The description of the security profile.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

The description of the security profile.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

The description of the security profile.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

The description of the security profile.

*/ inline CreateSecurityProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the security profile.

*/ inline CreateSecurityProfileRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description of the security profile.

*/ inline CreateSecurityProfileRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Permissions assigned to the security profile. For a list of valid * permissions, see List * of security profile permissions.

*/ inline const Aws::Vector& GetPermissions() const{ return m_permissions; } /** *

Permissions assigned to the security profile. For a list of valid * permissions, see List * of security profile permissions.

*/ inline bool PermissionsHasBeenSet() const { return m_permissionsHasBeenSet; } /** *

Permissions assigned to the security profile. For a list of valid * permissions, see List * of security profile permissions.

*/ inline void SetPermissions(const Aws::Vector& value) { m_permissionsHasBeenSet = true; m_permissions = value; } /** *

Permissions assigned to the security profile. For a list of valid * permissions, see List * of security profile permissions.

*/ inline void SetPermissions(Aws::Vector&& value) { m_permissionsHasBeenSet = true; m_permissions = std::move(value); } /** *

Permissions assigned to the security profile. For a list of valid * permissions, see List * of security profile permissions.

*/ inline CreateSecurityProfileRequest& WithPermissions(const Aws::Vector& value) { SetPermissions(value); return *this;} /** *

Permissions assigned to the security profile. For a list of valid * permissions, see List * of security profile permissions.

*/ inline CreateSecurityProfileRequest& WithPermissions(Aws::Vector&& value) { SetPermissions(std::move(value)); return *this;} /** *

Permissions assigned to the security profile. For a list of valid * permissions, see List * of security profile permissions.

*/ inline CreateSecurityProfileRequest& AddPermissions(const Aws::String& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; } /** *

Permissions assigned to the security profile. For a list of valid * permissions, see List * of security profile permissions.

*/ inline CreateSecurityProfileRequest& AddPermissions(Aws::String&& value) { m_permissionsHasBeenSet = true; m_permissions.push_back(std::move(value)); return *this; } /** *

Permissions assigned to the security profile. For a list of valid * permissions, see List * of security profile permissions.

*/ inline CreateSecurityProfileRequest& AddPermissions(const char* value) { m_permissionsHasBeenSet = true; m_permissions.push_back(value); return *this; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline const Aws::String& GetInstanceId() const{ return m_instanceId; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); } /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline CreateSecurityProfileRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline CreateSecurityProfileRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;} /** *

The identifier of the Amazon Connect instance. You can find * the instance ID in the Amazon Resource Name (ARN) of the instance.

*/ inline CreateSecurityProfileRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;} /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateSecurityProfileRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateSecurityProfileRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateSecurityProfileRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateSecurityProfileRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateSecurityProfileRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateSecurityProfileRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateSecurityProfileRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateSecurityProfileRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags used to organize, track, or control access for this resource. For * example, { "tags": {"key1":"value1", "key2":"value2"} }.

*/ inline CreateSecurityProfileRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline const Aws::Map& GetAllowedAccessControlTags() const{ return m_allowedAccessControlTags; } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline bool AllowedAccessControlTagsHasBeenSet() const { return m_allowedAccessControlTagsHasBeenSet; } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline void SetAllowedAccessControlTags(const Aws::Map& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = value; } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline void SetAllowedAccessControlTags(Aws::Map&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags = std::move(value); } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline CreateSecurityProfileRequest& WithAllowedAccessControlTags(const Aws::Map& value) { SetAllowedAccessControlTags(value); return *this;} /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline CreateSecurityProfileRequest& WithAllowedAccessControlTags(Aws::Map&& value) { SetAllowedAccessControlTags(std::move(value)); return *this;} /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(const Aws::String& key, const Aws::String& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, value); return *this; } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(Aws::String&& key, const Aws::String& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), value); return *this; } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(const Aws::String& key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, std::move(value)); return *this; } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(Aws::String&& key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), std::move(value)); return *this; } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(const char* key, Aws::String&& value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, std::move(value)); return *this; } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(Aws::String&& key, const char* value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(std::move(key), value); return *this; } /** *

The list of tags that a security profile uses to restrict access to resources * in Amazon Connect.

*/ inline CreateSecurityProfileRequest& AddAllowedAccessControlTags(const char* key, const char* value) { m_allowedAccessControlTagsHasBeenSet = true; m_allowedAccessControlTags.emplace(key, value); return *this; } /** *

The list of resources that a security profile applies tag restrictions to in * Amazon Connect. Following are acceptable ResourceNames: User | * SecurityProfile | Queue | RoutingProfile *

*/ inline const Aws::Vector& GetTagRestrictedResources() const{ return m_tagRestrictedResources; } /** *

The list of resources that a security profile applies tag restrictions to in * Amazon Connect. Following are acceptable ResourceNames: User | * SecurityProfile | Queue | RoutingProfile *

*/ inline bool TagRestrictedResourcesHasBeenSet() const { return m_tagRestrictedResourcesHasBeenSet; } /** *

The list of resources that a security profile applies tag restrictions to in * Amazon Connect. Following are acceptable ResourceNames: User | * SecurityProfile | Queue | RoutingProfile *

*/ inline void SetTagRestrictedResources(const Aws::Vector& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = value; } /** *

The list of resources that a security profile applies tag restrictions to in * Amazon Connect. Following are acceptable ResourceNames: User | * SecurityProfile | Queue | RoutingProfile *

*/ inline void SetTagRestrictedResources(Aws::Vector&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources = std::move(value); } /** *

The list of resources that a security profile applies tag restrictions to in * Amazon Connect. Following are acceptable ResourceNames: User | * SecurityProfile | Queue | RoutingProfile *

*/ inline CreateSecurityProfileRequest& WithTagRestrictedResources(const Aws::Vector& value) { SetTagRestrictedResources(value); return *this;} /** *

The list of resources that a security profile applies tag restrictions to in * Amazon Connect. Following are acceptable ResourceNames: User | * SecurityProfile | Queue | RoutingProfile *

*/ inline CreateSecurityProfileRequest& WithTagRestrictedResources(Aws::Vector&& value) { SetTagRestrictedResources(std::move(value)); return *this;} /** *

The list of resources that a security profile applies tag restrictions to in * Amazon Connect. Following are acceptable ResourceNames: User | * SecurityProfile | Queue | RoutingProfile *

*/ inline CreateSecurityProfileRequest& AddTagRestrictedResources(const Aws::String& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(value); return *this; } /** *

The list of resources that a security profile applies tag restrictions to in * Amazon Connect. Following are acceptable ResourceNames: User | * SecurityProfile | Queue | RoutingProfile *

*/ inline CreateSecurityProfileRequest& AddTagRestrictedResources(Aws::String&& value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(std::move(value)); return *this; } /** *

The list of resources that a security profile applies tag restrictions to in * Amazon Connect. Following are acceptable ResourceNames: User | * SecurityProfile | Queue | RoutingProfile *

*/ inline CreateSecurityProfileRequest& AddTagRestrictedResources(const char* value) { m_tagRestrictedResourcesHasBeenSet = true; m_tagRestrictedResources.push_back(value); return *this; } private: Aws::String m_securityProfileName; bool m_securityProfileNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Vector m_permissions; bool m_permissionsHasBeenSet = false; Aws::String m_instanceId; bool m_instanceIdHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Aws::Map m_allowedAccessControlTags; bool m_allowedAccessControlTagsHasBeenSet = false; Aws::Vector m_tagRestrictedResources; bool m_tagRestrictedResourcesHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws