/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the connectcases-2022-10-03.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.ConnectCases.Model; using Amazon.ConnectCases.Model.Internal.MarshallTransformations; using Amazon.ConnectCases.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ConnectCases { /// /// Implementation for accessing ConnectCases /// /// With Amazon Connect Cases, your agents can track and manage customer issues that require /// multiple interactions, follow-up tasks, and teams in your contact center. A case represents /// a customer issue. It records the issue, the steps and interactions taken to resolve /// the issue, and the outcome. For more information, see Amazon /// Connect Cases in the Amazon Connect Administrator Guide. /// public partial class AmazonConnectCasesClient : AmazonServiceClient, IAmazonConnectCases { private static IServiceMetadata serviceMetadata = new AmazonConnectCasesMetadata(); #region Constructors /// /// Constructs AmazonConnectCasesClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// public AmazonConnectCasesClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonConnectCasesConfig()) { } /// /// Constructs AmazonConnectCasesClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The region to connect. public AmazonConnectCasesClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonConnectCasesConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonConnectCasesClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// /// <?xml version="1.0" encoding="utf-8" ?> /// <configuration> /// <appSettings> /// <add key="AWSProfileName" value="AWS Default"/> /// </appSettings> /// </configuration> /// /// /// /// The AmazonConnectCasesClient Configuration Object public AmazonConnectCasesClient(AmazonConnectCasesConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonConnectCasesClient with AWS Credentials /// /// AWS Credentials public AmazonConnectCasesClient(AWSCredentials credentials) : this(credentials, new AmazonConnectCasesConfig()) { } /// /// Constructs AmazonConnectCasesClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonConnectCasesClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonConnectCasesConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonConnectCasesClient with AWS Credentials and an /// AmazonConnectCasesClient Configuration object. /// /// AWS Credentials /// The AmazonConnectCasesClient Configuration Object public AmazonConnectCasesClient(AWSCredentials credentials, AmazonConnectCasesConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonConnectCasesClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonConnectCasesClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonConnectCasesConfig()) { } /// /// Constructs AmazonConnectCasesClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonConnectCasesClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonConnectCasesConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonConnectCasesClient with AWS Access Key ID, AWS Secret Key and an /// AmazonConnectCasesClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonConnectCasesClient Configuration Object public AmazonConnectCasesClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonConnectCasesConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonConnectCasesClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonConnectCasesClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonConnectCasesConfig()) { } /// /// Constructs AmazonConnectCasesClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonConnectCasesClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonConnectCasesConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonConnectCasesClient with AWS Access Key ID, AWS Secret Key and an /// AmazonConnectCasesClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonConnectCasesClient Configuration Object public AmazonConnectCasesClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonConnectCasesConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IConnectCasesPaginatorFactory _paginators; /// /// Paginators for the service /// public IConnectCasesPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ConnectCasesPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonConnectCasesEndpointResolver()); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region BatchGetField internal virtual BatchGetFieldResponse BatchGetField(BatchGetFieldRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetFieldResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the description for the list of fields in the request parameters. /// /// Container for the necessary parameters to execute the BatchGetField service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchGetField service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for BatchGetField Operation public virtual Task BatchGetFieldAsync(BatchGetFieldRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchGetFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchGetFieldResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region BatchPutFieldOptions internal virtual BatchPutFieldOptionsResponse BatchPutFieldOptions(BatchPutFieldOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutFieldOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutFieldOptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates and updates a set of field options for a single select field in a Cases domain. /// /// Container for the necessary parameters to execute the BatchPutFieldOptions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the BatchPutFieldOptions service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The service quota has been exceeded. For a list of service quotas, see Amazon /// Connect Service Quotas in the Amazon Connect Administrator Guide. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for BatchPutFieldOptions Operation public virtual Task BatchPutFieldOptionsAsync(BatchPutFieldOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = BatchPutFieldOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = BatchPutFieldOptionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateCase internal virtual CreateCaseResponse CreateCase(CreateCaseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCaseRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCaseResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a case in the specified Cases domain. Case system and custom fields are taken /// as an array id/value pairs with a declared data types. /// /// /// /// The following fields are required when creating a case: /// ///
 <ul> <li> <p> <code>customer_id</code>
        /// - You must provide the full customer profile ARN in this format: <code>arn:aws:profile:your
        /// AWS Region:your AWS account ID:domains/profiles domain name/profiles/profile ID</code>
        /// </p> </li> <li> <p> <code>title</code> </p>
        /// </li> </ul> </note> 
///
/// Container for the necessary parameters to execute the CreateCase service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateCase service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// See the accompanying error message for details. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for CreateCase Operation public virtual Task CreateCaseAsync(CreateCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateCaseRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateCaseResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateDomain internal virtual CreateDomainResponse CreateDomain(CreateDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a domain, which is a container for all case data, such as cases, fields, templates /// and layouts. Each Amazon Connect instance can be associated with only one Cases domain. /// /// /// /// This will not associate your connect instance to Cases domain. Instead, use the Amazon /// Connect CreateIntegrationAssociation /// API. You need specific IAM permissions to successfully associate the Cases domain. /// For more information, see Onboard /// to Cases. /// ///
 </important> 
///
/// Container for the necessary parameters to execute the CreateDomain service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateDomain service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// See the accompanying error message for details. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// The service quota has been exceeded. For a list of service quotas, see Amazon /// Connect Service Quotas in the Amazon Connect Administrator Guide. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for CreateDomain Operation public virtual Task CreateDomainAsync(CreateDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateDomainResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateField internal virtual CreateFieldResponse CreateField(CreateFieldRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFieldResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a field in the Cases domain. This field is used to define the case object /// model (that is, defines what data can be captured on cases) in a Cases domain. /// /// Container for the necessary parameters to execute the CreateField service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateField service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// See the accompanying error message for details. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The service quota has been exceeded. For a list of service quotas, see Amazon /// Connect Service Quotas in the Amazon Connect Administrator Guide. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for CreateField Operation public virtual Task CreateFieldAsync(CreateFieldRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateFieldResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLayout internal virtual CreateLayoutResponse CreateLayout(CreateLayoutRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLayoutRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLayoutResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a layout in the Cases domain. Layouts define the following configuration in /// the top section and More Info tab of the Cases user interface: /// ///
  • /// /// Fields to display to the users /// ///
  • /// /// Field ordering /// ///
/// /// Title and Status fields cannot be part of layouts since they are not configurable. /// /// ///
/// Container for the necessary parameters to execute the CreateLayout service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLayout service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// See the accompanying error message for details. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The service quota has been exceeded. For a list of service quotas, see Amazon /// Connect Service Quotas in the Amazon Connect Administrator Guide. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for CreateLayout Operation public virtual Task CreateLayoutAsync(CreateLayoutRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLayoutRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLayoutResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateRelatedItem internal virtual CreateRelatedItemResponse CreateRelatedItem(CreateRelatedItemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRelatedItemRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRelatedItemResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a related item (comments, tasks, and contacts) and associates it with a case. /// /// /// /// A Related Item is a resource that is associated with a case. It may or may not have /// an external identifier linking it to an external resource (for example, a contactArn). /// All Related Items have their own internal identifier, the relatedItemArn. /// Examples of related items include comments and contacts. /// /// /// /// Container for the necessary parameters to execute the CreateRelatedItem service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateRelatedItem service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The service quota has been exceeded. For a list of service quotas, see Amazon /// Connect Service Quotas in the Amazon Connect Administrator Guide. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for CreateRelatedItem Operation public virtual Task CreateRelatedItemAsync(CreateRelatedItemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateRelatedItemRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateRelatedItemResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateTemplate internal virtual CreateTemplateResponse CreateTemplate(CreateTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a template in the Cases domain. This template is used to define the case object /// model (that is, to define what data can be captured on cases) in a Cases domain. A /// template must have a unique name within a domain, and it must reference existing field /// IDs and layout IDs. Additionally, multiple fields with same IDs are not allowed within /// the same Template. A template can be either Active or Inactive, as indicated by its /// status. Inactive templates cannot be used to create cases. /// /// Container for the necessary parameters to execute the CreateTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateTemplate service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// See the accompanying error message for details. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The service quota has been exceeded. For a list of service quotas, see Amazon /// Connect Service Quotas in the Amazon Connect Administrator Guide. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for CreateTemplate Operation public virtual Task CreateTemplateAsync(CreateTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteDomain internal virtual DeleteDomainResponse DeleteDomain(DeleteDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes a Cases domain. /// ///
 <note> <p>After deleting your domain you must disassociate
        /// the deleted domain from your Amazon Connect instance with another API call before
        /// being able to use Cases again with this Amazon Connect instance. See <a href="https://docs.aws.amazon.com/connect/latest/APIReference/API_DeleteIntegrationAssociation.html">DeleteIntegrationAssociation</a>.</p>
        /// </note> 
///
/// Container for the necessary parameters to execute the DeleteDomain service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteDomain service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// See the accompanying error message for details. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for DeleteDomain Operation public virtual Task DeleteDomainAsync(DeleteDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDomainResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCase internal virtual GetCaseResponse GetCase(GetCaseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCaseRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCaseResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a specific case if it exists. /// /// Container for the necessary parameters to execute the GetCase service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCase service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for GetCase Operation public virtual Task GetCaseAsync(GetCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCaseRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCaseResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetCaseEventConfiguration internal virtual GetCaseEventConfigurationResponse GetCaseEventConfiguration(GetCaseEventConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCaseEventConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCaseEventConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the case event publishing configuration. /// /// Container for the necessary parameters to execute the GetCaseEventConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetCaseEventConfiguration service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for GetCaseEventConfiguration Operation public virtual Task GetCaseEventConfigurationAsync(GetCaseEventConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCaseEventConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCaseEventConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetDomain internal virtual GetDomainResponse GetDomain(GetDomainRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDomainResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a specific domain if it exists. /// /// Container for the necessary parameters to execute the GetDomain service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDomain service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for GetDomain Operation public virtual Task GetDomainAsync(GetDomainRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDomainRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDomainResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetLayout internal virtual GetLayoutResponse GetLayout(GetLayoutRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetLayoutRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLayoutResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the details for the requested layout. /// /// Container for the necessary parameters to execute the GetLayout service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetLayout service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for GetLayout Operation public virtual Task GetLayoutAsync(GetLayoutRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetLayoutRequestMarshaller.Instance; options.ResponseUnmarshaller = GetLayoutResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GetTemplate internal virtual GetTemplateResponse GetTemplate(GetTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns the details for the requested template. /// /// Container for the necessary parameters to execute the GetTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetTemplate service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for GetTemplate Operation public virtual Task GetTemplateAsync(GetTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListCasesForContact internal virtual ListCasesForContactResponse ListCasesForContact(ListCasesForContactRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCasesForContactRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCasesForContactResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists cases for a given contact. /// /// Container for the necessary parameters to execute the ListCasesForContact service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListCasesForContact service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for ListCasesForContact Operation public virtual Task ListCasesForContactAsync(ListCasesForContactRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCasesForContactRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCasesForContactResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDomains internal virtual ListDomainsResponse ListDomains(ListDomainsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all cases domains in the Amazon Web Services account. Each list item is a condensed /// summary object of the domain. /// /// Container for the necessary parameters to execute the ListDomains service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDomains service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for ListDomains Operation public virtual Task ListDomainsAsync(ListDomainsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDomainsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDomainsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListFieldOptions internal virtual ListFieldOptionsResponse ListFieldOptions(ListFieldOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFieldOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFieldOptionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all of the field options for a field identifier in the domain. /// /// Container for the necessary parameters to execute the ListFieldOptions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListFieldOptions service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for ListFieldOptions Operation public virtual Task ListFieldOptionsAsync(ListFieldOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFieldOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFieldOptionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListFields internal virtual ListFieldsResponse ListFields(ListFieldsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListFieldsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFieldsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all fields in a Cases domain. /// /// Container for the necessary parameters to execute the ListFields service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListFields service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for ListFields Operation public virtual Task ListFieldsAsync(ListFieldsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListFieldsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListFieldsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListLayouts internal virtual ListLayoutsResponse ListLayouts(ListLayoutsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListLayoutsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLayoutsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all layouts in the given cases domain. Each list item is a condensed summary /// object of the layout. /// /// Container for the necessary parameters to execute the ListLayouts service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListLayouts service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for ListLayouts Operation public virtual Task ListLayoutsAsync(ListLayoutsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListLayoutsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLayoutsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists tags for a resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTagsForResource service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for ListTagsForResource Operation public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTemplates internal virtual ListTemplatesResponse ListTemplates(ListTemplatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTemplatesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists all of the templates in a Cases domain. Each list item is a condensed summary /// object of the template. /// /// Container for the necessary parameters to execute the ListTemplates service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTemplates service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for ListTemplates Operation public virtual Task ListTemplatesAsync(ListTemplatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTemplatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTemplatesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region PutCaseEventConfiguration internal virtual PutCaseEventConfigurationResponse PutCaseEventConfiguration(PutCaseEventConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutCaseEventConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCaseEventConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// API for adding case event publishing configuration /// /// Container for the necessary parameters to execute the PutCaseEventConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the PutCaseEventConfiguration service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for PutCaseEventConfiguration Operation public virtual Task PutCaseEventConfigurationAsync(PutCaseEventConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutCaseEventConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutCaseEventConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SearchCases internal virtual SearchCasesResponse SearchCases(SearchCasesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchCasesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchCasesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Searches for cases within their associated Cases domain. Search results are returned /// as a paginated list of abridged case documents. /// /// /// /// For customer_id you must provide the full customer profile ARN in this /// format: arn:aws:profile:your AWS Region:your AWS account ID:domains/profiles /// domain name/profiles/profile ID. /// /// /// /// Container for the necessary parameters to execute the SearchCases service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SearchCases service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for SearchCases Operation public virtual Task SearchCasesAsync(SearchCasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchCasesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchCasesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region SearchRelatedItems internal virtual SearchRelatedItemsResponse SearchRelatedItems(SearchRelatedItemsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchRelatedItemsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchRelatedItemsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Searches for related items that are associated with a case. /// /// /// /// If no filters are provided, this returns all related items associated with a case. /// /// /// /// Container for the necessary parameters to execute the SearchRelatedItems service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the SearchRelatedItems service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for SearchRelatedItems Operation public virtual Task SearchRelatedItemsAsync(SearchRelatedItemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchRelatedItemsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchRelatedItemsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds tags to a resource. /// /// Container for the necessary parameters to execute the TagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the TagResource service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for TagResource Operation public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Untags a resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UntagResource service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for UntagResource Operation public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateCase internal virtual UpdateCaseResponse UpdateCase(UpdateCaseRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCaseRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCaseResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the values of fields on a case. Fields to be updated are received as an array /// of id/value pairs identical to the CreateCase input . /// /// /// /// If the action is successful, the service sends back an HTTP 200 response with an empty /// HTTP body. /// /// /// Container for the necessary parameters to execute the UpdateCase service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateCase service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for UpdateCase Operation public virtual Task UpdateCaseAsync(UpdateCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCaseRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCaseResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateField internal virtual UpdateFieldResponse UpdateField(UpdateFieldRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFieldResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the properties of an existing field. /// /// Container for the necessary parameters to execute the UpdateField service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateField service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// See the accompanying error message for details. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for UpdateField Operation public virtual Task UpdateFieldAsync(UpdateFieldRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateFieldRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateFieldResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateLayout internal virtual UpdateLayoutResponse UpdateLayout(UpdateLayoutRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLayoutRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLayoutResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the attributes of an existing layout. /// /// /// /// If the action is successful, the service sends back an HTTP 200 response with an empty /// HTTP body. /// /// /// /// A ValidationException is returned when you add non-existent fieldIds /// to a layout. /// /// /// /// Title and Status fields cannot be part of layouts because they are not configurable. /// /// /// /// Container for the necessary parameters to execute the UpdateLayout service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateLayout service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// See the accompanying error message for details. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The service quota has been exceeded. For a list of service quotas, see Amazon /// Connect Service Quotas in the Amazon Connect Administrator Guide. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for UpdateLayout Operation public virtual Task UpdateLayoutAsync(UpdateLayoutRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLayoutRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLayoutResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateTemplate internal virtual UpdateTemplateResponse UpdateTemplate(UpdateTemplateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTemplateResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the attributes of an existing template. The template attributes that can be /// modified include name, description, layoutConfiguration, /// requiredFields, and status. At least one of these attributes /// must not be null. If a null value is provided for a given attribute, that attribute /// is ignored and its current value is preserved. /// /// Container for the necessary parameters to execute the UpdateTemplate service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateTemplate service method, as returned by ConnectCases. /// /// You do not have sufficient access to perform this action. /// /// /// The requested operation would cause a conflict with the current state of a service /// resource associated with the request. Resolve the conflict before retrying this request. /// See the accompanying error message for details. /// /// /// We couldn't process your request because of an issue with the server. Try again later. /// /// /// We couldn't find the requested resource. Check that your resources exists and were /// created in the same Amazon Web Services Region as your request, and try your request /// again. /// /// /// The rate has been exceeded for this API. Please try again after a few minutes. /// /// /// The request isn't valid. Check the syntax and try again. /// /// REST API Reference for UpdateTemplate Operation public virtual Task UpdateTemplateAsync(UpdateTemplateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTemplateRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTemplateResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }