/* * 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 paginators-test-2022-03-14.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.PaginatorsTest.Model; using Amazon.PaginatorsTest.Model.Internal.MarshallTransformations; using Amazon.PaginatorsTest.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.PaginatorsTest { /// /// Implementation for accessing PaginatorsTest /// /// /// public partial class AmazonPaginatorsTestClient : AmazonServiceClient, IAmazonPaginatorsTest { private static IServiceMetadata serviceMetadata = new AmazonPaginatorsTestMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IPaginatorsTestPaginatorFactory _paginators; /// /// Paginators for the service /// public IPaginatorsTestPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new PaginatorsTestPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// /// Constructs AmazonPaginatorsTestClient 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 AmazonPaginatorsTestClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonPaginatorsTestConfig()) { } /// /// Constructs AmazonPaginatorsTestClient 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 AmazonPaginatorsTestClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonPaginatorsTestConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonPaginatorsTestClient 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 AmazonPaginatorsTestClient Configuration Object public AmazonPaginatorsTestClient(AmazonPaginatorsTestConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonPaginatorsTestClient with AWS Credentials /// /// AWS Credentials public AmazonPaginatorsTestClient(AWSCredentials credentials) : this(credentials, new AmazonPaginatorsTestConfig()) { } /// /// Constructs AmazonPaginatorsTestClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonPaginatorsTestClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonPaginatorsTestConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonPaginatorsTestClient with AWS Credentials and an /// AmazonPaginatorsTestClient Configuration object. /// /// AWS Credentials /// The AmazonPaginatorsTestClient Configuration Object public AmazonPaginatorsTestClient(AWSCredentials credentials, AmazonPaginatorsTestConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonPaginatorsTestClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonPaginatorsTestClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonPaginatorsTestConfig()) { } /// /// Constructs AmazonPaginatorsTestClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonPaginatorsTestClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonPaginatorsTestConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonPaginatorsTestClient with AWS Access Key ID, AWS Secret Key and an /// AmazonPaginatorsTestClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonPaginatorsTestClient Configuration Object public AmazonPaginatorsTestClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonPaginatorsTestConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonPaginatorsTestClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonPaginatorsTestClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonPaginatorsTestConfig()) { } /// /// Constructs AmazonPaginatorsTestClient 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 AmazonPaginatorsTestClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonPaginatorsTestConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonPaginatorsTestClient with AWS Access Key ID, AWS Secret Key and an /// AmazonPaginatorsTestClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonPaginatorsTestClient Configuration Object public AmazonPaginatorsTestClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonPaginatorsTestConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// 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 TestPaginator /// /// /// /// Container for the necessary parameters to execute the TestPaginator service method. /// /// The response from the TestPaginator service method, as returned by PaginatorsTest. /// REST API Reference for TestPaginator Operation public virtual TestPaginatorResponse TestPaginator(TestPaginatorRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TestPaginatorRequestMarshaller.Instance; options.ResponseUnmarshaller = TestPaginatorResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TestPaginator operation. /// /// /// Container for the necessary parameters to execute the TestPaginator operation on AmazonPaginatorsTestClient. /// An AsyncCallback delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTestPaginator /// operation. /// REST API Reference for TestPaginator Operation public virtual IAsyncResult BeginTestPaginator(TestPaginatorRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TestPaginatorRequestMarshaller.Instance; options.ResponseUnmarshaller = TestPaginatorResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the TestPaginator operation. /// /// /// The IAsyncResult returned by the call to BeginTestPaginator. /// /// Returns a TestPaginatorResult from PaginatorsTest. /// REST API Reference for TestPaginator Operation public virtual TestPaginatorResponse EndTestPaginator(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }