repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// InstanceConfig Marshaller /// </summary> public class InstanceConfigMarshaller : IRequestMarshaller<InstanceConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(InstanceConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetInstanceCount()) { context.Writer.WritePropertyName("instanceCount"); context.Writer.Write(requestObject.InstanceCount); } if(requestObject.IsSetInstanceType()) { context.Writer.WritePropertyName("instanceType"); context.Writer.Write(requestObject.InstanceType); } if(requestObject.IsSetVolumeSizeInGb()) { context.Writer.WritePropertyName("volumeSizeInGb"); context.Writer.Write(requestObject.VolumeSizeInGb); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static InstanceConfigMarshaller Instance = new InstanceConfigMarshaller(); } }
74
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InstanceConfig Object /// </summary> public class InstanceConfigUnmarshaller : IUnmarshaller<InstanceConfig, XmlUnmarshallerContext>, IUnmarshaller<InstanceConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> InstanceConfig IUnmarshaller<InstanceConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InstanceConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; InstanceConfig unmarshalledObject = new InstanceConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("instanceCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.InstanceCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("instanceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.InstanceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("volumeSizeInGb", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.VolumeSizeInGb = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static InstanceConfigUnmarshaller _instance = new InstanceConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InstanceConfigUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InternalServiceException Object /// </summary> public class InternalServiceExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServiceException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InternalServiceException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InternalServiceException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InternalServiceException unmarshalledObject = new InternalServiceException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InternalServiceExceptionUnmarshaller _instance = new InternalServiceExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InternalServiceExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// JobCheckpointConfig Marshaller /// </summary> public class JobCheckpointConfigMarshaller : IRequestMarshaller<JobCheckpointConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(JobCheckpointConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetLocalPath()) { context.Writer.WritePropertyName("localPath"); context.Writer.Write(requestObject.LocalPath); } if(requestObject.IsSetS3Uri()) { context.Writer.WritePropertyName("s3Uri"); context.Writer.Write(requestObject.S3Uri); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static JobCheckpointConfigMarshaller Instance = new JobCheckpointConfigMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobCheckpointConfig Object /// </summary> public class JobCheckpointConfigUnmarshaller : IUnmarshaller<JobCheckpointConfig, XmlUnmarshallerContext>, IUnmarshaller<JobCheckpointConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobCheckpointConfig IUnmarshaller<JobCheckpointConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public JobCheckpointConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobCheckpointConfig unmarshalledObject = new JobCheckpointConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("localPath", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LocalPath = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("s3Uri", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.S3Uri = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobCheckpointConfigUnmarshaller _instance = new JobCheckpointConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobCheckpointConfigUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobEventDetails Object /// </summary> public class JobEventDetailsUnmarshaller : IUnmarshaller<JobEventDetails, XmlUnmarshallerContext>, IUnmarshaller<JobEventDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobEventDetails IUnmarshaller<JobEventDetails, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public JobEventDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobEventDetails unmarshalledObject = new JobEventDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("eventType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("message", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Message = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("timeOfEvent", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.TimeOfEvent = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobEventDetailsUnmarshaller _instance = new JobEventDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobEventDetailsUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// JobOutputDataConfig Marshaller /// </summary> public class JobOutputDataConfigMarshaller : IRequestMarshaller<JobOutputDataConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(JobOutputDataConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetKmsKeyId()) { context.Writer.WritePropertyName("kmsKeyId"); context.Writer.Write(requestObject.KmsKeyId); } if(requestObject.IsSetS3Path()) { context.Writer.WritePropertyName("s3Path"); context.Writer.Write(requestObject.S3Path); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static JobOutputDataConfigMarshaller Instance = new JobOutputDataConfigMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobOutputDataConfig Object /// </summary> public class JobOutputDataConfigUnmarshaller : IUnmarshaller<JobOutputDataConfig, XmlUnmarshallerContext>, IUnmarshaller<JobOutputDataConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobOutputDataConfig IUnmarshaller<JobOutputDataConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public JobOutputDataConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobOutputDataConfig unmarshalledObject = new JobOutputDataConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("kmsKeyId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.KmsKeyId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("s3Path", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.S3Path = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobOutputDataConfigUnmarshaller _instance = new JobOutputDataConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobOutputDataConfigUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// JobStoppingCondition Marshaller /// </summary> public class JobStoppingConditionMarshaller : IRequestMarshaller<JobStoppingCondition, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(JobStoppingCondition requestObject, JsonMarshallerContext context) { if(requestObject.IsSetMaxRuntimeInSeconds()) { context.Writer.WritePropertyName("maxRuntimeInSeconds"); context.Writer.Write(requestObject.MaxRuntimeInSeconds); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static JobStoppingConditionMarshaller Instance = new JobStoppingConditionMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobStoppingCondition Object /// </summary> public class JobStoppingConditionUnmarshaller : IUnmarshaller<JobStoppingCondition, XmlUnmarshallerContext>, IUnmarshaller<JobStoppingCondition, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobStoppingCondition IUnmarshaller<JobStoppingCondition, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public JobStoppingCondition Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobStoppingCondition unmarshalledObject = new JobStoppingCondition(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("maxRuntimeInSeconds", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.MaxRuntimeInSeconds = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobStoppingConditionUnmarshaller _instance = new JobStoppingConditionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobStoppingConditionUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for JobSummary Object /// </summary> public class JobSummaryUnmarshaller : IUnmarshaller<JobSummary, XmlUnmarshallerContext>, IUnmarshaller<JobSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> JobSummary IUnmarshaller<JobSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public JobSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; JobSummary unmarshalledObject = new JobSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("device", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Device = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("endedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.EndedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("jobName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.JobName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StartedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static JobSummaryUnmarshaller _instance = new JobSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static JobSummaryUnmarshaller Instance { get { return _instance; } } } }
134
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// ListTagsForResource Request Marshaller /// </summary> public class ListTagsForResourceRequestMarshaller : IMarshaller<IRequest, ListTagsForResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListTagsForResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListTagsForResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "GET"; if (!publicRequest.IsSetResourceArn()) throw new AmazonBraketException("Request object does not have required field ResourceArn set"); request.AddPathResource("{resourceArn}", StringUtils.FromString(publicRequest.ResourceArn)); request.ResourcePath = "/tags/{resourceArn}"; return request; } private static ListTagsForResourceRequestMarshaller _instance = new ListTagsForResourceRequestMarshaller(); internal static ListTagsForResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceRequestMarshaller Instance { get { return _instance; } } } }
87
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListTagsForResource operation /// </summary> public class ListTagsForResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListTagsForResourceResponse response = new ListTagsForResourceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListTagsForResourceResponseUnmarshaller _instance = new ListTagsForResourceResponseUnmarshaller(); internal static ListTagsForResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForResourceResponseUnmarshaller Instance { get { return _instance; } } } }
118
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for QuantumTaskSummary Object /// </summary> public class QuantumTaskSummaryUnmarshaller : IUnmarshaller<QuantumTaskSummary, XmlUnmarshallerContext>, IUnmarshaller<QuantumTaskSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> QuantumTaskSummary IUnmarshaller<QuantumTaskSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public QuantumTaskSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; QuantumTaskSummary unmarshalledObject = new QuantumTaskSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("deviceArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DeviceArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("endedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.EndedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outputS3Bucket", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OutputS3Bucket = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("outputS3Directory", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OutputS3Directory = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("quantumTaskArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.QuantumTaskArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("shots", targetDepth)) { var unmarshaller = LongUnmarshaller.Instance; unmarshalledObject.Shots = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static QuantumTaskSummaryUnmarshaller _instance = new QuantumTaskSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static QuantumTaskSummaryUnmarshaller Instance { get { return _instance; } } } }
140
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceNotFoundException Object /// </summary> public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// S3DataSource Marshaller /// </summary> public class S3DataSourceMarshaller : IRequestMarshaller<S3DataSource, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(S3DataSource requestObject, JsonMarshallerContext context) { if(requestObject.IsSetS3Uri()) { context.Writer.WritePropertyName("s3Uri"); context.Writer.Write(requestObject.S3Uri); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static S3DataSourceMarshaller Instance = new S3DataSourceMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for S3DataSource Object /// </summary> public class S3DataSourceUnmarshaller : IUnmarshaller<S3DataSource, XmlUnmarshallerContext>, IUnmarshaller<S3DataSource, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> S3DataSource IUnmarshaller<S3DataSource, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public S3DataSource Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; S3DataSource unmarshalledObject = new S3DataSource(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("s3Uri", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.S3Uri = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static S3DataSourceUnmarshaller _instance = new S3DataSourceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static S3DataSourceUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// ScriptModeConfig Marshaller /// </summary> public class ScriptModeConfigMarshaller : IRequestMarshaller<ScriptModeConfig, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ScriptModeConfig requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCompressionType()) { context.Writer.WritePropertyName("compressionType"); context.Writer.Write(requestObject.CompressionType); } if(requestObject.IsSetEntryPoint()) { context.Writer.WritePropertyName("entryPoint"); context.Writer.Write(requestObject.EntryPoint); } if(requestObject.IsSetS3Uri()) { context.Writer.WritePropertyName("s3Uri"); context.Writer.Write(requestObject.S3Uri); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ScriptModeConfigMarshaller Instance = new ScriptModeConfigMarshaller(); } }
74
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ScriptModeConfig Object /// </summary> public class ScriptModeConfigUnmarshaller : IUnmarshaller<ScriptModeConfig, XmlUnmarshallerContext>, IUnmarshaller<ScriptModeConfig, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ScriptModeConfig IUnmarshaller<ScriptModeConfig, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ScriptModeConfig Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ScriptModeConfig unmarshalledObject = new ScriptModeConfig(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("compressionType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CompressionType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("entryPoint", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EntryPoint = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("s3Uri", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.S3Uri = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ScriptModeConfigUnmarshaller _instance = new ScriptModeConfigUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ScriptModeConfigUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// SearchDevicesFilter Marshaller /// </summary> public class SearchDevicesFilterMarshaller : IRequestMarshaller<SearchDevicesFilter, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(SearchDevicesFilter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetValues()) { context.Writer.WritePropertyName("values"); context.Writer.WriteArrayStart(); foreach(var requestObjectValuesListValue in requestObject.Values) { context.Writer.Write(requestObjectValuesListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SearchDevicesFilterMarshaller Instance = new SearchDevicesFilterMarshaller(); } }
73
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// SearchDevices Request Marshaller /// </summary> public class SearchDevicesRequestMarshaller : IMarshaller<IRequest, SearchDevicesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((SearchDevicesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SearchDevicesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "POST"; request.ResourcePath = "/devices"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFilters()) { context.Writer.WritePropertyName("filters"); context.Writer.WriteArrayStart(); foreach(var publicRequestFiltersListValue in publicRequest.Filters) { context.Writer.WriteObjectStart(); var marshaller = SearchDevicesFilterMarshaller.Instance; marshaller.Marshall(publicRequestFiltersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static SearchDevicesRequestMarshaller _instance = new SearchDevicesRequestMarshaller(); internal static SearchDevicesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SearchDevicesRequestMarshaller Instance { get { return _instance; } } } }
123
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SearchDevices operation /// </summary> public class SearchDevicesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { SearchDevicesResponse response = new SearchDevicesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("devices", targetDepth)) { var unmarshaller = new ListUnmarshaller<DeviceSummary, DeviceSummaryUnmarshaller>(DeviceSummaryUnmarshaller.Instance); response.Devices = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static SearchDevicesResponseUnmarshaller _instance = new SearchDevicesResponseUnmarshaller(); internal static SearchDevicesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SearchDevicesResponseUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// SearchJobsFilter Marshaller /// </summary> public class SearchJobsFilterMarshaller : IRequestMarshaller<SearchJobsFilter, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(SearchJobsFilter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetOperator()) { context.Writer.WritePropertyName("operator"); context.Writer.Write(requestObject.Operator); } if(requestObject.IsSetValues()) { context.Writer.WritePropertyName("values"); context.Writer.WriteArrayStart(); foreach(var requestObjectValuesListValue in requestObject.Values) { context.Writer.Write(requestObjectValuesListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SearchJobsFilterMarshaller Instance = new SearchJobsFilterMarshaller(); } }
79
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// SearchJobs Request Marshaller /// </summary> public class SearchJobsRequestMarshaller : IMarshaller<IRequest, SearchJobsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((SearchJobsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SearchJobsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "POST"; request.ResourcePath = "/jobs"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFilters()) { context.Writer.WritePropertyName("filters"); context.Writer.WriteArrayStart(); foreach(var publicRequestFiltersListValue in publicRequest.Filters) { context.Writer.WriteObjectStart(); var marshaller = SearchJobsFilterMarshaller.Instance; marshaller.Marshall(publicRequestFiltersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static SearchJobsRequestMarshaller _instance = new SearchJobsRequestMarshaller(); internal static SearchJobsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SearchJobsRequestMarshaller Instance { get { return _instance; } } } }
123
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SearchJobs operation /// </summary> public class SearchJobsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { SearchJobsResponse response = new SearchJobsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("jobs", targetDepth)) { var unmarshaller = new ListUnmarshaller<JobSummary, JobSummaryUnmarshaller>(JobSummaryUnmarshaller.Instance); response.Jobs = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static SearchJobsResponseUnmarshaller _instance = new SearchJobsResponseUnmarshaller(); internal static SearchJobsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SearchJobsResponseUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// SearchQuantumTasksFilter Marshaller /// </summary> public class SearchQuantumTasksFilterMarshaller : IRequestMarshaller<SearchQuantumTasksFilter, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(SearchQuantumTasksFilter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetOperator()) { context.Writer.WritePropertyName("operator"); context.Writer.Write(requestObject.Operator); } if(requestObject.IsSetValues()) { context.Writer.WritePropertyName("values"); context.Writer.WriteArrayStart(); foreach(var requestObjectValuesListValue in requestObject.Values) { context.Writer.Write(requestObjectValuesListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SearchQuantumTasksFilterMarshaller Instance = new SearchQuantumTasksFilterMarshaller(); } }
79
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// SearchQuantumTasks Request Marshaller /// </summary> public class SearchQuantumTasksRequestMarshaller : IMarshaller<IRequest, SearchQuantumTasksRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((SearchQuantumTasksRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(SearchQuantumTasksRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "POST"; request.ResourcePath = "/quantum-tasks"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFilters()) { context.Writer.WritePropertyName("filters"); context.Writer.WriteArrayStart(); foreach(var publicRequestFiltersListValue in publicRequest.Filters) { context.Writer.WriteObjectStart(); var marshaller = SearchQuantumTasksFilterMarshaller.Instance; marshaller.Marshall(publicRequestFiltersListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static SearchQuantumTasksRequestMarshaller _instance = new SearchQuantumTasksRequestMarshaller(); internal static SearchQuantumTasksRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SearchQuantumTasksRequestMarshaller Instance { get { return _instance; } } } }
123
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SearchQuantumTasks operation /// </summary> public class SearchQuantumTasksResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { SearchQuantumTasksResponse response = new SearchQuantumTasksResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("quantumTasks", targetDepth)) { var unmarshaller = new ListUnmarshaller<QuantumTaskSummary, QuantumTaskSummaryUnmarshaller>(QuantumTaskSummaryUnmarshaller.Instance); response.QuantumTasks = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static SearchQuantumTasksResponseUnmarshaller _instance = new SearchQuantumTasksResponseUnmarshaller(); internal static SearchQuantumTasksResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static SearchQuantumTasksResponseUnmarshaller Instance { get { return _instance; } } } }
128
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ServiceQuotaExceededException Object /// </summary> public class ServiceQuotaExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceQuotaExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ServiceQuotaExceededException unmarshalledObject = new ServiceQuotaExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ServiceQuotaExceededExceptionUnmarshaller _instance = new ServiceQuotaExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ServiceQuotaExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// TagResource Request Marshaller /// </summary> public class TagResourceRequestMarshaller : IMarshaller<IRequest, TagResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((TagResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(TagResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "POST"; if (!publicRequest.IsSetResourceArn()) throw new AmazonBraketException("Request object does not have required field ResourceArn set"); request.AddPathResource("{resourceArn}", StringUtils.FromString(publicRequest.ResourceArn)); request.ResourcePath = "/tags/{resourceArn}"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteObjectStart(); foreach (var publicRequestTagsKvp in publicRequest.Tags) { context.Writer.WritePropertyName(publicRequestTagsKvp.Key); var publicRequestTagsValue = publicRequestTagsKvp.Value; context.Writer.Write(publicRequestTagsValue); } context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static TagResourceRequestMarshaller _instance = new TagResourceRequestMarshaller(); internal static TagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceRequestMarshaller Instance { get { return _instance; } } } }
112
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TagResource operation /// </summary> public class TagResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { TagResourceResponse response = new TagResourceResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static TagResourceResponseUnmarshaller _instance = new TagResourceResponseUnmarshaller(); internal static TagResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static TagResourceResponseUnmarshaller Instance { get { return _instance; } } } }
107
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ThrottlingException Object /// </summary> public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ThrottlingExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// UntagResource Request Marshaller /// </summary> public class UntagResourceRequestMarshaller : IMarshaller<IRequest, UntagResourceRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UntagResourceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UntagResourceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.Braket"); request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2019-09-01"; request.HttpMethod = "DELETE"; if (!publicRequest.IsSetResourceArn()) throw new AmazonBraketException("Request object does not have required field ResourceArn set"); request.AddPathResource("{resourceArn}", StringUtils.FromString(publicRequest.ResourceArn)); if (publicRequest.IsSetTagKeys()) request.ParameterCollection.Add("tagKeys", publicRequest.TagKeys); request.ResourcePath = "/tags/{resourceArn}"; request.UseQueryString = true; return request; } private static UntagResourceRequestMarshaller _instance = new UntagResourceRequestMarshaller(); internal static UntagResourceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UntagResourceRequestMarshaller Instance { get { return _instance; } } } }
91
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UntagResource operation /// </summary> public class UntagResourceResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UntagResourceResponse response = new UntagResourceResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException")) { return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonBraketException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UntagResourceResponseUnmarshaller _instance = new UntagResourceResponseUnmarshaller(); internal static UntagResourceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UntagResourceResponseUnmarshaller Instance { get { return _instance; } } } }
107
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.Braket.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.Braket.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ValidationException Object /// </summary> public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ValidationExceptionUnmarshaller Instance { get { return _instance; } } } }
85
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.Braket.Model { /// <summary> /// Paginators for the Braket service ///</summary> public class BraketPaginatorFactory : IBraketPaginatorFactory { private readonly IAmazonBraket client; internal BraketPaginatorFactory(IAmazonBraket client) { this.client = client; } /// <summary> /// Paginator for SearchDevices operation ///</summary> public ISearchDevicesPaginator SearchDevices(SearchDevicesRequest request) { return new SearchDevicesPaginator(this.client, request); } /// <summary> /// Paginator for SearchJobs operation ///</summary> public ISearchJobsPaginator SearchJobs(SearchJobsRequest request) { return new SearchJobsPaginator(this.client, request); } /// <summary> /// Paginator for SearchQuantumTasks operation ///</summary> public ISearchQuantumTasksPaginator SearchQuantumTasks(SearchQuantumTasksRequest request) { return new SearchQuantumTasksPaginator(this.client, request); } } }
62
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ namespace Amazon.Braket.Model { /// <summary> /// Paginators for the Braket service ///</summary> public interface IBraketPaginatorFactory { /// <summary> /// Paginator for SearchDevices operation ///</summary> ISearchDevicesPaginator SearchDevices(SearchDevicesRequest request); /// <summary> /// Paginator for SearchJobs operation ///</summary> ISearchJobsPaginator SearchJobs(SearchJobsRequest request); /// <summary> /// Paginator for SearchQuantumTasks operation ///</summary> ISearchQuantumTasksPaginator SearchQuantumTasks(SearchQuantumTasksRequest request); } }
43
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Braket.Model { /// <summary> /// Paginator for the SearchDevices operation ///</summary> public interface ISearchDevicesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<SearchDevicesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Devices /// </summary> IPaginatedEnumerable<DeviceSummary> Devices { get; } } }
38
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Braket.Model { /// <summary> /// Paginator for the SearchJobs operation ///</summary> public interface ISearchJobsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<SearchJobsResponse> Responses { get; } /// <summary> /// Enumerable containing all of the Jobs /// </summary> IPaginatedEnumerable<JobSummary> Jobs { get; } } }
38
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Braket.Model { /// <summary> /// Paginator for the SearchQuantumTasks operation ///</summary> public interface ISearchQuantumTasksPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<SearchQuantumTasksResponse> Responses { get; } /// <summary> /// Enumerable containing all of the QuantumTasks /// </summary> IPaginatedEnumerable<QuantumTaskSummary> QuantumTasks { get; } } }
38
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Braket.Model { /// <summary> /// Base class for SearchDevices paginators. /// </summary> internal sealed partial class SearchDevicesPaginator : IPaginator<SearchDevicesResponse>, ISearchDevicesPaginator { private readonly IAmazonBraket _client; private readonly SearchDevicesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<SearchDevicesResponse> Responses => new PaginatedResponse<SearchDevicesResponse>(this); /// <summary> /// Enumerable containing all of the Devices /// </summary> public IPaginatedEnumerable<DeviceSummary> Devices => new PaginatedResultKeyResponse<SearchDevicesResponse, DeviceSummary>(this, (i) => i.Devices); internal SearchDevicesPaginator(IAmazonBraket client, SearchDevicesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<SearchDevicesResponse> IPaginator<SearchDevicesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; SearchDevicesResponse response; do { _request.NextToken = nextToken; response = _client.SearchDevices(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<SearchDevicesResponse> IPaginator<SearchDevicesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; SearchDevicesResponse response; do { _request.NextToken = nextToken; response = await _client.SearchDevicesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Braket.Model { /// <summary> /// Base class for SearchJobs paginators. /// </summary> internal sealed partial class SearchJobsPaginator : IPaginator<SearchJobsResponse>, ISearchJobsPaginator { private readonly IAmazonBraket _client; private readonly SearchJobsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<SearchJobsResponse> Responses => new PaginatedResponse<SearchJobsResponse>(this); /// <summary> /// Enumerable containing all of the Jobs /// </summary> public IPaginatedEnumerable<JobSummary> Jobs => new PaginatedResultKeyResponse<SearchJobsResponse, JobSummary>(this, (i) => i.Jobs); internal SearchJobsPaginator(IAmazonBraket client, SearchJobsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<SearchJobsResponse> IPaginator<SearchJobsResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; SearchJobsResponse response; do { _request.NextToken = nextToken; response = _client.SearchJobs(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<SearchJobsResponse> IPaginator<SearchJobsResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; SearchJobsResponse response; do { _request.NextToken = nextToken; response = await _client.SearchJobsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.Braket.Model { /// <summary> /// Base class for SearchQuantumTasks paginators. /// </summary> internal sealed partial class SearchQuantumTasksPaginator : IPaginator<SearchQuantumTasksResponse>, ISearchQuantumTasksPaginator { private readonly IAmazonBraket _client; private readonly SearchQuantumTasksRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<SearchQuantumTasksResponse> Responses => new PaginatedResponse<SearchQuantumTasksResponse>(this); /// <summary> /// Enumerable containing all of the QuantumTasks /// </summary> public IPaginatedEnumerable<QuantumTaskSummary> QuantumTasks => new PaginatedResultKeyResponse<SearchQuantumTasksResponse, QuantumTaskSummary>(this, (i) => i.QuantumTasks); internal SearchQuantumTasksPaginator(IAmazonBraket client, SearchQuantumTasksRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<SearchQuantumTasksResponse> IPaginator<SearchQuantumTasksResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; SearchQuantumTasksResponse response; do { _request.NextToken = nextToken; response = _client.SearchQuantumTasks(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<SearchQuantumTasksResponse> IPaginator<SearchQuantumTasksResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; SearchQuantumTasksResponse response; do { _request.NextToken = nextToken; response = await _client.SearchQuantumTasksAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
97
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.Braket.Model; using Amazon.Braket.Model.Internal.MarshallTransformations; using Amazon.Braket.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Braket { /// <summary> /// Implementation for accessing Braket /// /// The Amazon Braket API Reference provides information about the operations and structures /// supported in Amazon Braket. /// /// /// <para> /// Additional Resources: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon /// Braket Developer Guide</a> /// </para> /// </li> </ul> /// </summary> public partial class AmazonBraketClient : AmazonServiceClient, IAmazonBraket { private static IServiceMetadata serviceMetadata = new AmazonBraketMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private IBraketPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBraketPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BraketPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonBraketClient 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBraketClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBraketClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBraketConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBraketClient 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(AmazonBraketConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBraketClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBraketClient(AWSCredentials credentials) : this(credentials, new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBraketClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBraketConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBraketClient with AWS Credentials and an /// AmazonBraketClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(AWSCredentials credentials, AmazonBraketConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBraketConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBraketClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBraketConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBraketConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBraketClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBraketConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonBraketEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region CancelJob /// <summary> /// Cancels an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// /// <returns>The response from the CancelJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual CancelJobResponse CancelJob(CancelJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return Invoke<CancelJobResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CancelJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelJob operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual IAsyncResult BeginCancelJob(CancelJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CancelJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelJob.</param> /// /// <returns>Returns a CancelJobResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual CancelJobResponse EndCancelJob(IAsyncResult asyncResult) { return EndInvoke<CancelJobResponse>(asyncResult); } #endregion #region CancelQuantumTask /// <summary> /// Cancels the specified task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask service method.</param> /// /// <returns>The response from the CancelQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> public virtual CancelQuantumTaskResponse CancelQuantumTask(CancelQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return Invoke<CancelQuantumTaskResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CancelQuantumTask operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelQuantumTask /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> public virtual IAsyncResult BeginCancelQuantumTask(CancelQuantumTaskRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CancelQuantumTask operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelQuantumTask.</param> /// /// <returns>Returns a CancelQuantumTaskResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> public virtual CancelQuantumTaskResponse EndCancelQuantumTask(IAsyncResult asyncResult) { return EndInvoke<CancelQuantumTaskResponse>(asyncResult); } #endregion #region CreateJob /// <summary> /// Creates an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJob service method.</param> /// /// <returns>The response from the CreateJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> public virtual CreateJobResponse CreateJob(CreateJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance; return Invoke<CreateJobResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateJob operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> public virtual IAsyncResult BeginCreateJob(CreateJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateJob.</param> /// /// <returns>Returns a CreateJobResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> public virtual CreateJobResponse EndCreateJob(IAsyncResult asyncResult) { return EndInvoke<CreateJobResponse>(asyncResult); } #endregion #region CreateQuantumTask /// <summary> /// Creates a quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateQuantumTask service method.</param> /// /// <returns>The response from the CreateQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceOfflineException"> /// The specified device is currently offline. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> public virtual CreateQuantumTaskResponse CreateQuantumTask(CreateQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateQuantumTaskResponseUnmarshaller.Instance; return Invoke<CreateQuantumTaskResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the CreateQuantumTask operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateQuantumTask operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateQuantumTask /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> public virtual IAsyncResult BeginCreateQuantumTask(CreateQuantumTaskRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = CreateQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateQuantumTaskResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the CreateQuantumTask operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateQuantumTask.</param> /// /// <returns>Returns a CreateQuantumTaskResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> public virtual CreateQuantumTaskResponse EndCreateQuantumTask(IAsyncResult asyncResult) { return EndInvoke<CreateQuantumTaskResponse>(asyncResult); } #endregion #region GetDevice /// <summary> /// Retrieves the devices available in Amazon Braket. /// /// <note> /// <para> /// For backwards compatibility with older versions of BraketSchemas, OpenQASM information /// is omitted from GetDevice API calls. To get this information the user-agent needs /// to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK /// automatically reports this for you. If you do not see OpenQASM results in the GetDevice /// response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment /// variable to configure user-agent. See the code examples provided below for how to /// do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDevice service method.</param> /// /// <returns>The response from the GetDevice service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> public virtual GetDeviceResponse GetDevice(GetDeviceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance; return Invoke<GetDeviceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetDevice operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDevice operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDevice /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> public virtual IAsyncResult BeginGetDevice(GetDeviceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetDevice operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDevice.</param> /// /// <returns>Returns a GetDeviceResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> public virtual GetDeviceResponse EndGetDevice(IAsyncResult asyncResult) { return EndInvoke<GetDeviceResponse>(asyncResult); } #endregion #region GetJob /// <summary> /// Retrieves the specified Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetJob service method.</param> /// /// <returns>The response from the GetJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> public virtual GetJobResponse GetJob(GetJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobResponseUnmarshaller.Instance; return Invoke<GetJobResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetJob operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> public virtual IAsyncResult BeginGetJob(GetJobRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetJob.</param> /// /// <returns>Returns a GetJobResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> public virtual GetJobResponse EndGetJob(IAsyncResult asyncResult) { return EndInvoke<GetJobResponse>(asyncResult); } #endregion #region GetQuantumTask /// <summary> /// Retrieves the specified quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQuantumTask service method.</param> /// /// <returns>The response from the GetQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> public virtual GetQuantumTaskResponse GetQuantumTask(GetQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQuantumTaskResponseUnmarshaller.Instance; return Invoke<GetQuantumTaskResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetQuantumTask operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetQuantumTask operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetQuantumTask /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> public virtual IAsyncResult BeginGetQuantumTask(GetQuantumTaskRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQuantumTaskResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetQuantumTask operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetQuantumTask.</param> /// /// <returns>Returns a GetQuantumTaskResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> public virtual GetQuantumTaskResponse EndGetQuantumTask(IAsyncResult asyncResult) { return EndInvoke<GetQuantumTaskResponse>(asyncResult); } #endregion #region ListTagsForResource /// <summary> /// Shows the tags associated with this resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult) { return EndInvoke<ListTagsForResourceResponse>(asyncResult); } #endregion #region SearchDevices /// <summary> /// Searches for devices using the specified filters. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchDevices service method.</param> /// /// <returns>The response from the SearchDevices service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> public virtual SearchDevicesResponse SearchDevices(SearchDevicesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance; return Invoke<SearchDevicesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SearchDevices operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SearchDevices operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchDevices /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> public virtual IAsyncResult BeginSearchDevices(SearchDevicesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SearchDevices operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSearchDevices.</param> /// /// <returns>Returns a SearchDevicesResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> public virtual SearchDevicesResponse EndSearchDevices(IAsyncResult asyncResult) { return EndInvoke<SearchDevicesResponse>(asyncResult); } #endregion #region SearchJobs /// <summary> /// Searches for Amazon Braket jobs that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchJobs service method.</param> /// /// <returns>The response from the SearchJobs service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> public virtual SearchJobsResponse SearchJobs(SearchJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchJobsResponseUnmarshaller.Instance; return Invoke<SearchJobsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SearchJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SearchJobs operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchJobs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> public virtual IAsyncResult BeginSearchJobs(SearchJobsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SearchJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchJobsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SearchJobs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSearchJobs.</param> /// /// <returns>Returns a SearchJobsResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> public virtual SearchJobsResponse EndSearchJobs(IAsyncResult asyncResult) { return EndInvoke<SearchJobsResponse>(asyncResult); } #endregion #region SearchQuantumTasks /// <summary> /// Searches for tasks that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchQuantumTasks service method.</param> /// /// <returns>The response from the SearchQuantumTasks service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> public virtual SearchQuantumTasksResponse SearchQuantumTasks(SearchQuantumTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchQuantumTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchQuantumTasksResponseUnmarshaller.Instance; return Invoke<SearchQuantumTasksResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the SearchQuantumTasks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SearchQuantumTasks operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchQuantumTasks /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> public virtual IAsyncResult BeginSearchQuantumTasks(SearchQuantumTasksRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = SearchQuantumTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchQuantumTasksResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the SearchQuantumTasks operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSearchQuantumTasks.</param> /// /// <returns>Returns a SearchQuantumTasksResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> public virtual SearchQuantumTasksResponse EndSearchQuantumTasks(IAsyncResult asyncResult) { return EndInvoke<SearchQuantumTasksResponse>(asyncResult); } #endregion #region TagResource /// <summary> /// Add a tag to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param> /// /// <returns>Returns a TagResourceResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult) { return EndInvoke<TagResourceResponse>(asyncResult); } #endregion #region UntagResource /// <summary> /// Remove tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param> /// /// <returns>Returns a UntagResourceResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult) { return EndInvoke<UntagResourceResponse>(asyncResult); } #endregion } }
1,180
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Braket.Model; namespace Amazon.Braket { /// <summary> /// Interface for accessing Braket /// /// The Amazon Braket API Reference provides information about the operations and structures /// supported in Amazon Braket. /// /// /// <para> /// Additional Resources: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon /// Braket Developer Guide</a> /// </para> /// </li> </ul> /// </summary> public partial interface IAmazonBraket : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IBraketPaginatorFactory Paginators { get; } #endif #region CancelJob /// <summary> /// Cancels an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// /// <returns>The response from the CancelJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> CancelJobResponse CancelJob(CancelJobRequest request); /// <summary> /// Initiates the asynchronous execution of the CancelJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelJob operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> IAsyncResult BeginCancelJob(CancelJobRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CancelJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelJob.</param> /// /// <returns>Returns a CancelJobResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> CancelJobResponse EndCancelJob(IAsyncResult asyncResult); #endregion #region CancelQuantumTask /// <summary> /// Cancels the specified task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask service method.</param> /// /// <returns>The response from the CancelQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> CancelQuantumTaskResponse CancelQuantumTask(CancelQuantumTaskRequest request); /// <summary> /// Initiates the asynchronous execution of the CancelQuantumTask operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCancelQuantumTask /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> IAsyncResult BeginCancelQuantumTask(CancelQuantumTaskRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CancelQuantumTask operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCancelQuantumTask.</param> /// /// <returns>Returns a CancelQuantumTaskResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> CancelQuantumTaskResponse EndCancelQuantumTask(IAsyncResult asyncResult); #endregion #region CreateJob /// <summary> /// Creates an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJob service method.</param> /// /// <returns>The response from the CreateJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> CreateJobResponse CreateJob(CreateJobRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateJob operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> IAsyncResult BeginCreateJob(CreateJobRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateJob.</param> /// /// <returns>Returns a CreateJobResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> CreateJobResponse EndCreateJob(IAsyncResult asyncResult); #endregion #region CreateQuantumTask /// <summary> /// Creates a quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateQuantumTask service method.</param> /// /// <returns>The response from the CreateQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceOfflineException"> /// The specified device is currently offline. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> CreateQuantumTaskResponse CreateQuantumTask(CreateQuantumTaskRequest request); /// <summary> /// Initiates the asynchronous execution of the CreateQuantumTask operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the CreateQuantumTask operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateQuantumTask /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> IAsyncResult BeginCreateQuantumTask(CreateQuantumTaskRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the CreateQuantumTask operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateQuantumTask.</param> /// /// <returns>Returns a CreateQuantumTaskResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> CreateQuantumTaskResponse EndCreateQuantumTask(IAsyncResult asyncResult); #endregion #region GetDevice /// <summary> /// Retrieves the devices available in Amazon Braket. /// /// <note> /// <para> /// For backwards compatibility with older versions of BraketSchemas, OpenQASM information /// is omitted from GetDevice API calls. To get this information the user-agent needs /// to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK /// automatically reports this for you. If you do not see OpenQASM results in the GetDevice /// response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment /// variable to configure user-agent. See the code examples provided below for how to /// do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDevice service method.</param> /// /// <returns>The response from the GetDevice service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> GetDeviceResponse GetDevice(GetDeviceRequest request); /// <summary> /// Initiates the asynchronous execution of the GetDevice operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetDevice operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetDevice /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> IAsyncResult BeginGetDevice(GetDeviceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetDevice operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetDevice.</param> /// /// <returns>Returns a GetDeviceResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> GetDeviceResponse EndGetDevice(IAsyncResult asyncResult); #endregion #region GetJob /// <summary> /// Retrieves the specified Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetJob service method.</param> /// /// <returns>The response from the GetJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> GetJobResponse GetJob(GetJobRequest request); /// <summary> /// Initiates the asynchronous execution of the GetJob operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetJob operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetJob /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> IAsyncResult BeginGetJob(GetJobRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetJob operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetJob.</param> /// /// <returns>Returns a GetJobResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> GetJobResponse EndGetJob(IAsyncResult asyncResult); #endregion #region GetQuantumTask /// <summary> /// Retrieves the specified quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQuantumTask service method.</param> /// /// <returns>The response from the GetQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> GetQuantumTaskResponse GetQuantumTask(GetQuantumTaskRequest request); /// <summary> /// Initiates the asynchronous execution of the GetQuantumTask operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetQuantumTask operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetQuantumTask /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> IAsyncResult BeginGetQuantumTask(GetQuantumTaskRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetQuantumTask operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetQuantumTask.</param> /// /// <returns>Returns a GetQuantumTaskResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> GetQuantumTaskResponse EndGetQuantumTask(IAsyncResult asyncResult); #endregion #region ListTagsForResource /// <summary> /// Shows the tags associated with this resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTagsForResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForResource.</param> /// /// <returns>Returns a ListTagsForResourceResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult); #endregion #region SearchDevices /// <summary> /// Searches for devices using the specified filters. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchDevices service method.</param> /// /// <returns>The response from the SearchDevices service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> SearchDevicesResponse SearchDevices(SearchDevicesRequest request); /// <summary> /// Initiates the asynchronous execution of the SearchDevices operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SearchDevices operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchDevices /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> IAsyncResult BeginSearchDevices(SearchDevicesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SearchDevices operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSearchDevices.</param> /// /// <returns>Returns a SearchDevicesResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> SearchDevicesResponse EndSearchDevices(IAsyncResult asyncResult); #endregion #region SearchJobs /// <summary> /// Searches for Amazon Braket jobs that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchJobs service method.</param> /// /// <returns>The response from the SearchJobs service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> SearchJobsResponse SearchJobs(SearchJobsRequest request); /// <summary> /// Initiates the asynchronous execution of the SearchJobs operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SearchJobs operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchJobs /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> IAsyncResult BeginSearchJobs(SearchJobsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SearchJobs operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSearchJobs.</param> /// /// <returns>Returns a SearchJobsResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> SearchJobsResponse EndSearchJobs(IAsyncResult asyncResult); #endregion #region SearchQuantumTasks /// <summary> /// Searches for tasks that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchQuantumTasks service method.</param> /// /// <returns>The response from the SearchQuantumTasks service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> SearchQuantumTasksResponse SearchQuantumTasks(SearchQuantumTasksRequest request); /// <summary> /// Initiates the asynchronous execution of the SearchQuantumTasks operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the SearchQuantumTasks operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndSearchQuantumTasks /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> IAsyncResult BeginSearchQuantumTasks(SearchQuantumTasksRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the SearchQuantumTasks operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginSearchQuantumTasks.</param> /// /// <returns>Returns a SearchQuantumTasksResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> SearchQuantumTasksResponse EndSearchQuantumTasks(IAsyncResult asyncResult); #endregion #region TagResource /// <summary> /// Add a tag to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the TagResource operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndTagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the TagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginTagResource.</param> /// /// <returns>Returns a TagResourceResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse EndTagResource(IAsyncResult asyncResult); #endregion #region UntagResource /// <summary> /// Remove tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Initiates the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UntagResource operation on AmazonBraketClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUntagResource /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UntagResource operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUntagResource.</param> /// /// <returns>Returns a UntagResourceResult from Braket.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse EndUntagResource(IAsyncResult asyncResult); #endregion } }
778
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.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.Braket.Model; using Amazon.Braket.Model.Internal.MarshallTransformations; using Amazon.Braket.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Braket { /// <summary> /// Implementation for accessing Braket /// /// The Amazon Braket API Reference provides information about the operations and structures /// supported in Amazon Braket. /// /// /// <para> /// Additional Resources: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon /// Braket Developer Guide</a> /// </para> /// </li> </ul> /// </summary> public partial class AmazonBraketClient : AmazonServiceClient, IAmazonBraket { private static IServiceMetadata serviceMetadata = new AmazonBraketMetadata(); private IBraketPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBraketPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BraketPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonBraketClient 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBraketClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBraketClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBraketConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBraketClient 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(AmazonBraketConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBraketClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBraketClient(AWSCredentials credentials) : this(credentials, new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBraketClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBraketConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBraketClient with AWS Credentials and an /// AmazonBraketClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(AWSCredentials credentials, AmazonBraketConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBraketConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBraketClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBraketConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBraketConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBraketClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBraketConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonBraketEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region CancelJob /// <summary> /// Cancels an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// /// <returns>The response from the CancelJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual CancelJobResponse CancelJob(CancelJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return Invoke<CancelJobResponse>(request, options); } /// <summary> /// Cancels an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual Task<CancelJobResponse> CancelJobAsync(CancelJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return InvokeAsync<CancelJobResponse>(request, options, cancellationToken); } #endregion #region CancelQuantumTask /// <summary> /// Cancels the specified task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask service method.</param> /// /// <returns>The response from the CancelQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> public virtual CancelQuantumTaskResponse CancelQuantumTask(CancelQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return Invoke<CancelQuantumTaskResponse>(request, options); } /// <summary> /// Cancels the specified task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> public virtual Task<CancelQuantumTaskResponse> CancelQuantumTaskAsync(CancelQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return InvokeAsync<CancelQuantumTaskResponse>(request, options, cancellationToken); } #endregion #region CreateJob /// <summary> /// Creates an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJob service method.</param> /// /// <returns>The response from the CreateJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> public virtual CreateJobResponse CreateJob(CreateJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance; return Invoke<CreateJobResponse>(request, options); } /// <summary> /// Creates an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> public virtual Task<CreateJobResponse> CreateJobAsync(CreateJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance; return InvokeAsync<CreateJobResponse>(request, options, cancellationToken); } #endregion #region CreateQuantumTask /// <summary> /// Creates a quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateQuantumTask service method.</param> /// /// <returns>The response from the CreateQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceOfflineException"> /// The specified device is currently offline. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> public virtual CreateQuantumTaskResponse CreateQuantumTask(CreateQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateQuantumTaskResponseUnmarshaller.Instance; return Invoke<CreateQuantumTaskResponse>(request, options); } /// <summary> /// Creates a quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceOfflineException"> /// The specified device is currently offline. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> public virtual Task<CreateQuantumTaskResponse> CreateQuantumTaskAsync(CreateQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateQuantumTaskResponseUnmarshaller.Instance; return InvokeAsync<CreateQuantumTaskResponse>(request, options, cancellationToken); } #endregion #region GetDevice /// <summary> /// Retrieves the devices available in Amazon Braket. /// /// <note> /// <para> /// For backwards compatibility with older versions of BraketSchemas, OpenQASM information /// is omitted from GetDevice API calls. To get this information the user-agent needs /// to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK /// automatically reports this for you. If you do not see OpenQASM results in the GetDevice /// response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment /// variable to configure user-agent. See the code examples provided below for how to /// do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDevice service method.</param> /// /// <returns>The response from the GetDevice service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> public virtual GetDeviceResponse GetDevice(GetDeviceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance; return Invoke<GetDeviceResponse>(request, options); } /// <summary> /// Retrieves the devices available in Amazon Braket. /// /// <note> /// <para> /// For backwards compatibility with older versions of BraketSchemas, OpenQASM information /// is omitted from GetDevice API calls. To get this information the user-agent needs /// to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK /// automatically reports this for you. If you do not see OpenQASM results in the GetDevice /// response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment /// variable to configure user-agent. See the code examples provided below for how to /// do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDevice service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDevice service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> public virtual Task<GetDeviceResponse> GetDeviceAsync(GetDeviceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance; return InvokeAsync<GetDeviceResponse>(request, options, cancellationToken); } #endregion #region GetJob /// <summary> /// Retrieves the specified Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetJob service method.</param> /// /// <returns>The response from the GetJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> public virtual GetJobResponse GetJob(GetJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobResponseUnmarshaller.Instance; return Invoke<GetJobResponse>(request, options); } /// <summary> /// Retrieves the specified Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> public virtual Task<GetJobResponse> GetJobAsync(GetJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobResponseUnmarshaller.Instance; return InvokeAsync<GetJobResponse>(request, options, cancellationToken); } #endregion #region GetQuantumTask /// <summary> /// Retrieves the specified quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQuantumTask service method.</param> /// /// <returns>The response from the GetQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> public virtual GetQuantumTaskResponse GetQuantumTask(GetQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQuantumTaskResponseUnmarshaller.Instance; return Invoke<GetQuantumTaskResponse>(request, options); } /// <summary> /// Retrieves the specified quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> public virtual Task<GetQuantumTaskResponse> GetQuantumTaskAsync(GetQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQuantumTaskResponseUnmarshaller.Instance; return InvokeAsync<GetQuantumTaskResponse>(request, options, cancellationToken); } #endregion #region ListTagsForResource /// <summary> /// Shows the tags associated with this resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke<ListTagsForResourceResponse>(request, options); } /// <summary> /// Shows the tags associated with this resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken); } #endregion #region SearchDevices /// <summary> /// Searches for devices using the specified filters. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchDevices service method.</param> /// /// <returns>The response from the SearchDevices service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> public virtual SearchDevicesResponse SearchDevices(SearchDevicesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance; return Invoke<SearchDevicesResponse>(request, options); } /// <summary> /// Searches for devices using the specified filters. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchDevices service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchDevices service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> public virtual Task<SearchDevicesResponse> SearchDevicesAsync(SearchDevicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance; return InvokeAsync<SearchDevicesResponse>(request, options, cancellationToken); } #endregion #region SearchJobs /// <summary> /// Searches for Amazon Braket jobs that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchJobs service method.</param> /// /// <returns>The response from the SearchJobs service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> public virtual SearchJobsResponse SearchJobs(SearchJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchJobsResponseUnmarshaller.Instance; return Invoke<SearchJobsResponse>(request, options); } /// <summary> /// Searches for Amazon Braket jobs that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchJobs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchJobs service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> public virtual Task<SearchJobsResponse> SearchJobsAsync(SearchJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchJobsResponseUnmarshaller.Instance; return InvokeAsync<SearchJobsResponse>(request, options, cancellationToken); } #endregion #region SearchQuantumTasks /// <summary> /// Searches for tasks that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchQuantumTasks service method.</param> /// /// <returns>The response from the SearchQuantumTasks service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> public virtual SearchQuantumTasksResponse SearchQuantumTasks(SearchQuantumTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchQuantumTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchQuantumTasksResponseUnmarshaller.Instance; return Invoke<SearchQuantumTasksResponse>(request, options); } /// <summary> /// Searches for tasks that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchQuantumTasks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchQuantumTasks service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> public virtual Task<SearchQuantumTasksResponse> SearchQuantumTasksAsync(SearchQuantumTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchQuantumTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchQuantumTasksResponseUnmarshaller.Instance; return InvokeAsync<SearchQuantumTasksResponse>(request, options, cancellationToken); } #endregion #region TagResource /// <summary> /// Add a tag to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke<TagResourceResponse>(request, options); } /// <summary> /// Add a tag to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(request, options, cancellationToken); } #endregion #region UntagResource /// <summary> /// Remove tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke<UntagResourceResponse>(request, options); } /// <summary> /// Remove tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken); } #endregion } }
1,208
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Braket.Model; namespace Amazon.Braket { /// <summary> /// Interface for accessing Braket /// /// The Amazon Braket API Reference provides information about the operations and structures /// supported in Amazon Braket. /// /// /// <para> /// Additional Resources: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon /// Braket Developer Guide</a> /// </para> /// </li> </ul> /// </summary> public partial interface IAmazonBraket : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> IBraketPaginatorFactory Paginators { get; } #region CancelJob /// <summary> /// Cancels an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// /// <returns>The response from the CancelJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> CancelJobResponse CancelJob(CancelJobRequest request); /// <summary> /// Cancels an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> Task<CancelJobResponse> CancelJobAsync(CancelJobRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CancelQuantumTask /// <summary> /// Cancels the specified task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask service method.</param> /// /// <returns>The response from the CancelQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> CancelQuantumTaskResponse CancelQuantumTask(CancelQuantumTaskRequest request); /// <summary> /// Cancels the specified task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> Task<CancelQuantumTaskResponse> CancelQuantumTaskAsync(CancelQuantumTaskRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateJob /// <summary> /// Creates an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJob service method.</param> /// /// <returns>The response from the CreateJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> CreateJobResponse CreateJob(CreateJobRequest request); /// <summary> /// Creates an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> Task<CreateJobResponse> CreateJobAsync(CreateJobRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateQuantumTask /// <summary> /// Creates a quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateQuantumTask service method.</param> /// /// <returns>The response from the CreateQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceOfflineException"> /// The specified device is currently offline. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> CreateQuantumTaskResponse CreateQuantumTask(CreateQuantumTaskRequest request); /// <summary> /// Creates a quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceOfflineException"> /// The specified device is currently offline. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> Task<CreateQuantumTaskResponse> CreateQuantumTaskAsync(CreateQuantumTaskRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDevice /// <summary> /// Retrieves the devices available in Amazon Braket. /// /// <note> /// <para> /// For backwards compatibility with older versions of BraketSchemas, OpenQASM information /// is omitted from GetDevice API calls. To get this information the user-agent needs /// to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK /// automatically reports this for you. If you do not see OpenQASM results in the GetDevice /// response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment /// variable to configure user-agent. See the code examples provided below for how to /// do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDevice service method.</param> /// /// <returns>The response from the GetDevice service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> GetDeviceResponse GetDevice(GetDeviceRequest request); /// <summary> /// Retrieves the devices available in Amazon Braket. /// /// <note> /// <para> /// For backwards compatibility with older versions of BraketSchemas, OpenQASM information /// is omitted from GetDevice API calls. To get this information the user-agent needs /// to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK /// automatically reports this for you. If you do not see OpenQASM results in the GetDevice /// response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment /// variable to configure user-agent. See the code examples provided below for how to /// do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDevice service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDevice service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> Task<GetDeviceResponse> GetDeviceAsync(GetDeviceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetJob /// <summary> /// Retrieves the specified Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetJob service method.</param> /// /// <returns>The response from the GetJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> GetJobResponse GetJob(GetJobRequest request); /// <summary> /// Retrieves the specified Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> Task<GetJobResponse> GetJobAsync(GetJobRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetQuantumTask /// <summary> /// Retrieves the specified quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQuantumTask service method.</param> /// /// <returns>The response from the GetQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> GetQuantumTaskResponse GetQuantumTask(GetQuantumTaskRequest request); /// <summary> /// Retrieves the specified quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> Task<GetQuantumTaskResponse> GetQuantumTaskAsync(GetQuantumTaskRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Shows the tags associated with this resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Shows the tags associated with this resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SearchDevices /// <summary> /// Searches for devices using the specified filters. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchDevices service method.</param> /// /// <returns>The response from the SearchDevices service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> SearchDevicesResponse SearchDevices(SearchDevicesRequest request); /// <summary> /// Searches for devices using the specified filters. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchDevices service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchDevices service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> Task<SearchDevicesResponse> SearchDevicesAsync(SearchDevicesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SearchJobs /// <summary> /// Searches for Amazon Braket jobs that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchJobs service method.</param> /// /// <returns>The response from the SearchJobs service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> SearchJobsResponse SearchJobs(SearchJobsRequest request); /// <summary> /// Searches for Amazon Braket jobs that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchJobs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchJobs service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> Task<SearchJobsResponse> SearchJobsAsync(SearchJobsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SearchQuantumTasks /// <summary> /// Searches for tasks that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchQuantumTasks service method.</param> /// /// <returns>The response from the SearchQuantumTasks service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> SearchQuantumTasksResponse SearchQuantumTasks(SearchQuantumTasksRequest request); /// <summary> /// Searches for tasks that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchQuantumTasks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchQuantumTasks service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> Task<SearchQuantumTasksResponse> SearchQuantumTasksAsync(SearchQuantumTasksRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Add a tag to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// /// <returns>The response from the TagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> TagResourceResponse TagResource(TagResourceRequest request); /// <summary> /// Add a tag to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Remove tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// /// <returns>The response from the UntagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> UntagResourceResponse UntagResource(UntagResourceRequest request); /// <summary> /// Remove tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
818
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.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.Braket.Model; using Amazon.Braket.Model.Internal.MarshallTransformations; using Amazon.Braket.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.Braket { /// <summary> /// Implementation for accessing Braket /// /// The Amazon Braket API Reference provides information about the operations and structures /// supported in Amazon Braket. /// /// /// <para> /// Additional Resources: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon /// Braket Developer Guide</a> /// </para> /// </li> </ul> /// </summary> public partial class AmazonBraketClient : AmazonServiceClient, IAmazonBraket { private static IServiceMetadata serviceMetadata = new AmazonBraketMetadata(); #region Constructors /// <summary> /// Constructs AmazonBraketClient 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonBraketClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonBraketClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonBraketConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBraketClient 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. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(AmazonBraketConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonBraketClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonBraketClient(AWSCredentials credentials) : this(credentials, new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonBraketClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonBraketConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBraketClient with AWS Credentials and an /// AmazonBraketClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(AWSCredentials credentials, AmazonBraketConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonBraketConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBraketClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonBraketConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBraketConfig()) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonBraketConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonBraketClient with AWS Access Key ID, AWS Secret Key and an /// AmazonBraketClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonBraketClient Configuration Object</param> public AmazonBraketClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonBraketConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private IBraketPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public IBraketPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new BraketPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonBraketEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region CancelJob internal virtual CancelJobResponse CancelJob(CancelJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return Invoke<CancelJobResponse>(request, options); } /// <summary> /// Cancels an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> public virtual Task<CancelJobResponse> CancelJobAsync(CancelJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelJobResponseUnmarshaller.Instance; return InvokeAsync<CancelJobResponse>(request, options, cancellationToken); } #endregion #region CancelQuantumTask internal virtual CancelQuantumTaskResponse CancelQuantumTask(CancelQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return Invoke<CancelQuantumTaskResponse>(request, options); } /// <summary> /// Cancels the specified task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> public virtual Task<CancelQuantumTaskResponse> CancelQuantumTaskAsync(CancelQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelQuantumTaskResponseUnmarshaller.Instance; return InvokeAsync<CancelQuantumTaskResponse>(request, options, cancellationToken); } #endregion #region CreateJob internal virtual CreateJobResponse CreateJob(CreateJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance; return Invoke<CreateJobResponse>(request, options); } /// <summary> /// Creates an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> public virtual Task<CreateJobResponse> CreateJobAsync(CreateJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateJobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateJobResponseUnmarshaller.Instance; return InvokeAsync<CreateJobResponse>(request, options, cancellationToken); } #endregion #region CreateQuantumTask internal virtual CreateQuantumTaskResponse CreateQuantumTask(CreateQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateQuantumTaskResponseUnmarshaller.Instance; return Invoke<CreateQuantumTaskResponse>(request, options); } /// <summary> /// Creates a quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceOfflineException"> /// The specified device is currently offline. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> public virtual Task<CreateQuantumTaskResponse> CreateQuantumTaskAsync(CreateQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateQuantumTaskResponseUnmarshaller.Instance; return InvokeAsync<CreateQuantumTaskResponse>(request, options, cancellationToken); } #endregion #region GetDevice internal virtual GetDeviceResponse GetDevice(GetDeviceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance; return Invoke<GetDeviceResponse>(request, options); } /// <summary> /// Retrieves the devices available in Amazon Braket. /// /// <note> /// <para> /// For backwards compatibility with older versions of BraketSchemas, OpenQASM information /// is omitted from GetDevice API calls. To get this information the user-agent needs /// to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK /// automatically reports this for you. If you do not see OpenQASM results in the GetDevice /// response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment /// variable to configure user-agent. See the code examples provided below for how to /// do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDevice service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDevice service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> public virtual Task<GetDeviceResponse> GetDeviceAsync(GetDeviceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = GetDeviceResponseUnmarshaller.Instance; return InvokeAsync<GetDeviceResponse>(request, options, cancellationToken); } #endregion #region GetJob internal virtual GetJobResponse GetJob(GetJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobResponseUnmarshaller.Instance; return Invoke<GetJobResponse>(request, options); } /// <summary> /// Retrieves the specified Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> public virtual Task<GetJobResponse> GetJobAsync(GetJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetJobRequestMarshaller.Instance; options.ResponseUnmarshaller = GetJobResponseUnmarshaller.Instance; return InvokeAsync<GetJobResponse>(request, options, cancellationToken); } #endregion #region GetQuantumTask internal virtual GetQuantumTaskResponse GetQuantumTask(GetQuantumTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQuantumTaskResponseUnmarshaller.Instance; return Invoke<GetQuantumTaskResponse>(request, options); } /// <summary> /// Retrieves the specified quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> public virtual Task<GetQuantumTaskResponse> GetQuantumTaskAsync(GetQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetQuantumTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = GetQuantumTaskResponseUnmarshaller.Instance; return InvokeAsync<GetQuantumTaskResponse>(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<ListTagsForResourceResponse>(request, options); } /// <summary> /// Shows the tags associated with this resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> public virtual Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForResourceResponse>(request, options, cancellationToken); } #endregion #region SearchDevices internal virtual SearchDevicesResponse SearchDevices(SearchDevicesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance; return Invoke<SearchDevicesResponse>(request, options); } /// <summary> /// Searches for devices using the specified filters. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchDevices service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchDevices service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> public virtual Task<SearchDevicesResponse> SearchDevicesAsync(SearchDevicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchDevicesRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchDevicesResponseUnmarshaller.Instance; return InvokeAsync<SearchDevicesResponse>(request, options, cancellationToken); } #endregion #region SearchJobs internal virtual SearchJobsResponse SearchJobs(SearchJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchJobsResponseUnmarshaller.Instance; return Invoke<SearchJobsResponse>(request, options); } /// <summary> /// Searches for Amazon Braket jobs that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchJobs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchJobs service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> public virtual Task<SearchJobsResponse> SearchJobsAsync(SearchJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchJobsResponseUnmarshaller.Instance; return InvokeAsync<SearchJobsResponse>(request, options, cancellationToken); } #endregion #region SearchQuantumTasks internal virtual SearchQuantumTasksResponse SearchQuantumTasks(SearchQuantumTasksRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SearchQuantumTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchQuantumTasksResponseUnmarshaller.Instance; return Invoke<SearchQuantumTasksResponse>(request, options); } /// <summary> /// Searches for tasks that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchQuantumTasks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchQuantumTasks service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> public virtual Task<SearchQuantumTasksResponse> SearchQuantumTasksAsync(SearchQuantumTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = SearchQuantumTasksRequestMarshaller.Instance; options.ResponseUnmarshaller = SearchQuantumTasksResponseUnmarshaller.Instance; return InvokeAsync<SearchQuantumTasksResponse>(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<TagResourceResponse>(request, options); } /// <summary> /// Add a tag to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> public virtual Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return InvokeAsync<TagResourceResponse>(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<UntagResourceResponse>(request, options); } /// <summary> /// Remove tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> public virtual Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return InvokeAsync<UntagResourceResponse>(request, options, cancellationToken); } #endregion } }
923
aws-sdk-net
aws
C#
/* * 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 braket-2019-09-01.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Braket.Model; namespace Amazon.Braket { /// <summary> /// Interface for accessing Braket /// /// The Amazon Braket API Reference provides information about the operations and structures /// supported in Amazon Braket. /// /// /// <para> /// Additional Resources: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/braket/latest/developerguide/what-is-braket.html">Amazon /// Braket Developer Guide</a> /// </para> /// </li> </ul> /// </summary> public partial interface IAmazonBraket : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> IBraketPaginatorFactory Paginators { get; } #endif #region CancelJob /// <summary> /// Cancels an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelJob">REST API Reference for CancelJob Operation</seealso> Task<CancelJobResponse> CancelJobAsync(CancelJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CancelQuantumTask /// <summary> /// Cancels the specified task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CancelQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CancelQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask">REST API Reference for CancelQuantumTask Operation</seealso> Task<CancelQuantumTaskResponse> CancelQuantumTaskAsync(CancelQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateJob /// <summary> /// Creates an Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.ConflictException"> /// An error occurred due to a conflict. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateJob">REST API Reference for CreateJob Operation</seealso> Task<CreateJobResponse> CreateJobAsync(CreateJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region CreateQuantumTask /// <summary> /// Creates a quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the CreateQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the CreateQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceOfflineException"> /// The specified device is currently offline. /// </exception> /// <exception cref="Amazon.Braket.Model.DeviceRetiredException"> /// The specified device has been retired. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ServiceQuotaExceededException"> /// The request failed because a service quota is exceeded. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask">REST API Reference for CreateQuantumTask Operation</seealso> Task<CreateQuantumTaskResponse> CreateQuantumTaskAsync(CreateQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDevice /// <summary> /// Retrieves the devices available in Amazon Braket. /// /// <note> /// <para> /// For backwards compatibility with older versions of BraketSchemas, OpenQASM information /// is omitted from GetDevice API calls. To get this information the user-agent needs /// to present a recent version of the BraketSchemas (1.8.0 or later). The Braket SDK /// automatically reports this for you. If you do not see OpenQASM results in the GetDevice /// response when using a Braket SDK, you may need to set AWS_EXECUTION_ENV environment /// variable to configure user-agent. See the code examples provided below for how to /// do this for the AWS CLI, Boto3, and the Go, Java, and JavaScript/TypeScript SDKs. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetDevice service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetDevice service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice">REST API Reference for GetDevice Operation</seealso> Task<GetDeviceResponse> GetDeviceAsync(GetDeviceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetJob /// <summary> /// Retrieves the specified Amazon Braket job. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetJob service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetJob service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetJob">REST API Reference for GetJob Operation</seealso> Task<GetJobResponse> GetJobAsync(GetJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetQuantumTask /// <summary> /// Retrieves the specified quantum task. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetQuantumTask service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetQuantumTask service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask">REST API Reference for GetQuantumTask Operation</seealso> Task<GetQuantumTaskResponse> GetQuantumTaskAsync(GetQuantumTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForResource /// <summary> /// Shows the tags associated with this resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource">REST API Reference for ListTagsForResource Operation</seealso> Task<ListTagsForResourceResponse> ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SearchDevices /// <summary> /// Searches for devices using the specified filters. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchDevices service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchDevices service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices">REST API Reference for SearchDevices Operation</seealso> Task<SearchDevicesResponse> SearchDevicesAsync(SearchDevicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SearchJobs /// <summary> /// Searches for Amazon Braket jobs that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchJobs service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchJobs service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchJobs">REST API Reference for SearchJobs Operation</seealso> Task<SearchJobsResponse> SearchJobsAsync(SearchJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region SearchQuantumTasks /// <summary> /// Searches for tasks that match the specified filter values. /// </summary> /// <param name="request">Container for the necessary parameters to execute the SearchQuantumTasks service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the SearchQuantumTasks service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.AccessDeniedException"> /// You do not have sufficient access to perform this action. /// </exception> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ThrottlingException"> /// The throttling rate limit is met. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks">REST API Reference for SearchQuantumTasks Operation</seealso> Task<SearchQuantumTasksResponse> SearchQuantumTasksAsync(SearchQuantumTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region TagResource /// <summary> /// Add a tag to the specified resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the TagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the TagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource">REST API Reference for TagResource Operation</seealso> Task<TagResourceResponse> TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UntagResource /// <summary> /// Remove tags from a resource. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UntagResource service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UntagResource service method, as returned by Braket.</returns> /// <exception cref="Amazon.Braket.Model.InternalServiceException"> /// The request processing has failed because of an unknown error, exception, or failure. /// </exception> /// <exception cref="Amazon.Braket.Model.ResourceNotFoundException"> /// The specified resource was not found. /// </exception> /// <exception cref="Amazon.Braket.Model.ValidationException"> /// The input fails to satisfy the constraints specified by an AWS service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource">REST API Reference for UntagResource Operation</seealso> Task<UntagResourceResponse> UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
490
aws-sdk-net
aws
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.Braket")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Braket. Amazon Braket general availability with Device and Quantum Task operations.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Braket. Amazon Braket general availability with Device and Quantum Task operations.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Braket. Amazon Braket general availability with Device and Quantum Task operations.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Braket. Amazon Braket general availability with Device and Quantum Task operations.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.100.147")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
aws-sdk-net
aws
C#
/* * 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. */ using System.Diagnostics.CodeAnalysis; // Nested generics [module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.Budgets.Model.Budget.#CostFilters")]
20
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.Budgets.Internal; namespace Amazon.Budgets { /// <summary> /// Configuration for accessing Amazon Budgets service /// </summary> [AWSSignerType("v4")] public partial class AmazonBudgetsConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.100.147"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonBudgetsConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonBudgetsDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "budgets"; this.EndpointProvider = new AmazonBudgetsEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "budgets"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2016-10-20"; } } /// <summary> /// Gets the value of UserAgent property. /// </summary> public override string UserAgent { get { return _userAgent; } } } }
83
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.Budgets { /// <summary> /// Configuration for accessing Amazon Budgets service /// </summary> public static class AmazonBudgetsDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// Budgets /// </summary> public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations() { return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration> { Standard, InRegion, CrossRegion, Mobile, Auto, Legacy }); } /// <summary> /// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Standard, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.InRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.CrossRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Mobile, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:30 ConnectTimeout = TimeSpan.FromMilliseconds(30000L), // 0:00:30 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p> /// </summary> public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Auto, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p> /// </summary> public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Legacy, RetryMode = RequestRetryMode.Legacy, StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, ConnectTimeout = null, TlsNegotiationTimeout = null, TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; } }
146
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.Budgets.Endpoints { /// <summary> /// Contains parameters used for resolving Budgets endpoints /// Parameters can be sourced from client config and service operations /// Used by internal BudgetsEndpointProvider and BudgetsEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class BudgetsEndpointParameters : EndpointParameters { /// <summary> /// BudgetsEndpointParameters constructor /// </summary> public BudgetsEndpointParameters() { UseDualStack = false; UseFIPS = false; } /// <summary> /// Region parameter /// </summary> public string Region { get { return (string)this["Region"]; } set { this["Region"] = value; } } /// <summary> /// UseDualStack parameter /// </summary> public bool? UseDualStack { get { return (bool?)this["UseDualStack"]; } set { this["UseDualStack"] = value; } } /// <summary> /// UseFIPS parameter /// </summary> public bool? UseFIPS { get { return (bool?)this["UseFIPS"]; } set { this["UseFIPS"] = value; } } /// <summary> /// Endpoint parameter /// </summary> public string Endpoint { get { return (string)this["Endpoint"]; } set { this["Endpoint"] = value; } } } }
78
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.Budgets { ///<summary> /// Common exception for the Budgets service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonBudgetsException : AmazonServiceException { /// <summary> /// Construct instance of AmazonBudgetsException /// </summary> /// <param name="message"></param> public AmazonBudgetsException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonBudgetsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonBudgetsException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonBudgetsException /// </summary> /// <param name="innerException"></param> public AmazonBudgetsException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonBudgetsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonBudgetsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonBudgetsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonBudgetsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) { } #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AmazonBudgetsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AmazonBudgetsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }
105
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.Budgets { /// <summary> /// Constants used for properties of type ActionStatus. /// </summary> public class ActionStatus : ConstantClass { /// <summary> /// Constant EXECUTION_FAILURE for ActionStatus /// </summary> public static readonly ActionStatus EXECUTION_FAILURE = new ActionStatus("EXECUTION_FAILURE"); /// <summary> /// Constant EXECUTION_IN_PROGRESS for ActionStatus /// </summary> public static readonly ActionStatus EXECUTION_IN_PROGRESS = new ActionStatus("EXECUTION_IN_PROGRESS"); /// <summary> /// Constant EXECUTION_SUCCESS for ActionStatus /// </summary> public static readonly ActionStatus EXECUTION_SUCCESS = new ActionStatus("EXECUTION_SUCCESS"); /// <summary> /// Constant PENDING for ActionStatus /// </summary> public static readonly ActionStatus PENDING = new ActionStatus("PENDING"); /// <summary> /// Constant RESET_FAILURE for ActionStatus /// </summary> public static readonly ActionStatus RESET_FAILURE = new ActionStatus("RESET_FAILURE"); /// <summary> /// Constant RESET_IN_PROGRESS for ActionStatus /// </summary> public static readonly ActionStatus RESET_IN_PROGRESS = new ActionStatus("RESET_IN_PROGRESS"); /// <summary> /// Constant REVERSE_FAILURE for ActionStatus /// </summary> public static readonly ActionStatus REVERSE_FAILURE = new ActionStatus("REVERSE_FAILURE"); /// <summary> /// Constant REVERSE_IN_PROGRESS for ActionStatus /// </summary> public static readonly ActionStatus REVERSE_IN_PROGRESS = new ActionStatus("REVERSE_IN_PROGRESS"); /// <summary> /// Constant REVERSE_SUCCESS for ActionStatus /// </summary> public static readonly ActionStatus REVERSE_SUCCESS = new ActionStatus("REVERSE_SUCCESS"); /// <summary> /// Constant STANDBY for ActionStatus /// </summary> public static readonly ActionStatus STANDBY = new ActionStatus("STANDBY"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ActionStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ActionStatus FindValue(string value) { return FindValue<ActionStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ActionStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ActionSubType. /// </summary> public class ActionSubType : ConstantClass { /// <summary> /// Constant STOP_EC2_INSTANCES for ActionSubType /// </summary> public static readonly ActionSubType STOP_EC2_INSTANCES = new ActionSubType("STOP_EC2_INSTANCES"); /// <summary> /// Constant STOP_RDS_INSTANCES for ActionSubType /// </summary> public static readonly ActionSubType STOP_RDS_INSTANCES = new ActionSubType("STOP_RDS_INSTANCES"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ActionSubType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ActionSubType FindValue(string value) { return FindValue<ActionSubType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ActionSubType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ActionType. /// </summary> public class ActionType : ConstantClass { /// <summary> /// Constant APPLY_IAM_POLICY for ActionType /// </summary> public static readonly ActionType APPLY_IAM_POLICY = new ActionType("APPLY_IAM_POLICY"); /// <summary> /// Constant APPLY_SCP_POLICY for ActionType /// </summary> public static readonly ActionType APPLY_SCP_POLICY = new ActionType("APPLY_SCP_POLICY"); /// <summary> /// Constant RUN_SSM_DOCUMENTS for ActionType /// </summary> public static readonly ActionType RUN_SSM_DOCUMENTS = new ActionType("RUN_SSM_DOCUMENTS"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ActionType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ActionType FindValue(string value) { return FindValue<ActionType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ActionType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ApprovalModel. /// </summary> public class ApprovalModel : ConstantClass { /// <summary> /// Constant AUTOMATIC for ApprovalModel /// </summary> public static readonly ApprovalModel AUTOMATIC = new ApprovalModel("AUTOMATIC"); /// <summary> /// Constant MANUAL for ApprovalModel /// </summary> public static readonly ApprovalModel MANUAL = new ApprovalModel("MANUAL"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ApprovalModel(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ApprovalModel FindValue(string value) { return FindValue<ApprovalModel>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ApprovalModel(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type AutoAdjustType. /// </summary> public class AutoAdjustType : ConstantClass { /// <summary> /// Constant FORECAST for AutoAdjustType /// </summary> public static readonly AutoAdjustType FORECAST = new AutoAdjustType("FORECAST"); /// <summary> /// Constant HISTORICAL for AutoAdjustType /// </summary> public static readonly AutoAdjustType HISTORICAL = new AutoAdjustType("HISTORICAL"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public AutoAdjustType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static AutoAdjustType FindValue(string value) { return FindValue<AutoAdjustType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator AutoAdjustType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type BudgetType. /// </summary> public class BudgetType : ConstantClass { /// <summary> /// Constant COST for BudgetType /// </summary> public static readonly BudgetType COST = new BudgetType("COST"); /// <summary> /// Constant RI_COVERAGE for BudgetType /// </summary> public static readonly BudgetType RI_COVERAGE = new BudgetType("RI_COVERAGE"); /// <summary> /// Constant RI_UTILIZATION for BudgetType /// </summary> public static readonly BudgetType RI_UTILIZATION = new BudgetType("RI_UTILIZATION"); /// <summary> /// Constant SAVINGS_PLANS_COVERAGE for BudgetType /// </summary> public static readonly BudgetType SAVINGS_PLANS_COVERAGE = new BudgetType("SAVINGS_PLANS_COVERAGE"); /// <summary> /// Constant SAVINGS_PLANS_UTILIZATION for BudgetType /// </summary> public static readonly BudgetType SAVINGS_PLANS_UTILIZATION = new BudgetType("SAVINGS_PLANS_UTILIZATION"); /// <summary> /// Constant USAGE for BudgetType /// </summary> public static readonly BudgetType USAGE = new BudgetType("USAGE"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public BudgetType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static BudgetType FindValue(string value) { return FindValue<BudgetType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator BudgetType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ComparisonOperator. /// </summary> public class ComparisonOperator : ConstantClass { /// <summary> /// Constant EQUAL_TO for ComparisonOperator /// </summary> public static readonly ComparisonOperator EQUAL_TO = new ComparisonOperator("EQUAL_TO"); /// <summary> /// Constant GREATER_THAN for ComparisonOperator /// </summary> public static readonly ComparisonOperator GREATER_THAN = new ComparisonOperator("GREATER_THAN"); /// <summary> /// Constant LESS_THAN for ComparisonOperator /// </summary> public static readonly ComparisonOperator LESS_THAN = new ComparisonOperator("LESS_THAN"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ComparisonOperator(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ComparisonOperator FindValue(string value) { return FindValue<ComparisonOperator>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ComparisonOperator(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EventType. /// </summary> public class EventType : ConstantClass { /// <summary> /// Constant CREATE_ACTION for EventType /// </summary> public static readonly EventType CREATE_ACTION = new EventType("CREATE_ACTION"); /// <summary> /// Constant DELETE_ACTION for EventType /// </summary> public static readonly EventType DELETE_ACTION = new EventType("DELETE_ACTION"); /// <summary> /// Constant EXECUTE_ACTION for EventType /// </summary> public static readonly EventType EXECUTE_ACTION = new EventType("EXECUTE_ACTION"); /// <summary> /// Constant SYSTEM for EventType /// </summary> public static readonly EventType SYSTEM = new EventType("SYSTEM"); /// <summary> /// Constant UPDATE_ACTION for EventType /// </summary> public static readonly EventType UPDATE_ACTION = new EventType("UPDATE_ACTION"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public EventType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static EventType FindValue(string value) { return FindValue<EventType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator EventType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ExecutionType. /// </summary> public class ExecutionType : ConstantClass { /// <summary> /// Constant APPROVE_BUDGET_ACTION for ExecutionType /// </summary> public static readonly ExecutionType APPROVE_BUDGET_ACTION = new ExecutionType("APPROVE_BUDGET_ACTION"); /// <summary> /// Constant RESET_BUDGET_ACTION for ExecutionType /// </summary> public static readonly ExecutionType RESET_BUDGET_ACTION = new ExecutionType("RESET_BUDGET_ACTION"); /// <summary> /// Constant RETRY_BUDGET_ACTION for ExecutionType /// </summary> public static readonly ExecutionType RETRY_BUDGET_ACTION = new ExecutionType("RETRY_BUDGET_ACTION"); /// <summary> /// Constant REVERSE_BUDGET_ACTION for ExecutionType /// </summary> public static readonly ExecutionType REVERSE_BUDGET_ACTION = new ExecutionType("REVERSE_BUDGET_ACTION"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ExecutionType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ExecutionType FindValue(string value) { return FindValue<ExecutionType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ExecutionType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type NotificationState. /// </summary> public class NotificationState : ConstantClass { /// <summary> /// Constant ALARM for NotificationState /// </summary> public static readonly NotificationState ALARM = new NotificationState("ALARM"); /// <summary> /// Constant OK for NotificationState /// </summary> public static readonly NotificationState OK = new NotificationState("OK"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public NotificationState(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static NotificationState FindValue(string value) { return FindValue<NotificationState>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator NotificationState(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type NotificationType. /// </summary> public class NotificationType : ConstantClass { /// <summary> /// Constant ACTUAL for NotificationType /// </summary> public static readonly NotificationType ACTUAL = new NotificationType("ACTUAL"); /// <summary> /// Constant FORECASTED for NotificationType /// </summary> public static readonly NotificationType FORECASTED = new NotificationType("FORECASTED"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public NotificationType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static NotificationType FindValue(string value) { return FindValue<NotificationType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator NotificationType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SubscriptionType. /// </summary> public class SubscriptionType : ConstantClass { /// <summary> /// Constant EMAIL for SubscriptionType /// </summary> public static readonly SubscriptionType EMAIL = new SubscriptionType("EMAIL"); /// <summary> /// Constant SNS for SubscriptionType /// </summary> public static readonly SubscriptionType SNS = new SubscriptionType("SNS"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public SubscriptionType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static SubscriptionType FindValue(string value) { return FindValue<SubscriptionType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator SubscriptionType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ThresholdType. /// </summary> public class ThresholdType : ConstantClass { /// <summary> /// Constant ABSOLUTE_VALUE for ThresholdType /// </summary> public static readonly ThresholdType ABSOLUTE_VALUE = new ThresholdType("ABSOLUTE_VALUE"); /// <summary> /// Constant PERCENTAGE for ThresholdType /// </summary> public static readonly ThresholdType PERCENTAGE = new ThresholdType("PERCENTAGE"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ThresholdType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ThresholdType FindValue(string value) { return FindValue<ThresholdType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ThresholdType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TimeUnit. /// </summary> public class TimeUnit : ConstantClass { /// <summary> /// Constant ANNUALLY for TimeUnit /// </summary> public static readonly TimeUnit ANNUALLY = new TimeUnit("ANNUALLY"); /// <summary> /// Constant DAILY for TimeUnit /// </summary> public static readonly TimeUnit DAILY = new TimeUnit("DAILY"); /// <summary> /// Constant MONTHLY for TimeUnit /// </summary> public static readonly TimeUnit MONTHLY = new TimeUnit("MONTHLY"); /// <summary> /// Constant QUARTERLY for TimeUnit /// </summary> public static readonly TimeUnit QUARTERLY = new TimeUnit("QUARTERLY"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TimeUnit(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TimeUnit FindValue(string value) { return FindValue<TimeUnit>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TimeUnit(string value) { return FindValue(value); } } }
810
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Runtime.Endpoints; using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; namespace Amazon.Budgets.Internal { /// <summary> /// Amazon Budgets endpoint provider. /// Resolves endpoint for given set of BudgetsEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonBudgetsEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for BudgetsEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (IsSet(refs["Endpoint"]) && (refs["url"] = ParseURL((string)refs["Endpoint"])) != null) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws")) { if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://budgets-fips.{Region}.api.aws", refs), InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""budgets"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://budgets-fips.{Region}.amazonaws.com", refs), InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""budgets"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://budgets.{Region}.api.aws", refs), InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""budgets"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint("https://budgets.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""budgets"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws-cn")) { if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://budgets-fips.{Region}.api.amazonwebservices.com.cn", refs), InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""budgets"",""signingRegion"":""cn-northwest-1""}]}", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://budgets-fips.{Region}.amazonaws.com.cn", refs), InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""budgets"",""signingRegion"":""cn-northwest-1""}]}", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://budgets.{Region}.api.amazonwebservices.com.cn", refs), InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""budgets"",""signingRegion"":""cn-northwest-1""}]}", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint("https://budgets.amazonaws.com.cn", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""budgets"",""signingRegion"":""cn-northwest-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://budgets-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://budgets-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://budgets.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } if (Equals(refs["Region"], "aws-global")) { return new Endpoint("https://budgets.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""budgets"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(refs["Region"], "aws-cn-global")) { return new Endpoint("https://budgets.amazonaws.com.cn", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""budgets"",""signingRegion"":""cn-northwest-1""}]}", refs), InterpolateJson(@"", refs)); } return new Endpoint(Interpolate(@"https://budgets.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("Cannot resolve endpoint"); } } }
163
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using Amazon.Budgets.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.Budgets.Endpoints; #pragma warning disable 1591 namespace Amazon.Budgets.Internal { /// <summary> /// Amazon Budgets endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for Budgets service requests. /// Collects values for BudgetsEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses BudgetsEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonBudgetsEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonBudgetsConfig)requestContext.ClientConfig; var result = new BudgetsEndpointParameters(); result.Region = config.RegionEndpoint?.SystemName; result.UseDualStack = config.UseDualstackEndpoint; result.UseFIPS = config.UseFIPSEndpoint; result.Endpoint = config.ServiceURL; // The region needs to be determined from the ServiceURL if not set. var regionEndpoint = config.RegionEndpoint; if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) { var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; } // To support legacy endpoint overridding rules in the endpoints.json if (result.Region == "us-east-1-regional") { result.Region = "us-east-1"; } // Use AlternateEndpoint region override if set if (requestContext.Request.AlternateEndpoint != null) { result.Region = requestContext.Request.AlternateEndpoint.SystemName; } // Assign staticContextParams and contextParam per operation return result; } } }
83
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.Budgets.Internal { /// <summary> /// Service metadata for Amazon Budgets service /// </summary> public partial class AmazonBudgetsMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "Budgets"; } } /// <summary> /// Gets the dictionary that gives mapping of renamed operations /// </summary> public System.Collections.Generic.IDictionary<string, string> OperationNameMapping { get { return new System.Collections.Generic.Dictionary<string, string>(0) { }; } } } }
55
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// You are not authorized to use this operation with the given parameters. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AccessDeniedException : AmazonBudgetsException { /// <summary> /// Constructs a new AccessDeniedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AccessDeniedException(string message) : base(message) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AccessDeniedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="innerException"></param> public AccessDeniedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccessDeniedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AccessDeniedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AccessDeniedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AccessDeniedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected AccessDeniedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// A budget action resource. /// </summary> public partial class Action { private string _actionId; private ActionThreshold _actionThreshold; private ActionType _actionType; private ApprovalModel _approvalModel; private string _budgetName; private Definition _definition; private string _executionRoleArn; private NotificationType _notificationType; private ActionStatus _status; private List<Subscriber> _subscribers = new List<Subscriber>(); /// <summary> /// Gets and sets the property ActionId. /// <para> /// A system-generated universally unique identifier (UUID) for the action. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string ActionId { get { return this._actionId; } set { this._actionId = value; } } // Check to see if ActionId property is set internal bool IsSetActionId() { return this._actionId != null; } /// <summary> /// Gets and sets the property ActionThreshold. /// <para> /// The trigger threshold of the action. /// </para> /// </summary> [AWSProperty(Required=true)] public ActionThreshold ActionThreshold { get { return this._actionThreshold; } set { this._actionThreshold = value; } } // Check to see if ActionThreshold property is set internal bool IsSetActionThreshold() { return this._actionThreshold != null; } /// <summary> /// Gets and sets the property ActionType. /// <para> /// The type of action. This defines the type of tasks that can be carried out by this /// action. This field also determines the format for definition. /// </para> /// </summary> [AWSProperty(Required=true)] public ActionType ActionType { get { return this._actionType; } set { this._actionType = value; } } // Check to see if ActionType property is set internal bool IsSetActionType() { return this._actionType != null; } /// <summary> /// Gets and sets the property ApprovalModel. /// <para> /// This specifies if the action needs manual or automatic approval. /// </para> /// </summary> [AWSProperty(Required=true)] public ApprovalModel ApprovalModel { get { return this._approvalModel; } set { this._approvalModel = value; } } // Check to see if ApprovalModel property is set internal bool IsSetApprovalModel() { return this._approvalModel != null; } /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property Definition. /// <para> /// Where you specify all of the type-specific parameters. /// </para> /// </summary> [AWSProperty(Required=true)] public Definition Definition { get { return this._definition; } set { this._definition = value; } } // Check to see if Definition property is set internal bool IsSetDefinition() { return this._definition != null; } /// <summary> /// Gets and sets the property ExecutionRoleArn. /// <para> /// The role passed for action execution and reversion. Roles and actions must be in the /// same account. /// </para> /// </summary> [AWSProperty(Required=true, Min=32, Max=618)] public string ExecutionRoleArn { get { return this._executionRoleArn; } set { this._executionRoleArn = value; } } // Check to see if ExecutionRoleArn property is set internal bool IsSetExecutionRoleArn() { return this._executionRoleArn != null; } /// <summary> /// Gets and sets the property NotificationType. /// </summary> [AWSProperty(Required=true)] public NotificationType NotificationType { get { return this._notificationType; } set { this._notificationType = value; } } // Check to see if NotificationType property is set internal bool IsSetNotificationType() { return this._notificationType != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the action. /// </para> /// </summary> [AWSProperty(Required=true)] public ActionStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Subscribers. /// </summary> [AWSProperty(Required=true, Min=1, Max=11)] public List<Subscriber> Subscribers { get { return this._subscribers; } set { this._subscribers = value; } } // Check to see if Subscribers property is set internal bool IsSetSubscribers() { return this._subscribers != null && this._subscribers.Count > 0; } } }
231
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// The historical records for a budget action. /// </summary> public partial class ActionHistory { private ActionHistoryDetails _actionHistoryDetails; private EventType _eventType; private ActionStatus _status; private DateTime? _timestamp; /// <summary> /// Gets and sets the property ActionHistoryDetails. /// <para> /// The description of the details for the event. /// </para> /// </summary> [AWSProperty(Required=true)] public ActionHistoryDetails ActionHistoryDetails { get { return this._actionHistoryDetails; } set { this._actionHistoryDetails = value; } } // Check to see if ActionHistoryDetails property is set internal bool IsSetActionHistoryDetails() { return this._actionHistoryDetails != null; } /// <summary> /// Gets and sets the property EventType. /// <para> /// This distinguishes between whether the events are triggered by the user or are generated /// by the system. /// </para> /// </summary> [AWSProperty(Required=true)] public EventType EventType { get { return this._eventType; } set { this._eventType = value; } } // Check to see if EventType property is set internal bool IsSetEventType() { return this._eventType != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of action at the time of the event. /// </para> /// </summary> [AWSProperty(Required=true)] public ActionStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// <summary> /// Gets and sets the property Timestamp. /// </summary> [AWSProperty(Required=true)] public DateTime Timestamp { get { return this._timestamp.GetValueOrDefault(); } set { this._timestamp = value; } } // Check to see if Timestamp property is set internal bool IsSetTimestamp() { return this._timestamp.HasValue; } } }
116
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// The description of the details for the event. /// </summary> public partial class ActionHistoryDetails { private Action _action; private string _message; /// <summary> /// Gets and sets the property Action. /// <para> /// The budget action resource. /// </para> /// </summary> [AWSProperty(Required=true)] public Action Action { get { return this._action; } set { this._action = value; } } // Check to see if Action property is set internal bool IsSetAction() { return this._action != null; } /// <summary> /// Gets and sets the property Message. /// </summary> [AWSProperty(Required=true, Min=0, Max=2147483647)] public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } } }
75
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// The trigger threshold of the action. /// </summary> public partial class ActionThreshold { private ThresholdType _actionThresholdType; private double? _actionThresholdValue; /// <summary> /// Gets and sets the property ActionThresholdType. /// </summary> [AWSProperty(Required=true)] public ThresholdType ActionThresholdType { get { return this._actionThresholdType; } set { this._actionThresholdType = value; } } // Check to see if ActionThresholdType property is set internal bool IsSetActionThresholdType() { return this._actionThresholdType != null; } /// <summary> /// Gets and sets the property ActionThresholdValue. /// </summary> [AWSProperty(Required=true, Min=0, Max=15000000000000)] public double ActionThresholdValue { get { return this._actionThresholdValue.GetValueOrDefault(); } set { this._actionThresholdValue = value; } } // Check to see if ActionThresholdValue property is set internal bool IsSetActionThresholdValue() { return this._actionThresholdValue.HasValue; } } }
72
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using Amazon.Runtime; namespace Amazon.Budgets { /// <summary> /// Base class for Budgets operation requests. /// </summary> public partial class AmazonBudgetsRequest : AmazonWebServiceRequest { } }
30
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// The parameters that determine the budget amount for an auto-adjusting budget. /// </summary> public partial class AutoAdjustData { private AutoAdjustType _autoAdjustType; private HistoricalOptions _historicalOptions; private DateTime? _lastAutoAdjustTime; /// <summary> /// Gets and sets the property AutoAdjustType. /// <para> /// The string that defines whether your budget auto-adjusts based on historical or forecasted /// data. /// </para> /// </summary> [AWSProperty(Required=true)] public AutoAdjustType AutoAdjustType { get { return this._autoAdjustType; } set { this._autoAdjustType = value; } } // Check to see if AutoAdjustType property is set internal bool IsSetAutoAdjustType() { return this._autoAdjustType != null; } /// <summary> /// Gets and sets the property HistoricalOptions. /// <para> /// The parameters that define or describe the historical data that your auto-adjusting /// budget is based on. /// </para> /// </summary> public HistoricalOptions HistoricalOptions { get { return this._historicalOptions; } set { this._historicalOptions = value; } } // Check to see if HistoricalOptions property is set internal bool IsSetHistoricalOptions() { return this._historicalOptions != null; } /// <summary> /// Gets and sets the property LastAutoAdjustTime. /// <para> /// The last time that your budget was auto-adjusted. /// </para> /// </summary> public DateTime LastAutoAdjustTime { get { return this._lastAutoAdjustTime.GetValueOrDefault(); } set { this._lastAutoAdjustTime = value; } } // Check to see if LastAutoAdjustTime property is set internal bool IsSetLastAutoAdjustTime() { return this._lastAutoAdjustTime.HasValue; } } }
98
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Represents the output of the <code>CreateBudget</code> operation. The content consists /// of the detailed metadata and data file information, and the current status of the /// <code>budget</code> object. /// /// /// <para> /// This is the Amazon Resource Name (ARN) pattern for a budget: /// </para> /// /// <para> /// <code>arn:aws:budgets::AccountId:budget/budgetName</code> /// </para> /// </summary> public partial class Budget { private AutoAdjustData _autoAdjustData; private Spend _budgetLimit; private string _budgetName; private BudgetType _budgetType; private CalculatedSpend _calculatedSpend; private Dictionary<string, List<string>> _costFilters = new Dictionary<string, List<string>>(); private CostTypes _costTypes; private DateTime? _lastUpdatedTime; private Dictionary<string, Spend> _plannedBudgetLimits = new Dictionary<string, Spend>(); private TimePeriod _timePeriod; private TimeUnit _timeUnit; /// <summary> /// Gets and sets the property AutoAdjustData. /// <para> /// The parameters that determine the budget amount for an auto-adjusting budget. /// </para> /// </summary> public AutoAdjustData AutoAdjustData { get { return this._autoAdjustData; } set { this._autoAdjustData = value; } } // Check to see if AutoAdjustData property is set internal bool IsSetAutoAdjustData() { return this._autoAdjustData != null; } /// <summary> /// Gets and sets the property BudgetLimit. /// <para> /// The total amount of cost, usage, RI utilization, RI coverage, Savings Plans utilization, /// or Savings Plans coverage that you want to track with your budget. /// </para> /// /// <para> /// <code>BudgetLimit</code> is required for cost or usage budgets, but optional for /// RI or Savings Plans utilization or coverage budgets. RI and Savings Plans utilization /// or coverage budgets default to <code>100</code>. This is the only valid value for /// RI or Savings Plans utilization or coverage budgets. You can't use <code>BudgetLimit</code> /// with <code>PlannedBudgetLimits</code> for <code>CreateBudget</code> and <code>UpdateBudget</code> /// actions. /// </para> /// </summary> public Spend BudgetLimit { get { return this._budgetLimit; } set { this._budgetLimit = value; } } // Check to see if BudgetLimit property is set internal bool IsSetBudgetLimit() { return this._budgetLimit != null; } /// <summary> /// Gets and sets the property BudgetName. /// <para> /// The name of a budget. The name must be unique within an account. The <code>:</code> /// and <code>\</code> characters aren't allowed in <code>BudgetName</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property BudgetType. /// <para> /// Specifies whether this budget tracks costs, usage, RI utilization, RI coverage, Savings /// Plans utilization, or Savings Plans coverage. /// </para> /// </summary> [AWSProperty(Required=true)] public BudgetType BudgetType { get { return this._budgetType; } set { this._budgetType = value; } } // Check to see if BudgetType property is set internal bool IsSetBudgetType() { return this._budgetType != null; } /// <summary> /// Gets and sets the property CalculatedSpend. /// <para> /// The actual and forecasted cost or usage that the budget tracks. /// </para> /// </summary> public CalculatedSpend CalculatedSpend { get { return this._calculatedSpend; } set { this._calculatedSpend = value; } } // Check to see if CalculatedSpend property is set internal bool IsSetCalculatedSpend() { return this._calculatedSpend != null; } /// <summary> /// Gets and sets the property CostFilters. /// <para> /// The cost filters, such as <code>Region</code>, <code>Service</code>, <code>member /// account</code>, <code>Tag</code>, or <code>Cost Category</code>, that are applied /// to a budget. /// </para> /// /// <para> /// Amazon Web Services Budgets supports the following services as a <code>Service</code> /// filter for RI budgets: /// </para> /// <ul> <li> /// <para> /// Amazon EC2 /// </para> /// </li> <li> /// <para> /// Amazon Redshift /// </para> /// </li> <li> /// <para> /// Amazon Relational Database Service /// </para> /// </li> <li> /// <para> /// Amazon ElastiCache /// </para> /// </li> <li> /// <para> /// Amazon OpenSearch Service /// </para> /// </li> </ul> /// </summary> public Dictionary<string, List<string>> CostFilters { get { return this._costFilters; } set { this._costFilters = value; } } // Check to see if CostFilters property is set internal bool IsSetCostFilters() { return this._costFilters != null && this._costFilters.Count > 0; } /// <summary> /// Gets and sets the property CostTypes. /// <para> /// The types of costs that are included in this <code>COST</code> budget. /// </para> /// /// <para> /// <code>USAGE</code>, <code>RI_UTILIZATION</code>, <code>RI_COVERAGE</code>, <code>SAVINGS_PLANS_UTILIZATION</code>, /// and <code>SAVINGS_PLANS_COVERAGE</code> budgets do not have <code>CostTypes</code>. /// </para> /// </summary> public CostTypes CostTypes { get { return this._costTypes; } set { this._costTypes = value; } } // Check to see if CostTypes property is set internal bool IsSetCostTypes() { return this._costTypes != null; } /// <summary> /// Gets and sets the property LastUpdatedTime. /// <para> /// The last time that you updated this budget. /// </para> /// </summary> public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// <summary> /// Gets and sets the property PlannedBudgetLimits. /// <para> /// A map containing multiple <code>BudgetLimit</code>, including current or future limits. /// </para> /// /// <para> /// <code>PlannedBudgetLimits</code> is available for cost or usage budget and supports /// both monthly and quarterly <code>TimeUnit</code>. /// </para> /// /// <para> /// For monthly budgets, provide 12 months of <code>PlannedBudgetLimits</code> values. /// This must start from the current month and include the next 11 months. The <code>key</code> /// is the start of the month, <code>UTC</code> in epoch seconds. /// </para> /// /// <para> /// For quarterly budgets, provide four quarters of <code>PlannedBudgetLimits</code> value /// entries in standard calendar quarter increments. This must start from the current /// quarter and include the next three quarters. The <code>key</code> is the start of /// the quarter, <code>UTC</code> in epoch seconds. /// </para> /// /// <para> /// If the planned budget expires before 12 months for monthly or four quarters for quarterly, /// provide the <code>PlannedBudgetLimits</code> values only for the remaining periods. /// </para> /// /// <para> /// If the budget begins at a date in the future, provide <code>PlannedBudgetLimits</code> /// values from the start date of the budget. /// </para> /// /// <para> /// After all of the <code>BudgetLimit</code> values in <code>PlannedBudgetLimits</code> /// are used, the budget continues to use the last limit as the <code>BudgetLimit</code>. /// At that point, the planned budget provides the same experience as a fixed budget. /// /// </para> /// /// <para> /// <code>DescribeBudget</code> and <code>DescribeBudgets</code> response along with /// <code>PlannedBudgetLimits</code> also contain <code>BudgetLimit</code> representing /// the current month or quarter limit present in <code>PlannedBudgetLimits</code>. This /// only applies to budgets that are created with <code>PlannedBudgetLimits</code>. Budgets /// that are created without <code>PlannedBudgetLimits</code> only contain <code>BudgetLimit</code>. /// They don't contain <code>PlannedBudgetLimits</code>. /// </para> /// </summary> public Dictionary<string, Spend> PlannedBudgetLimits { get { return this._plannedBudgetLimits; } set { this._plannedBudgetLimits = value; } } // Check to see if PlannedBudgetLimits property is set internal bool IsSetPlannedBudgetLimits() { return this._plannedBudgetLimits != null && this._plannedBudgetLimits.Count > 0; } /// <summary> /// Gets and sets the property TimePeriod. /// <para> /// The period of time that's covered by a budget. You setthe start date and end date. /// The start date must come before the end date. The end date must come before <code>06/15/87 /// 00:00 UTC</code>. /// </para> /// /// <para> /// If you create your budget and don't specify a start date, Amazon Web Services defaults /// to the start of your chosen time period (DAILY, MONTHLY, QUARTERLY, or ANNUALLY). /// For example, if you created your budget on January 24, 2018, chose <code>DAILY</code>, /// and didn't set a start date, Amazon Web Services set your start date to <code>01/24/18 /// 00:00 UTC</code>. If you chose <code>MONTHLY</code>, Amazon Web Services set your /// start date to <code>01/01/18 00:00 UTC</code>. If you didn't specify an end date, /// Amazon Web Services set your end date to <code>06/15/87 00:00 UTC</code>. The defaults /// are the same for the Billing and Cost Management console and the API. /// </para> /// /// <para> /// You can change either date with the <code>UpdateBudget</code> operation. /// </para> /// /// <para> /// After the end date, Amazon Web Services deletes the budget and all the associated /// notifications and subscribers. /// </para> /// </summary> public TimePeriod TimePeriod { get { return this._timePeriod; } set { this._timePeriod = value; } } // Check to see if TimePeriod property is set internal bool IsSetTimePeriod() { return this._timePeriod != null; } /// <summary> /// Gets and sets the property TimeUnit. /// <para> /// The length of time until a budget resets the actual and forecasted spend. /// </para> /// </summary> [AWSProperty(Required=true)] public TimeUnit TimeUnit { get { return this._timeUnit; } set { this._timeUnit = value; } } // Check to see if TimeUnit property is set internal bool IsSetTimeUnit() { return this._timeUnit != null; } } }
372
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// The amount of cost or usage that you created the budget for, compared to your actual /// costs or usage. /// </summary> public partial class BudgetedAndActualAmounts { private Spend _actualAmount; private Spend _budgetedAmount; private TimePeriod _timePeriod; /// <summary> /// Gets and sets the property ActualAmount. /// <para> /// Your actual costs or usage for a budget period. /// </para> /// </summary> public Spend ActualAmount { get { return this._actualAmount; } set { this._actualAmount = value; } } // Check to see if ActualAmount property is set internal bool IsSetActualAmount() { return this._actualAmount != null; } /// <summary> /// Gets and sets the property BudgetedAmount. /// <para> /// The amount of cost or usage that you created the budget for. /// </para> /// </summary> public Spend BudgetedAmount { get { return this._budgetedAmount; } set { this._budgetedAmount = value; } } // Check to see if BudgetedAmount property is set internal bool IsSetBudgetedAmount() { return this._budgetedAmount != null; } /// <summary> /// Gets and sets the property TimePeriod. /// <para> /// The time period that's covered by this budget comparison. /// </para> /// </summary> public TimePeriod TimePeriod { get { return this._timePeriod; } set { this._timePeriod = value; } } // Check to see if TimePeriod property is set internal bool IsSetTimePeriod() { return this._timePeriod != null; } } }
96
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// The budget name and associated notifications for an account. /// </summary> public partial class BudgetNotificationsForAccount { private string _budgetName; private List<Notification> _notifications = new List<Notification>(); /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property Notifications. /// </summary> public List<Notification> Notifications { get { return this._notifications; } set { this._notifications = value; } } // Check to see if Notifications property is set internal bool IsSetNotifications() { return this._notifications != null && this._notifications.Count > 0; } } }
71
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// A history of the state of a budget at the end of the budget's specified time period. /// </summary> public partial class BudgetPerformanceHistory { private List<BudgetedAndActualAmounts> _budgetedAndActualAmountsList = new List<BudgetedAndActualAmounts>(); private string _budgetName; private BudgetType _budgetType; private Dictionary<string, List<string>> _costFilters = new Dictionary<string, List<string>>(); private CostTypes _costTypes; private TimeUnit _timeUnit; /// <summary> /// Gets and sets the property BudgetedAndActualAmountsList. /// <para> /// A list of amounts of cost or usage that you created budgets for, which are compared /// to your actual costs or usage. /// </para> /// </summary> public List<BudgetedAndActualAmounts> BudgetedAndActualAmountsList { get { return this._budgetedAndActualAmountsList; } set { this._budgetedAndActualAmountsList = value; } } // Check to see if BudgetedAndActualAmountsList property is set internal bool IsSetBudgetedAndActualAmountsList() { return this._budgetedAndActualAmountsList != null && this._budgetedAndActualAmountsList.Count > 0; } /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property BudgetType. /// </summary> public BudgetType BudgetType { get { return this._budgetType; } set { this._budgetType = value; } } // Check to see if BudgetType property is set internal bool IsSetBudgetType() { return this._budgetType != null; } /// <summary> /// Gets and sets the property CostFilters. /// <para> /// The history of the cost filters for a budget during the specified time period. /// </para> /// </summary> public Dictionary<string, List<string>> CostFilters { get { return this._costFilters; } set { this._costFilters = value; } } // Check to see if CostFilters property is set internal bool IsSetCostFilters() { return this._costFilters != null && this._costFilters.Count > 0; } /// <summary> /// Gets and sets the property CostTypes. /// <para> /// The history of the cost types for a budget during the specified time period. /// </para> /// </summary> public CostTypes CostTypes { get { return this._costTypes; } set { this._costTypes = value; } } // Check to see if CostTypes property is set internal bool IsSetCostTypes() { return this._costTypes != null; } /// <summary> /// Gets and sets the property TimeUnit. /// </summary> public TimeUnit TimeUnit { get { return this._timeUnit; } set { this._timeUnit = value; } } // Check to see if TimeUnit property is set internal bool IsSetTimeUnit() { return this._timeUnit != null; } } }
145
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// The spend objects that are associated with this budget. The <code>actualSpend</code> /// tracks how much you've used, cost, usage, RI units, or Savings Plans units and the /// <code>forecastedSpend</code> tracks how much that you're predicted to spend based /// on your historical usage profile. /// /// /// <para> /// For example, if it's the 20th of the month and you have spent <code>50</code> dollars /// on Amazon EC2, your <code>actualSpend</code> is <code>50 USD</code>, and your <code>forecastedSpend</code> /// is <code>75 USD</code>. /// </para> /// </summary> public partial class CalculatedSpend { private Spend _actualSpend; private Spend _forecastedSpend; /// <summary> /// Gets and sets the property ActualSpend. /// <para> /// The amount of cost, usage, RI units, or Savings Plans units that you used. /// </para> /// </summary> [AWSProperty(Required=true)] public Spend ActualSpend { get { return this._actualSpend; } set { this._actualSpend = value; } } // Check to see if ActualSpend property is set internal bool IsSetActualSpend() { return this._actualSpend != null; } /// <summary> /// Gets and sets the property ForecastedSpend. /// <para> /// The amount of cost, usage, RI units, or Savings Plans units that you're forecasted /// to use. /// </para> /// </summary> public Spend ForecastedSpend { get { return this._forecastedSpend; } set { this._forecastedSpend = value; } } // Check to see if ForecastedSpend property is set internal bool IsSetForecastedSpend() { return this._forecastedSpend != null; } } }
88
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// The types of cost that are included in a <code>COST</code> budget, such as tax and /// subscriptions. /// /// /// <para> /// <code>USAGE</code>, <code>RI_UTILIZATION</code>, <code>RI_COVERAGE</code>, <code>SAVINGS_PLANS_UTILIZATION</code>, /// and <code>SAVINGS_PLANS_COVERAGE</code> budgets don't have <code>CostTypes</code>. /// </para> /// </summary> public partial class CostTypes { private bool? _includeCredit; private bool? _includeDiscount; private bool? _includeOtherSubscription; private bool? _includeRecurring; private bool? _includeRefund; private bool? _includeSubscription; private bool? _includeSupport; private bool? _includeTax; private bool? _includeUpfront; private bool? _useAmortized; private bool? _useBlended; /// <summary> /// Gets and sets the property IncludeCredit. /// <para> /// Specifies whether a budget includes credits. /// </para> /// /// <para> /// The default value is <code>true</code>. /// </para> /// </summary> public bool IncludeCredit { get { return this._includeCredit.GetValueOrDefault(); } set { this._includeCredit = value; } } // Check to see if IncludeCredit property is set internal bool IsSetIncludeCredit() { return this._includeCredit.HasValue; } /// <summary> /// Gets and sets the property IncludeDiscount. /// <para> /// Specifies whether a budget includes discounts. /// </para> /// /// <para> /// The default value is <code>true</code>. /// </para> /// </summary> public bool IncludeDiscount { get { return this._includeDiscount.GetValueOrDefault(); } set { this._includeDiscount = value; } } // Check to see if IncludeDiscount property is set internal bool IsSetIncludeDiscount() { return this._includeDiscount.HasValue; } /// <summary> /// Gets and sets the property IncludeOtherSubscription. /// <para> /// Specifies whether a budget includes non-RI subscription costs. /// </para> /// /// <para> /// The default value is <code>true</code>. /// </para> /// </summary> public bool IncludeOtherSubscription { get { return this._includeOtherSubscription.GetValueOrDefault(); } set { this._includeOtherSubscription = value; } } // Check to see if IncludeOtherSubscription property is set internal bool IsSetIncludeOtherSubscription() { return this._includeOtherSubscription.HasValue; } /// <summary> /// Gets and sets the property IncludeRecurring. /// <para> /// Specifies whether a budget includes recurring fees such as monthly RI fees. /// </para> /// /// <para> /// The default value is <code>true</code>. /// </para> /// </summary> public bool IncludeRecurring { get { return this._includeRecurring.GetValueOrDefault(); } set { this._includeRecurring = value; } } // Check to see if IncludeRecurring property is set internal bool IsSetIncludeRecurring() { return this._includeRecurring.HasValue; } /// <summary> /// Gets and sets the property IncludeRefund. /// <para> /// Specifies whether a budget includes refunds. /// </para> /// /// <para> /// The default value is <code>true</code>. /// </para> /// </summary> public bool IncludeRefund { get { return this._includeRefund.GetValueOrDefault(); } set { this._includeRefund = value; } } // Check to see if IncludeRefund property is set internal bool IsSetIncludeRefund() { return this._includeRefund.HasValue; } /// <summary> /// Gets and sets the property IncludeSubscription. /// <para> /// Specifies whether a budget includes subscriptions. /// </para> /// /// <para> /// The default value is <code>true</code>. /// </para> /// </summary> public bool IncludeSubscription { get { return this._includeSubscription.GetValueOrDefault(); } set { this._includeSubscription = value; } } // Check to see if IncludeSubscription property is set internal bool IsSetIncludeSubscription() { return this._includeSubscription.HasValue; } /// <summary> /// Gets and sets the property IncludeSupport. /// <para> /// Specifies whether a budget includes support subscription fees. /// </para> /// /// <para> /// The default value is <code>true</code>. /// </para> /// </summary> public bool IncludeSupport { get { return this._includeSupport.GetValueOrDefault(); } set { this._includeSupport = value; } } // Check to see if IncludeSupport property is set internal bool IsSetIncludeSupport() { return this._includeSupport.HasValue; } /// <summary> /// Gets and sets the property IncludeTax. /// <para> /// Specifies whether a budget includes taxes. /// </para> /// /// <para> /// The default value is <code>true</code>. /// </para> /// </summary> public bool IncludeTax { get { return this._includeTax.GetValueOrDefault(); } set { this._includeTax = value; } } // Check to see if IncludeTax property is set internal bool IsSetIncludeTax() { return this._includeTax.HasValue; } /// <summary> /// Gets and sets the property IncludeUpfront. /// <para> /// Specifies whether a budget includes upfront RI costs. /// </para> /// /// <para> /// The default value is <code>true</code>. /// </para> /// </summary> public bool IncludeUpfront { get { return this._includeUpfront.GetValueOrDefault(); } set { this._includeUpfront = value; } } // Check to see if IncludeUpfront property is set internal bool IsSetIncludeUpfront() { return this._includeUpfront.HasValue; } /// <summary> /// Gets and sets the property UseAmortized. /// <para> /// Specifies whether a budget uses the amortized rate. /// </para> /// /// <para> /// The default value is <code>false</code>. /// </para> /// </summary> public bool UseAmortized { get { return this._useAmortized.GetValueOrDefault(); } set { this._useAmortized = value; } } // Check to see if UseAmortized property is set internal bool IsSetUseAmortized() { return this._useAmortized.HasValue; } /// <summary> /// Gets and sets the property UseBlended. /// <para> /// Specifies whether a budget uses a blended rate. /// </para> /// /// <para> /// The default value is <code>false</code>. /// </para> /// </summary> public bool UseBlended { get { return this._useBlended.GetValueOrDefault(); } set { this._useBlended = value; } } // Check to see if UseBlended property is set internal bool IsSetUseBlended() { return this._useBlended.HasValue; } } }
298
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the CreateBudgetAction operation. /// Creates a budget action. /// </summary> public partial class CreateBudgetActionRequest : AmazonBudgetsRequest { private string _accountId; private ActionThreshold _actionThreshold; private ActionType _actionType; private ApprovalModel _approvalModel; private string _budgetName; private Definition _definition; private string _executionRoleArn; private NotificationType _notificationType; private List<Subscriber> _subscribers = new List<Subscriber>(); /// <summary> /// Gets and sets the property AccountId. /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property ActionThreshold. /// </summary> [AWSProperty(Required=true)] public ActionThreshold ActionThreshold { get { return this._actionThreshold; } set { this._actionThreshold = value; } } // Check to see if ActionThreshold property is set internal bool IsSetActionThreshold() { return this._actionThreshold != null; } /// <summary> /// Gets and sets the property ActionType. /// <para> /// The type of action. This defines the type of tasks that can be carried out by this /// action. This field also determines the format for definition. /// </para> /// </summary> [AWSProperty(Required=true)] public ActionType ActionType { get { return this._actionType; } set { this._actionType = value; } } // Check to see if ActionType property is set internal bool IsSetActionType() { return this._actionType != null; } /// <summary> /// Gets and sets the property ApprovalModel. /// <para> /// This specifies if the action needs manual or automatic approval. /// </para> /// </summary> [AWSProperty(Required=true)] public ApprovalModel ApprovalModel { get { return this._approvalModel; } set { this._approvalModel = value; } } // Check to see if ApprovalModel property is set internal bool IsSetApprovalModel() { return this._approvalModel != null; } /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property Definition. /// </summary> [AWSProperty(Required=true)] public Definition Definition { get { return this._definition; } set { this._definition = value; } } // Check to see if Definition property is set internal bool IsSetDefinition() { return this._definition != null; } /// <summary> /// Gets and sets the property ExecutionRoleArn. /// <para> /// The role passed for action execution and reversion. Roles and actions must be in /// the same account. /// </para> /// </summary> [AWSProperty(Required=true, Min=32, Max=618)] public string ExecutionRoleArn { get { return this._executionRoleArn; } set { this._executionRoleArn = value; } } // Check to see if ExecutionRoleArn property is set internal bool IsSetExecutionRoleArn() { return this._executionRoleArn != null; } /// <summary> /// Gets and sets the property NotificationType. /// </summary> [AWSProperty(Required=true)] public NotificationType NotificationType { get { return this._notificationType; } set { this._notificationType = value; } } // Check to see if NotificationType property is set internal bool IsSetNotificationType() { return this._notificationType != null; } /// <summary> /// Gets and sets the property Subscribers. /// </summary> [AWSProperty(Required=true, Min=1, Max=11)] public List<Subscriber> Subscribers { get { return this._subscribers; } set { this._subscribers = value; } } // Check to see if Subscribers property is set internal bool IsSetSubscribers() { return this._subscribers != null && this._subscribers.Count > 0; } } }
203
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// This is the response object from the CreateBudgetAction operation. /// </summary> public partial class CreateBudgetActionResponse : AmazonWebServiceResponse { private string _accountId; private string _actionId; private string _budgetName; /// <summary> /// Gets and sets the property AccountId. /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property ActionId. /// <para> /// A system-generated universally unique identifier (UUID) for the action. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string ActionId { get { return this._actionId; } set { this._actionId = value; } } // Check to see if ActionId property is set internal bool IsSetActionId() { return this._actionId != null; } /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } } }
92
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the CreateBudget operation. /// Creates a budget and, if included, notifications and subscribers. /// /// <important> /// <para> /// Only one of <code>BudgetLimit</code> or <code>PlannedBudgetLimits</code> can be present /// in the syntax at one time. Use the syntax that matches your case. The Request Syntax /// section shows the <code>BudgetLimit</code> syntax. For <code>PlannedBudgetLimits</code>, /// see the <a href="https://docs.aws.amazon.com/aws-cost-management/latest/APIReference/API_budgets_CreateBudget.html#API_CreateBudget_Examples">Examples</a> /// section. /// </para> /// </important> /// </summary> public partial class CreateBudgetRequest : AmazonBudgetsRequest { private string _accountId; private Budget _budget; private List<NotificationWithSubscribers> _notificationsWithSubscribers = new List<NotificationWithSubscribers>(); /// <summary> /// Gets and sets the property AccountId. /// <para> /// The <code>accountId</code> that is associated with the budget. /// </para> /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property Budget. /// <para> /// The budget object that you want to create. /// </para> /// </summary> [AWSProperty(Required=true)] public Budget Budget { get { return this._budget; } set { this._budget = value; } } // Check to see if Budget property is set internal bool IsSetBudget() { return this._budget != null; } /// <summary> /// Gets and sets the property NotificationsWithSubscribers. /// <para> /// A notification that you want to associate with a budget. A budget can have up to five /// notifications, and each notification can have one SNS subscriber and up to 10 email /// subscribers. If you include notifications and subscribers in your <code>CreateBudget</code> /// call, Amazon Web Services creates the notifications and subscribers for you. /// </para> /// </summary> [AWSProperty(Max=10)] public List<NotificationWithSubscribers> NotificationsWithSubscribers { get { return this._notificationsWithSubscribers; } set { this._notificationsWithSubscribers = value; } } // Check to see if NotificationsWithSubscribers property is set internal bool IsSetNotificationsWithSubscribers() { return this._notificationsWithSubscribers != null && this._notificationsWithSubscribers.Count > 0; } } }
112
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Response of CreateBudget /// </summary> public partial class CreateBudgetResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the CreateNotification operation. /// Creates a notification. You must create the budget before you create the associated /// notification. /// </summary> public partial class CreateNotificationRequest : AmazonBudgetsRequest { private string _accountId; private string _budgetName; private Notification _notification; private List<Subscriber> _subscribers = new List<Subscriber>(); /// <summary> /// Gets and sets the property AccountId. /// <para> /// The <code>accountId</code> that is associated with the budget that you want to create /// a notification for. /// </para> /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property BudgetName. /// <para> /// The name of the budget that you want Amazon Web Services to notify you about. Budget /// names must be unique within an account. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property Notification. /// <para> /// The notification that you want to create. /// </para> /// </summary> [AWSProperty(Required=true)] public Notification Notification { get { return this._notification; } set { this._notification = value; } } // Check to see if Notification property is set internal bool IsSetNotification() { return this._notification != null; } /// <summary> /// Gets and sets the property Subscribers. /// <para> /// A list of subscribers that you want to associate with the notification. Each notification /// can have one SNS subscriber and up to 10 email subscribers. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=11)] public List<Subscriber> Subscribers { get { return this._subscribers; } set { this._subscribers = value; } } // Check to see if Subscribers property is set internal bool IsSetSubscribers() { return this._subscribers != null && this._subscribers.Count > 0; } } }
123
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Response of CreateNotification /// </summary> public partial class CreateNotificationResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the CreateSubscriber operation. /// Creates a subscriber. You must create the associated budget and notification before /// you create the subscriber. /// </summary> public partial class CreateSubscriberRequest : AmazonBudgetsRequest { private string _accountId; private string _budgetName; private Notification _notification; private Subscriber _subscriber; /// <summary> /// Gets and sets the property AccountId. /// <para> /// The <code>accountId</code> that is associated with the budget that you want to create /// a subscriber for. /// </para> /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property BudgetName. /// <para> /// The name of the budget that you want to subscribe to. Budget names must be unique /// within an account. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property Notification. /// <para> /// The notification that you want to create a subscriber for. /// </para> /// </summary> [AWSProperty(Required=true)] public Notification Notification { get { return this._notification; } set { this._notification = value; } } // Check to see if Notification property is set internal bool IsSetNotification() { return this._notification != null; } /// <summary> /// Gets and sets the property Subscriber. /// <para> /// The subscriber that you want to associate with a budget notification. /// </para> /// </summary> [AWSProperty(Required=true)] public Subscriber Subscriber { get { return this._subscriber; } set { this._subscriber = value; } } // Check to see if Subscriber property is set internal bool IsSetSubscriber() { return this._subscriber != null; } } }
122
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Response of CreateSubscriber /// </summary> public partial class CreateSubscriberResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// You've exceeded the notification or subscriber limit. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CreationLimitExceededException : AmazonBudgetsException { /// <summary> /// Constructs a new CreationLimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CreationLimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of CreationLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CreationLimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CreationLimitExceededException /// </summary> /// <param name="innerException"></param> public CreationLimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CreationLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CreationLimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CreationLimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CreationLimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CreationLimitExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CreationLimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Specifies all of the type-specific parameters. /// </summary> public partial class Definition { private IamActionDefinition _iamActionDefinition; private ScpActionDefinition _scpActionDefinition; private SsmActionDefinition _ssmActionDefinition; /// <summary> /// Gets and sets the property IamActionDefinition. /// <para> /// The Identity and Access Management (IAM) action definition details. /// </para> /// </summary> public IamActionDefinition IamActionDefinition { get { return this._iamActionDefinition; } set { this._iamActionDefinition = value; } } // Check to see if IamActionDefinition property is set internal bool IsSetIamActionDefinition() { return this._iamActionDefinition != null; } /// <summary> /// Gets and sets the property ScpActionDefinition. /// <para> /// The service control policies (SCPs) action definition details. /// </para> /// </summary> public ScpActionDefinition ScpActionDefinition { get { return this._scpActionDefinition; } set { this._scpActionDefinition = value; } } // Check to see if ScpActionDefinition property is set internal bool IsSetScpActionDefinition() { return this._scpActionDefinition != null; } /// <summary> /// Gets and sets the property SsmActionDefinition. /// <para> /// The Amazon Web Services Systems Manager (SSM) action definition details. /// </para> /// </summary> public SsmActionDefinition SsmActionDefinition { get { return this._ssmActionDefinition; } set { this._ssmActionDefinition = value; } } // Check to see if SsmActionDefinition property is set internal bool IsSetSsmActionDefinition() { return this._ssmActionDefinition != null; } } }
95
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the DeleteBudgetAction operation. /// Deletes a budget action. /// </summary> public partial class DeleteBudgetActionRequest : AmazonBudgetsRequest { private string _accountId; private string _actionId; private string _budgetName; /// <summary> /// Gets and sets the property AccountId. /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property ActionId. /// <para> /// A system-generated universally unique identifier (UUID) for the action. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string ActionId { get { return this._actionId; } set { this._actionId = value; } } // Check to see if ActionId property is set internal bool IsSetActionId() { return this._actionId != null; } /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } } }
93
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// This is the response object from the DeleteBudgetAction operation. /// </summary> public partial class DeleteBudgetActionResponse : AmazonWebServiceResponse { private string _accountId; private Action _action; private string _budgetName; /// <summary> /// Gets and sets the property AccountId. /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property Action. /// </summary> [AWSProperty(Required=true)] public Action Action { get { return this._action; } set { this._action = value; } } // Check to see if Action property is set internal bool IsSetAction() { return this._action != null; } /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } } }
89
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the DeleteBudget operation. /// Deletes a budget. You can delete your budget at any time. /// /// <important> /// <para> /// Deleting a budget also deletes the notifications and subscribers that are associated /// with that budget. /// </para> /// </important> /// </summary> public partial class DeleteBudgetRequest : AmazonBudgetsRequest { private string _accountId; private string _budgetName; /// <summary> /// Gets and sets the property AccountId. /// <para> /// The <code>accountId</code> that is associated with the budget that you want to delete. /// </para> /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property BudgetName. /// <para> /// The name of the budget that you want to delete. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } } }
86
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Response of DeleteBudget /// </summary> public partial class DeleteBudgetResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the DeleteNotification operation. /// Deletes a notification. /// /// <important> /// <para> /// Deleting a notification also deletes the subscribers that are associated with the /// notification. /// </para> /// </important> /// </summary> public partial class DeleteNotificationRequest : AmazonBudgetsRequest { private string _accountId; private string _budgetName; private Notification _notification; /// <summary> /// Gets and sets the property AccountId. /// <para> /// The <code>accountId</code> that is associated with the budget whose notification you /// want to delete. /// </para> /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property BudgetName. /// <para> /// The name of the budget whose notification you want to delete. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property Notification. /// <para> /// The notification that you want to delete. /// </para> /// </summary> [AWSProperty(Required=true)] public Notification Notification { get { return this._notification; } set { this._notification = value; } } // Check to see if Notification property is set internal bool IsSetNotification() { return this._notification != null; } } }
107
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Response of DeleteNotification /// </summary> public partial class DeleteNotificationResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the DeleteSubscriber operation. /// Deletes a subscriber. /// /// <important> /// <para> /// Deleting the last subscriber to a notification also deletes the notification. /// </para> /// </important> /// </summary> public partial class DeleteSubscriberRequest : AmazonBudgetsRequest { private string _accountId; private string _budgetName; private Notification _notification; private Subscriber _subscriber; /// <summary> /// Gets and sets the property AccountId. /// <para> /// The <code>accountId</code> that is associated with the budget whose subscriber you /// want to delete. /// </para> /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property BudgetName. /// <para> /// The name of the budget whose subscriber you want to delete. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property Notification. /// <para> /// The notification whose subscriber you want to delete. /// </para> /// </summary> [AWSProperty(Required=true)] public Notification Notification { get { return this._notification; } set { this._notification = value; } } // Check to see if Notification property is set internal bool IsSetNotification() { return this._notification != null; } /// <summary> /// Gets and sets the property Subscriber. /// <para> /// The subscriber that you want to delete. /// </para> /// </summary> [AWSProperty(Required=true)] public Subscriber Subscriber { get { return this._subscriber; } set { this._subscriber = value; } } // Check to see if Subscriber property is set internal bool IsSetSubscriber() { return this._subscriber != null; } } }
126
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Response of DeleteSubscriber /// </summary> public partial class DeleteSubscriberResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the DescribeBudgetActionHistories operation. /// Describes a budget action history detail. /// </summary> public partial class DescribeBudgetActionHistoriesRequest : AmazonBudgetsRequest { private string _accountId; private string _actionId; private string _budgetName; private int? _maxResults; private string _nextToken; private TimePeriod _timePeriod; /// <summary> /// Gets and sets the property AccountId. /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property ActionId. /// <para> /// A system-generated universally unique identifier (UUID) for the action. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string ActionId { get { return this._actionId; } set { this._actionId = value; } } // Check to see if ActionId property is set internal bool IsSetActionId() { return this._actionId != null; } /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property MaxResults. /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// </summary> [AWSProperty(Min=0, Max=2147483647)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property TimePeriod. /// </summary> public TimePeriod TimePeriod { get { return this._timePeriod; } set { this._timePeriod = value; } } // Check to see if TimePeriod property is set internal bool IsSetTimePeriod() { return this._timePeriod != null; } } }
143
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// This is the response object from the DescribeBudgetActionHistories operation. /// </summary> public partial class DescribeBudgetActionHistoriesResponse : AmazonWebServiceResponse { private List<ActionHistory> _actionHistories = new List<ActionHistory>(); private string _nextToken; /// <summary> /// Gets and sets the property ActionHistories. /// <para> /// The historical record of the budget action resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=100)] public List<ActionHistory> ActionHistories { get { return this._actionHistories; } set { this._actionHistories = value; } } // Check to see if ActionHistories property is set internal bool IsSetActionHistories() { return this._actionHistories != null && this._actionHistories.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// </summary> [AWSProperty(Min=0, Max=2147483647)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
75
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the DescribeBudgetAction operation. /// Describes a budget action detail. /// </summary> public partial class DescribeBudgetActionRequest : AmazonBudgetsRequest { private string _accountId; private string _actionId; private string _budgetName; /// <summary> /// Gets and sets the property AccountId. /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property ActionId. /// <para> /// A system-generated universally unique identifier (UUID) for the action. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string ActionId { get { return this._actionId; } set { this._actionId = value; } } // Check to see if ActionId property is set internal bool IsSetActionId() { return this._actionId != null; } /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } } }
93
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// This is the response object from the DescribeBudgetAction operation. /// </summary> public partial class DescribeBudgetActionResponse : AmazonWebServiceResponse { private string _accountId; private Action _action; private string _budgetName; /// <summary> /// Gets and sets the property AccountId. /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property Action. /// <para> /// A budget action resource. /// </para> /// </summary> [AWSProperty(Required=true)] public Action Action { get { return this._action; } set { this._action = value; } } // Check to see if Action property is set internal bool IsSetAction() { return this._action != null; } /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } } }
92
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the DescribeBudgetActionsForAccount operation. /// Describes all of the budget actions for an account. /// </summary> public partial class DescribeBudgetActionsForAccountRequest : AmazonBudgetsRequest { private string _accountId; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property AccountId. /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property MaxResults. /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// </summary> [AWSProperty(Min=0, Max=2147483647)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
90
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// This is the response object from the DescribeBudgetActionsForAccount operation. /// </summary> public partial class DescribeBudgetActionsForAccountResponse : AmazonWebServiceResponse { private List<Action> _actions = new List<Action>(); private string _nextToken; /// <summary> /// Gets and sets the property Actions. /// <para> /// A list of the budget action resources information. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=100)] public List<Action> Actions { get { return this._actions; } set { this._actions = value; } } // Check to see if Actions property is set internal bool IsSetActions() { return this._actions != null && this._actions.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// </summary> [AWSProperty(Min=0, Max=2147483647)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
75
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the DescribeBudgetActionsForBudget operation. /// Describes all of the budget actions for a budget. /// </summary> public partial class DescribeBudgetActionsForBudgetRequest : AmazonBudgetsRequest { private string _accountId; private string _budgetName; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property AccountId. /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property BudgetName. /// </summary> [AWSProperty(Required=true, Min=1, Max=100)] public string BudgetName { get { return this._budgetName; } set { this._budgetName = value; } } // Check to see if BudgetName property is set internal bool IsSetBudgetName() { return this._budgetName != null; } /// <summary> /// Gets and sets the property MaxResults. /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// </summary> [AWSProperty(Min=0, Max=2147483647)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
107
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// This is the response object from the DescribeBudgetActionsForBudget operation. /// </summary> public partial class DescribeBudgetActionsForBudgetResponse : AmazonWebServiceResponse { private List<Action> _actions = new List<Action>(); private string _nextToken; /// <summary> /// Gets and sets the property Actions. /// <para> /// A list of the budget action resources information. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=100)] public List<Action> Actions { get { return this._actions; } set { this._actions = value; } } // Check to see if Actions property is set internal bool IsSetActions() { return this._actions != null && this._actions.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// </summary> [AWSProperty(Min=0, Max=2147483647)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
75
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// Container for the parameters to the DescribeBudgetNotificationsForAccount operation. /// Lists the budget names and notifications that are associated with an account. /// </summary> public partial class DescribeBudgetNotificationsForAccountRequest : AmazonBudgetsRequest { private string _accountId; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property AccountId. /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AccountId { get { return this._accountId; } set { this._accountId = value; } } // Check to see if AccountId property is set internal bool IsSetAccountId() { return this._accountId != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// An integer that shows how many budget name entries a paginated response contains. /// /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// </summary> [AWSProperty(Min=0, Max=2147483647)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
94
aws-sdk-net
aws
C#
/* * 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 budgets-2016-10-20.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Budgets.Model { /// <summary> /// This is the response object from the DescribeBudgetNotificationsForAccount operation. /// </summary> public partial class DescribeBudgetNotificationsForAccountResponse : AmazonWebServiceResponse { private List<BudgetNotificationsForAccount> _budgetNotificationsForAccount = new List<BudgetNotificationsForAccount>(); private string _nextToken; /// <summary> /// Gets and sets the property BudgetNotificationsForAccount. /// <para> /// A list of budget names and associated notifications for an account. /// </para> /// </summary> [AWSProperty(Max=50)] public List<BudgetNotificationsForAccount> BudgetNotificationsForAccount { get { return this._budgetNotificationsForAccount; } set { this._budgetNotificationsForAccount = value; } } // Check to see if BudgetNotificationsForAccount property is set internal bool IsSetBudgetNotificationsForAccount() { return this._budgetNotificationsForAccount != null && this._budgetNotificationsForAccount.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// </summary> [AWSProperty(Min=0, Max=2147483647)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
75