/** * 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 UpdateSecurityProfileRequest : public ConnectRequest { public: AWS_CONNECT_API UpdateSecurityProfileRequest(); // 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 "UpdateSecurityProfile"; } AWS_CONNECT_API Aws::String SerializePayload() const override; /** *

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 UpdateSecurityProfileRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description of the security profile.

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

The description of the security profile.

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

The permissions granted to a security profile. For a list of valid * permissions, see List * of security profile permissions.

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

The permissions granted to a security profile. For a list of valid * permissions, see List * of security profile permissions.

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

The permissions granted to a 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; } /** *

The permissions granted to a 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); } /** *

The permissions granted to a security profile. For a list of valid * permissions, see List * of security profile permissions.

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

The permissions granted to a security profile. For a list of valid * permissions, see List * of security profile permissions.

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

The permissions granted to a security profile. For a list of valid * permissions, see List * of security profile permissions.

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

The permissions granted to a security profile. For a list of valid * permissions, see List * of security profile permissions.

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

The permissions granted to a security profile. For a list of valid * permissions, see List * of security profile permissions.

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

The identifier for the security profle.

*/ inline const Aws::String& GetSecurityProfileId() const{ return m_securityProfileId; } /** *

The identifier for the security profle.

*/ inline bool SecurityProfileIdHasBeenSet() const { return m_securityProfileIdHasBeenSet; } /** *

The identifier for the security profle.

*/ inline void SetSecurityProfileId(const Aws::String& value) { m_securityProfileIdHasBeenSet = true; m_securityProfileId = value; } /** *

The identifier for the security profle.

*/ inline void SetSecurityProfileId(Aws::String&& value) { m_securityProfileIdHasBeenSet = true; m_securityProfileId = std::move(value); } /** *

The identifier for the security profle.

*/ inline void SetSecurityProfileId(const char* value) { m_securityProfileIdHasBeenSet = true; m_securityProfileId.assign(value); } /** *

The identifier for the security profle.

*/ inline UpdateSecurityProfileRequest& WithSecurityProfileId(const Aws::String& value) { SetSecurityProfileId(value); return *this;} /** *

The identifier for the security profle.

*/ inline UpdateSecurityProfileRequest& WithSecurityProfileId(Aws::String&& value) { SetSecurityProfileId(std::move(value)); return *this;} /** *

The identifier for the security profle.

*/ inline UpdateSecurityProfileRequest& WithSecurityProfileId(const char* value) { SetSecurityProfileId(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 UpdateSecurityProfileRequest& 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 UpdateSecurityProfileRequest& 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 UpdateSecurityProfileRequest& WithInstanceId(const char* value) { SetInstanceId(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 UpdateSecurityProfileRequest& 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 UpdateSecurityProfileRequest& 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 UpdateSecurityProfileRequest& 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 UpdateSecurityProfileRequest& 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 UpdateSecurityProfileRequest& 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 UpdateSecurityProfileRequest& 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 UpdateSecurityProfileRequest& 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 UpdateSecurityProfileRequest& 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 UpdateSecurityProfileRequest& 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.

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

The list of resources that a security profile applies tag restrictions to in * Amazon Connect.

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

The list of resources that a security profile applies tag restrictions to in * Amazon Connect.

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

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

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

The list of resources that a security profile applies tag restrictions to in * Amazon Connect.

*/ inline UpdateSecurityProfileRequest& 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.

*/ inline UpdateSecurityProfileRequest& 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.

*/ inline UpdateSecurityProfileRequest& 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.

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