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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// SchemaFacet Marshaller /// </summary> public class SchemaFacetMarshaller : IRequestMarshaller<SchemaFacet, 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(SchemaFacet requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFacetName()) { context.Writer.WritePropertyName("FacetName"); context.Writer.Write(requestObject.FacetName); } if(requestObject.IsSetSchemaArn()) { context.Writer.WritePropertyName("SchemaArn"); context.Writer.Write(requestObject.SchemaArn); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static SchemaFacetMarshaller Instance = new SchemaFacetMarshaller(); } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for SchemaFacet Object /// </summary> public class SchemaFacetUnmarshaller : IUnmarshaller<SchemaFacet, XmlUnmarshallerContext>, IUnmarshaller<SchemaFacet, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> SchemaFacet IUnmarshaller<SchemaFacet, 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 SchemaFacet Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; SchemaFacet unmarshalledObject = new SchemaFacet(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("FacetName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FacetName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SchemaArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SchemaArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static SchemaFacetUnmarshaller _instance = new SchemaFacetUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static SchemaFacetUnmarshaller 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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for StillContainsLinksException Object /// </summary> public class StillContainsLinksExceptionUnmarshaller : IErrorResponseUnmarshaller<StillContainsLinksException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public StillContainsLinksException 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 StillContainsLinksException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); StillContainsLinksException unmarshalledObject = new StillContainsLinksException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static StillContainsLinksExceptionUnmarshaller _instance = new StillContainsLinksExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static StillContainsLinksExceptionUnmarshaller 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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Tag Marshaller /// </summary> public class TagMarshaller : IRequestMarshaller<Tag, 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(Tag requestObject, JsonMarshallerContext context) { if(requestObject.IsSetKey()) { context.Writer.WritePropertyName("Key"); context.Writer.Write(requestObject.Key); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("Value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TagMarshaller Instance = new TagMarshaller(); } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.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.CloudDirectory"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11"; request.HttpMethod = "PUT"; request.ResourcePath = "/amazonclouddirectory/2017-01-11/tags/add"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetResourceArn()) { context.Writer.WritePropertyName("ResourceArn"); context.Writer.Write(publicRequest.ResourceArn); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } 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; } } } }
117
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.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("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("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidTaggingRequestException")) { return InvalidTaggingRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("RetryableConflictException")) { return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudDirectoryException(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; } } } }
127
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Tag Object /// </summary> public class TagUnmarshaller : IUnmarshaller<Tag, XmlUnmarshallerContext>, IUnmarshaller<Tag, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Tag IUnmarshaller<Tag, 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 Tag Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Tag unmarshalledObject = new Tag(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TagUnmarshaller _instance = new TagUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagUnmarshaller 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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// TypedAttributeValue Marshaller /// </summary> public class TypedAttributeValueMarshaller : IRequestMarshaller<TypedAttributeValue, 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(TypedAttributeValue requestObject, JsonMarshallerContext context) { if(requestObject.IsSetBinaryValue()) { context.Writer.WritePropertyName("BinaryValue"); context.Writer.Write(StringUtils.FromMemoryStream(requestObject.BinaryValue)); } if(requestObject.IsSetBooleanValue()) { context.Writer.WritePropertyName("BooleanValue"); context.Writer.Write(requestObject.BooleanValue); } if(requestObject.IsSetDatetimeValue()) { context.Writer.WritePropertyName("DatetimeValue"); context.Writer.Write(requestObject.DatetimeValue); } if(requestObject.IsSetNumberValue()) { context.Writer.WritePropertyName("NumberValue"); context.Writer.Write(requestObject.NumberValue); } if(requestObject.IsSetStringValue()) { context.Writer.WritePropertyName("StringValue"); context.Writer.Write(requestObject.StringValue); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TypedAttributeValueMarshaller Instance = new TypedAttributeValueMarshaller(); } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// TypedAttributeValueRange Marshaller /// </summary> public class TypedAttributeValueRangeMarshaller : IRequestMarshaller<TypedAttributeValueRange, 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(TypedAttributeValueRange requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEndMode()) { context.Writer.WritePropertyName("EndMode"); context.Writer.Write(requestObject.EndMode); } if(requestObject.IsSetEndValue()) { context.Writer.WritePropertyName("EndValue"); context.Writer.WriteObjectStart(); var marshaller = TypedAttributeValueMarshaller.Instance; marshaller.Marshall(requestObject.EndValue, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetStartMode()) { context.Writer.WritePropertyName("StartMode"); context.Writer.Write(requestObject.StartMode); } if(requestObject.IsSetStartValue()) { context.Writer.WritePropertyName("StartValue"); context.Writer.WriteObjectStart(); var marshaller = TypedAttributeValueMarshaller.Instance; marshaller.Marshall(requestObject.StartValue, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TypedAttributeValueRangeMarshaller Instance = new TypedAttributeValueRangeMarshaller(); } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypedAttributeValue Object /// </summary> public class TypedAttributeValueUnmarshaller : IUnmarshaller<TypedAttributeValue, XmlUnmarshallerContext>, IUnmarshaller<TypedAttributeValue, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TypedAttributeValue IUnmarshaller<TypedAttributeValue, 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 TypedAttributeValue Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TypedAttributeValue unmarshalledObject = new TypedAttributeValue(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("BinaryValue", targetDepth)) { var unmarshaller = MemoryStreamUnmarshaller.Instance; unmarshalledObject.BinaryValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("BooleanValue", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.BooleanValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DatetimeValue", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.DatetimeValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NumberValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.NumberValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("StringValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StringValue = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TypedAttributeValueUnmarshaller _instance = new TypedAttributeValueUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypedAttributeValueUnmarshaller Instance { get { return _instance; } } } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// TypedLinkAttributeDefinition Marshaller /// </summary> public class TypedLinkAttributeDefinitionMarshaller : IRequestMarshaller<TypedLinkAttributeDefinition, 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(TypedLinkAttributeDefinition requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDefaultValue()) { context.Writer.WritePropertyName("DefaultValue"); context.Writer.WriteObjectStart(); var marshaller = TypedAttributeValueMarshaller.Instance; marshaller.Marshall(requestObject.DefaultValue, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetIsImmutable()) { context.Writer.WritePropertyName("IsImmutable"); context.Writer.Write(requestObject.IsImmutable); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(requestObject.Name); } if(requestObject.IsSetRequiredBehavior()) { context.Writer.WritePropertyName("RequiredBehavior"); context.Writer.Write(requestObject.RequiredBehavior); } if(requestObject.IsSetRules()) { context.Writer.WritePropertyName("Rules"); context.Writer.WriteObjectStart(); foreach (var requestObjectRulesKvp in requestObject.Rules) { context.Writer.WritePropertyName(requestObjectRulesKvp.Key); var requestObjectRulesValue = requestObjectRulesKvp.Value; context.Writer.WriteObjectStart(); var marshaller = RuleMarshaller.Instance; marshaller.Marshall(requestObjectRulesValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteObjectEnd(); } if(requestObject.IsSetType()) { context.Writer.WritePropertyName("Type"); context.Writer.Write(requestObject.Type); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TypedLinkAttributeDefinitionMarshaller Instance = new TypedLinkAttributeDefinitionMarshaller(); } }
110
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypedLinkAttributeDefinition Object /// </summary> public class TypedLinkAttributeDefinitionUnmarshaller : IUnmarshaller<TypedLinkAttributeDefinition, XmlUnmarshallerContext>, IUnmarshaller<TypedLinkAttributeDefinition, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TypedLinkAttributeDefinition IUnmarshaller<TypedLinkAttributeDefinition, 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 TypedLinkAttributeDefinition Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TypedLinkAttributeDefinition unmarshalledObject = new TypedLinkAttributeDefinition(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("DefaultValue", targetDepth)) { var unmarshaller = TypedAttributeValueUnmarshaller.Instance; unmarshalledObject.DefaultValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IsImmutable", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.IsImmutable = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RequiredBehavior", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RequiredBehavior = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Rules", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, Rule, StringUnmarshaller, RuleUnmarshaller>(StringUnmarshaller.Instance, RuleUnmarshaller.Instance); unmarshalledObject.Rules = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TypedLinkAttributeDefinitionUnmarshaller _instance = new TypedLinkAttributeDefinitionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypedLinkAttributeDefinitionUnmarshaller Instance { get { return _instance; } } } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// TypedLinkAttributeRange Marshaller /// </summary> public class TypedLinkAttributeRangeMarshaller : IRequestMarshaller<TypedLinkAttributeRange, 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(TypedLinkAttributeRange requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAttributeName()) { context.Writer.WritePropertyName("AttributeName"); context.Writer.Write(requestObject.AttributeName); } if(requestObject.IsSetRange()) { context.Writer.WritePropertyName("Range"); context.Writer.WriteObjectStart(); var marshaller = TypedAttributeValueRangeMarshaller.Instance; marshaller.Marshall(requestObject.Range, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TypedLinkAttributeRangeMarshaller Instance = new TypedLinkAttributeRangeMarshaller(); } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// TypedLinkFacetAttributeUpdate Marshaller /// </summary> public class TypedLinkFacetAttributeUpdateMarshaller : IRequestMarshaller<TypedLinkFacetAttributeUpdate, 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(TypedLinkFacetAttributeUpdate requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAction()) { context.Writer.WritePropertyName("Action"); context.Writer.Write(requestObject.Action); } if(requestObject.IsSetAttribute()) { context.Writer.WritePropertyName("Attribute"); context.Writer.WriteObjectStart(); var marshaller = TypedLinkAttributeDefinitionMarshaller.Instance; marshaller.Marshall(requestObject.Attribute, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TypedLinkFacetAttributeUpdateMarshaller Instance = new TypedLinkFacetAttributeUpdateMarshaller(); } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// TypedLinkFacet Marshaller /// </summary> public class TypedLinkFacetMarshaller : IRequestMarshaller<TypedLinkFacet, 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(TypedLinkFacet requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAttributes()) { context.Writer.WritePropertyName("Attributes"); context.Writer.WriteArrayStart(); foreach(var requestObjectAttributesListValue in requestObject.Attributes) { context.Writer.WriteObjectStart(); var marshaller = TypedLinkAttributeDefinitionMarshaller.Instance; marshaller.Marshall(requestObjectAttributesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetIdentityAttributeOrder()) { context.Writer.WritePropertyName("IdentityAttributeOrder"); context.Writer.WriteArrayStart(); foreach(var requestObjectIdentityAttributeOrderListValue in requestObject.IdentityAttributeOrder) { context.Writer.Write(requestObjectIdentityAttributeOrderListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(requestObject.Name); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TypedLinkFacetMarshaller Instance = new TypedLinkFacetMarshaller(); } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// TypedLinkSchemaAndFacetName Marshaller /// </summary> public class TypedLinkSchemaAndFacetNameMarshaller : IRequestMarshaller<TypedLinkSchemaAndFacetName, 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(TypedLinkSchemaAndFacetName requestObject, JsonMarshallerContext context) { if(requestObject.IsSetSchemaArn()) { context.Writer.WritePropertyName("SchemaArn"); context.Writer.Write(requestObject.SchemaArn); } if(requestObject.IsSetTypedLinkName()) { context.Writer.WritePropertyName("TypedLinkName"); context.Writer.Write(requestObject.TypedLinkName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TypedLinkSchemaAndFacetNameMarshaller Instance = new TypedLinkSchemaAndFacetNameMarshaller(); } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypedLinkSchemaAndFacetName Object /// </summary> public class TypedLinkSchemaAndFacetNameUnmarshaller : IUnmarshaller<TypedLinkSchemaAndFacetName, XmlUnmarshallerContext>, IUnmarshaller<TypedLinkSchemaAndFacetName, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TypedLinkSchemaAndFacetName IUnmarshaller<TypedLinkSchemaAndFacetName, 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 TypedLinkSchemaAndFacetName Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TypedLinkSchemaAndFacetName unmarshalledObject = new TypedLinkSchemaAndFacetName(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("SchemaArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SchemaArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypedLinkName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TypedLinkName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TypedLinkSchemaAndFacetNameUnmarshaller _instance = new TypedLinkSchemaAndFacetNameUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypedLinkSchemaAndFacetNameUnmarshaller 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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// TypedLinkSpecifier Marshaller /// </summary> public class TypedLinkSpecifierMarshaller : IRequestMarshaller<TypedLinkSpecifier, 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(TypedLinkSpecifier requestObject, JsonMarshallerContext context) { if(requestObject.IsSetIdentityAttributeValues()) { context.Writer.WritePropertyName("IdentityAttributeValues"); context.Writer.WriteArrayStart(); foreach(var requestObjectIdentityAttributeValuesListValue in requestObject.IdentityAttributeValues) { context.Writer.WriteObjectStart(); var marshaller = AttributeNameAndValueMarshaller.Instance; marshaller.Marshall(requestObjectIdentityAttributeValuesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetSourceObjectReference()) { context.Writer.WritePropertyName("SourceObjectReference"); context.Writer.WriteObjectStart(); var marshaller = ObjectReferenceMarshaller.Instance; marshaller.Marshall(requestObject.SourceObjectReference, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTargetObjectReference()) { context.Writer.WritePropertyName("TargetObjectReference"); context.Writer.WriteObjectStart(); var marshaller = ObjectReferenceMarshaller.Instance; marshaller.Marshall(requestObject.TargetObjectReference, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetTypedLinkFacet()) { context.Writer.WritePropertyName("TypedLinkFacet"); context.Writer.WriteObjectStart(); var marshaller = TypedLinkSchemaAndFacetNameMarshaller.Instance; marshaller.Marshall(requestObject.TypedLinkFacet, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TypedLinkSpecifierMarshaller Instance = new TypedLinkSpecifierMarshaller(); } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TypedLinkSpecifier Object /// </summary> public class TypedLinkSpecifierUnmarshaller : IUnmarshaller<TypedLinkSpecifier, XmlUnmarshallerContext>, IUnmarshaller<TypedLinkSpecifier, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> TypedLinkSpecifier IUnmarshaller<TypedLinkSpecifier, 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 TypedLinkSpecifier Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; TypedLinkSpecifier unmarshalledObject = new TypedLinkSpecifier(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("IdentityAttributeValues", targetDepth)) { var unmarshaller = new ListUnmarshaller<AttributeNameAndValue, AttributeNameAndValueUnmarshaller>(AttributeNameAndValueUnmarshaller.Instance); unmarshalledObject.IdentityAttributeValues = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SourceObjectReference", targetDepth)) { var unmarshaller = ObjectReferenceUnmarshaller.Instance; unmarshalledObject.SourceObjectReference = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TargetObjectReference", targetDepth)) { var unmarshaller = ObjectReferenceUnmarshaller.Instance; unmarshalledObject.TargetObjectReference = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("TypedLinkFacet", targetDepth)) { var unmarshaller = TypedLinkSchemaAndFacetNameUnmarshaller.Instance; unmarshalledObject.TypedLinkFacet = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TypedLinkSpecifierUnmarshaller _instance = new TypedLinkSpecifierUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TypedLinkSpecifierUnmarshaller Instance { get { return _instance; } } } }
110
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UnsupportedIndexTypeException Object /// </summary> public class UnsupportedIndexTypeExceptionUnmarshaller : IErrorResponseUnmarshaller<UnsupportedIndexTypeException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public UnsupportedIndexTypeException 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 UnsupportedIndexTypeException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); UnsupportedIndexTypeException unmarshalledObject = new UnsupportedIndexTypeException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static UnsupportedIndexTypeExceptionUnmarshaller _instance = new UnsupportedIndexTypeExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static UnsupportedIndexTypeExceptionUnmarshaller 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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.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.CloudDirectory"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11"; request.HttpMethod = "PUT"; request.ResourcePath = "/amazonclouddirectory/2017-01-11/tags/remove"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetResourceArn()) { context.Writer.WritePropertyName("ResourceArn"); context.Writer.Write(publicRequest.ResourceArn); } if(publicRequest.IsSetTagKeys()) { context.Writer.WritePropertyName("TagKeys"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagKeysListValue in publicRequest.TagKeys) { context.Writer.Write(publicRequestTagKeysListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } 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; } } } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.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("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("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidTaggingRequestException")) { return InvalidTaggingRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("RetryableConflictException")) { return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudDirectoryException(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; } } } }
127
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// UpdateFacet Request Marshaller /// </summary> public class UpdateFacetRequestMarshaller : IMarshaller<IRequest, UpdateFacetRequest> , 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((UpdateFacetRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateFacetRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11"; request.HttpMethod = "PUT"; request.ResourcePath = "/amazonclouddirectory/2017-01-11/facet"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAttributeUpdates()) { context.Writer.WritePropertyName("AttributeUpdates"); context.Writer.WriteArrayStart(); foreach(var publicRequestAttributeUpdatesListValue in publicRequest.AttributeUpdates) { context.Writer.WriteObjectStart(); var marshaller = FacetAttributeUpdateMarshaller.Instance; marshaller.Marshall(publicRequestAttributeUpdatesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } if(publicRequest.IsSetObjectType()) { context.Writer.WritePropertyName("ObjectType"); context.Writer.Write(publicRequest.ObjectType); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } if (publicRequest.IsSetSchemaArn()) { request.Headers["x-amz-data-partition"] = publicRequest.SchemaArn; } return request; } private static UpdateFacetRequestMarshaller _instance = new UpdateFacetRequestMarshaller(); internal static UpdateFacetRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateFacetRequestMarshaller 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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateFacet operation /// </summary> public class UpdateFacetResponseUnmarshaller : 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) { UpdateFacetResponse response = new UpdateFacetResponse(); 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("FacetNotFoundException")) { return FacetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("FacetValidationException")) { return FacetValidationExceptionUnmarshaller.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("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidFacetUpdateException")) { return InvalidFacetUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRuleException")) { return InvalidRuleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("RetryableConflictException")) { return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateFacetResponseUnmarshaller _instance = new UpdateFacetResponseUnmarshaller(); internal static UpdateFacetResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateFacetResponseUnmarshaller Instance { get { return _instance; } } } }
139
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// UpdateLinkAttributes Request Marshaller /// </summary> public class UpdateLinkAttributesRequestMarshaller : IMarshaller<IRequest, UpdateLinkAttributesRequest> , 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((UpdateLinkAttributesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateLinkAttributesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11"; request.HttpMethod = "POST"; request.ResourcePath = "/amazonclouddirectory/2017-01-11/typedlink/attributes/update"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAttributeUpdates()) { context.Writer.WritePropertyName("AttributeUpdates"); context.Writer.WriteArrayStart(); foreach(var publicRequestAttributeUpdatesListValue in publicRequest.AttributeUpdates) { context.Writer.WriteObjectStart(); var marshaller = LinkAttributeUpdateMarshaller.Instance; marshaller.Marshall(publicRequestAttributeUpdatesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTypedLinkSpecifier()) { context.Writer.WritePropertyName("TypedLinkSpecifier"); context.Writer.WriteObjectStart(); var marshaller = TypedLinkSpecifierMarshaller.Instance; marshaller.Marshall(publicRequest.TypedLinkSpecifier, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } if (publicRequest.IsSetDirectoryArn()) { request.Headers["x-amz-data-partition"] = publicRequest.DirectoryArn; } return request; } private static UpdateLinkAttributesRequestMarshaller _instance = new UpdateLinkAttributesRequestMarshaller(); internal static UpdateLinkAttributesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateLinkAttributesRequestMarshaller Instance { get { return _instance; } } } }
127
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateLinkAttributes operation /// </summary> public class UpdateLinkAttributesResponseUnmarshaller : 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) { UpdateLinkAttributesResponse response = new UpdateLinkAttributesResponse(); 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("DirectoryNotEnabledException")) { return DirectoryNotEnabledExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("FacetValidationException")) { return FacetValidationExceptionUnmarshaller.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("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("RetryableConflictException")) { return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateLinkAttributesResponseUnmarshaller _instance = new UpdateLinkAttributesResponseUnmarshaller(); internal static UpdateLinkAttributesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateLinkAttributesResponseUnmarshaller Instance { get { return _instance; } } } }
131
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// UpdateObjectAttributes Request Marshaller /// </summary> public class UpdateObjectAttributesRequestMarshaller : IMarshaller<IRequest, UpdateObjectAttributesRequest> , 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((UpdateObjectAttributesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateObjectAttributesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11"; request.HttpMethod = "PUT"; request.ResourcePath = "/amazonclouddirectory/2017-01-11/object/update"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAttributeUpdates()) { context.Writer.WritePropertyName("AttributeUpdates"); context.Writer.WriteArrayStart(); foreach(var publicRequestAttributeUpdatesListValue in publicRequest.AttributeUpdates) { context.Writer.WriteObjectStart(); var marshaller = ObjectAttributeUpdateMarshaller.Instance; marshaller.Marshall(publicRequestAttributeUpdatesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetObjectReference()) { context.Writer.WritePropertyName("ObjectReference"); context.Writer.WriteObjectStart(); var marshaller = ObjectReferenceMarshaller.Instance; marshaller.Marshall(publicRequest.ObjectReference, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } if (publicRequest.IsSetDirectoryArn()) { request.Headers["x-amz-data-partition"] = publicRequest.DirectoryArn; } return request; } private static UpdateObjectAttributesRequestMarshaller _instance = new UpdateObjectAttributesRequestMarshaller(); internal static UpdateObjectAttributesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateObjectAttributesRequestMarshaller Instance { get { return _instance; } } } }
127
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateObjectAttributes operation /// </summary> public class UpdateObjectAttributesResponseUnmarshaller : 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) { UpdateObjectAttributesResponse response = new UpdateObjectAttributesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ObjectIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.ObjectIdentifier = 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("DirectoryNotEnabledException")) { return DirectoryNotEnabledExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("FacetValidationException")) { return FacetValidationExceptionUnmarshaller.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("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LinkNameAlreadyInUseException")) { return LinkNameAlreadyInUseExceptionUnmarshaller.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("RetryableConflictException")) { return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateObjectAttributesResponseUnmarshaller _instance = new UpdateObjectAttributesResponseUnmarshaller(); internal static UpdateObjectAttributesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateObjectAttributesResponseUnmarshaller Instance { get { return _instance; } } } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// UpdateSchema Request Marshaller /// </summary> public class UpdateSchemaRequestMarshaller : IMarshaller<IRequest, UpdateSchemaRequest> , 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((UpdateSchemaRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateSchemaRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11"; request.HttpMethod = "PUT"; request.ResourcePath = "/amazonclouddirectory/2017-01-11/schema/update"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } if (publicRequest.IsSetSchemaArn()) { request.Headers["x-amz-data-partition"] = publicRequest.SchemaArn; } return request; } private static UpdateSchemaRequestMarshaller _instance = new UpdateSchemaRequestMarshaller(); internal static UpdateSchemaRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateSchemaRequestMarshaller Instance { get { return _instance; } } } }
106
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateSchema operation /// </summary> public class UpdateSchemaResponseUnmarshaller : 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) { UpdateSchemaResponse response = new UpdateSchemaResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("SchemaArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.SchemaArn = 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("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("RetryableConflictException")) { return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateSchemaResponseUnmarshaller _instance = new UpdateSchemaResponseUnmarshaller(); internal static UpdateSchemaResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateSchemaResponseUnmarshaller 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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// UpdateTypedLinkFacet Request Marshaller /// </summary> public class UpdateTypedLinkFacetRequestMarshaller : IMarshaller<IRequest, UpdateTypedLinkFacetRequest> , 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((UpdateTypedLinkFacetRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateTypedLinkFacetRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11"; request.HttpMethod = "PUT"; request.ResourcePath = "/amazonclouddirectory/2017-01-11/typedlink/facet"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAttributeUpdates()) { context.Writer.WritePropertyName("AttributeUpdates"); context.Writer.WriteArrayStart(); foreach(var publicRequestAttributeUpdatesListValue in publicRequest.AttributeUpdates) { context.Writer.WriteObjectStart(); var marshaller = TypedLinkFacetAttributeUpdateMarshaller.Instance; marshaller.Marshall(publicRequestAttributeUpdatesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetIdentityAttributeOrder()) { context.Writer.WritePropertyName("IdentityAttributeOrder"); context.Writer.WriteArrayStart(); foreach(var publicRequestIdentityAttributeOrderListValue in publicRequest.IdentityAttributeOrder) { context.Writer.Write(publicRequestIdentityAttributeOrderListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetName()) { context.Writer.WritePropertyName("Name"); context.Writer.Write(publicRequest.Name); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } if (publicRequest.IsSetSchemaArn()) { request.Headers["x-amz-data-partition"] = publicRequest.SchemaArn; } return request; } private static UpdateTypedLinkFacetRequestMarshaller _instance = new UpdateTypedLinkFacetRequestMarshaller(); internal static UpdateTypedLinkFacetRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateTypedLinkFacetRequestMarshaller Instance { get { return _instance; } } } }
133
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateTypedLinkFacet operation /// </summary> public class UpdateTypedLinkFacetResponseUnmarshaller : 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) { UpdateTypedLinkFacetResponse response = new UpdateTypedLinkFacetResponse(); 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("FacetNotFoundException")) { return FacetNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("FacetValidationException")) { return FacetValidationExceptionUnmarshaller.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("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidFacetUpdateException")) { return InvalidFacetUpdateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRuleException")) { return InvalidRuleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("RetryableConflictException")) { return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateTypedLinkFacetResponseUnmarshaller _instance = new UpdateTypedLinkFacetResponseUnmarshaller(); internal static UpdateTypedLinkFacetResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateTypedLinkFacetResponseUnmarshaller Instance { get { return _instance; } } } }
139
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// UpgradeAppliedSchema Request Marshaller /// </summary> public class UpgradeAppliedSchemaRequestMarshaller : IMarshaller<IRequest, UpgradeAppliedSchemaRequest> , 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((UpgradeAppliedSchemaRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpgradeAppliedSchemaRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11"; request.HttpMethod = "PUT"; request.ResourcePath = "/amazonclouddirectory/2017-01-11/schema/upgradeapplied"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDirectoryArn()) { context.Writer.WritePropertyName("DirectoryArn"); context.Writer.Write(publicRequest.DirectoryArn); } if(publicRequest.IsSetDryRun()) { context.Writer.WritePropertyName("DryRun"); context.Writer.Write(publicRequest.DryRun); } if(publicRequest.IsSetPublishedSchemaArn()) { context.Writer.WritePropertyName("PublishedSchemaArn"); context.Writer.Write(publicRequest.PublishedSchemaArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpgradeAppliedSchemaRequestMarshaller _instance = new UpgradeAppliedSchemaRequestMarshaller(); internal static UpgradeAppliedSchemaRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpgradeAppliedSchemaRequestMarshaller Instance { get { return _instance; } } } }
113
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpgradeAppliedSchema operation /// </summary> public class UpgradeAppliedSchemaResponseUnmarshaller : 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) { UpgradeAppliedSchemaResponse response = new UpgradeAppliedSchemaResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("DirectoryArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.DirectoryArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UpgradedSchemaArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.UpgradedSchemaArn = 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("IncompatibleSchemaException")) { return IncompatibleSchemaExceptionUnmarshaller.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("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidAttachmentException")) { return InvalidAttachmentExceptionUnmarshaller.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("RetryableConflictException")) { return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("SchemaAlreadyExistsException")) { return SchemaAlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpgradeAppliedSchemaResponseUnmarshaller _instance = new UpgradeAppliedSchemaResponseUnmarshaller(); internal static UpgradeAppliedSchemaResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpgradeAppliedSchemaResponseUnmarshaller Instance { get { return _instance; } } } }
148
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// UpgradePublishedSchema Request Marshaller /// </summary> public class UpgradePublishedSchemaRequestMarshaller : IMarshaller<IRequest, UpgradePublishedSchemaRequest> , 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((UpgradePublishedSchemaRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpgradePublishedSchemaRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11"; request.HttpMethod = "PUT"; request.ResourcePath = "/amazonclouddirectory/2017-01-11/schema/upgradepublished"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDevelopmentSchemaArn()) { context.Writer.WritePropertyName("DevelopmentSchemaArn"); context.Writer.Write(publicRequest.DevelopmentSchemaArn); } if(publicRequest.IsSetDryRun()) { context.Writer.WritePropertyName("DryRun"); context.Writer.Write(publicRequest.DryRun); } if(publicRequest.IsSetMinorVersion()) { context.Writer.WritePropertyName("MinorVersion"); context.Writer.Write(publicRequest.MinorVersion); } if(publicRequest.IsSetPublishedSchemaArn()) { context.Writer.WritePropertyName("PublishedSchemaArn"); context.Writer.Write(publicRequest.PublishedSchemaArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpgradePublishedSchemaRequestMarshaller _instance = new UpgradePublishedSchemaRequestMarshaller(); internal static UpgradePublishedSchemaRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpgradePublishedSchemaRequestMarshaller Instance { get { return _instance; } } } }
119
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpgradePublishedSchema operation /// </summary> public class UpgradePublishedSchemaResponseUnmarshaller : 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) { UpgradePublishedSchemaResponse response = new UpgradePublishedSchemaResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("UpgradedSchemaArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.UpgradedSchemaArn = 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("IncompatibleSchemaException")) { return IncompatibleSchemaExceptionUnmarshaller.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("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidAttachmentException")) { return InvalidAttachmentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.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("RetryableConflictException")) { return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpgradePublishedSchemaResponseUnmarshaller _instance = new UpgradePublishedSchemaResponseUnmarshaller(); internal static UpgradePublishedSchemaResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpgradePublishedSchemaResponseUnmarshaller Instance { get { return _instance; } } } }
142
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 clouddirectory-2017-01-11.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.CloudDirectory.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CloudDirectory.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 clouddirectory-2017-01-11.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginators for the CloudDirectory service ///</summary> public class CloudDirectoryPaginatorFactory : ICloudDirectoryPaginatorFactory { private readonly IAmazonCloudDirectory client; internal CloudDirectoryPaginatorFactory(IAmazonCloudDirectory client) { this.client = client; } /// <summary> /// Paginator for ListAppliedSchemaArns operation ///</summary> public IListAppliedSchemaArnsPaginator ListAppliedSchemaArns(ListAppliedSchemaArnsRequest request) { return new ListAppliedSchemaArnsPaginator(this.client, request); } /// <summary> /// Paginator for ListAttachedIndices operation ///</summary> public IListAttachedIndicesPaginator ListAttachedIndices(ListAttachedIndicesRequest request) { return new ListAttachedIndicesPaginator(this.client, request); } /// <summary> /// Paginator for ListDevelopmentSchemaArns operation ///</summary> public IListDevelopmentSchemaArnsPaginator ListDevelopmentSchemaArns(ListDevelopmentSchemaArnsRequest request) { return new ListDevelopmentSchemaArnsPaginator(this.client, request); } /// <summary> /// Paginator for ListDirectories operation ///</summary> public IListDirectoriesPaginator ListDirectories(ListDirectoriesRequest request) { return new ListDirectoriesPaginator(this.client, request); } /// <summary> /// Paginator for ListFacetAttributes operation ///</summary> public IListFacetAttributesPaginator ListFacetAttributes(ListFacetAttributesRequest request) { return new ListFacetAttributesPaginator(this.client, request); } /// <summary> /// Paginator for ListFacetNames operation ///</summary> public IListFacetNamesPaginator ListFacetNames(ListFacetNamesRequest request) { return new ListFacetNamesPaginator(this.client, request); } /// <summary> /// Paginator for ListIndex operation ///</summary> public IListIndexPaginator ListIndex(ListIndexRequest request) { return new ListIndexPaginator(this.client, request); } /// <summary> /// Paginator for ListManagedSchemaArns operation ///</summary> public IListManagedSchemaArnsPaginator ListManagedSchemaArns(ListManagedSchemaArnsRequest request) { return new ListManagedSchemaArnsPaginator(this.client, request); } /// <summary> /// Paginator for ListObjectAttributes operation ///</summary> public IListObjectAttributesPaginator ListObjectAttributes(ListObjectAttributesRequest request) { return new ListObjectAttributesPaginator(this.client, request); } /// <summary> /// Paginator for ListObjectChildren operation ///</summary> public IListObjectChildrenPaginator ListObjectChildren(ListObjectChildrenRequest request) { return new ListObjectChildrenPaginator(this.client, request); } /// <summary> /// Paginator for ListObjectParentPaths operation ///</summary> public IListObjectParentPathsPaginator ListObjectParentPaths(ListObjectParentPathsRequest request) { return new ListObjectParentPathsPaginator(this.client, request); } /// <summary> /// Paginator for ListObjectParents operation ///</summary> public IListObjectParentsPaginator ListObjectParents(ListObjectParentsRequest request) { return new ListObjectParentsPaginator(this.client, request); } /// <summary> /// Paginator for ListObjectPolicies operation ///</summary> public IListObjectPoliciesPaginator ListObjectPolicies(ListObjectPoliciesRequest request) { return new ListObjectPoliciesPaginator(this.client, request); } /// <summary> /// Paginator for ListPolicyAttachments operation ///</summary> public IListPolicyAttachmentsPaginator ListPolicyAttachments(ListPolicyAttachmentsRequest request) { return new ListPolicyAttachmentsPaginator(this.client, request); } /// <summary> /// Paginator for ListPublishedSchemaArns operation ///</summary> public IListPublishedSchemaArnsPaginator ListPublishedSchemaArns(ListPublishedSchemaArnsRequest request) { return new ListPublishedSchemaArnsPaginator(this.client, request); } /// <summary> /// Paginator for ListTagsForResource operation ///</summary> public IListTagsForResourcePaginator ListTagsForResource(ListTagsForResourceRequest request) { return new ListTagsForResourcePaginator(this.client, request); } /// <summary> /// Paginator for ListTypedLinkFacetAttributes operation ///</summary> public IListTypedLinkFacetAttributesPaginator ListTypedLinkFacetAttributes(ListTypedLinkFacetAttributesRequest request) { return new ListTypedLinkFacetAttributesPaginator(this.client, request); } /// <summary> /// Paginator for ListTypedLinkFacetNames operation ///</summary> public IListTypedLinkFacetNamesPaginator ListTypedLinkFacetNames(ListTypedLinkFacetNamesRequest request) { return new ListTypedLinkFacetNamesPaginator(this.client, request); } /// <summary> /// Paginator for LookupPolicy operation ///</summary> public ILookupPolicyPaginator LookupPolicy(LookupPolicyRequest request) { return new LookupPolicyPaginator(this.client, request); } } }
190
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 clouddirectory-2017-01-11.normal.json service model. */ namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginators for the CloudDirectory service ///</summary> public interface ICloudDirectoryPaginatorFactory { /// <summary> /// Paginator for ListAppliedSchemaArns operation ///</summary> IListAppliedSchemaArnsPaginator ListAppliedSchemaArns(ListAppliedSchemaArnsRequest request); /// <summary> /// Paginator for ListAttachedIndices operation ///</summary> IListAttachedIndicesPaginator ListAttachedIndices(ListAttachedIndicesRequest request); /// <summary> /// Paginator for ListDevelopmentSchemaArns operation ///</summary> IListDevelopmentSchemaArnsPaginator ListDevelopmentSchemaArns(ListDevelopmentSchemaArnsRequest request); /// <summary> /// Paginator for ListDirectories operation ///</summary> IListDirectoriesPaginator ListDirectories(ListDirectoriesRequest request); /// <summary> /// Paginator for ListFacetAttributes operation ///</summary> IListFacetAttributesPaginator ListFacetAttributes(ListFacetAttributesRequest request); /// <summary> /// Paginator for ListFacetNames operation ///</summary> IListFacetNamesPaginator ListFacetNames(ListFacetNamesRequest request); /// <summary> /// Paginator for ListIndex operation ///</summary> IListIndexPaginator ListIndex(ListIndexRequest request); /// <summary> /// Paginator for ListManagedSchemaArns operation ///</summary> IListManagedSchemaArnsPaginator ListManagedSchemaArns(ListManagedSchemaArnsRequest request); /// <summary> /// Paginator for ListObjectAttributes operation ///</summary> IListObjectAttributesPaginator ListObjectAttributes(ListObjectAttributesRequest request); /// <summary> /// Paginator for ListObjectChildren operation ///</summary> IListObjectChildrenPaginator ListObjectChildren(ListObjectChildrenRequest request); /// <summary> /// Paginator for ListObjectParentPaths operation ///</summary> IListObjectParentPathsPaginator ListObjectParentPaths(ListObjectParentPathsRequest request); /// <summary> /// Paginator for ListObjectParents operation ///</summary> IListObjectParentsPaginator ListObjectParents(ListObjectParentsRequest request); /// <summary> /// Paginator for ListObjectPolicies operation ///</summary> IListObjectPoliciesPaginator ListObjectPolicies(ListObjectPoliciesRequest request); /// <summary> /// Paginator for ListPolicyAttachments operation ///</summary> IListPolicyAttachmentsPaginator ListPolicyAttachments(ListPolicyAttachmentsRequest request); /// <summary> /// Paginator for ListPublishedSchemaArns operation ///</summary> IListPublishedSchemaArnsPaginator ListPublishedSchemaArns(ListPublishedSchemaArnsRequest request); /// <summary> /// Paginator for ListTagsForResource operation ///</summary> IListTagsForResourcePaginator ListTagsForResource(ListTagsForResourceRequest request); /// <summary> /// Paginator for ListTypedLinkFacetAttributes operation ///</summary> IListTypedLinkFacetAttributesPaginator ListTypedLinkFacetAttributes(ListTypedLinkFacetAttributesRequest request); /// <summary> /// Paginator for ListTypedLinkFacetNames operation ///</summary> IListTypedLinkFacetNamesPaginator ListTypedLinkFacetNames(ListTypedLinkFacetNamesRequest request); /// <summary> /// Paginator for LookupPolicy operation ///</summary> ILookupPolicyPaginator LookupPolicy(LookupPolicyRequest request); } }
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListAppliedSchemaArns operation ///</summary> public interface IListAppliedSchemaArnsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListAppliedSchemaArnsResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListAttachedIndices operation ///</summary> public interface IListAttachedIndicesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListAttachedIndicesResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListDevelopmentSchemaArns operation ///</summary> public interface IListDevelopmentSchemaArnsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListDevelopmentSchemaArnsResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListDirectories operation ///</summary> public interface IListDirectoriesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListDirectoriesResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListFacetAttributes operation ///</summary> public interface IListFacetAttributesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListFacetAttributesResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListFacetNames operation ///</summary> public interface IListFacetNamesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListFacetNamesResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListIndex operation ///</summary> public interface IListIndexPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListIndexResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListManagedSchemaArns operation ///</summary> public interface IListManagedSchemaArnsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListManagedSchemaArnsResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListObjectAttributes operation ///</summary> public interface IListObjectAttributesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListObjectAttributesResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListObjectChildren operation ///</summary> public interface IListObjectChildrenPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListObjectChildrenResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListObjectParentPaths operation ///</summary> public interface IListObjectParentPathsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListObjectParentPathsResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListObjectParents operation ///</summary> public interface IListObjectParentsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListObjectParentsResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListObjectPolicies operation ///</summary> public interface IListObjectPoliciesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListObjectPoliciesResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListPolicyAttachments operation ///</summary> public interface IListPolicyAttachmentsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListPolicyAttachmentsResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListPublishedSchemaArns operation ///</summary> public interface IListPublishedSchemaArnsPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListPublishedSchemaArnsResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListTagsForResource operation ///</summary> public interface IListTagsForResourcePaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListTagsForResourceResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListTypedLinkFacetAttributes operation ///</summary> public interface IListTypedLinkFacetAttributesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListTypedLinkFacetAttributesResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the ListTypedLinkFacetNames operation ///</summary> public interface IListTypedLinkFacetNamesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListTypedLinkFacetNamesResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudDirectory.Model { /// <summary> /// Paginator for the LookupPolicy operation ///</summary> public interface ILookupPolicyPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<LookupPolicyResponse> Responses { get; } } }
33
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListAppliedSchemaArns paginators. /// </summary> internal sealed partial class ListAppliedSchemaArnsPaginator : IPaginator<ListAppliedSchemaArnsResponse>, IListAppliedSchemaArnsPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListAppliedSchemaArnsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListAppliedSchemaArnsResponse> Responses => new PaginatedResponse<ListAppliedSchemaArnsResponse>(this); internal ListAppliedSchemaArnsPaginator(IAmazonCloudDirectory client, ListAppliedSchemaArnsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListAppliedSchemaArnsResponse> IPaginator<ListAppliedSchemaArnsResponse>.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; ListAppliedSchemaArnsResponse response; do { _request.NextToken = nextToken; response = _client.ListAppliedSchemaArns(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListAppliedSchemaArnsResponse> IPaginator<ListAppliedSchemaArnsResponse>.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; ListAppliedSchemaArnsResponse response; do { _request.NextToken = nextToken; response = await _client.ListAppliedSchemaArnsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListAttachedIndices paginators. /// </summary> internal sealed partial class ListAttachedIndicesPaginator : IPaginator<ListAttachedIndicesResponse>, IListAttachedIndicesPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListAttachedIndicesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListAttachedIndicesResponse> Responses => new PaginatedResponse<ListAttachedIndicesResponse>(this); internal ListAttachedIndicesPaginator(IAmazonCloudDirectory client, ListAttachedIndicesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListAttachedIndicesResponse> IPaginator<ListAttachedIndicesResponse>.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; ListAttachedIndicesResponse response; do { _request.NextToken = nextToken; response = _client.ListAttachedIndices(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListAttachedIndicesResponse> IPaginator<ListAttachedIndicesResponse>.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; ListAttachedIndicesResponse response; do { _request.NextToken = nextToken; response = await _client.ListAttachedIndicesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListDevelopmentSchemaArns paginators. /// </summary> internal sealed partial class ListDevelopmentSchemaArnsPaginator : IPaginator<ListDevelopmentSchemaArnsResponse>, IListDevelopmentSchemaArnsPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListDevelopmentSchemaArnsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListDevelopmentSchemaArnsResponse> Responses => new PaginatedResponse<ListDevelopmentSchemaArnsResponse>(this); internal ListDevelopmentSchemaArnsPaginator(IAmazonCloudDirectory client, ListDevelopmentSchemaArnsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListDevelopmentSchemaArnsResponse> IPaginator<ListDevelopmentSchemaArnsResponse>.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; ListDevelopmentSchemaArnsResponse response; do { _request.NextToken = nextToken; response = _client.ListDevelopmentSchemaArns(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListDevelopmentSchemaArnsResponse> IPaginator<ListDevelopmentSchemaArnsResponse>.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; ListDevelopmentSchemaArnsResponse response; do { _request.NextToken = nextToken; response = await _client.ListDevelopmentSchemaArnsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListDirectories paginators. /// </summary> internal sealed partial class ListDirectoriesPaginator : IPaginator<ListDirectoriesResponse>, IListDirectoriesPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListDirectoriesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListDirectoriesResponse> Responses => new PaginatedResponse<ListDirectoriesResponse>(this); internal ListDirectoriesPaginator(IAmazonCloudDirectory client, ListDirectoriesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListDirectoriesResponse> IPaginator<ListDirectoriesResponse>.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; ListDirectoriesResponse response; do { _request.NextToken = nextToken; response = _client.ListDirectories(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListDirectoriesResponse> IPaginator<ListDirectoriesResponse>.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; ListDirectoriesResponse response; do { _request.NextToken = nextToken; response = await _client.ListDirectoriesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListFacetAttributes paginators. /// </summary> internal sealed partial class ListFacetAttributesPaginator : IPaginator<ListFacetAttributesResponse>, IListFacetAttributesPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListFacetAttributesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListFacetAttributesResponse> Responses => new PaginatedResponse<ListFacetAttributesResponse>(this); internal ListFacetAttributesPaginator(IAmazonCloudDirectory client, ListFacetAttributesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListFacetAttributesResponse> IPaginator<ListFacetAttributesResponse>.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; ListFacetAttributesResponse response; do { _request.NextToken = nextToken; response = _client.ListFacetAttributes(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListFacetAttributesResponse> IPaginator<ListFacetAttributesResponse>.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; ListFacetAttributesResponse response; do { _request.NextToken = nextToken; response = await _client.ListFacetAttributesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListFacetNames paginators. /// </summary> internal sealed partial class ListFacetNamesPaginator : IPaginator<ListFacetNamesResponse>, IListFacetNamesPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListFacetNamesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListFacetNamesResponse> Responses => new PaginatedResponse<ListFacetNamesResponse>(this); internal ListFacetNamesPaginator(IAmazonCloudDirectory client, ListFacetNamesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListFacetNamesResponse> IPaginator<ListFacetNamesResponse>.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; ListFacetNamesResponse response; do { _request.NextToken = nextToken; response = _client.ListFacetNames(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListFacetNamesResponse> IPaginator<ListFacetNamesResponse>.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; ListFacetNamesResponse response; do { _request.NextToken = nextToken; response = await _client.ListFacetNamesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListIndex paginators. /// </summary> internal sealed partial class ListIndexPaginator : IPaginator<ListIndexResponse>, IListIndexPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListIndexRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListIndexResponse> Responses => new PaginatedResponse<ListIndexResponse>(this); internal ListIndexPaginator(IAmazonCloudDirectory client, ListIndexRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListIndexResponse> IPaginator<ListIndexResponse>.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; ListIndexResponse response; do { _request.NextToken = nextToken; response = _client.ListIndex(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListIndexResponse> IPaginator<ListIndexResponse>.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; ListIndexResponse response; do { _request.NextToken = nextToken; response = await _client.ListIndexAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListManagedSchemaArns paginators. /// </summary> internal sealed partial class ListManagedSchemaArnsPaginator : IPaginator<ListManagedSchemaArnsResponse>, IListManagedSchemaArnsPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListManagedSchemaArnsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListManagedSchemaArnsResponse> Responses => new PaginatedResponse<ListManagedSchemaArnsResponse>(this); internal ListManagedSchemaArnsPaginator(IAmazonCloudDirectory client, ListManagedSchemaArnsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListManagedSchemaArnsResponse> IPaginator<ListManagedSchemaArnsResponse>.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; ListManagedSchemaArnsResponse response; do { _request.NextToken = nextToken; response = _client.ListManagedSchemaArns(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListManagedSchemaArnsResponse> IPaginator<ListManagedSchemaArnsResponse>.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; ListManagedSchemaArnsResponse response; do { _request.NextToken = nextToken; response = await _client.ListManagedSchemaArnsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListObjectAttributes paginators. /// </summary> internal sealed partial class ListObjectAttributesPaginator : IPaginator<ListObjectAttributesResponse>, IListObjectAttributesPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListObjectAttributesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListObjectAttributesResponse> Responses => new PaginatedResponse<ListObjectAttributesResponse>(this); internal ListObjectAttributesPaginator(IAmazonCloudDirectory client, ListObjectAttributesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListObjectAttributesResponse> IPaginator<ListObjectAttributesResponse>.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; ListObjectAttributesResponse response; do { _request.NextToken = nextToken; response = _client.ListObjectAttributes(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListObjectAttributesResponse> IPaginator<ListObjectAttributesResponse>.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; ListObjectAttributesResponse response; do { _request.NextToken = nextToken; response = await _client.ListObjectAttributesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListObjectChildren paginators. /// </summary> internal sealed partial class ListObjectChildrenPaginator : IPaginator<ListObjectChildrenResponse>, IListObjectChildrenPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListObjectChildrenRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListObjectChildrenResponse> Responses => new PaginatedResponse<ListObjectChildrenResponse>(this); internal ListObjectChildrenPaginator(IAmazonCloudDirectory client, ListObjectChildrenRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListObjectChildrenResponse> IPaginator<ListObjectChildrenResponse>.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; ListObjectChildrenResponse response; do { _request.NextToken = nextToken; response = _client.ListObjectChildren(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListObjectChildrenResponse> IPaginator<ListObjectChildrenResponse>.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; ListObjectChildrenResponse response; do { _request.NextToken = nextToken; response = await _client.ListObjectChildrenAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListObjectParentPaths paginators. /// </summary> internal sealed partial class ListObjectParentPathsPaginator : IPaginator<ListObjectParentPathsResponse>, IListObjectParentPathsPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListObjectParentPathsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListObjectParentPathsResponse> Responses => new PaginatedResponse<ListObjectParentPathsResponse>(this); internal ListObjectParentPathsPaginator(IAmazonCloudDirectory client, ListObjectParentPathsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListObjectParentPathsResponse> IPaginator<ListObjectParentPathsResponse>.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; ListObjectParentPathsResponse response; do { _request.NextToken = nextToken; response = _client.ListObjectParentPaths(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListObjectParentPathsResponse> IPaginator<ListObjectParentPathsResponse>.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; ListObjectParentPathsResponse response; do { _request.NextToken = nextToken; response = await _client.ListObjectParentPathsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListObjectParents paginators. /// </summary> internal sealed partial class ListObjectParentsPaginator : IPaginator<ListObjectParentsResponse>, IListObjectParentsPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListObjectParentsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListObjectParentsResponse> Responses => new PaginatedResponse<ListObjectParentsResponse>(this); internal ListObjectParentsPaginator(IAmazonCloudDirectory client, ListObjectParentsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListObjectParentsResponse> IPaginator<ListObjectParentsResponse>.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; ListObjectParentsResponse response; do { _request.NextToken = nextToken; response = _client.ListObjectParents(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListObjectParentsResponse> IPaginator<ListObjectParentsResponse>.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; ListObjectParentsResponse response; do { _request.NextToken = nextToken; response = await _client.ListObjectParentsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListObjectPolicies paginators. /// </summary> internal sealed partial class ListObjectPoliciesPaginator : IPaginator<ListObjectPoliciesResponse>, IListObjectPoliciesPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListObjectPoliciesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListObjectPoliciesResponse> Responses => new PaginatedResponse<ListObjectPoliciesResponse>(this); internal ListObjectPoliciesPaginator(IAmazonCloudDirectory client, ListObjectPoliciesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListObjectPoliciesResponse> IPaginator<ListObjectPoliciesResponse>.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; ListObjectPoliciesResponse response; do { _request.NextToken = nextToken; response = _client.ListObjectPolicies(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListObjectPoliciesResponse> IPaginator<ListObjectPoliciesResponse>.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; ListObjectPoliciesResponse response; do { _request.NextToken = nextToken; response = await _client.ListObjectPoliciesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListPolicyAttachments paginators. /// </summary> internal sealed partial class ListPolicyAttachmentsPaginator : IPaginator<ListPolicyAttachmentsResponse>, IListPolicyAttachmentsPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListPolicyAttachmentsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListPolicyAttachmentsResponse> Responses => new PaginatedResponse<ListPolicyAttachmentsResponse>(this); internal ListPolicyAttachmentsPaginator(IAmazonCloudDirectory client, ListPolicyAttachmentsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListPolicyAttachmentsResponse> IPaginator<ListPolicyAttachmentsResponse>.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; ListPolicyAttachmentsResponse response; do { _request.NextToken = nextToken; response = _client.ListPolicyAttachments(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListPolicyAttachmentsResponse> IPaginator<ListPolicyAttachmentsResponse>.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; ListPolicyAttachmentsResponse response; do { _request.NextToken = nextToken; response = await _client.ListPolicyAttachmentsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListPublishedSchemaArns paginators. /// </summary> internal sealed partial class ListPublishedSchemaArnsPaginator : IPaginator<ListPublishedSchemaArnsResponse>, IListPublishedSchemaArnsPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListPublishedSchemaArnsRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListPublishedSchemaArnsResponse> Responses => new PaginatedResponse<ListPublishedSchemaArnsResponse>(this); internal ListPublishedSchemaArnsPaginator(IAmazonCloudDirectory client, ListPublishedSchemaArnsRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListPublishedSchemaArnsResponse> IPaginator<ListPublishedSchemaArnsResponse>.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; ListPublishedSchemaArnsResponse response; do { _request.NextToken = nextToken; response = _client.ListPublishedSchemaArns(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListPublishedSchemaArnsResponse> IPaginator<ListPublishedSchemaArnsResponse>.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; ListPublishedSchemaArnsResponse response; do { _request.NextToken = nextToken; response = await _client.ListPublishedSchemaArnsAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListTagsForResource paginators. /// </summary> internal sealed partial class ListTagsForResourcePaginator : IPaginator<ListTagsForResourceResponse>, IListTagsForResourcePaginator { private readonly IAmazonCloudDirectory _client; private readonly ListTagsForResourceRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListTagsForResourceResponse> Responses => new PaginatedResponse<ListTagsForResourceResponse>(this); internal ListTagsForResourcePaginator(IAmazonCloudDirectory client, ListTagsForResourceRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListTagsForResourceResponse> IPaginator<ListTagsForResourceResponse>.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; ListTagsForResourceResponse response; do { _request.NextToken = nextToken; response = _client.ListTagsForResource(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListTagsForResourceResponse> IPaginator<ListTagsForResourceResponse>.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; ListTagsForResourceResponse response; do { _request.NextToken = nextToken; response = await _client.ListTagsForResourceAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListTypedLinkFacetAttributes paginators. /// </summary> internal sealed partial class ListTypedLinkFacetAttributesPaginator : IPaginator<ListTypedLinkFacetAttributesResponse>, IListTypedLinkFacetAttributesPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListTypedLinkFacetAttributesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListTypedLinkFacetAttributesResponse> Responses => new PaginatedResponse<ListTypedLinkFacetAttributesResponse>(this); internal ListTypedLinkFacetAttributesPaginator(IAmazonCloudDirectory client, ListTypedLinkFacetAttributesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListTypedLinkFacetAttributesResponse> IPaginator<ListTypedLinkFacetAttributesResponse>.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; ListTypedLinkFacetAttributesResponse response; do { _request.NextToken = nextToken; response = _client.ListTypedLinkFacetAttributes(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListTypedLinkFacetAttributesResponse> IPaginator<ListTypedLinkFacetAttributesResponse>.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; ListTypedLinkFacetAttributesResponse response; do { _request.NextToken = nextToken; response = await _client.ListTypedLinkFacetAttributesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for ListTypedLinkFacetNames paginators. /// </summary> internal sealed partial class ListTypedLinkFacetNamesPaginator : IPaginator<ListTypedLinkFacetNamesResponse>, IListTypedLinkFacetNamesPaginator { private readonly IAmazonCloudDirectory _client; private readonly ListTypedLinkFacetNamesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListTypedLinkFacetNamesResponse> Responses => new PaginatedResponse<ListTypedLinkFacetNamesResponse>(this); internal ListTypedLinkFacetNamesPaginator(IAmazonCloudDirectory client, ListTypedLinkFacetNamesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListTypedLinkFacetNamesResponse> IPaginator<ListTypedLinkFacetNamesResponse>.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; ListTypedLinkFacetNamesResponse response; do { _request.NextToken = nextToken; response = _client.ListTypedLinkFacetNames(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListTypedLinkFacetNamesResponse> IPaginator<ListTypedLinkFacetNamesResponse>.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; ListTypedLinkFacetNamesResponse response; do { _request.NextToken = nextToken; response = await _client.ListTypedLinkFacetNamesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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 clouddirectory-2017-01-11.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.CloudDirectory.Model { /// <summary> /// Base class for LookupPolicy paginators. /// </summary> internal sealed partial class LookupPolicyPaginator : IPaginator<LookupPolicyResponse>, ILookupPolicyPaginator { private readonly IAmazonCloudDirectory _client; private readonly LookupPolicyRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<LookupPolicyResponse> Responses => new PaginatedResponse<LookupPolicyResponse>(this); internal LookupPolicyPaginator(IAmazonCloudDirectory client, LookupPolicyRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<LookupPolicyResponse> IPaginator<LookupPolicyResponse>.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; LookupPolicyResponse response; do { _request.NextToken = nextToken; response = _client.LookupPolicy(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<LookupPolicyResponse> IPaginator<LookupPolicyResponse>.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; LookupPolicyResponse response; do { _request.NextToken = nextToken; response = await _client.LookupPolicyAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
91
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.CloudDirectory")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - Amazon CloudDirectory. Cloud Directory (CD) is a multi-tenant, hierarchical data store for use by other AWS services to store directory data for AWS resources, including both metadata about resources and policy data governing resources.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - Amazon CloudDirectory. Cloud Directory (CD) is a multi-tenant, hierarchical data store for use by other AWS services to store directory data for AWS resources, including both metadata about resources and policy data governing resources.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - Amazon CloudDirectory. Cloud Directory (CD) is a multi-tenant, hierarchical data store for use by other AWS services to store directory data for AWS resources, including both metadata about resources and policy data governing resources.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - Amazon CloudDirectory. Cloud Directory (CD) is a multi-tenant, hierarchical data store for use by other AWS services to store directory data for AWS resources, including both metadata about resources and policy data governing resources.")] #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.101.85")] [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; // Uri properties should not be strings [module: SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Util.AmazonCloudFormationUtil.#SignalWaitCondition(System.String,System.String,System.String,System.String,System.String)", MessageId = "0#")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.CreateStackRequest.#TemplateURL")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.EstimateTemplateCostRequest.#TemplateURL")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.EstimateTemplateCostResult.#Url")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.UpdateStackRequest.#TemplateURL")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.ValidateTemplateRequest.#TemplateURL")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.GetTemplateSummaryRequest.#TemplateURL")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.UpdateStackRequest.#StackPolicyDuringUpdateURL")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.UpdateStackRequest.#StackPolicyURL")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.CreateStackRequest.#StackPolicyURL")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.SetStackPolicyRequest.#StackPolicyURL")] [module: SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "Amazon.CloudFormation.Model.EstimateTemplateCostResponse.#Url")]
31
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; using System.Collections.Generic; using System.Linq; using System.Text; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.CloudFormation.Model; namespace Amazon.CloudFormation.Internal { /// <summary> /// Custom pipeline handler to pass an empty string NotificationARNs request property with collection is empty. /// </summary> public class ProcessRequestHandler : PipelineHandler { /// <summary> /// Calls pre invoke logic before calling the next handler /// in the pipeline. /// </summary> /// <param name="executionContext">The execution context which contains both the /// requests and response context.</param> public override void InvokeSync(IExecutionContext executionContext) { PreInvoke(executionContext); base.InvokeSync(executionContext); } #if AWS_ASYNC_API /// <summary> /// Calls pre invoke logic before calling the next handler /// in the pipeline. /// </summary> /// <typeparam name="T">The response type for the current request.</typeparam> /// <param name="executionContext">The execution context, it contains the /// request and response context.</param> /// <returns>A task that represents the asynchronous operation.</returns> public override System.Threading.Tasks.Task<T> InvokeAsync<T>(IExecutionContext executionContext) { PreInvoke(executionContext); return base.InvokeAsync<T>(executionContext); } #elif AWS_APM_API /// <summary> /// Calls pre invoke logic before calling the next handler /// in the pipeline. /// </summary> /// <param name="executionContext">The execution context which contains both the /// requests and response context.</param> /// <returns>IAsyncResult which represent an async operation.</returns> public override IAsyncResult InvokeAsync(IAsyncExecutionContext executionContext) { PreInvoke(ExecutionContext.CreateFromAsyncContext(executionContext)); return base.InvokeAsync(executionContext); } #endif /// <summary> /// Set NotificationARNs to empty if the collection is empty before continuing on in the pipeline. /// </summary> /// <param name="executionContext"></param> protected virtual void PreInvoke(IExecutionContext executionContext) { var request = executionContext.RequestContext.Request; var updateStackRequest = request.OriginalRequest as UpdateStackRequest; if (updateStackRequest != null) { var arns = updateStackRequest.NotificationARNs; bool arnsAutoConstructed = arns is AutoConstructedList<string>; // if there are no NotificationARNs and the list was created by user (type is NOT AutoConstructed) // only then pass empty param if (arns.Count == 0 && !arnsAutoConstructed) { request.Parameters.Add("NotificationARNs", ""); } } } } }
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. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.CloudFormation.Model { /// <summary> /// The input for <a>UpdateStack</a> action. /// </summary> public partial class UpdateStackRequest : AmazonCloudFormationRequest { /// <summary> /// Default Constructor /// </summary> public UpdateStackRequest() { this._notificationARNs = new AutoConstructedList<string>(); } } }
39
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; using System.IO; using System.Text; using System.Net; using System.Reflection; using System.Web; using Amazon.Util; using System.Globalization; namespace Amazon.CloudFormation.Util { /// <summary> /// Utility methods for CloudFormation. /// </summary> public static class AmazonCloudFormationUtil { /// <summary> /// This method will signal to the CloudFormation the status of a wait condition. /// </summary> /// <param name="presignedURL">The URL returned from the creation of a WaitHandle in a CloudFormation Stack</param> /// <param name="status">SUCCESS or FAILURE for the status of a stack</param> /// <param name="reason">The reason for the status</param> /// <param name="uniqueId">A unique identifier for the signal. Using <c>Guid.NewGuid().ToString()</c>can be used for this.</param> /// <param name="data">Data to be passed back for later use in the template.</param> public static void SignalWaitCondition(string presignedURL, string status, string reason, string uniqueId, string data) { string requestBody = string.Format(CultureInfo.InvariantCulture, "{{" + "\"Status\" : \"{0}\"," + "\"Reason\" : \"{1}\"," + "\"UniqueId\" : \"{2}\"," + "\"Data\" : \"{3}\"" + "}}", status, reason, uniqueId, data); Uri uri = new Uri(presignedURL); AWSSDKUtils.ForceCanonicalPathAndQuery(uri); var httpRequest = WebRequest.Create(uri); httpRequest.Method = "PUT"; httpRequest.ContentType = ""; httpRequest.ContentLength = requestBody.Length; using (var stream = new StreamWriter(httpRequest.GetRequestStream())) { stream.Write(requestBody); } using(httpRequest.GetResponse()) { } } } }
67
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 cloudformation-2010-05-15.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.CloudFormation.Internal; namespace Amazon.CloudFormation { /// <summary> /// Configuration for accessing Amazon CloudFormation service /// </summary> [AWSSignerType("v4")] public partial class AmazonCloudFormationConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.108.1"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonCloudFormationConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonCloudFormationDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "cloudformation"; this.EndpointProvider = new AmazonCloudFormationEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "cloudformation"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2010-05-15"; } } /// <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 cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.CloudFormation { /// <summary> /// Configuration for accessing Amazon CloudFormation service /// </summary> public static class AmazonCloudFormationDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// CloudFormation /// </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 cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.CloudFormation.Endpoints { /// <summary> /// Contains parameters used for resolving CloudFormation endpoints /// Parameters can be sourced from client config and service operations /// Used by internal CloudFormationEndpointProvider and CloudFormationEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class CloudFormationEndpointParameters : EndpointParameters { /// <summary> /// CloudFormationEndpointParameters constructor /// </summary> public CloudFormationEndpointParameters() { 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 cloudformation-2010-05-15.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.CloudFormation { ///<summary> /// Common exception for the CloudFormation service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonCloudFormationException : AmazonServiceException { /// <summary> /// Construct instance of AmazonCloudFormationException /// </summary> /// <param name="message"></param> public AmazonCloudFormationException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonCloudFormationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonCloudFormationException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonCloudFormationException /// </summary> /// <param name="innerException"></param> public AmazonCloudFormationException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonCloudFormationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonCloudFormationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonCloudFormationException /// </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 AmazonCloudFormationException(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 AmazonCloudFormationException 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 AmazonCloudFormationException(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 cloudformation-2010-05-15.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.CloudFormation { /// <summary> /// Constants used for properties of type AccountFilterType. /// </summary> public class AccountFilterType : ConstantClass { /// <summary> /// Constant DIFFERENCE for AccountFilterType /// </summary> public static readonly AccountFilterType DIFFERENCE = new AccountFilterType("DIFFERENCE"); /// <summary> /// Constant INTERSECTION for AccountFilterType /// </summary> public static readonly AccountFilterType INTERSECTION = new AccountFilterType("INTERSECTION"); /// <summary> /// Constant NONE for AccountFilterType /// </summary> public static readonly AccountFilterType NONE = new AccountFilterType("NONE"); /// <summary> /// Constant UNION for AccountFilterType /// </summary> public static readonly AccountFilterType UNION = new AccountFilterType("UNION"); /// <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 AccountFilterType(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 AccountFilterType FindValue(string value) { return FindValue<AccountFilterType>(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 AccountFilterType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type AccountGateStatus. /// </summary> public class AccountGateStatus : ConstantClass { /// <summary> /// Constant FAILED for AccountGateStatus /// </summary> public static readonly AccountGateStatus FAILED = new AccountGateStatus("FAILED"); /// <summary> /// Constant SKIPPED for AccountGateStatus /// </summary> public static readonly AccountGateStatus SKIPPED = new AccountGateStatus("SKIPPED"); /// <summary> /// Constant SUCCEEDED for AccountGateStatus /// </summary> public static readonly AccountGateStatus SUCCEEDED = new AccountGateStatus("SUCCEEDED"); /// <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 AccountGateStatus(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 AccountGateStatus FindValue(string value) { return FindValue<AccountGateStatus>(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 AccountGateStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CallAs. /// </summary> public class CallAs : ConstantClass { /// <summary> /// Constant DELEGATED_ADMIN for CallAs /// </summary> public static readonly CallAs DELEGATED_ADMIN = new CallAs("DELEGATED_ADMIN"); /// <summary> /// Constant SELF for CallAs /// </summary> public static readonly CallAs SELF = new CallAs("SELF"); /// <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 CallAs(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 CallAs FindValue(string value) { return FindValue<CallAs>(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 CallAs(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type Capability. /// </summary> public class Capability : ConstantClass { /// <summary> /// Constant CAPABILITY_AUTO_EXPAND for Capability /// </summary> public static readonly Capability CAPABILITY_AUTO_EXPAND = new Capability("CAPABILITY_AUTO_EXPAND"); /// <summary> /// Constant CAPABILITY_IAM for Capability /// </summary> public static readonly Capability CAPABILITY_IAM = new Capability("CAPABILITY_IAM"); /// <summary> /// Constant CAPABILITY_NAMED_IAM for Capability /// </summary> public static readonly Capability CAPABILITY_NAMED_IAM = new Capability("CAPABILITY_NAMED_IAM"); /// <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 Capability(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 Capability FindValue(string value) { return FindValue<Capability>(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 Capability(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type Category. /// </summary> public class Category : ConstantClass { /// <summary> /// Constant ACTIVATED for Category /// </summary> public static readonly Category ACTIVATED = new Category("ACTIVATED"); /// <summary> /// Constant AWS_TYPES for Category /// </summary> public static readonly Category AWS_TYPES = new Category("AWS_TYPES"); /// <summary> /// Constant REGISTERED for Category /// </summary> public static readonly Category REGISTERED = new Category("REGISTERED"); /// <summary> /// Constant THIRD_PARTY for Category /// </summary> public static readonly Category THIRD_PARTY = new Category("THIRD_PARTY"); /// <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 Category(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 Category FindValue(string value) { return FindValue<Category>(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 Category(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChangeAction. /// </summary> public class ChangeAction : ConstantClass { /// <summary> /// Constant Add for ChangeAction /// </summary> public static readonly ChangeAction Add = new ChangeAction("Add"); /// <summary> /// Constant Dynamic for ChangeAction /// </summary> public static readonly ChangeAction Dynamic = new ChangeAction("Dynamic"); /// <summary> /// Constant Import for ChangeAction /// </summary> public static readonly ChangeAction Import = new ChangeAction("Import"); /// <summary> /// Constant Modify for ChangeAction /// </summary> public static readonly ChangeAction Modify = new ChangeAction("Modify"); /// <summary> /// Constant Remove for ChangeAction /// </summary> public static readonly ChangeAction Remove = new ChangeAction("Remove"); /// <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 ChangeAction(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 ChangeAction FindValue(string value) { return FindValue<ChangeAction>(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 ChangeAction(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChangeSetHooksStatus. /// </summary> public class ChangeSetHooksStatus : ConstantClass { /// <summary> /// Constant PLANNED for ChangeSetHooksStatus /// </summary> public static readonly ChangeSetHooksStatus PLANNED = new ChangeSetHooksStatus("PLANNED"); /// <summary> /// Constant PLANNING for ChangeSetHooksStatus /// </summary> public static readonly ChangeSetHooksStatus PLANNING = new ChangeSetHooksStatus("PLANNING"); /// <summary> /// Constant UNAVAILABLE for ChangeSetHooksStatus /// </summary> public static readonly ChangeSetHooksStatus UNAVAILABLE = new ChangeSetHooksStatus("UNAVAILABLE"); /// <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 ChangeSetHooksStatus(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 ChangeSetHooksStatus FindValue(string value) { return FindValue<ChangeSetHooksStatus>(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 ChangeSetHooksStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChangeSetStatus. /// </summary> public class ChangeSetStatus : ConstantClass { /// <summary> /// Constant CREATE_COMPLETE for ChangeSetStatus /// </summary> public static readonly ChangeSetStatus CREATE_COMPLETE = new ChangeSetStatus("CREATE_COMPLETE"); /// <summary> /// Constant CREATE_IN_PROGRESS for ChangeSetStatus /// </summary> public static readonly ChangeSetStatus CREATE_IN_PROGRESS = new ChangeSetStatus("CREATE_IN_PROGRESS"); /// <summary> /// Constant CREATE_PENDING for ChangeSetStatus /// </summary> public static readonly ChangeSetStatus CREATE_PENDING = new ChangeSetStatus("CREATE_PENDING"); /// <summary> /// Constant DELETE_COMPLETE for ChangeSetStatus /// </summary> public static readonly ChangeSetStatus DELETE_COMPLETE = new ChangeSetStatus("DELETE_COMPLETE"); /// <summary> /// Constant DELETE_FAILED for ChangeSetStatus /// </summary> public static readonly ChangeSetStatus DELETE_FAILED = new ChangeSetStatus("DELETE_FAILED"); /// <summary> /// Constant DELETE_IN_PROGRESS for ChangeSetStatus /// </summary> public static readonly ChangeSetStatus DELETE_IN_PROGRESS = new ChangeSetStatus("DELETE_IN_PROGRESS"); /// <summary> /// Constant DELETE_PENDING for ChangeSetStatus /// </summary> public static readonly ChangeSetStatus DELETE_PENDING = new ChangeSetStatus("DELETE_PENDING"); /// <summary> /// Constant FAILED for ChangeSetStatus /// </summary> public static readonly ChangeSetStatus FAILED = new ChangeSetStatus("FAILED"); /// <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 ChangeSetStatus(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 ChangeSetStatus FindValue(string value) { return FindValue<ChangeSetStatus>(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 ChangeSetStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChangeSetType. /// </summary> public class ChangeSetType : ConstantClass { /// <summary> /// Constant CREATE for ChangeSetType /// </summary> public static readonly ChangeSetType CREATE = new ChangeSetType("CREATE"); /// <summary> /// Constant IMPORT for ChangeSetType /// </summary> public static readonly ChangeSetType IMPORT = new ChangeSetType("IMPORT"); /// <summary> /// Constant UPDATE for ChangeSetType /// </summary> public static readonly ChangeSetType UPDATE = new ChangeSetType("UPDATE"); /// <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 ChangeSetType(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 ChangeSetType FindValue(string value) { return FindValue<ChangeSetType>(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 ChangeSetType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChangeSource. /// </summary> public class ChangeSource : ConstantClass { /// <summary> /// Constant Automatic for ChangeSource /// </summary> public static readonly ChangeSource Automatic = new ChangeSource("Automatic"); /// <summary> /// Constant DirectModification for ChangeSource /// </summary> public static readonly ChangeSource DirectModification = new ChangeSource("DirectModification"); /// <summary> /// Constant ParameterReference for ChangeSource /// </summary> public static readonly ChangeSource ParameterReference = new ChangeSource("ParameterReference"); /// <summary> /// Constant ResourceAttribute for ChangeSource /// </summary> public static readonly ChangeSource ResourceAttribute = new ChangeSource("ResourceAttribute"); /// <summary> /// Constant ResourceReference for ChangeSource /// </summary> public static readonly ChangeSource ResourceReference = new ChangeSource("ResourceReference"); /// <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 ChangeSource(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 ChangeSource FindValue(string value) { return FindValue<ChangeSource>(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 ChangeSource(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChangeType. /// </summary> public class ChangeType : ConstantClass { /// <summary> /// Constant Resource for ChangeType /// </summary> public static readonly ChangeType Resource = new ChangeType("Resource"); /// <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 ChangeType(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 ChangeType FindValue(string value) { return FindValue<ChangeType>(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 ChangeType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type DeprecatedStatus. /// </summary> public class DeprecatedStatus : ConstantClass { /// <summary> /// Constant DEPRECATED for DeprecatedStatus /// </summary> public static readonly DeprecatedStatus DEPRECATED = new DeprecatedStatus("DEPRECATED"); /// <summary> /// Constant LIVE for DeprecatedStatus /// </summary> public static readonly DeprecatedStatus LIVE = new DeprecatedStatus("LIVE"); /// <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 DeprecatedStatus(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 DeprecatedStatus FindValue(string value) { return FindValue<DeprecatedStatus>(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 DeprecatedStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type DifferenceType. /// </summary> public class DifferenceType : ConstantClass { /// <summary> /// Constant ADD for DifferenceType /// </summary> public static readonly DifferenceType ADD = new DifferenceType("ADD"); /// <summary> /// Constant NOT_EQUAL for DifferenceType /// </summary> public static readonly DifferenceType NOT_EQUAL = new DifferenceType("NOT_EQUAL"); /// <summary> /// Constant REMOVE for DifferenceType /// </summary> public static readonly DifferenceType REMOVE = new DifferenceType("REMOVE"); /// <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 DifferenceType(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 DifferenceType FindValue(string value) { return FindValue<DifferenceType>(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 DifferenceType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EvaluationType. /// </summary> public class EvaluationType : ConstantClass { /// <summary> /// Constant Dynamic for EvaluationType /// </summary> public static readonly EvaluationType Dynamic = new EvaluationType("Dynamic"); /// <summary> /// Constant Static for EvaluationType /// </summary> public static readonly EvaluationType Static = new EvaluationType("Static"); /// <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 EvaluationType(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 EvaluationType FindValue(string value) { return FindValue<EvaluationType>(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 EvaluationType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ExecutionStatus. /// </summary> public class ExecutionStatus : ConstantClass { /// <summary> /// Constant AVAILABLE for ExecutionStatus /// </summary> public static readonly ExecutionStatus AVAILABLE = new ExecutionStatus("AVAILABLE"); /// <summary> /// Constant EXECUTE_COMPLETE for ExecutionStatus /// </summary> public static readonly ExecutionStatus EXECUTE_COMPLETE = new ExecutionStatus("EXECUTE_COMPLETE"); /// <summary> /// Constant EXECUTE_FAILED for ExecutionStatus /// </summary> public static readonly ExecutionStatus EXECUTE_FAILED = new ExecutionStatus("EXECUTE_FAILED"); /// <summary> /// Constant EXECUTE_IN_PROGRESS for ExecutionStatus /// </summary> public static readonly ExecutionStatus EXECUTE_IN_PROGRESS = new ExecutionStatus("EXECUTE_IN_PROGRESS"); /// <summary> /// Constant OBSOLETE for ExecutionStatus /// </summary> public static readonly ExecutionStatus OBSOLETE = new ExecutionStatus("OBSOLETE"); /// <summary> /// Constant UNAVAILABLE for ExecutionStatus /// </summary> public static readonly ExecutionStatus UNAVAILABLE = new ExecutionStatus("UNAVAILABLE"); /// <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 ExecutionStatus(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 ExecutionStatus FindValue(string value) { return FindValue<ExecutionStatus>(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 ExecutionStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type HandlerErrorCode. /// </summary> public class HandlerErrorCode : ConstantClass { /// <summary> /// Constant AccessDenied for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode AccessDenied = new HandlerErrorCode("AccessDenied"); /// <summary> /// Constant AlreadyExists for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode AlreadyExists = new HandlerErrorCode("AlreadyExists"); /// <summary> /// Constant GeneralServiceException for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode GeneralServiceException = new HandlerErrorCode("GeneralServiceException"); /// <summary> /// Constant HandlerInternalFailure for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode HandlerInternalFailure = new HandlerErrorCode("HandlerInternalFailure"); /// <summary> /// Constant InternalFailure for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode InternalFailure = new HandlerErrorCode("InternalFailure"); /// <summary> /// Constant InvalidCredentials for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode InvalidCredentials = new HandlerErrorCode("InvalidCredentials"); /// <summary> /// Constant InvalidRequest for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode InvalidRequest = new HandlerErrorCode("InvalidRequest"); /// <summary> /// Constant InvalidTypeConfiguration for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode InvalidTypeConfiguration = new HandlerErrorCode("InvalidTypeConfiguration"); /// <summary> /// Constant NetworkFailure for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode NetworkFailure = new HandlerErrorCode("NetworkFailure"); /// <summary> /// Constant NonCompliant for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode NonCompliant = new HandlerErrorCode("NonCompliant"); /// <summary> /// Constant NotFound for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode NotFound = new HandlerErrorCode("NotFound"); /// <summary> /// Constant NotStabilized for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode NotStabilized = new HandlerErrorCode("NotStabilized"); /// <summary> /// Constant NotUpdatable for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode NotUpdatable = new HandlerErrorCode("NotUpdatable"); /// <summary> /// Constant ResourceConflict for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode ResourceConflict = new HandlerErrorCode("ResourceConflict"); /// <summary> /// Constant ServiceInternalError for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode ServiceInternalError = new HandlerErrorCode("ServiceInternalError"); /// <summary> /// Constant ServiceLimitExceeded for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode ServiceLimitExceeded = new HandlerErrorCode("ServiceLimitExceeded"); /// <summary> /// Constant Throttling for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode Throttling = new HandlerErrorCode("Throttling"); /// <summary> /// Constant Unknown for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode Unknown = new HandlerErrorCode("Unknown"); /// <summary> /// Constant UnsupportedTarget for HandlerErrorCode /// </summary> public static readonly HandlerErrorCode UnsupportedTarget = new HandlerErrorCode("UnsupportedTarget"); /// <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 HandlerErrorCode(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 HandlerErrorCode FindValue(string value) { return FindValue<HandlerErrorCode>(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 HandlerErrorCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type HookFailureMode. /// </summary> public class HookFailureMode : ConstantClass { /// <summary> /// Constant FAIL for HookFailureMode /// </summary> public static readonly HookFailureMode FAIL = new HookFailureMode("FAIL"); /// <summary> /// Constant WARN for HookFailureMode /// </summary> public static readonly HookFailureMode WARN = new HookFailureMode("WARN"); /// <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 HookFailureMode(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 HookFailureMode FindValue(string value) { return FindValue<HookFailureMode>(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 HookFailureMode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type HookInvocationPoint. /// </summary> public class HookInvocationPoint : ConstantClass { /// <summary> /// Constant PRE_PROVISION for HookInvocationPoint /// </summary> public static readonly HookInvocationPoint PRE_PROVISION = new HookInvocationPoint("PRE_PROVISION"); /// <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 HookInvocationPoint(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 HookInvocationPoint FindValue(string value) { return FindValue<HookInvocationPoint>(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 HookInvocationPoint(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type HookStatus. /// </summary> public class HookStatus : ConstantClass { /// <summary> /// Constant HOOK_COMPLETE_FAILED for HookStatus /// </summary> public static readonly HookStatus HOOK_COMPLETE_FAILED = new HookStatus("HOOK_COMPLETE_FAILED"); /// <summary> /// Constant HOOK_COMPLETE_SUCCEEDED for HookStatus /// </summary> public static readonly HookStatus HOOK_COMPLETE_SUCCEEDED = new HookStatus("HOOK_COMPLETE_SUCCEEDED"); /// <summary> /// Constant HOOK_FAILED for HookStatus /// </summary> public static readonly HookStatus HOOK_FAILED = new HookStatus("HOOK_FAILED"); /// <summary> /// Constant HOOK_IN_PROGRESS for HookStatus /// </summary> public static readonly HookStatus HOOK_IN_PROGRESS = new HookStatus("HOOK_IN_PROGRESS"); /// <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 HookStatus(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 HookStatus FindValue(string value) { return FindValue<HookStatus>(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 HookStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type HookTargetType. /// </summary> public class HookTargetType : ConstantClass { /// <summary> /// Constant RESOURCE for HookTargetType /// </summary> public static readonly HookTargetType RESOURCE = new HookTargetType("RESOURCE"); /// <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 HookTargetType(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 HookTargetType FindValue(string value) { return FindValue<HookTargetType>(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 HookTargetType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type IdentityProvider. /// </summary> public class IdentityProvider : ConstantClass { /// <summary> /// Constant AWS_Marketplace for IdentityProvider /// </summary> public static readonly IdentityProvider AWS_Marketplace = new IdentityProvider("AWS_Marketplace"); /// <summary> /// Constant Bitbucket for IdentityProvider /// </summary> public static readonly IdentityProvider Bitbucket = new IdentityProvider("Bitbucket"); /// <summary> /// Constant GitHub for IdentityProvider /// </summary> public static readonly IdentityProvider GitHub = new IdentityProvider("GitHub"); /// <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 IdentityProvider(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 IdentityProvider FindValue(string value) { return FindValue<IdentityProvider>(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 IdentityProvider(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OnFailure. /// </summary> public class OnFailure : ConstantClass { /// <summary> /// Constant DELETE for OnFailure /// </summary> public static readonly OnFailure DELETE = new OnFailure("DELETE"); /// <summary> /// Constant DO_NOTHING for OnFailure /// </summary> public static readonly OnFailure DO_NOTHING = new OnFailure("DO_NOTHING"); /// <summary> /// Constant ROLLBACK for OnFailure /// </summary> public static readonly OnFailure ROLLBACK = new OnFailure("ROLLBACK"); /// <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 OnFailure(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 OnFailure FindValue(string value) { return FindValue<OnFailure>(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 OnFailure(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OnStackFailure. /// </summary> public class OnStackFailure : ConstantClass { /// <summary> /// Constant DELETE for OnStackFailure /// </summary> public static readonly OnStackFailure DELETE = new OnStackFailure("DELETE"); /// <summary> /// Constant DO_NOTHING for OnStackFailure /// </summary> public static readonly OnStackFailure DO_NOTHING = new OnStackFailure("DO_NOTHING"); /// <summary> /// Constant ROLLBACK for OnStackFailure /// </summary> public static readonly OnStackFailure ROLLBACK = new OnStackFailure("ROLLBACK"); /// <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 OnStackFailure(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 OnStackFailure FindValue(string value) { return FindValue<OnStackFailure>(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 OnStackFailure(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OperationResultFilterName. /// </summary> public class OperationResultFilterName : ConstantClass { /// <summary> /// Constant OPERATION_RESULT_STATUS for OperationResultFilterName /// </summary> public static readonly OperationResultFilterName OPERATION_RESULT_STATUS = new OperationResultFilterName("OPERATION_RESULT_STATUS"); /// <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 OperationResultFilterName(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 OperationResultFilterName FindValue(string value) { return FindValue<OperationResultFilterName>(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 OperationResultFilterName(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OperationStatus. /// </summary> public class OperationStatus : ConstantClass { /// <summary> /// Constant FAILED for OperationStatus /// </summary> public static readonly OperationStatus FAILED = new OperationStatus("FAILED"); /// <summary> /// Constant IN_PROGRESS for OperationStatus /// </summary> public static readonly OperationStatus IN_PROGRESS = new OperationStatus("IN_PROGRESS"); /// <summary> /// Constant PENDING for OperationStatus /// </summary> public static readonly OperationStatus PENDING = new OperationStatus("PENDING"); /// <summary> /// Constant SUCCESS for OperationStatus /// </summary> public static readonly OperationStatus SUCCESS = new OperationStatus("SUCCESS"); /// <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 OperationStatus(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 OperationStatus FindValue(string value) { return FindValue<OperationStatus>(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 OperationStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OrganizationStatus. /// </summary> public class OrganizationStatus : ConstantClass { /// <summary> /// Constant DISABLED for OrganizationStatus /// </summary> public static readonly OrganizationStatus DISABLED = new OrganizationStatus("DISABLED"); /// <summary> /// Constant DISABLED_PERMANENTLY for OrganizationStatus /// </summary> public static readonly OrganizationStatus DISABLED_PERMANENTLY = new OrganizationStatus("DISABLED_PERMANENTLY"); /// <summary> /// Constant ENABLED for OrganizationStatus /// </summary> public static readonly OrganizationStatus ENABLED = new OrganizationStatus("ENABLED"); /// <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 OrganizationStatus(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 OrganizationStatus FindValue(string value) { return FindValue<OrganizationStatus>(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 OrganizationStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PermissionModels. /// </summary> public class PermissionModels : ConstantClass { /// <summary> /// Constant SELF_MANAGED for PermissionModels /// </summary> public static readonly PermissionModels SELF_MANAGED = new PermissionModels("SELF_MANAGED"); /// <summary> /// Constant SERVICE_MANAGED for PermissionModels /// </summary> public static readonly PermissionModels SERVICE_MANAGED = new PermissionModels("SERVICE_MANAGED"); /// <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 PermissionModels(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 PermissionModels FindValue(string value) { return FindValue<PermissionModels>(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 PermissionModels(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ProvisioningType. /// </summary> public class ProvisioningType : ConstantClass { /// <summary> /// Constant FULLY_MUTABLE for ProvisioningType /// </summary> public static readonly ProvisioningType FULLY_MUTABLE = new ProvisioningType("FULLY_MUTABLE"); /// <summary> /// Constant IMMUTABLE for ProvisioningType /// </summary> public static readonly ProvisioningType IMMUTABLE = new ProvisioningType("IMMUTABLE"); /// <summary> /// Constant NON_PROVISIONABLE for ProvisioningType /// </summary> public static readonly ProvisioningType NON_PROVISIONABLE = new ProvisioningType("NON_PROVISIONABLE"); /// <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 ProvisioningType(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 ProvisioningType FindValue(string value) { return FindValue<ProvisioningType>(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 ProvisioningType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PublisherStatus. /// </summary> public class PublisherStatus : ConstantClass { /// <summary> /// Constant UNVERIFIED for PublisherStatus /// </summary> public static readonly PublisherStatus UNVERIFIED = new PublisherStatus("UNVERIFIED"); /// <summary> /// Constant VERIFIED for PublisherStatus /// </summary> public static readonly PublisherStatus VERIFIED = new PublisherStatus("VERIFIED"); /// <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 PublisherStatus(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 PublisherStatus FindValue(string value) { return FindValue<PublisherStatus>(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 PublisherStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RegionConcurrencyType. /// </summary> public class RegionConcurrencyType : ConstantClass { /// <summary> /// Constant PARALLEL for RegionConcurrencyType /// </summary> public static readonly RegionConcurrencyType PARALLEL = new RegionConcurrencyType("PARALLEL"); /// <summary> /// Constant SEQUENTIAL for RegionConcurrencyType /// </summary> public static readonly RegionConcurrencyType SEQUENTIAL = new RegionConcurrencyType("SEQUENTIAL"); /// <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 RegionConcurrencyType(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 RegionConcurrencyType FindValue(string value) { return FindValue<RegionConcurrencyType>(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 RegionConcurrencyType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RegistrationStatus. /// </summary> public class RegistrationStatus : ConstantClass { /// <summary> /// Constant COMPLETE for RegistrationStatus /// </summary> public static readonly RegistrationStatus COMPLETE = new RegistrationStatus("COMPLETE"); /// <summary> /// Constant FAILED for RegistrationStatus /// </summary> public static readonly RegistrationStatus FAILED = new RegistrationStatus("FAILED"); /// <summary> /// Constant IN_PROGRESS for RegistrationStatus /// </summary> public static readonly RegistrationStatus IN_PROGRESS = new RegistrationStatus("IN_PROGRESS"); /// <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 RegistrationStatus(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 RegistrationStatus FindValue(string value) { return FindValue<RegistrationStatus>(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 RegistrationStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RegistryType. /// </summary> public class RegistryType : ConstantClass { /// <summary> /// Constant HOOK for RegistryType /// </summary> public static readonly RegistryType HOOK = new RegistryType("HOOK"); /// <summary> /// Constant MODULE for RegistryType /// </summary> public static readonly RegistryType MODULE = new RegistryType("MODULE"); /// <summary> /// Constant RESOURCE for RegistryType /// </summary> public static readonly RegistryType RESOURCE = new RegistryType("RESOURCE"); /// <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 RegistryType(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 RegistryType FindValue(string value) { return FindValue<RegistryType>(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 RegistryType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type Replacement. /// </summary> public class Replacement : ConstantClass { /// <summary> /// Constant Conditional for Replacement /// </summary> public static readonly Replacement Conditional = new Replacement("Conditional"); /// <summary> /// Constant False for Replacement /// </summary> public static readonly Replacement False = new Replacement("False"); /// <summary> /// Constant True for Replacement /// </summary> public static readonly Replacement True = new Replacement("True"); /// <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 Replacement(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 Replacement FindValue(string value) { return FindValue<Replacement>(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 Replacement(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RequiresRecreation. /// </summary> public class RequiresRecreation : ConstantClass { /// <summary> /// Constant Always for RequiresRecreation /// </summary> public static readonly RequiresRecreation Always = new RequiresRecreation("Always"); /// <summary> /// Constant Conditionally for RequiresRecreation /// </summary> public static readonly RequiresRecreation Conditionally = new RequiresRecreation("Conditionally"); /// <summary> /// Constant Never for RequiresRecreation /// </summary> public static readonly RequiresRecreation Never = new RequiresRecreation("Never"); /// <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 RequiresRecreation(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 RequiresRecreation FindValue(string value) { return FindValue<RequiresRecreation>(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 RequiresRecreation(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ResourceAttribute. /// </summary> public class ResourceAttribute : ConstantClass { /// <summary> /// Constant CreationPolicy for ResourceAttribute /// </summary> public static readonly ResourceAttribute CreationPolicy = new ResourceAttribute("CreationPolicy"); /// <summary> /// Constant DeletionPolicy for ResourceAttribute /// </summary> public static readonly ResourceAttribute DeletionPolicy = new ResourceAttribute("DeletionPolicy"); /// <summary> /// Constant Metadata for ResourceAttribute /// </summary> public static readonly ResourceAttribute Metadata = new ResourceAttribute("Metadata"); /// <summary> /// Constant Properties for ResourceAttribute /// </summary> public static readonly ResourceAttribute Properties = new ResourceAttribute("Properties"); /// <summary> /// Constant Tags for ResourceAttribute /// </summary> public static readonly ResourceAttribute Tags = new ResourceAttribute("Tags"); /// <summary> /// Constant UpdatePolicy for ResourceAttribute /// </summary> public static readonly ResourceAttribute UpdatePolicy = new ResourceAttribute("UpdatePolicy"); /// <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 ResourceAttribute(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 ResourceAttribute FindValue(string value) { return FindValue<ResourceAttribute>(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 ResourceAttribute(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ResourceSignalStatus. /// </summary> public class ResourceSignalStatus : ConstantClass { /// <summary> /// Constant FAILURE for ResourceSignalStatus /// </summary> public static readonly ResourceSignalStatus FAILURE = new ResourceSignalStatus("FAILURE"); /// <summary> /// Constant SUCCESS for ResourceSignalStatus /// </summary> public static readonly ResourceSignalStatus SUCCESS = new ResourceSignalStatus("SUCCESS"); /// <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 ResourceSignalStatus(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 ResourceSignalStatus FindValue(string value) { return FindValue<ResourceSignalStatus>(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 ResourceSignalStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ResourceStatus. /// </summary> public class ResourceStatus : ConstantClass { /// <summary> /// Constant CREATE_COMPLETE for ResourceStatus /// </summary> public static readonly ResourceStatus CREATE_COMPLETE = new ResourceStatus("CREATE_COMPLETE"); /// <summary> /// Constant CREATE_FAILED for ResourceStatus /// </summary> public static readonly ResourceStatus CREATE_FAILED = new ResourceStatus("CREATE_FAILED"); /// <summary> /// Constant CREATE_IN_PROGRESS for ResourceStatus /// </summary> public static readonly ResourceStatus CREATE_IN_PROGRESS = new ResourceStatus("CREATE_IN_PROGRESS"); /// <summary> /// Constant DELETE_COMPLETE for ResourceStatus /// </summary> public static readonly ResourceStatus DELETE_COMPLETE = new ResourceStatus("DELETE_COMPLETE"); /// <summary> /// Constant DELETE_FAILED for ResourceStatus /// </summary> public static readonly ResourceStatus DELETE_FAILED = new ResourceStatus("DELETE_FAILED"); /// <summary> /// Constant DELETE_IN_PROGRESS for ResourceStatus /// </summary> public static readonly ResourceStatus DELETE_IN_PROGRESS = new ResourceStatus("DELETE_IN_PROGRESS"); /// <summary> /// Constant DELETE_SKIPPED for ResourceStatus /// </summary> public static readonly ResourceStatus DELETE_SKIPPED = new ResourceStatus("DELETE_SKIPPED"); /// <summary> /// Constant IMPORT_COMPLETE for ResourceStatus /// </summary> public static readonly ResourceStatus IMPORT_COMPLETE = new ResourceStatus("IMPORT_COMPLETE"); /// <summary> /// Constant IMPORT_FAILED for ResourceStatus /// </summary> public static readonly ResourceStatus IMPORT_FAILED = new ResourceStatus("IMPORT_FAILED"); /// <summary> /// Constant IMPORT_IN_PROGRESS for ResourceStatus /// </summary> public static readonly ResourceStatus IMPORT_IN_PROGRESS = new ResourceStatus("IMPORT_IN_PROGRESS"); /// <summary> /// Constant IMPORT_ROLLBACK_COMPLETE for ResourceStatus /// </summary> public static readonly ResourceStatus IMPORT_ROLLBACK_COMPLETE = new ResourceStatus("IMPORT_ROLLBACK_COMPLETE"); /// <summary> /// Constant IMPORT_ROLLBACK_FAILED for ResourceStatus /// </summary> public static readonly ResourceStatus IMPORT_ROLLBACK_FAILED = new ResourceStatus("IMPORT_ROLLBACK_FAILED"); /// <summary> /// Constant IMPORT_ROLLBACK_IN_PROGRESS for ResourceStatus /// </summary> public static readonly ResourceStatus IMPORT_ROLLBACK_IN_PROGRESS = new ResourceStatus("IMPORT_ROLLBACK_IN_PROGRESS"); /// <summary> /// Constant ROLLBACK_COMPLETE for ResourceStatus /// </summary> public static readonly ResourceStatus ROLLBACK_COMPLETE = new ResourceStatus("ROLLBACK_COMPLETE"); /// <summary> /// Constant ROLLBACK_FAILED for ResourceStatus /// </summary> public static readonly ResourceStatus ROLLBACK_FAILED = new ResourceStatus("ROLLBACK_FAILED"); /// <summary> /// Constant ROLLBACK_IN_PROGRESS for ResourceStatus /// </summary> public static readonly ResourceStatus ROLLBACK_IN_PROGRESS = new ResourceStatus("ROLLBACK_IN_PROGRESS"); /// <summary> /// Constant UPDATE_COMPLETE for ResourceStatus /// </summary> public static readonly ResourceStatus UPDATE_COMPLETE = new ResourceStatus("UPDATE_COMPLETE"); /// <summary> /// Constant UPDATE_FAILED for ResourceStatus /// </summary> public static readonly ResourceStatus UPDATE_FAILED = new ResourceStatus("UPDATE_FAILED"); /// <summary> /// Constant UPDATE_IN_PROGRESS for ResourceStatus /// </summary> public static readonly ResourceStatus UPDATE_IN_PROGRESS = new ResourceStatus("UPDATE_IN_PROGRESS"); /// <summary> /// Constant UPDATE_ROLLBACK_COMPLETE for ResourceStatus /// </summary> public static readonly ResourceStatus UPDATE_ROLLBACK_COMPLETE = new ResourceStatus("UPDATE_ROLLBACK_COMPLETE"); /// <summary> /// Constant UPDATE_ROLLBACK_FAILED for ResourceStatus /// </summary> public static readonly ResourceStatus UPDATE_ROLLBACK_FAILED = new ResourceStatus("UPDATE_ROLLBACK_FAILED"); /// <summary> /// Constant UPDATE_ROLLBACK_IN_PROGRESS for ResourceStatus /// </summary> public static readonly ResourceStatus UPDATE_ROLLBACK_IN_PROGRESS = new ResourceStatus("UPDATE_ROLLBACK_IN_PROGRESS"); /// <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 ResourceStatus(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 ResourceStatus FindValue(string value) { return FindValue<ResourceStatus>(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 ResourceStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackDriftDetectionStatus. /// </summary> public class StackDriftDetectionStatus : ConstantClass { /// <summary> /// Constant DETECTION_COMPLETE for StackDriftDetectionStatus /// </summary> public static readonly StackDriftDetectionStatus DETECTION_COMPLETE = new StackDriftDetectionStatus("DETECTION_COMPLETE"); /// <summary> /// Constant DETECTION_FAILED for StackDriftDetectionStatus /// </summary> public static readonly StackDriftDetectionStatus DETECTION_FAILED = new StackDriftDetectionStatus("DETECTION_FAILED"); /// <summary> /// Constant DETECTION_IN_PROGRESS for StackDriftDetectionStatus /// </summary> public static readonly StackDriftDetectionStatus DETECTION_IN_PROGRESS = new StackDriftDetectionStatus("DETECTION_IN_PROGRESS"); /// <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 StackDriftDetectionStatus(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 StackDriftDetectionStatus FindValue(string value) { return FindValue<StackDriftDetectionStatus>(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 StackDriftDetectionStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackDriftStatus. /// </summary> public class StackDriftStatus : ConstantClass { /// <summary> /// Constant DRIFTED for StackDriftStatus /// </summary> public static readonly StackDriftStatus DRIFTED = new StackDriftStatus("DRIFTED"); /// <summary> /// Constant IN_SYNC for StackDriftStatus /// </summary> public static readonly StackDriftStatus IN_SYNC = new StackDriftStatus("IN_SYNC"); /// <summary> /// Constant NOT_CHECKED for StackDriftStatus /// </summary> public static readonly StackDriftStatus NOT_CHECKED = new StackDriftStatus("NOT_CHECKED"); /// <summary> /// Constant UNKNOWN for StackDriftStatus /// </summary> public static readonly StackDriftStatus UNKNOWN = new StackDriftStatus("UNKNOWN"); /// <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 StackDriftStatus(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 StackDriftStatus FindValue(string value) { return FindValue<StackDriftStatus>(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 StackDriftStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackInstanceDetailedStatus. /// </summary> public class StackInstanceDetailedStatus : ConstantClass { /// <summary> /// Constant CANCELLED for StackInstanceDetailedStatus /// </summary> public static readonly StackInstanceDetailedStatus CANCELLED = new StackInstanceDetailedStatus("CANCELLED"); /// <summary> /// Constant FAILED for StackInstanceDetailedStatus /// </summary> public static readonly StackInstanceDetailedStatus FAILED = new StackInstanceDetailedStatus("FAILED"); /// <summary> /// Constant INOPERABLE for StackInstanceDetailedStatus /// </summary> public static readonly StackInstanceDetailedStatus INOPERABLE = new StackInstanceDetailedStatus("INOPERABLE"); /// <summary> /// Constant PENDING for StackInstanceDetailedStatus /// </summary> public static readonly StackInstanceDetailedStatus PENDING = new StackInstanceDetailedStatus("PENDING"); /// <summary> /// Constant RUNNING for StackInstanceDetailedStatus /// </summary> public static readonly StackInstanceDetailedStatus RUNNING = new StackInstanceDetailedStatus("RUNNING"); /// <summary> /// Constant SKIPPED_SUSPENDED_ACCOUNT for StackInstanceDetailedStatus /// </summary> public static readonly StackInstanceDetailedStatus SKIPPED_SUSPENDED_ACCOUNT = new StackInstanceDetailedStatus("SKIPPED_SUSPENDED_ACCOUNT"); /// <summary> /// Constant SUCCEEDED for StackInstanceDetailedStatus /// </summary> public static readonly StackInstanceDetailedStatus SUCCEEDED = new StackInstanceDetailedStatus("SUCCEEDED"); /// <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 StackInstanceDetailedStatus(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 StackInstanceDetailedStatus FindValue(string value) { return FindValue<StackInstanceDetailedStatus>(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 StackInstanceDetailedStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackInstanceFilterName. /// </summary> public class StackInstanceFilterName : ConstantClass { /// <summary> /// Constant DETAILED_STATUS for StackInstanceFilterName /// </summary> public static readonly StackInstanceFilterName DETAILED_STATUS = new StackInstanceFilterName("DETAILED_STATUS"); /// <summary> /// Constant LAST_OPERATION_ID for StackInstanceFilterName /// </summary> public static readonly StackInstanceFilterName LAST_OPERATION_ID = new StackInstanceFilterName("LAST_OPERATION_ID"); /// <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 StackInstanceFilterName(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 StackInstanceFilterName FindValue(string value) { return FindValue<StackInstanceFilterName>(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 StackInstanceFilterName(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackInstanceStatus. /// </summary> public class StackInstanceStatus : ConstantClass { /// <summary> /// Constant CURRENT for StackInstanceStatus /// </summary> public static readonly StackInstanceStatus CURRENT = new StackInstanceStatus("CURRENT"); /// <summary> /// Constant INOPERABLE for StackInstanceStatus /// </summary> public static readonly StackInstanceStatus INOPERABLE = new StackInstanceStatus("INOPERABLE"); /// <summary> /// Constant OUTDATED for StackInstanceStatus /// </summary> public static readonly StackInstanceStatus OUTDATED = new StackInstanceStatus("OUTDATED"); /// <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 StackInstanceStatus(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 StackInstanceStatus FindValue(string value) { return FindValue<StackInstanceStatus>(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 StackInstanceStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackResourceDriftStatus. /// </summary> public class StackResourceDriftStatus : ConstantClass { /// <summary> /// Constant DELETED for StackResourceDriftStatus /// </summary> public static readonly StackResourceDriftStatus DELETED = new StackResourceDriftStatus("DELETED"); /// <summary> /// Constant IN_SYNC for StackResourceDriftStatus /// </summary> public static readonly StackResourceDriftStatus IN_SYNC = new StackResourceDriftStatus("IN_SYNC"); /// <summary> /// Constant MODIFIED for StackResourceDriftStatus /// </summary> public static readonly StackResourceDriftStatus MODIFIED = new StackResourceDriftStatus("MODIFIED"); /// <summary> /// Constant NOT_CHECKED for StackResourceDriftStatus /// </summary> public static readonly StackResourceDriftStatus NOT_CHECKED = new StackResourceDriftStatus("NOT_CHECKED"); /// <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 StackResourceDriftStatus(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 StackResourceDriftStatus FindValue(string value) { return FindValue<StackResourceDriftStatus>(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 StackResourceDriftStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackSetDriftDetectionStatus. /// </summary> public class StackSetDriftDetectionStatus : ConstantClass { /// <summary> /// Constant COMPLETED for StackSetDriftDetectionStatus /// </summary> public static readonly StackSetDriftDetectionStatus COMPLETED = new StackSetDriftDetectionStatus("COMPLETED"); /// <summary> /// Constant FAILED for StackSetDriftDetectionStatus /// </summary> public static readonly StackSetDriftDetectionStatus FAILED = new StackSetDriftDetectionStatus("FAILED"); /// <summary> /// Constant IN_PROGRESS for StackSetDriftDetectionStatus /// </summary> public static readonly StackSetDriftDetectionStatus IN_PROGRESS = new StackSetDriftDetectionStatus("IN_PROGRESS"); /// <summary> /// Constant PARTIAL_SUCCESS for StackSetDriftDetectionStatus /// </summary> public static readonly StackSetDriftDetectionStatus PARTIAL_SUCCESS = new StackSetDriftDetectionStatus("PARTIAL_SUCCESS"); /// <summary> /// Constant STOPPED for StackSetDriftDetectionStatus /// </summary> public static readonly StackSetDriftDetectionStatus STOPPED = new StackSetDriftDetectionStatus("STOPPED"); /// <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 StackSetDriftDetectionStatus(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 StackSetDriftDetectionStatus FindValue(string value) { return FindValue<StackSetDriftDetectionStatus>(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 StackSetDriftDetectionStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackSetDriftStatus. /// </summary> public class StackSetDriftStatus : ConstantClass { /// <summary> /// Constant DRIFTED for StackSetDriftStatus /// </summary> public static readonly StackSetDriftStatus DRIFTED = new StackSetDriftStatus("DRIFTED"); /// <summary> /// Constant IN_SYNC for StackSetDriftStatus /// </summary> public static readonly StackSetDriftStatus IN_SYNC = new StackSetDriftStatus("IN_SYNC"); /// <summary> /// Constant NOT_CHECKED for StackSetDriftStatus /// </summary> public static readonly StackSetDriftStatus NOT_CHECKED = new StackSetDriftStatus("NOT_CHECKED"); /// <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 StackSetDriftStatus(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 StackSetDriftStatus FindValue(string value) { return FindValue<StackSetDriftStatus>(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 StackSetDriftStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackSetOperationAction. /// </summary> public class StackSetOperationAction : ConstantClass { /// <summary> /// Constant CREATE for StackSetOperationAction /// </summary> public static readonly StackSetOperationAction CREATE = new StackSetOperationAction("CREATE"); /// <summary> /// Constant DELETE for StackSetOperationAction /// </summary> public static readonly StackSetOperationAction DELETE = new StackSetOperationAction("DELETE"); /// <summary> /// Constant DETECT_DRIFT for StackSetOperationAction /// </summary> public static readonly StackSetOperationAction DETECT_DRIFT = new StackSetOperationAction("DETECT_DRIFT"); /// <summary> /// Constant UPDATE for StackSetOperationAction /// </summary> public static readonly StackSetOperationAction UPDATE = new StackSetOperationAction("UPDATE"); /// <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 StackSetOperationAction(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 StackSetOperationAction FindValue(string value) { return FindValue<StackSetOperationAction>(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 StackSetOperationAction(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackSetOperationResultStatus. /// </summary> public class StackSetOperationResultStatus : ConstantClass { /// <summary> /// Constant CANCELLED for StackSetOperationResultStatus /// </summary> public static readonly StackSetOperationResultStatus CANCELLED = new StackSetOperationResultStatus("CANCELLED"); /// <summary> /// Constant FAILED for StackSetOperationResultStatus /// </summary> public static readonly StackSetOperationResultStatus FAILED = new StackSetOperationResultStatus("FAILED"); /// <summary> /// Constant PENDING for StackSetOperationResultStatus /// </summary> public static readonly StackSetOperationResultStatus PENDING = new StackSetOperationResultStatus("PENDING"); /// <summary> /// Constant RUNNING for StackSetOperationResultStatus /// </summary> public static readonly StackSetOperationResultStatus RUNNING = new StackSetOperationResultStatus("RUNNING"); /// <summary> /// Constant SUCCEEDED for StackSetOperationResultStatus /// </summary> public static readonly StackSetOperationResultStatus SUCCEEDED = new StackSetOperationResultStatus("SUCCEEDED"); /// <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 StackSetOperationResultStatus(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 StackSetOperationResultStatus FindValue(string value) { return FindValue<StackSetOperationResultStatus>(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 StackSetOperationResultStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackSetOperationStatus. /// </summary> public class StackSetOperationStatus : ConstantClass { /// <summary> /// Constant FAILED for StackSetOperationStatus /// </summary> public static readonly StackSetOperationStatus FAILED = new StackSetOperationStatus("FAILED"); /// <summary> /// Constant QUEUED for StackSetOperationStatus /// </summary> public static readonly StackSetOperationStatus QUEUED = new StackSetOperationStatus("QUEUED"); /// <summary> /// Constant RUNNING for StackSetOperationStatus /// </summary> public static readonly StackSetOperationStatus RUNNING = new StackSetOperationStatus("RUNNING"); /// <summary> /// Constant STOPPED for StackSetOperationStatus /// </summary> public static readonly StackSetOperationStatus STOPPED = new StackSetOperationStatus("STOPPED"); /// <summary> /// Constant STOPPING for StackSetOperationStatus /// </summary> public static readonly StackSetOperationStatus STOPPING = new StackSetOperationStatus("STOPPING"); /// <summary> /// Constant SUCCEEDED for StackSetOperationStatus /// </summary> public static readonly StackSetOperationStatus SUCCEEDED = new StackSetOperationStatus("SUCCEEDED"); /// <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 StackSetOperationStatus(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 StackSetOperationStatus FindValue(string value) { return FindValue<StackSetOperationStatus>(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 StackSetOperationStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackSetStatus. /// </summary> public class StackSetStatus : ConstantClass { /// <summary> /// Constant ACTIVE for StackSetStatus /// </summary> public static readonly StackSetStatus ACTIVE = new StackSetStatus("ACTIVE"); /// <summary> /// Constant DELETED for StackSetStatus /// </summary> public static readonly StackSetStatus DELETED = new StackSetStatus("DELETED"); /// <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 StackSetStatus(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 StackSetStatus FindValue(string value) { return FindValue<StackSetStatus>(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 StackSetStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type StackStatus. /// </summary> public class StackStatus : ConstantClass { /// <summary> /// Constant CREATE_COMPLETE for StackStatus /// </summary> public static readonly StackStatus CREATE_COMPLETE = new StackStatus("CREATE_COMPLETE"); /// <summary> /// Constant CREATE_FAILED for StackStatus /// </summary> public static readonly StackStatus CREATE_FAILED = new StackStatus("CREATE_FAILED"); /// <summary> /// Constant CREATE_IN_PROGRESS for StackStatus /// </summary> public static readonly StackStatus CREATE_IN_PROGRESS = new StackStatus("CREATE_IN_PROGRESS"); /// <summary> /// Constant DELETE_COMPLETE for StackStatus /// </summary> public static readonly StackStatus DELETE_COMPLETE = new StackStatus("DELETE_COMPLETE"); /// <summary> /// Constant DELETE_FAILED for StackStatus /// </summary> public static readonly StackStatus DELETE_FAILED = new StackStatus("DELETE_FAILED"); /// <summary> /// Constant DELETE_IN_PROGRESS for StackStatus /// </summary> public static readonly StackStatus DELETE_IN_PROGRESS = new StackStatus("DELETE_IN_PROGRESS"); /// <summary> /// Constant IMPORT_COMPLETE for StackStatus /// </summary> public static readonly StackStatus IMPORT_COMPLETE = new StackStatus("IMPORT_COMPLETE"); /// <summary> /// Constant IMPORT_IN_PROGRESS for StackStatus /// </summary> public static readonly StackStatus IMPORT_IN_PROGRESS = new StackStatus("IMPORT_IN_PROGRESS"); /// <summary> /// Constant IMPORT_ROLLBACK_COMPLETE for StackStatus /// </summary> public static readonly StackStatus IMPORT_ROLLBACK_COMPLETE = new StackStatus("IMPORT_ROLLBACK_COMPLETE"); /// <summary> /// Constant IMPORT_ROLLBACK_FAILED for StackStatus /// </summary> public static readonly StackStatus IMPORT_ROLLBACK_FAILED = new StackStatus("IMPORT_ROLLBACK_FAILED"); /// <summary> /// Constant IMPORT_ROLLBACK_IN_PROGRESS for StackStatus /// </summary> public static readonly StackStatus IMPORT_ROLLBACK_IN_PROGRESS = new StackStatus("IMPORT_ROLLBACK_IN_PROGRESS"); /// <summary> /// Constant REVIEW_IN_PROGRESS for StackStatus /// </summary> public static readonly StackStatus REVIEW_IN_PROGRESS = new StackStatus("REVIEW_IN_PROGRESS"); /// <summary> /// Constant ROLLBACK_COMPLETE for StackStatus /// </summary> public static readonly StackStatus ROLLBACK_COMPLETE = new StackStatus("ROLLBACK_COMPLETE"); /// <summary> /// Constant ROLLBACK_FAILED for StackStatus /// </summary> public static readonly StackStatus ROLLBACK_FAILED = new StackStatus("ROLLBACK_FAILED"); /// <summary> /// Constant ROLLBACK_IN_PROGRESS for StackStatus /// </summary> public static readonly StackStatus ROLLBACK_IN_PROGRESS = new StackStatus("ROLLBACK_IN_PROGRESS"); /// <summary> /// Constant UPDATE_COMPLETE for StackStatus /// </summary> public static readonly StackStatus UPDATE_COMPLETE = new StackStatus("UPDATE_COMPLETE"); /// <summary> /// Constant UPDATE_COMPLETE_CLEANUP_IN_PROGRESS for StackStatus /// </summary> public static readonly StackStatus UPDATE_COMPLETE_CLEANUP_IN_PROGRESS = new StackStatus("UPDATE_COMPLETE_CLEANUP_IN_PROGRESS"); /// <summary> /// Constant UPDATE_FAILED for StackStatus /// </summary> public static readonly StackStatus UPDATE_FAILED = new StackStatus("UPDATE_FAILED"); /// <summary> /// Constant UPDATE_IN_PROGRESS for StackStatus /// </summary> public static readonly StackStatus UPDATE_IN_PROGRESS = new StackStatus("UPDATE_IN_PROGRESS"); /// <summary> /// Constant UPDATE_ROLLBACK_COMPLETE for StackStatus /// </summary> public static readonly StackStatus UPDATE_ROLLBACK_COMPLETE = new StackStatus("UPDATE_ROLLBACK_COMPLETE"); /// <summary> /// Constant UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS for StackStatus /// </summary> public static readonly StackStatus UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS = new StackStatus("UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS"); /// <summary> /// Constant UPDATE_ROLLBACK_FAILED for StackStatus /// </summary> public static readonly StackStatus UPDATE_ROLLBACK_FAILED = new StackStatus("UPDATE_ROLLBACK_FAILED"); /// <summary> /// Constant UPDATE_ROLLBACK_IN_PROGRESS for StackStatus /// </summary> public static readonly StackStatus UPDATE_ROLLBACK_IN_PROGRESS = new StackStatus("UPDATE_ROLLBACK_IN_PROGRESS"); /// <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 StackStatus(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 StackStatus FindValue(string value) { return FindValue<StackStatus>(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 StackStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TemplateStage. /// </summary> public class TemplateStage : ConstantClass { /// <summary> /// Constant Original for TemplateStage /// </summary> public static readonly TemplateStage Original = new TemplateStage("Original"); /// <summary> /// Constant Processed for TemplateStage /// </summary> public static readonly TemplateStage Processed = new TemplateStage("Processed"); /// <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 TemplateStage(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 TemplateStage FindValue(string value) { return FindValue<TemplateStage>(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 TemplateStage(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ThirdPartyType. /// </summary> public class ThirdPartyType : ConstantClass { /// <summary> /// Constant HOOK for ThirdPartyType /// </summary> public static readonly ThirdPartyType HOOK = new ThirdPartyType("HOOK"); /// <summary> /// Constant MODULE for ThirdPartyType /// </summary> public static readonly ThirdPartyType MODULE = new ThirdPartyType("MODULE"); /// <summary> /// Constant RESOURCE for ThirdPartyType /// </summary> public static readonly ThirdPartyType RESOURCE = new ThirdPartyType("RESOURCE"); /// <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 ThirdPartyType(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 ThirdPartyType FindValue(string value) { return FindValue<ThirdPartyType>(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 ThirdPartyType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TypeTestsStatus. /// </summary> public class TypeTestsStatus : ConstantClass { /// <summary> /// Constant FAILED for TypeTestsStatus /// </summary> public static readonly TypeTestsStatus FAILED = new TypeTestsStatus("FAILED"); /// <summary> /// Constant IN_PROGRESS for TypeTestsStatus /// </summary> public static readonly TypeTestsStatus IN_PROGRESS = new TypeTestsStatus("IN_PROGRESS"); /// <summary> /// Constant NOT_TESTED for TypeTestsStatus /// </summary> public static readonly TypeTestsStatus NOT_TESTED = new TypeTestsStatus("NOT_TESTED"); /// <summary> /// Constant PASSED for TypeTestsStatus /// </summary> public static readonly TypeTestsStatus PASSED = new TypeTestsStatus("PASSED"); /// <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 TypeTestsStatus(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 TypeTestsStatus FindValue(string value) { return FindValue<TypeTestsStatus>(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 TypeTestsStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type VersionBump. /// </summary> public class VersionBump : ConstantClass { /// <summary> /// Constant MAJOR for VersionBump /// </summary> public static readonly VersionBump MAJOR = new VersionBump("MAJOR"); /// <summary> /// Constant MINOR for VersionBump /// </summary> public static readonly VersionBump MINOR = new VersionBump("MINOR"); /// <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 VersionBump(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 VersionBump FindValue(string value) { return FindValue<VersionBump>(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 VersionBump(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type Visibility. /// </summary> public class Visibility : ConstantClass { /// <summary> /// Constant PRIVATE for Visibility /// </summary> public static readonly Visibility PRIVATE = new Visibility("PRIVATE"); /// <summary> /// Constant PUBLIC for Visibility /// </summary> public static readonly Visibility PUBLIC = new Visibility("PUBLIC"); /// <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 Visibility(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 Visibility FindValue(string value) { return FindValue<Visibility>(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 Visibility(string value) { return FindValue(value); } } }
3,268
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 cloudformation-2010-05-15.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.CloudFormation.Internal { /// <summary> /// Amazon CloudFormation endpoint provider. /// Resolves endpoint for given set of CloudFormationEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonCloudFormationEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for CloudFormationEndpointParameters /// </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 (IsSet(refs["Endpoint"])) { 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 (IsSet(refs["Region"])) { if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { 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://cloudformation-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"))) { if (Equals("aws-us-gov", GetAttr(refs["PartitionResult"], "name"))) { return new Endpoint(Interpolate(@"https://cloudformation.{Region}.amazonaws.com", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } return new Endpoint(Interpolate(@"https://cloudformation-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://cloudformation.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://cloudformation.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } } throw new AmazonClientException("Invalid Configuration: Missing Region"); throw new AmazonClientException("Cannot resolve endpoint"); } } }
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 cloudformation-2010-05-15.normal.json service model. */ using System; using Amazon.CloudFormation.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.CloudFormation.Endpoints; #pragma warning disable 1591 namespace Amazon.CloudFormation.Internal { /// <summary> /// Amazon CloudFormation endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for CloudFormation service requests. /// Collects values for CloudFormationEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses CloudFormationEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonCloudFormationEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonCloudFormationConfig)requestContext.ClientConfig; var result = new CloudFormationEndpointParameters(); 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 cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.CloudFormation.Internal { /// <summary> /// Service metadata for Amazon CloudFormation service /// </summary> public partial class AmazonCloudFormationMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "CloudFormation"; } } /// <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 cloudformation-2010-05-15.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.CloudFormation.Model { /// <summary> /// Structure that contains the results of the account gate function which CloudFormation /// invokes, if present, before proceeding with a stack set operation in an account and /// Region. /// /// /// <para> /// For each account and Region, CloudFormation lets you specify a Lambda function that /// encapsulates any requirements that must be met before CloudFormation can proceed with /// a stack set operation in that account and Region. CloudFormation invokes the function /// each time a stack set operation is requested for that account and Region; if the function /// returns <code>FAILED</code>, CloudFormation cancels the operation in that account /// and Region, and sets the stack set operation result status for that account and Region /// to <code>FAILED</code>. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacksets-account-gating.html">Configuring /// a target account gate</a>. /// </para> /// </summary> public partial class AccountGateResult { private AccountGateStatus _status; private string _statusReason; /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the account gate function. /// </para> /// <ul> <li> /// <para> /// <code>SUCCEEDED</code>: The account gate function has determined that the account /// and Region passes any requirements for a stack set operation to occur. CloudFormation /// proceeds with the stack operation in that account and Region. /// </para> /// </li> <li> /// <para> /// <code>FAILED</code>: The account gate function has determined that the account and /// Region doesn't meet the requirements for a stack set operation to occur. CloudFormation /// cancels the stack set operation in that account and Region, and sets the stack set /// operation result status for that account and Region to <code>FAILED</code>. /// </para> /// </li> <li> /// <para> /// <code>SKIPPED</code>: CloudFormation has skipped calling the account gate function /// for this account and Region, for one of the following reasons: /// </para> /// <ul> <li> /// <para> /// An account gate function hasn't been specified for the account and Region. CloudFormation /// proceeds with the stack set operation in this account and Region. /// </para> /// </li> <li> /// <para> /// The <code>AWSCloudFormationStackSetExecutionRole</code> of the stack set administration /// account lacks permissions to invoke the function. CloudFormation proceeds with the /// stack set operation in this account and Region. /// </para> /// </li> <li> /// <para> /// Either no action is necessary, or no action is possible, on the stack. CloudFormation /// skips the stack set operation in this account and Region. /// </para> /// </li> </ul> </li> </ul> /// </summary> public AccountGateStatus 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 StatusReason. /// <para> /// The reason for the account gate status assigned to this account and Region for the /// stack set operation. /// </para> /// </summary> public string StatusReason { get { return this._statusReason; } set { this._statusReason = value; } } // Check to see if StatusReason property is set internal bool IsSetStatusReason() { return this._statusReason != null; } } }
130
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 cloudformation-2010-05-15.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.CloudFormation.Model { /// <summary> /// The AccountLimit data type. /// /// /// <para> /// CloudFormation has the following limits per account: /// </para> /// <ul> <li> /// <para> /// Number of concurrent resources /// </para> /// </li> <li> /// <para> /// Number of stacks /// </para> /// </li> <li> /// <para> /// Number of stack outputs /// </para> /// </li> </ul> /// <para> /// For more information about these account limits, and other CloudFormation limits, /// see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cloudformation-limits.html">CloudFormation /// quotas</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> public partial class AccountLimit { private string _name; private int? _value; /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the account limit. /// </para> /// /// <para> /// Values: <code>ConcurrentResourcesLimit</code> | <code>StackLimit</code> | <code>StackOutputsLimit</code> /// /// </para> /// </summary> public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// The value that's associated with the account limit name. /// </para> /// </summary> public int Value { get { return this._value.GetValueOrDefault(); } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value.HasValue; } } }
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 cloudformation-2010-05-15.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.CloudFormation.Model { /// <summary> /// Container for the parameters to the ActivateOrganizationsAccess operation. /// Activate trusted access with Organizations. With trusted access between StackSets /// and Organizations activated, the management account has permissions to create and /// manage StackSets for your organization. /// </summary> public partial class ActivateOrganizationsAccessRequest : AmazonCloudFormationRequest { } }
41
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 cloudformation-2010-05-15.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.CloudFormation.Model { /// <summary> /// This is the response object from the ActivateOrganizationsAccess operation. /// </summary> public partial class ActivateOrganizationsAccessResponse : 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 cloudformation-2010-05-15.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.CloudFormation.Model { /// <summary> /// Container for the parameters to the ActivateType operation. /// Activates a public third-party extension, making it available for use in stack templates. /// For more information, see <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-public.html">Using /// public extensions</a> in the <i>CloudFormation User Guide</i>. /// /// /// <para> /// Once you have activated a public third-party extension in your account and Region, /// use <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_SetTypeConfiguration.html">SetTypeConfiguration</a> /// to specify configuration properties for the extension. For more information, see <a /// href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/registry-register.html#registry-set-configuration">Configuring /// extensions at the account level</a> in the <i>CloudFormation User Guide</i>. /// </para> /// </summary> public partial class ActivateTypeRequest : AmazonCloudFormationRequest { private bool? _autoUpdate; private string _executionRoleArn; private LoggingConfig _loggingConfig; private long? _majorVersion; private string _publicTypeArn; private string _publisherId; private ThirdPartyType _type; private string _typeName; private string _typeNameAlias; private VersionBump _versionBump; /// <summary> /// Gets and sets the property AutoUpdate. /// <para> /// Whether to automatically update the extension in this account and Region when a new /// <i>minor</i> version is published by the extension publisher. Major versions released /// by the publisher must be manually updated. /// </para> /// /// <para> /// The default is <code>true</code>. /// </para> /// </summary> public bool AutoUpdate { get { return this._autoUpdate.GetValueOrDefault(); } set { this._autoUpdate = value; } } // Check to see if AutoUpdate property is set internal bool IsSetAutoUpdate() { return this._autoUpdate.HasValue; } /// <summary> /// Gets and sets the property ExecutionRoleArn. /// <para> /// The name of the IAM execution role to use to activate the extension. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] 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 LoggingConfig. /// <para> /// Contains logging configuration information for an extension. /// </para> /// </summary> public LoggingConfig LoggingConfig { get { return this._loggingConfig; } set { this._loggingConfig = value; } } // Check to see if LoggingConfig property is set internal bool IsSetLoggingConfig() { return this._loggingConfig != null; } /// <summary> /// Gets and sets the property MajorVersion. /// <para> /// The major version of this extension you want to activate, if multiple major versions /// are available. The default is the latest major version. CloudFormation uses the latest /// available <i>minor</i> version of the major version selected. /// </para> /// /// <para> /// You can specify <code>MajorVersion</code> or <code>VersionBump</code>, but not both. /// </para> /// </summary> [AWSProperty(Min=1, Max=100000)] public long MajorVersion { get { return this._majorVersion.GetValueOrDefault(); } set { this._majorVersion = value; } } // Check to see if MajorVersion property is set internal bool IsSetMajorVersion() { return this._majorVersion.HasValue; } /// <summary> /// Gets and sets the property PublicTypeArn. /// <para> /// The Amazon Resource Name (ARN) of the public extension. /// </para> /// /// <para> /// Conditional: You must specify <code>PublicTypeArn</code>, or <code>TypeName</code>, /// <code>Type</code>, and <code>PublisherId</code>. /// </para> /// </summary> [AWSProperty(Max=1024)] public string PublicTypeArn { get { return this._publicTypeArn; } set { this._publicTypeArn = value; } } // Check to see if PublicTypeArn property is set internal bool IsSetPublicTypeArn() { return this._publicTypeArn != null; } /// <summary> /// Gets and sets the property PublisherId. /// <para> /// The ID of the extension publisher. /// </para> /// /// <para> /// Conditional: You must specify <code>PublicTypeArn</code>, or <code>TypeName</code>, /// <code>Type</code>, and <code>PublisherId</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=40)] public string PublisherId { get { return this._publisherId; } set { this._publisherId = value; } } // Check to see if PublisherId property is set internal bool IsSetPublisherId() { return this._publisherId != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The extension type. /// </para> /// /// <para> /// Conditional: You must specify <code>PublicTypeArn</code>, or <code>TypeName</code>, /// <code>Type</code>, and <code>PublisherId</code>. /// </para> /// </summary> public ThirdPartyType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property TypeName. /// <para> /// The name of the extension. /// </para> /// /// <para> /// Conditional: You must specify <code>PublicTypeArn</code>, or <code>TypeName</code>, /// <code>Type</code>, and <code>PublisherId</code>. /// </para> /// </summary> [AWSProperty(Min=10, Max=204)] public string TypeName { get { return this._typeName; } set { this._typeName = value; } } // Check to see if TypeName property is set internal bool IsSetTypeName() { return this._typeName != null; } /// <summary> /// Gets and sets the property TypeNameAlias. /// <para> /// An alias to assign to the public extension, in this account and Region. If you specify /// an alias for the extension, CloudFormation treats the alias as the extension type /// name within this account and Region. You must use the alias to refer to the extension /// in your templates, API calls, and CloudFormation console. /// </para> /// /// <para> /// An extension alias must be unique within a given account and Region. You can activate /// the same public resource multiple times in the same account and Region, using different /// type name aliases. /// </para> /// </summary> [AWSProperty(Min=10, Max=204)] public string TypeNameAlias { get { return this._typeNameAlias; } set { this._typeNameAlias = value; } } // Check to see if TypeNameAlias property is set internal bool IsSetTypeNameAlias() { return this._typeNameAlias != null; } /// <summary> /// Gets and sets the property VersionBump. /// <para> /// Manually updates a previously-activated type to a new major or minor version, if available. /// You can also use this parameter to update the value of <code>AutoUpdate</code>. /// </para> /// <ul> <li> /// <para> /// <code>MAJOR</code>: CloudFormation updates the extension to the newest major version, /// if one is available. /// </para> /// </li> <li> /// <para> /// <code>MINOR</code>: CloudFormation updates the extension to the newest minor version, /// if one is available. /// </para> /// </li> </ul> /// </summary> public VersionBump VersionBump { get { return this._versionBump; } set { this._versionBump = value; } } // Check to see if VersionBump property is set internal bool IsSetVersionBump() { return this._versionBump != null; } } }
299
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 cloudformation-2010-05-15.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.CloudFormation.Model { /// <summary> /// This is the response object from the ActivateType operation. /// </summary> public partial class ActivateTypeResponse : AmazonWebServiceResponse { private string _arn; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the activated extension, in this account and Region. /// </para> /// </summary> [AWSProperty(Max=1024)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } } }
58
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 cloudformation-2010-05-15.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.CloudFormation.Model { /// <summary> /// The resource with the name requested already exists. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AlreadyExistsException : AmazonCloudFormationException { /// <summary> /// Constructs a new AlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public AlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of AlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of AlreadyExistsException /// </summary> /// <param name="innerException"></param> public AlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of AlreadyExistsException /// </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 AlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of AlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AlreadyExistsException(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 AlreadyExistsException 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 AlreadyExistsException(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 cloudformation-2010-05-15.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CloudFormation { /// <summary> /// Base class for CloudFormation operation requests. /// </summary> public partial class AmazonCloudFormationRequest : 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 cloudformation-2010-05-15.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.CloudFormation.Model { /// <summary> /// [Service-managed permissions] Describes whether StackSets automatically deploys to /// Organizations accounts that are added to a target organization or organizational unit /// (OU). /// </summary> public partial class AutoDeployment { private bool? _enabled; private bool? _retainStacksOnAccountRemoval; /// <summary> /// Gets and sets the property Enabled. /// <para> /// If set to <code>true</code>, StackSets automatically deploys additional stack instances /// to Organizations accounts that are added to a target organization or organizational /// unit (OU) in the specified Regions. If an account is removed from a target organization /// or OU, StackSets deletes stack instances from the account in the specified Regions. /// </para> /// </summary> public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// <summary> /// Gets and sets the property RetainStacksOnAccountRemoval. /// <para> /// If set to <code>true</code>, stack resources are retained when an account is removed /// from a target organization or OU. If set to <code>false</code>, stack resources are /// deleted. Specify only if <code>Enabled</code> is set to <code>True</code>. /// </para> /// </summary> public bool RetainStacksOnAccountRemoval { get { return this._retainStacksOnAccountRemoval.GetValueOrDefault(); } set { this._retainStacksOnAccountRemoval = value; } } // Check to see if RetainStacksOnAccountRemoval property is set internal bool IsSetRetainStacksOnAccountRemoval() { return this._retainStacksOnAccountRemoval.HasValue; } } }
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 cloudformation-2010-05-15.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.CloudFormation.Model { /// <summary> /// Detailed information concerning an error generated during the setting of configuration /// data for a CloudFormation extension. /// </summary> public partial class BatchDescribeTypeConfigurationsError { private string _errorCode; private string _errorMessage; private TypeConfigurationIdentifier _typeConfigurationIdentifier; /// <summary> /// Gets and sets the property ErrorCode. /// <para> /// The error code. /// </para> /// </summary> [AWSProperty(Min=3, Max=3)] public string ErrorCode { get { return this._errorCode; } set { this._errorCode = value; } } // Check to see if ErrorCode property is set internal bool IsSetErrorCode() { return this._errorCode != null; } /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// The error message. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string ErrorMessage { get { return this._errorMessage; } set { this._errorMessage = value; } } // Check to see if ErrorMessage property is set internal bool IsSetErrorMessage() { return this._errorMessage != null; } /// <summary> /// Gets and sets the property TypeConfigurationIdentifier. /// <para> /// Identifying information for the configuration of a CloudFormation extension. /// </para> /// </summary> public TypeConfigurationIdentifier TypeConfigurationIdentifier { get { return this._typeConfigurationIdentifier; } set { this._typeConfigurationIdentifier = value; } } // Check to see if TypeConfigurationIdentifier property is set internal bool IsSetTypeConfigurationIdentifier() { return this._typeConfigurationIdentifier != null; } } }
98