/* * 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 use-service-id-2022-07-12.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.UseServiceIdTestserviceId.Model; using Amazon.UseServiceIdTestserviceId.Model.Internal.MarshallTransformations; using Amazon.UseServiceIdTestserviceId.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.UseServiceIdTestserviceId { /// /// Implementation for accessing UseServiceIdTestserviceId /// /// /// public partial class AmazonUseServiceIdTestserviceIdClient : AmazonServiceClient, IAmazonUseServiceIdTestserviceId { private static IServiceMetadata serviceMetadata = new AmazonUseServiceIdTestserviceIdMetadata(); #region Constructors /// /// Constructs AmazonUseServiceIdTestserviceIdClient 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 AmazonUseServiceIdTestserviceIdClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonUseServiceIdTestserviceIdConfig()) { } /// /// Constructs AmazonUseServiceIdTestserviceIdClient 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 AmazonUseServiceIdTestserviceIdClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonUseServiceIdTestserviceIdConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonUseServiceIdTestserviceIdClient 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 AmazonUseServiceIdTestserviceIdClient Configuration Object public AmazonUseServiceIdTestserviceIdClient(AmazonUseServiceIdTestserviceIdConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonUseServiceIdTestserviceIdClient with AWS Credentials /// /// AWS Credentials public AmazonUseServiceIdTestserviceIdClient(AWSCredentials credentials) : this(credentials, new AmazonUseServiceIdTestserviceIdConfig()) { } /// /// Constructs AmazonUseServiceIdTestserviceIdClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonUseServiceIdTestserviceIdClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonUseServiceIdTestserviceIdConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonUseServiceIdTestserviceIdClient with AWS Credentials and an /// AmazonUseServiceIdTestserviceIdClient Configuration object. /// /// AWS Credentials /// The AmazonUseServiceIdTestserviceIdClient Configuration Object public AmazonUseServiceIdTestserviceIdClient(AWSCredentials credentials, AmazonUseServiceIdTestserviceIdConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonUseServiceIdTestserviceIdClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonUseServiceIdTestserviceIdClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonUseServiceIdTestserviceIdConfig()) { } /// /// Constructs AmazonUseServiceIdTestserviceIdClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonUseServiceIdTestserviceIdClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonUseServiceIdTestserviceIdConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonUseServiceIdTestserviceIdClient with AWS Access Key ID, AWS Secret Key and an /// AmazonUseServiceIdTestserviceIdClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonUseServiceIdTestserviceIdClient Configuration Object public AmazonUseServiceIdTestserviceIdClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonUseServiceIdTestserviceIdConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonUseServiceIdTestserviceIdClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonUseServiceIdTestserviceIdClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonUseServiceIdTestserviceIdConfig()) { } /// /// Constructs AmazonUseServiceIdTestserviceIdClient 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 AmazonUseServiceIdTestserviceIdClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonUseServiceIdTestserviceIdConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonUseServiceIdTestserviceIdClient with AWS Access Key ID, AWS Secret Key and an /// AmazonUseServiceIdTestserviceIdClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonUseServiceIdTestserviceIdClient Configuration Object public AmazonUseServiceIdTestserviceIdClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonUseServiceIdTestserviceIdConfig 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 NoPayload /// /// Request without a body /// /// Container for the necessary parameters to execute the NoPayload service method. /// /// The response from the NoPayload service method, as returned by UseServiceIdTestserviceId. /// REST API Reference for NoPayload Operation public virtual NoPayloadResponse NoPayload(NoPayloadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = NoPayloadRequestMarshaller.Instance; options.ResponseUnmarshaller = NoPayloadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the NoPayload operation. /// /// /// Container for the necessary parameters to execute the NoPayload operation on AmazonUseServiceIdTestserviceIdClient. /// 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 EndNoPayload /// operation. /// REST API Reference for NoPayload Operation public virtual IAsyncResult BeginNoPayload(NoPayloadRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = NoPayloadRequestMarshaller.Instance; options.ResponseUnmarshaller = NoPayloadResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// /// Finishes the asynchronous execution of the NoPayload operation. /// /// /// The IAsyncResult returned by the call to BeginNoPayload. /// /// Returns a NoPayloadResult from UseServiceIdTestserviceId. /// REST API Reference for NoPayload Operation public virtual NoPayloadResponse EndNoPayload(IAsyncResult asyncResult) { return EndInvoke(asyncResult); } #endregion } }