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 health-2016-08-04.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.AWSHealth.Endpoints { /// <summary> /// Contains parameters used for resolving AWSHealth endpoints /// Parameters can be sourced from client config and service operations /// Used by internal AWSHealthEndpointProvider and AWSHealthEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class AWSHealthEndpointParameters : EndpointParameters { /// <summary> /// AWSHealthEndpointParameters constructor /// </summary> public AWSHealthEndpointParameters() { 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 health-2016-08-04.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.AWSHealth { ///<summary> /// Common exception for the AWSHealth service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonAWSHealthException : AmazonServiceException { /// <summary> /// Construct instance of AmazonAWSHealthException /// </summary> /// <param name="message"></param> public AmazonAWSHealthException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonAWSHealthException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonAWSHealthException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonAWSHealthException /// </summary> /// <param name="innerException"></param> public AmazonAWSHealthException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonAWSHealthException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonAWSHealthException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonAWSHealthException /// </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 AmazonAWSHealthException(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 AmazonAWSHealthException 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 AmazonAWSHealthException(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 health-2016-08-04.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.AWSHealth { /// <summary> /// Constants used for properties of type EntityStatusCode. /// </summary> public class EntityStatusCode : ConstantClass { /// <summary> /// Constant IMPAIRED for EntityStatusCode /// </summary> public static readonly EntityStatusCode IMPAIRED = new EntityStatusCode("IMPAIRED"); /// <summary> /// Constant UNIMPAIRED for EntityStatusCode /// </summary> public static readonly EntityStatusCode UNIMPAIRED = new EntityStatusCode("UNIMPAIRED"); /// <summary> /// Constant UNKNOWN for EntityStatusCode /// </summary> public static readonly EntityStatusCode UNKNOWN = new EntityStatusCode("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 EntityStatusCode(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 EntityStatusCode FindValue(string value) { return FindValue<EntityStatusCode>(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 EntityStatusCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EventAggregateField. /// </summary> public class EventAggregateField : ConstantClass { /// <summary> /// Constant EventTypeCategory for EventAggregateField /// </summary> public static readonly EventAggregateField EventTypeCategory = new EventAggregateField("eventTypeCategory"); /// <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 EventAggregateField(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 EventAggregateField FindValue(string value) { return FindValue<EventAggregateField>(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 EventAggregateField(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EventScopeCode. /// </summary> public class EventScopeCode : ConstantClass { /// <summary> /// Constant ACCOUNT_SPECIFIC for EventScopeCode /// </summary> public static readonly EventScopeCode ACCOUNT_SPECIFIC = new EventScopeCode("ACCOUNT_SPECIFIC"); /// <summary> /// Constant NONE for EventScopeCode /// </summary> public static readonly EventScopeCode NONE = new EventScopeCode("NONE"); /// <summary> /// Constant PUBLIC for EventScopeCode /// </summary> public static readonly EventScopeCode PUBLIC = new EventScopeCode("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 EventScopeCode(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 EventScopeCode FindValue(string value) { return FindValue<EventScopeCode>(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 EventScopeCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EventStatusCode. /// </summary> public class EventStatusCode : ConstantClass { /// <summary> /// Constant Closed for EventStatusCode /// </summary> public static readonly EventStatusCode Closed = new EventStatusCode("closed"); /// <summary> /// Constant Open for EventStatusCode /// </summary> public static readonly EventStatusCode Open = new EventStatusCode("open"); /// <summary> /// Constant Upcoming for EventStatusCode /// </summary> public static readonly EventStatusCode Upcoming = new EventStatusCode("upcoming"); /// <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 EventStatusCode(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 EventStatusCode FindValue(string value) { return FindValue<EventStatusCode>(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 EventStatusCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EventTypeCategory. /// </summary> public class EventTypeCategory : ConstantClass { /// <summary> /// Constant AccountNotification for EventTypeCategory /// </summary> public static readonly EventTypeCategory AccountNotification = new EventTypeCategory("accountNotification"); /// <summary> /// Constant Investigation for EventTypeCategory /// </summary> public static readonly EventTypeCategory Investigation = new EventTypeCategory("investigation"); /// <summary> /// Constant Issue for EventTypeCategory /// </summary> public static readonly EventTypeCategory Issue = new EventTypeCategory("issue"); /// <summary> /// Constant ScheduledChange for EventTypeCategory /// </summary> public static readonly EventTypeCategory ScheduledChange = new EventTypeCategory("scheduledChange"); /// <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 EventTypeCategory(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 EventTypeCategory FindValue(string value) { return FindValue<EventTypeCategory>(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 EventTypeCategory(string value) { return FindValue(value); } } }
292
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 health-2016-08-04.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.AWSHealth.Internal { /// <summary> /// Amazon AWSHealth endpoint provider. /// Resolves endpoint for given set of AWSHealthEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonAWSHealthEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for AWSHealthEndpointParameters /// </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://health-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://health-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://health.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } if (Equals(refs["Region"], "aws-global")) { return new Endpoint("https://global.health.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""health"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(refs["Region"], "aws-cn-global")) { return new Endpoint("https://global.health.amazonaws.com.cn", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""health"",""signingRegion"":""cn-northwest-1""}]}", refs), InterpolateJson(@"", refs)); } return new Endpoint(Interpolate(@"https://health.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } } throw new AmazonClientException("Invalid Configuration: Missing Region"); throw new AmazonClientException("Cannot resolve endpoint"); } } }
111
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 health-2016-08-04.normal.json service model. */ using System; using Amazon.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.AWSHealth.Endpoints; #pragma warning disable 1591 namespace Amazon.AWSHealth.Internal { /// <summary> /// Amazon AWSHealth endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for AWSHealth service requests. /// Collects values for AWSHealthEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses AWSHealthEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonAWSHealthEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonAWSHealthConfig)requestContext.ClientConfig; var result = new AWSHealthEndpointParameters(); 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 health-2016-08-04.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.AWSHealth.Internal { /// <summary> /// Service metadata for Amazon AWSHealth service /// </summary> public partial class AmazonAWSHealthMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "Health"; } } /// <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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Information about an entity that is affected by a Health event. /// </summary> public partial class AffectedEntity { private string _awsAccountId; private string _entityArn; private string _entityUrl; private string _entityValue; private string _eventArn; private DateTime? _lastUpdatedTime; private EntityStatusCode _statusCode; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property AwsAccountId. /// <para> /// The 12-digit Amazon Web Services account number that contains the affected entity. /// </para> /// </summary> [AWSProperty(Max=12)] public string AwsAccountId { get { return this._awsAccountId; } set { this._awsAccountId = value; } } // Check to see if AwsAccountId property is set internal bool IsSetAwsAccountId() { return this._awsAccountId != null; } /// <summary> /// Gets and sets the property EntityArn. /// <para> /// The unique identifier for the entity. Format: <code>arn:aws:health:<i>entity-region</i>:<i>aws-account</i>:entity/<i>entity-id</i> /// </code>. Example: <code>arn:aws:health:us-east-1:111222333444:entity/AVh5GGT7ul1arKr1sE1K</code> /// /// </para> /// </summary> [AWSProperty(Max=1600)] public string EntityArn { get { return this._entityArn; } set { this._entityArn = value; } } // Check to see if EntityArn property is set internal bool IsSetEntityArn() { return this._entityArn != null; } /// <summary> /// Gets and sets the property EntityUrl. /// <para> /// The URL of the affected entity. /// </para> /// </summary> public string EntityUrl { get { return this._entityUrl; } set { this._entityUrl = value; } } // Check to see if EntityUrl property is set internal bool IsSetEntityUrl() { return this._entityUrl != null; } /// <summary> /// Gets and sets the property EntityValue. /// <para> /// The ID of the affected entity. /// </para> /// </summary> [AWSProperty(Max=1224)] public string EntityValue { get { return this._entityValue; } set { this._entityValue = value; } } // Check to see if EntityValue property is set internal bool IsSetEntityValue() { return this._entityValue != null; } /// <summary> /// Gets and sets the property EventArn. /// <para> /// The unique identifier for the event. The event ARN has the <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i> /// </code> format. /// </para> /// /// <para> /// For example, an event ARN might look like the following: /// </para> /// /// <para> /// <code>arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code> /// /// </para> /// </summary> [AWSProperty(Max=1600)] public string EventArn { get { return this._eventArn; } set { this._eventArn = value; } } // Check to see if EventArn property is set internal bool IsSetEventArn() { return this._eventArn != null; } /// <summary> /// Gets and sets the property LastUpdatedTime. /// <para> /// The most recent time that the entity was updated. /// </para> /// </summary> public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The most recent status of the entity affected by the event. The possible values are /// <code>IMPAIRED</code>, <code>UNIMPAIRED</code>, and <code>UNKNOWN</code>. /// </para> /// </summary> public EntityStatusCode StatusCode { get { return this._statusCode; } set { this._statusCode = value; } } // Check to see if StatusCode property is set internal bool IsSetStatusCode() { return this._statusCode != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A map of entity tags attached to the affected entity. /// </para> /// <note> /// <para> /// Currently, the <code>tags</code> property isn't supported. /// </para> /// </note> /// </summary> [AWSProperty(Max=50)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
213
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 health-2016-08-04.normal.json service model. */ using Amazon.Runtime; namespace Amazon.AWSHealth { /// <summary> /// Base class for AWSHealth operation requests. /// </summary> public partial class AmazonAWSHealthRequest : 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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a> /// is already in progress. Wait for the action to complete before trying again. To get /// the current status, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeHealthServiceStatusForOrganization.html">DescribeHealthServiceStatusForOrganization</a> /// operation. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConcurrentModificationException : AmazonAWSHealthException { /// <summary> /// Constructs a new ConcurrentModificationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ConcurrentModificationException(string message) : base(message) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ConcurrentModificationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="innerException"></param> public ConcurrentModificationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </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 ConcurrentModificationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConcurrentModificationException(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 ConcurrentModificationException 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 ConcurrentModificationException(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 } }
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// A range of dates and times that is used by the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventFilter.html">EventFilter</a> /// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EntityFilter.html">EntityFilter</a> /// objects. If <code>from</code> is set and <code>to</code> is set: match items where /// the timestamp (<code>startTime</code>, <code>endTime</code>, or <code>lastUpdatedTime</code>) /// is between <code>from</code> and <code>to</code> inclusive. If <code>from</code> is /// set and <code>to</code> is not set: match items where the timestamp value is equal /// to or after <code>from</code>. If <code>from</code> is not set and <code>to</code> /// is set: match items where the timestamp value is equal to or before <code>to</code>. /// </summary> public partial class DateTimeRange { private DateTime? _from; private DateTime? _to; /// <summary> /// Gets and sets the property From. /// <para> /// The starting date and time of a time range. /// </para> /// </summary> public DateTime From { get { return this._from.GetValueOrDefault(); } set { this._from = value; } } // Check to see if From property is set internal bool IsSetFrom() { return this._from.HasValue; } /// <summary> /// Gets and sets the property To. /// <para> /// The ending date and time of a time range. /// </para> /// </summary> public DateTime To { get { return this._to.GetValueOrDefault(); } set { this._to = value; } } // Check to see if To property is set internal bool IsSetTo() { return this._to.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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeAffectedAccountsForOrganization operation. /// Returns a list of accounts in the organization from Organizations that are affected /// by the provided event. For more information about the different types of Health events, /// see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>. /// /// /// /// <para> /// Before you can call this operation, you must first enable Health to work with Organizations. /// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a> /// operation from your organization's management account. /// </para> /// <note> /// <para> /// This API operation uses pagination. Specify the <code>nextToken</code> parameter in /// the next request to return more results. /// </para> /// </note> /// </summary> public partial class DescribeAffectedAccountsForOrganizationRequest : AmazonAWSHealthRequest { private string _eventArn; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property EventArn. /// <para> /// The unique identifier for the event. The event ARN has the <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i> /// </code> format. /// </para> /// /// <para> /// For example, an event ARN might look like the following: /// </para> /// /// <para> /// <code>arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code> /// /// </para> /// </summary> [AWSProperty(Required=true, Max=1600)] public string EventArn { get { return this._eventArn; } set { this._eventArn = value; } } // Check to see if EventArn property is set internal bool IsSetEventArn() { return this._eventArn != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of items to return in one batch, between 10 and 100, inclusive. /// </para> /// </summary> [AWSProperty(Min=10, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
129
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeAffectedAccountsForOrganization operation. /// </summary> public partial class DescribeAffectedAccountsForOrganizationResponse : AmazonWebServiceResponse { private List<string> _affectedAccounts = new List<string>(); private EventScopeCode _eventScopeCode; private string _nextToken; /// <summary> /// Gets and sets the property AffectedAccounts. /// <para> /// A JSON set of elements of the affected accounts. /// </para> /// </summary> public List<string> AffectedAccounts { get { return this._affectedAccounts; } set { this._affectedAccounts = value; } } // Check to see if AffectedAccounts property is set internal bool IsSetAffectedAccounts() { return this._affectedAccounts != null && this._affectedAccounts.Count > 0; } /// <summary> /// Gets and sets the property EventScopeCode. /// <para> /// This parameter specifies if the Health event is a public Amazon Web Service event /// or an account-specific event. /// </para> /// <ul> <li> /// <para> /// If the <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the <code>affectedAccounts</code> /// value is always empty. /// </para> /// </li> <li> /// <para> /// If the <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the /// <code>affectedAccounts</code> value lists the affected Amazon Web Services accounts /// in your organization. For example, if an event affects a service such as Amazon Elastic /// Compute Cloud and you have Amazon Web Services accounts that use that service, those /// account IDs appear in the response. /// </para> /// </li> <li> /// <para> /// If the <code>eventScopeCode</code> value is <code>NONE</code>, then the <code>eventArn</code> /// that you specified in the request is invalid or doesn't exist. /// </para> /// </li> </ul> /// </summary> public EventScopeCode EventScopeCode { get { return this._eventScopeCode; } set { this._eventScopeCode = value; } } // Check to see if EventScopeCode property is set internal bool IsSetEventScopeCode() { return this._eventScopeCode != null; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
120
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeAffectedEntitiesForOrganization operation. /// Returns a list of entities that have been affected by one or more events for one or /// more accounts in your organization in Organizations, based on the filter criteria. /// Entities can refer to individual customer resources, groups of customer resources, /// or any other construct, depending on the Amazon Web Service. /// /// /// <para> /// At least one event Amazon Resource Name (ARN) and account ID are required. /// </para> /// /// <para> /// Before you can call this operation, you must first enable Health to work with Organizations. /// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a> /// operation from your organization's management account. /// </para> /// <note> <ul> <li> /// <para> /// This API operation uses pagination. Specify the <code>nextToken</code> parameter in /// the next request to return more results. /// </para> /// </li> <li> /// <para> /// This operation doesn't support resource-level permissions. You can't use this operation /// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource- /// and action-based conditions</a> in the <i>Health User Guide</i>. /// </para> /// </li> </ul> </note> /// </summary> public partial class DescribeAffectedEntitiesForOrganizationRequest : AmazonAWSHealthRequest { private string _locale; private int? _maxResults; private string _nextToken; private List<EventAccountFilter> _organizationEntityFilters = new List<EventAccountFilter>(); /// <summary> /// Gets and sets the property Locale. /// <para> /// The locale (language) to return information in. English (en) is the default and the /// only supported value at this time. /// </para> /// </summary> [AWSProperty(Min=2, Max=256)] public string Locale { get { return this._locale; } set { this._locale = value; } } // Check to see if Locale property is set internal bool IsSetLocale() { return this._locale != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of items to return in one batch, between 10 and 100, inclusive. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property OrganizationEntityFilters. /// <para> /// A JSON set of elements including the <code>awsAccountId</code> and the <code>eventArn</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=10)] public List<EventAccountFilter> OrganizationEntityFilters { get { return this._organizationEntityFilters; } set { this._organizationEntityFilters = value; } } // Check to see if OrganizationEntityFilters property is set internal bool IsSetOrganizationEntityFilters() { return this._organizationEntityFilters != null && this._organizationEntityFilters.Count > 0; } } }
150
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeAffectedEntitiesForOrganization operation. /// </summary> public partial class DescribeAffectedEntitiesForOrganizationResponse : AmazonWebServiceResponse { private List<AffectedEntity> _entities = new List<AffectedEntity>(); private List<OrganizationAffectedEntitiesErrorItem> _failedSet = new List<OrganizationAffectedEntitiesErrorItem>(); private string _nextToken; /// <summary> /// Gets and sets the property Entities. /// <para> /// A JSON set of elements including the <code>awsAccountId</code> and its <code>entityArn</code>, /// <code>entityValue</code> and its <code>entityArn</code>, <code>lastUpdatedTime</code>, /// and <code>statusCode</code>. /// </para> /// </summary> public List<AffectedEntity> Entities { get { return this._entities; } set { this._entities = value; } } // Check to see if Entities property is set internal bool IsSetEntities() { return this._entities != null && this._entities.Count > 0; } /// <summary> /// Gets and sets the property FailedSet. /// <para> /// A JSON set of elements of the failed response, including the <code>awsAccountId</code>, /// <code>errorMessage</code>, <code>errorName</code>, and <code>eventArn</code>. /// </para> /// </summary> public List<OrganizationAffectedEntitiesErrorItem> FailedSet { get { return this._failedSet; } set { this._failedSet = value; } } // Check to see if FailedSet property is set internal bool IsSetFailedSet() { return this._failedSet != null && this._failedSet.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
103
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeAffectedEntities operation. /// Returns a list of entities that have been affected by the specified events, based /// on the specified filter criteria. Entities can refer to individual customer resources, /// groups of customer resources, or any other construct, depending on the Amazon Web /// Service. Events that have impact beyond that of the affected entities, or where the /// extent of impact is unknown, include at least one entity indicating this. /// /// /// <para> /// At least one event ARN is required. /// </para> /// <note> <ul> <li> /// <para> /// This API operation uses pagination. Specify the <code>nextToken</code> parameter in /// the next request to return more results. /// </para> /// </li> <li> /// <para> /// This operation supports resource-level permissions. You can use this operation to /// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource- /// and action-based conditions</a> in the <i>Health User Guide</i>. /// </para> /// </li> </ul> </note> /// </summary> public partial class DescribeAffectedEntitiesRequest : AmazonAWSHealthRequest { private EntityFilter _filter; private string _locale; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Filter. /// <para> /// Values to narrow the results returned. At least one event ARN is required. /// </para> /// </summary> [AWSProperty(Required=true)] public EntityFilter Filter { get { return this._filter; } set { this._filter = value; } } // Check to see if Filter property is set internal bool IsSetFilter() { return this._filter != null; } /// <summary> /// Gets and sets the property Locale. /// <para> /// The locale (language) to return information in. English (en) is the default and the /// only supported value at this time. /// </para> /// </summary> [AWSProperty(Min=2, Max=256)] public string Locale { get { return this._locale; } set { this._locale = value; } } // Check to see if Locale property is set internal bool IsSetLocale() { return this._locale != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of items to return in one batch, between 10 and 100, inclusive. /// </para> /// </summary> [AWSProperty(Min=10, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
145
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeAffectedEntities operation. /// </summary> public partial class DescribeAffectedEntitiesResponse : AmazonWebServiceResponse { private List<AffectedEntity> _entities = new List<AffectedEntity>(); private string _nextToken; /// <summary> /// Gets and sets the property Entities. /// <para> /// The entities that match the filter criteria. /// </para> /// </summary> public List<AffectedEntity> Entities { get { return this._entities; } set { this._entities = value; } } // Check to see if Entities property is set internal bool IsSetEntities() { return this._entities != null && this._entities.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
81
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeEntityAggregates operation. /// Returns the number of entities that are affected by each of the specified events. /// </summary> public partial class DescribeEntityAggregatesRequest : AmazonAWSHealthRequest { private List<string> _eventArns = new List<string>(); /// <summary> /// Gets and sets the property EventArns. /// <para> /// A list of event ARNs (unique identifiers). For example: <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", /// "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code> /// /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<string> EventArns { get { return this._eventArns; } set { this._eventArns = value; } } // Check to see if EventArns property is set internal bool IsSetEventArns() { return this._eventArns != null && this._eventArns.Count > 0; } } }
61
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeEntityAggregates operation. /// </summary> public partial class DescribeEntityAggregatesResponse : AmazonWebServiceResponse { private List<EntityAggregate> _entityAggregates = new List<EntityAggregate>(); /// <summary> /// Gets and sets the property EntityAggregates. /// <para> /// The number of entities that are affected by each of the specified events. /// </para> /// </summary> public List<EntityAggregate> EntityAggregates { get { return this._entityAggregates; } set { this._entityAggregates = value; } } // Check to see if EntityAggregates property is set internal bool IsSetEntityAggregates() { return this._entityAggregates != null && this._entityAggregates.Count > 0; } } }
57
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeEventAggregates operation. /// Returns the number of events of each event type (issue, scheduled change, and account /// notification). If no filter is specified, the counts of all events in each category /// are returned. /// /// <note> /// <para> /// This API operation uses pagination. Specify the <code>nextToken</code> parameter in /// the next request to return more results. /// </para> /// </note> /// </summary> public partial class DescribeEventAggregatesRequest : AmazonAWSHealthRequest { private EventAggregateField _aggregateField; private EventFilter _filter; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property AggregateField. /// <para> /// The only currently supported value is <code>eventTypeCategory</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public EventAggregateField AggregateField { get { return this._aggregateField; } set { this._aggregateField = value; } } // Check to see if AggregateField property is set internal bool IsSetAggregateField() { return this._aggregateField != null; } /// <summary> /// Gets and sets the property Filter. /// <para> /// Values to narrow the results returned. /// </para> /// </summary> public EventFilter Filter { get { return this._filter; } set { this._filter = value; } } // Check to see if Filter property is set internal bool IsSetFilter() { return this._filter != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of items to return in one batch, between 10 and 100, inclusive. /// </para> /// </summary> [AWSProperty(Min=10, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeEventAggregates operation. /// </summary> public partial class DescribeEventAggregatesResponse : AmazonWebServiceResponse { private List<EventAggregate> _eventAggregates = new List<EventAggregate>(); private string _nextToken; /// <summary> /// Gets and sets the property EventAggregates. /// <para> /// The number of events in each category that meet the optional filter criteria. /// </para> /// </summary> public List<EventAggregate> EventAggregates { get { return this._eventAggregates; } set { this._eventAggregates = value; } } // Check to see if EventAggregates property is set internal bool IsSetEventAggregates() { return this._eventAggregates != null && this._eventAggregates.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
81
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeEventDetailsForOrganization operation. /// Returns detailed information about one or more specified events for one or more Amazon /// Web Services accounts in your organization. This information includes standard event /// data (such as the Amazon Web Services Region and service), an event description, and /// (depending on the event) possible metadata. This operation doesn't return affected /// entities, such as the resources related to the event. To return affected entities, /// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a> /// operation. /// /// <note> /// <para> /// Before you can call this operation, you must first enable Health to work with Organizations. /// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a> /// operation from your organization's management account. /// </para> /// </note> /// <para> /// When you call the <code>DescribeEventDetailsForOrganization</code> operation, specify /// the <code>organizationEventDetailFilters</code> object in the request. Depending on /// the Health event type, note the following differences: /// </para> /// <ul> <li> /// <para> /// To return event details for a public event, you must specify a null value for the /// <code>awsAccountId</code> parameter. If you specify an account ID for a public event, /// Health returns an error message because public events aren't specific to an account. /// </para> /// </li> <li> /// <para> /// To return event details for an event that is specific to an account in your organization, /// you must specify the <code>awsAccountId</code> parameter in the request. If you don't /// specify an account ID, Health returns an error message because the event is specific /// to an account in your organization. /// </para> /// </li> </ul> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>. /// </para> /// <note> /// <para> /// This operation doesn't support resource-level permissions. You can't use this operation /// to allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource- /// and action-based conditions</a> in the <i>Health User Guide</i>. /// </para> /// </note> /// </summary> public partial class DescribeEventDetailsForOrganizationRequest : AmazonAWSHealthRequest { private string _locale; private List<EventAccountFilter> _organizationEventDetailFilters = new List<EventAccountFilter>(); /// <summary> /// Gets and sets the property Locale. /// <para> /// The locale (language) to return information in. English (en) is the default and the /// only supported value at this time. /// </para> /// </summary> [AWSProperty(Min=2, Max=256)] public string Locale { get { return this._locale; } set { this._locale = value; } } // Check to see if Locale property is set internal bool IsSetLocale() { return this._locale != null; } /// <summary> /// Gets and sets the property OrganizationEventDetailFilters. /// <para> /// A set of JSON elements that includes the <code>awsAccountId</code> and the <code>eventArn</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=10)] public List<EventAccountFilter> OrganizationEventDetailFilters { get { return this._organizationEventDetailFilters; } set { this._organizationEventDetailFilters = value; } } // Check to see if OrganizationEventDetailFilters property is set internal bool IsSetOrganizationEventDetailFilters() { return this._organizationEventDetailFilters != null && this._organizationEventDetailFilters.Count > 0; } } }
123
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeEventDetailsForOrganization operation. /// </summary> public partial class DescribeEventDetailsForOrganizationResponse : AmazonWebServiceResponse { private List<OrganizationEventDetailsErrorItem> _failedSet = new List<OrganizationEventDetailsErrorItem>(); private List<OrganizationEventDetails> _successfulSet = new List<OrganizationEventDetails>(); /// <summary> /// Gets and sets the property FailedSet. /// <para> /// Error messages for any events that could not be retrieved. /// </para> /// </summary> public List<OrganizationEventDetailsErrorItem> FailedSet { get { return this._failedSet; } set { this._failedSet = value; } } // Check to see if FailedSet property is set internal bool IsSetFailedSet() { return this._failedSet != null && this._failedSet.Count > 0; } /// <summary> /// Gets and sets the property SuccessfulSet. /// <para> /// Information about the events that could be retrieved. /// </para> /// </summary> public List<OrganizationEventDetails> SuccessfulSet { get { return this._successfulSet; } set { this._successfulSet = value; } } // Check to see if SuccessfulSet property is set internal bool IsSetSuccessfulSet() { return this._successfulSet != null && this._successfulSet.Count > 0; } } }
76
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeEventDetails operation. /// Returns detailed information about one or more specified events. Information includes /// standard event data (Amazon Web Services Region, service, and so on, as returned by /// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a>), /// a detailed event description, and possible additional metadata that depends upon the /// nature of the event. Affected entities are not included. To retrieve the entities, /// use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a> /// operation. /// /// /// <para> /// If a specified event can't be retrieved, an error message is returned for that event. /// </para> /// <note> /// <para> /// This operation supports resource-level permissions. You can use this operation to /// allow or deny access to specific Health events. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html#resource-action-based-conditions">Resource- /// and action-based conditions</a> in the <i>Health User Guide</i>. /// </para> /// </note> /// </summary> public partial class DescribeEventDetailsRequest : AmazonAWSHealthRequest { private List<string> _eventArns = new List<string>(); private string _locale; /// <summary> /// Gets and sets the property EventArns. /// <para> /// A list of event ARNs (unique identifiers). For example: <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", /// "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code> /// /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=10)] public List<string> EventArns { get { return this._eventArns; } set { this._eventArns = value; } } // Check to see if EventArns property is set internal bool IsSetEventArns() { return this._eventArns != null && this._eventArns.Count > 0; } /// <summary> /// Gets and sets the property Locale. /// <para> /// The locale (language) to return information in. English (en) is the default and the /// only supported value at this time. /// </para> /// </summary> [AWSProperty(Min=2, Max=256)] public string Locale { get { return this._locale; } set { this._locale = value; } } // Check to see if Locale property is set internal bool IsSetLocale() { return this._locale != null; } } }
100
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeEventDetails operation. /// </summary> public partial class DescribeEventDetailsResponse : AmazonWebServiceResponse { private List<EventDetailsErrorItem> _failedSet = new List<EventDetailsErrorItem>(); private List<EventDetails> _successfulSet = new List<EventDetails>(); /// <summary> /// Gets and sets the property FailedSet. /// <para> /// Error messages for any events that could not be retrieved. /// </para> /// </summary> public List<EventDetailsErrorItem> FailedSet { get { return this._failedSet; } set { this._failedSet = value; } } // Check to see if FailedSet property is set internal bool IsSetFailedSet() { return this._failedSet != null && this._failedSet.Count > 0; } /// <summary> /// Gets and sets the property SuccessfulSet. /// <para> /// Information about the events that could be retrieved. /// </para> /// </summary> public List<EventDetails> SuccessfulSet { get { return this._successfulSet; } set { this._successfulSet = value; } } // Check to see if SuccessfulSet property is set internal bool IsSetSuccessfulSet() { return this._successfulSet != null && this._successfulSet.Count > 0; } } }
76
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeEventsForOrganization operation. /// Returns information about events across your organization in Organizations. You can /// use the<code>filters</code> parameter to specify the events that you want to return. /// Events are returned in a summary form and don't include the affected accounts, detailed /// description, any additional metadata that depends on the event type, or any affected /// resources. To retrieve that information, use the following operations: /// /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedAccountsForOrganization.html">DescribeAffectedAccountsForOrganization</a> /// /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a> /// /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a> /// /// </para> /// </li> </ul> /// <para> /// If you don't specify a <code>filter</code>, the <code>DescribeEventsForOrganizations</code> /// returns all events across your organization. Results are sorted by <code>lastModifiedTime</code>, /// starting with the most recent event. /// </para> /// /// <para> /// For more information about the different types of Health events, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>. /// </para> /// /// <para> /// Before you can call this operation, you must first enable Health to work with Organizations. /// To do this, call the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EnableHealthServiceAccessForOrganization.html">EnableHealthServiceAccessForOrganization</a> /// operation from your organization's management account. /// </para> /// <note> /// <para> /// This API operation uses pagination. Specify the <code>nextToken</code> parameter in /// the next request to return more results. /// </para> /// </note> /// </summary> public partial class DescribeEventsForOrganizationRequest : AmazonAWSHealthRequest { private OrganizationEventFilter _filter; private string _locale; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Filter. /// <para> /// Values to narrow the results returned. /// </para> /// </summary> public OrganizationEventFilter Filter { get { return this._filter; } set { this._filter = value; } } // Check to see if Filter property is set internal bool IsSetFilter() { return this._filter != null; } /// <summary> /// Gets and sets the property Locale. /// <para> /// The locale (language) to return information in. English (en) is the default and the /// only supported value at this time. /// </para> /// </summary> [AWSProperty(Min=2, Max=256)] public string Locale { get { return this._locale; } set { this._locale = value; } } // Check to see if Locale property is set internal bool IsSetLocale() { return this._locale != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of items to return in one batch, between 10 and 100, inclusive. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
165
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeEventsForOrganization operation. /// </summary> public partial class DescribeEventsForOrganizationResponse : AmazonWebServiceResponse { private List<OrganizationEvent> _events = new List<OrganizationEvent>(); private string _nextToken; /// <summary> /// Gets and sets the property Events. /// <para> /// The events that match the specified filter criteria. /// </para> /// </summary> public List<OrganizationEvent> Events { get { return this._events; } set { this._events = value; } } // Check to see if Events property is set internal bool IsSetEvents() { return this._events != null && this._events.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
81
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeEvents operation. /// Returns information about events that meet the specified filter criteria. Events /// are returned in a summary form and do not include the detailed description, any additional /// metadata that depends on the event type, or any affected resources. To retrieve that /// information, use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a> /// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a> /// operations. /// /// /// <para> /// If no filter criteria are specified, all events are returned. Results are sorted by /// <code>lastModifiedTime</code>, starting with the most recent event. /// </para> /// <note> <ul> <li> /// <para> /// When you call the <code>DescribeEvents</code> operation and specify an entity for /// the <code>entityValues</code> parameter, Health might return public events that aren't /// specific to that resource. For example, if you call <code>DescribeEvents</code> and /// specify an ID for an Amazon Elastic Compute Cloud (Amazon EC2) instance, Health might /// return events that aren't specific to that resource or service. To get events that /// are specific to a service, use the <code>services</code> parameter in the <code>filter</code> /// object. For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a>. /// </para> /// </li> <li> /// <para> /// This API operation uses pagination. Specify the <code>nextToken</code> parameter in /// the next request to return more results. /// </para> /// </li> </ul> </note> /// </summary> public partial class DescribeEventsRequest : AmazonAWSHealthRequest { private EventFilter _filter; private string _locale; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Filter. /// <para> /// Values to narrow the results returned. /// </para> /// </summary> public EventFilter Filter { get { return this._filter; } set { this._filter = value; } } // Check to see if Filter property is set internal bool IsSetFilter() { return this._filter != null; } /// <summary> /// Gets and sets the property Locale. /// <para> /// The locale (language) to return information in. English (en) is the default and the /// only supported value at this time. /// </para> /// </summary> [AWSProperty(Min=2, Max=256)] public string Locale { get { return this._locale; } set { this._locale = value; } } // Check to see if Locale property is set internal bool IsSetLocale() { return this._locale != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of items to return in one batch, between 10 and 100, inclusive. /// </para> /// </summary> [AWSProperty(Min=10, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
150
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeEvents operation. /// </summary> public partial class DescribeEventsResponse : AmazonWebServiceResponse { private List<Event> _events = new List<Event>(); private string _nextToken; /// <summary> /// Gets and sets the property Events. /// <para> /// The events that match the specified filter criteria. /// </para> /// </summary> public List<Event> Events { get { return this._events; } set { this._events = value; } } // Check to see if Events property is set internal bool IsSetEvents() { return this._events != null && this._events.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
81
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeEventTypes operation. /// Returns the event types that meet the specified filter criteria. You can use this /// API operation to find information about the Health event, such as the category, Amazon /// Web Service, and event code. The metadata for each event appears in the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventType.html">EventType</a> /// object. /// /// /// <para> /// If you don't specify a filter criteria, the API operation returns all event types, /// in no particular order. /// </para> /// <note> /// <para> /// This API operation uses pagination. Specify the <code>nextToken</code> parameter in /// the next request to return more results. /// </para> /// </note> /// </summary> public partial class DescribeEventTypesRequest : AmazonAWSHealthRequest { private EventTypeFilter _filter; private string _locale; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property Filter. /// <para> /// Values to narrow the results returned. /// </para> /// </summary> public EventTypeFilter Filter { get { return this._filter; } set { this._filter = value; } } // Check to see if Filter property is set internal bool IsSetFilter() { return this._filter != null; } /// <summary> /// Gets and sets the property Locale. /// <para> /// The locale (language) to return information in. English (en) is the default and the /// only supported value at this time. /// </para> /// </summary> [AWSProperty(Min=2, Max=256)] public string Locale { get { return this._locale; } set { this._locale = value; } } // Check to see if Locale property is set internal bool IsSetLocale() { return this._locale != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// The maximum number of items to return in one batch, between 10 and 100, inclusive. /// </para> /// <note> /// <para> /// If you don't specify the <code>maxResults</code> parameter, this operation returns /// a maximum of 30 items by default. /// </para> /// </note> /// </summary> [AWSProperty(Min=10, Max=100)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
144
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeEventTypes operation. /// </summary> public partial class DescribeEventTypesResponse : AmazonWebServiceResponse { private List<EventType> _eventTypes = new List<EventType>(); private string _nextToken; /// <summary> /// Gets and sets the property EventTypes. /// <para> /// A list of event types that match the filter criteria. Event types have a category /// (<code>issue</code>, <code>accountNotification</code>, or <code>scheduledChange</code>), /// a service (for example, <code>EC2</code>, <code>RDS</code>, <code>DATAPIPELINE</code>, /// <code>BILLING</code>), and a code (in the format <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> /// </code>; for example, <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>). /// </para> /// </summary> public List<EventType> EventTypes { get { return this._eventTypes; } set { this._eventTypes = value; } } // Check to see if EventTypes property is set internal bool IsSetEventTypes() { return this._eventTypes != null && this._eventTypes.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// If the results of a search are large, only a portion of the results are returned, /// and a <code>nextToken</code> pagination token is returned in the response. To retrieve /// the next batch of results, reissue the search request and include the returned token. /// When all results have been returned, the response does not contain a pagination token /// value. /// </para> /// </summary> [AWSProperty(Min=4, Max=10000)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DescribeHealthServiceStatusForOrganization operation. /// This operation provides status information on enabling or disabling Health to work /// with your organization. To call this operation, you must use the organization's management /// account. /// </summary> public partial class DescribeHealthServiceStatusForOrganizationRequest : AmazonAWSHealthRequest { } }
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DescribeHealthServiceStatusForOrganization operation. /// </summary> public partial class DescribeHealthServiceStatusForOrganizationResponse : AmazonWebServiceResponse { private string _healthServiceAccessStatusForOrganization; /// <summary> /// Gets and sets the property HealthServiceAccessStatusForOrganization. /// <para> /// Information about the status of enabling or disabling the Health organizational view /// feature in your organization. /// </para> /// /// <para> /// Valid values are <code>ENABLED | DISABLED | PENDING</code>. /// </para> /// </summary> public string HealthServiceAccessStatusForOrganization { get { return this._healthServiceAccessStatusForOrganization; } set { this._healthServiceAccessStatusForOrganization = value; } } // Check to see if HealthServiceAccessStatusForOrganization property is set internal bool IsSetHealthServiceAccessStatusForOrganization() { return this._healthServiceAccessStatusForOrganization != null; } } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the DisableHealthServiceAccessForOrganization operation. /// Disables Health from working with Organizations. To call this operation, you must /// sign in to the organization's management account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating /// Health events</a> in the <i>Health User Guide</i>. /// /// /// <para> /// This operation doesn't remove the service-linked role from the management account /// in your organization. You must use the IAM console, API, or Command Line Interface /// (CLI) to remove the service-linked role. For more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/using-service-linked-roles.html#delete-service-linked-role">Deleting /// a Service-Linked Role</a> in the <i>IAM User Guide</i>. /// </para> /// <note> /// <para> /// You can also disable the organizational feature by using the Organizations <a href="https://docs.aws.amazon.com/organizations/latest/APIReference/API_DisableAWSServiceAccess.html">DisableAWSServiceAccess</a> /// API operation. After you call this operation, Health stops aggregating events for /// all other Amazon Web Services accounts in your organization. If you call the Health /// API operations for organizational view, Health returns an error. Health continues /// to aggregate health events for your Amazon Web Services account. /// </para> /// </note> /// </summary> public partial class DisableHealthServiceAccessForOrganizationRequest : AmazonAWSHealthRequest { } }
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the DisableHealthServiceAccessForOrganization operation. /// </summary> public partial class DisableHealthServiceAccessForOrganizationResponse : 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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Container for the parameters to the EnableHealthServiceAccessForOrganization operation. /// Enables Health to work with Organizations. You can use the organizational view feature /// to aggregate events from all Amazon Web Services accounts in your organization in /// a centralized location. /// /// /// <para> /// This operation also creates a service-linked role for the management account in the /// organization. /// </para> /// <note> /// <para> /// To call this operation, you must meet the following requirements: /// </para> /// <ul> <li> /// <para> /// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan from <a href="http://aws.amazon.com/premiumsupport/">Amazon /// Web Services Support</a> to use the Health API. If you call the Health API from an /// Amazon Web Services account that doesn't have a Business, Enterprise On-Ramp, or Enterprise /// Support plan, you receive a <code>SubscriptionRequiredException</code> error. /// </para> /// </li> <li> /// <para> /// You must have permission to call this operation from the organization's management /// account. For example IAM policies, see <a href="https://docs.aws.amazon.com/health/latest/ug/security_iam_id-based-policy-examples.html">Health /// identity-based policy examples</a>. /// </para> /// </li> </ul> </note> /// <para> /// If you don't have the required support plan, you can instead use the Health console /// to enable the organizational view feature. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/aggregate-events.html">Aggregating /// Health events</a> in the <i>Health User Guide</i>. /// </para> /// </summary> public partial class EnableHealthServiceAccessForOrganizationRequest : AmazonAWSHealthRequest { } }
70
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// This is the response object from the EnableHealthServiceAccessForOrganization operation. /// </summary> public partial class EnableHealthServiceAccessForOrganizationResponse : 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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// The number of entities that are affected by one or more events. Returned by the <a /// href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEntityAggregates.html">DescribeEntityAggregates</a> /// operation. /// </summary> public partial class EntityAggregate { private int? _count; private string _eventArn; /// <summary> /// Gets and sets the property Count. /// <para> /// The number of entities that match the criteria for the specified events. /// </para> /// </summary> public int Count { get { return this._count.GetValueOrDefault(); } set { this._count = value; } } // Check to see if Count property is set internal bool IsSetCount() { return this._count.HasValue; } /// <summary> /// Gets and sets the property EventArn. /// <para> /// The unique identifier for the event. The event ARN has the <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i> /// </code> format. /// </para> /// /// <para> /// For example, an event ARN might look like the following: /// </para> /// /// <para> /// <code>arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code> /// /// </para> /// </summary> [AWSProperty(Max=1600)] public string EventArn { get { return this._eventArn; } set { this._eventArn = value; } } // Check to see if EventArn property is set internal bool IsSetEventArn() { return this._eventArn != null; } } }
89
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model { /// <summary> /// The values to use to filter results from the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntities.html">DescribeAffectedEntities</a> /// operation. /// </summary> public partial class EntityFilter { private List<string> _entityArns = new List<string>(); private List<string> _entityValues = new List<string>(); private List<string> _eventArns = new List<string>(); private List<DateTimeRange> _lastUpdatedTimes = new List<DateTimeRange>(); private List<string> _statusCodes = new List<string>(); private List<Dictionary<string, string>> _tags = new List<Dictionary<string, string>>(); /// <summary> /// Gets and sets the property EntityArns. /// <para> /// A list of entity ARNs (unique identifiers). /// </para> /// </summary> [AWSProperty(Min=1, Max=99)] public List<string> EntityArns { get { return this._entityArns; } set { this._entityArns = value; } } // Check to see if EntityArns property is set internal bool IsSetEntityArns() { return this._entityArns != null && this._entityArns.Count > 0; } /// <summary> /// Gets and sets the property EntityValues. /// <para> /// A list of IDs for affected entities. /// </para> /// </summary> [AWSProperty(Min=1, Max=99)] public List<string> EntityValues { get { return this._entityValues; } set { this._entityValues = value; } } // Check to see if EntityValues property is set internal bool IsSetEntityValues() { return this._entityValues != null && this._entityValues.Count > 0; } /// <summary> /// Gets and sets the property EventArns. /// <para> /// A list of event ARNs (unique identifiers). For example: <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", /// "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code> /// /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=10)] public List<string> EventArns { get { return this._eventArns; } set { this._eventArns = value; } } // Check to see if EventArns property is set internal bool IsSetEventArns() { return this._eventArns != null && this._eventArns.Count > 0; } /// <summary> /// Gets and sets the property LastUpdatedTimes. /// <para> /// A list of the most recent dates and times that the entity was updated. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<DateTimeRange> LastUpdatedTimes { get { return this._lastUpdatedTimes; } set { this._lastUpdatedTimes = value; } } // Check to see if LastUpdatedTimes property is set internal bool IsSetLastUpdatedTimes() { return this._lastUpdatedTimes != null && this._lastUpdatedTimes.Count > 0; } /// <summary> /// Gets and sets the property StatusCodes. /// <para> /// A list of entity status codes (<code>IMPAIRED</code>, <code>UNIMPAIRED</code>, or /// <code>UNKNOWN</code>). /// </para> /// </summary> [AWSProperty(Min=1, Max=3)] public List<string> StatusCodes { get { return this._statusCodes; } set { this._statusCodes = value; } } // Check to see if StatusCodes property is set internal bool IsSetStatusCodes() { return this._statusCodes != null && this._statusCodes.Count > 0; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A map of entity tags attached to the affected entity. /// </para> /// <note> /// <para> /// Currently, the <code>tags</code> property isn't supported. /// </para> /// </note> /// </summary> [AWSProperty(Max=50)] public List<Dictionary<string, string>> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
167
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Summary information about an Health event. /// /// /// <para> /// Health events can be public or account-specific: /// </para> /// <ul> <li> /// <para> /// <i>Public events</i> might be service events that are not specific to an Amazon Web /// Services account. For example, if there is an issue with an Amazon Web Services Region, /// Health provides information about the event, even if you don't use services or resources /// in that Region. /// </para> /// </li> <li> /// <para> /// <i>Account-specific</i> events are specific to either your Amazon Web Services account /// or an account in your organization. For example, if there's an issue with Amazon Elastic /// Compute Cloud in a Region that you use, Health provides information about the event /// and the affected resources in the account. /// </para> /// </li> </ul> /// <para> /// You can determine if an event is public or account-specific by using the <code>eventScopeCode</code> /// parameter. For more information, see <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html#AWSHealth-Type-Event-eventScopeCode">eventScopeCode</a>. /// </para> /// </summary> public partial class Event { private string _arn; private string _availabilityZone; private DateTime? _endTime; private EventScopeCode _eventScopeCode; private EventTypeCategory _eventTypeCategory; private string _eventTypeCode; private DateTime? _lastUpdatedTime; private string _region; private string _service; private DateTime? _startTime; private EventStatusCode _statusCode; /// <summary> /// Gets and sets the property Arn. /// <para> /// The unique identifier for the event. The event ARN has the <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i> /// </code> format. /// </para> /// /// <para> /// For example, an event ARN might look like the following: /// </para> /// /// <para> /// <code>arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code> /// /// </para> /// </summary> [AWSProperty(Max=1600)] 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; } /// <summary> /// Gets and sets the property AvailabilityZone. /// <para> /// The Amazon Web Services Availability Zone of the event. For example, us-east-1a. /// </para> /// </summary> [AWSProperty(Min=6, Max=18)] public string AvailabilityZone { get { return this._availabilityZone; } set { this._availabilityZone = value; } } // Check to see if AvailabilityZone property is set internal bool IsSetAvailabilityZone() { return this._availabilityZone != null; } /// <summary> /// Gets and sets the property EndTime. /// <para> /// The date and time that the event ended. /// </para> /// </summary> public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// <summary> /// Gets and sets the property EventScopeCode. /// <para> /// This parameter specifies if the Health event is a public Amazon Web Service event /// or an account-specific event. /// </para> /// <ul> <li> /// <para> /// If the <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the <code>affectedAccounts</code> /// value is always empty. /// </para> /// </li> <li> /// <para> /// If the <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the /// <code>affectedAccounts</code> value lists the affected Amazon Web Services accounts /// in your organization. For example, if an event affects a service such as Amazon Elastic /// Compute Cloud and you have Amazon Web Services accounts that use that service, those /// account IDs appear in the response. /// </para> /// </li> <li> /// <para> /// If the <code>eventScopeCode</code> value is <code>NONE</code>, then the <code>eventArn</code> /// that you specified in the request is invalid or doesn't exist. /// </para> /// </li> </ul> /// </summary> public EventScopeCode EventScopeCode { get { return this._eventScopeCode; } set { this._eventScopeCode = value; } } // Check to see if EventScopeCode property is set internal bool IsSetEventScopeCode() { return this._eventScopeCode != null; } /// <summary> /// Gets and sets the property EventTypeCategory. /// <para> /// A list of event type category codes. Possible values are <code>issue</code>, <code>accountNotification</code>, /// or <code>scheduledChange</code>. Currently, the <code>investigation</code> value isn't /// supported at this time. /// </para> /// </summary> [AWSProperty(Min=3, Max=255)] public EventTypeCategory EventTypeCategory { get { return this._eventTypeCategory; } set { this._eventTypeCategory = value; } } // Check to see if EventTypeCategory property is set internal bool IsSetEventTypeCategory() { return this._eventTypeCategory != null; } /// <summary> /// Gets and sets the property EventTypeCode. /// <para> /// The unique identifier for the event type. The format is <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> /// </code>; for example, <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>. /// </para> /// </summary> [AWSProperty(Min=3, Max=100)] public string EventTypeCode { get { return this._eventTypeCode; } set { this._eventTypeCode = value; } } // Check to see if EventTypeCode property is set internal bool IsSetEventTypeCode() { return this._eventTypeCode != null; } /// <summary> /// Gets and sets the property LastUpdatedTime. /// <para> /// The most recent date and time that the event was updated. /// </para> /// </summary> public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// <summary> /// Gets and sets the property Region. /// <para> /// The Amazon Web Services Region name of the event. /// </para> /// </summary> [AWSProperty(Min=2, Max=25)] public string Region { get { return this._region; } set { this._region = value; } } // Check to see if Region property is set internal bool IsSetRegion() { return this._region != null; } /// <summary> /// Gets and sets the property Service. /// <para> /// The Amazon Web Service that is affected by the event. For example, <code>EC2</code>, /// <code>RDS</code>. /// </para> /// </summary> [AWSProperty(Min=2, Max=30)] public string Service { get { return this._service; } set { this._service = value; } } // Check to see if Service property is set internal bool IsSetService() { return this._service != null; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The date and time that the event began. /// </para> /// </summary> public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The most recent status of the event. Possible values are <code>open</code>, <code>closed</code>, /// and <code>upcoming</code>. /// </para> /// </summary> public EventStatusCode StatusCode { get { return this._statusCode; } set { this._statusCode = value; } } // Check to see if StatusCode property is set internal bool IsSetStatusCode() { return this._statusCode != null; } } }
312
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// The values used to filter results from the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a> /// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a> /// operations. /// </summary> public partial class EventAccountFilter { private string _awsAccountId; private string _eventArn; /// <summary> /// Gets and sets the property AwsAccountId. /// <para> /// The 12-digit Amazon Web Services account numbers that contains the affected entities. /// </para> /// </summary> [AWSProperty(Max=12)] public string AwsAccountId { get { return this._awsAccountId; } set { this._awsAccountId = value; } } // Check to see if AwsAccountId property is set internal bool IsSetAwsAccountId() { return this._awsAccountId != null; } /// <summary> /// Gets and sets the property EventArn. /// <para> /// The unique identifier for the event. The event ARN has the <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i> /// </code> format. /// </para> /// /// <para> /// For example, an event ARN might look like the following: /// </para> /// /// <para> /// <code>arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code> /// /// </para> /// </summary> [AWSProperty(Required=true, Max=1600)] public string EventArn { get { return this._eventArn; } set { this._eventArn = value; } } // Check to see if EventArn property is set internal bool IsSetEventArn() { return this._eventArn != null; } } }
90
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model { /// <summary> /// The number of events of each issue type. Returned by the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventAggregates.html">DescribeEventAggregates</a> /// operation. /// </summary> public partial class EventAggregate { private string _aggregateValue; private int? _count; /// <summary> /// Gets and sets the property AggregateValue. /// <para> /// The issue type for the associated count. /// </para> /// </summary> public string AggregateValue { get { return this._aggregateValue; } set { this._aggregateValue = value; } } // Check to see if AggregateValue property is set internal bool IsSetAggregateValue() { return this._aggregateValue != null; } /// <summary> /// Gets and sets the property Count. /// <para> /// The number of events of the associated issue type. /// </para> /// </summary> public int Count { get { return this._count.GetValueOrDefault(); } set { this._count = value; } } // Check to see if Count property is set internal bool IsSetCount() { return this._count.HasValue; } } }
77
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// The detailed description of the event. Included in the information returned by the /// <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a> /// operation. /// </summary> public partial class EventDescription { private string _latestDescription; /// <summary> /// Gets and sets the property LatestDescription. /// <para> /// The most recent description of the event. /// </para> /// </summary> public string LatestDescription { get { return this._latestDescription; } set { this._latestDescription = value; } } // Check to see if LatestDescription property is set internal bool IsSetLatestDescription() { return this._latestDescription != null; } } }
59
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Detailed information about an event. A combination of an <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a> /// object, an <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventDescription.html">EventDescription</a> /// object, and additional metadata about the event. Returned by the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a> /// operation. /// </summary> public partial class EventDetails { private Event _event; private EventDescription _eventDescription; private Dictionary<string, string> _eventMetadata = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Event. /// <para> /// Summary information about the event. /// </para> /// </summary> public Event Event { get { return this._event; } set { this._event = value; } } // Check to see if Event property is set internal bool IsSetEvent() { return this._event != null; } /// <summary> /// Gets and sets the property EventDescription. /// <para> /// The most recent description of the event. /// </para> /// </summary> public EventDescription EventDescription { get { return this._eventDescription; } set { this._eventDescription = value; } } // Check to see if EventDescription property is set internal bool IsSetEventDescription() { return this._eventDescription != null; } /// <summary> /// Gets and sets the property EventMetadata. /// <para> /// Additional metadata about the event. /// </para> /// </summary> public Dictionary<string, string> EventMetadata { get { return this._eventMetadata; } set { this._eventMetadata = value; } } // Check to see if EventMetadata property is set internal bool IsSetEventMetadata() { return this._eventMetadata != null && this._eventMetadata.Count > 0; } } }
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Error information returned when a <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetails.html">DescribeEventDetails</a> /// operation can't find a specified event. /// </summary> public partial class EventDetailsErrorItem { private string _errorMessage; private string _errorName; private string _eventArn; /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// A message that describes the error. /// </para> /// </summary> 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 ErrorName. /// <para> /// The name of the error. /// </para> /// </summary> public string ErrorName { get { return this._errorName; } set { this._errorName = value; } } // Check to see if ErrorName property is set internal bool IsSetErrorName() { return this._errorName != null; } /// <summary> /// Gets and sets the property EventArn. /// <para> /// The unique identifier for the event. The event ARN has the <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i> /// </code> format. /// </para> /// /// <para> /// For example, an event ARN might look like the following: /// </para> /// /// <para> /// <code>arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code> /// /// </para> /// </summary> [AWSProperty(Max=1600)] public string EventArn { get { return this._eventArn; } set { this._eventArn = value; } } // Check to see if EventArn property is set internal bool IsSetEventArn() { return this._eventArn != null; } } }
107
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model { /// <summary> /// The values to use to filter results from the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEvents.html">DescribeEvents</a> /// and <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventAggregates.html">DescribeEventAggregates</a> /// operations. /// </summary> public partial class EventFilter { private List<string> _availabilityZones = new List<string>(); private List<DateTimeRange> _endTimes = new List<DateTimeRange>(); private List<string> _entityArns = new List<string>(); private List<string> _entityValues = new List<string>(); private List<string> _eventArns = new List<string>(); private List<string> _eventStatusCodes = new List<string>(); private List<string> _eventTypeCategories = new List<string>(); private List<string> _eventTypeCodes = new List<string>(); private List<DateTimeRange> _lastUpdatedTimes = new List<DateTimeRange>(); private List<string> _regions = new List<string>(); private List<string> _services = new List<string>(); private List<DateTimeRange> _startTimes = new List<DateTimeRange>(); private List<Dictionary<string, string>> _tags = new List<Dictionary<string, string>>(); /// <summary> /// Gets and sets the property AvailabilityZones. /// <para> /// A list of Amazon Web Services Availability Zones. /// </para> /// </summary> public List<string> AvailabilityZones { get { return this._availabilityZones; } set { this._availabilityZones = value; } } // Check to see if AvailabilityZones property is set internal bool IsSetAvailabilityZones() { return this._availabilityZones != null && this._availabilityZones.Count > 0; } /// <summary> /// Gets and sets the property EndTimes. /// <para> /// A list of dates and times that the event ended. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<DateTimeRange> EndTimes { get { return this._endTimes; } set { this._endTimes = value; } } // Check to see if EndTimes property is set internal bool IsSetEndTimes() { return this._endTimes != null && this._endTimes.Count > 0; } /// <summary> /// Gets and sets the property EntityArns. /// <para> /// A list of entity ARNs (unique identifiers). /// </para> /// </summary> [AWSProperty(Min=1, Max=99)] public List<string> EntityArns { get { return this._entityArns; } set { this._entityArns = value; } } // Check to see if EntityArns property is set internal bool IsSetEntityArns() { return this._entityArns != null && this._entityArns.Count > 0; } /// <summary> /// Gets and sets the property EntityValues. /// <para> /// A list of entity identifiers, such as EC2 instance IDs (<code>i-34ab692e</code>) or /// EBS volumes (<code>vol-426ab23e</code>). /// </para> /// </summary> [AWSProperty(Min=1, Max=99)] public List<string> EntityValues { get { return this._entityValues; } set { this._entityValues = value; } } // Check to see if EntityValues property is set internal bool IsSetEntityValues() { return this._entityValues != null && this._entityValues.Count > 0; } /// <summary> /// Gets and sets the property EventArns. /// <para> /// A list of event ARNs (unique identifiers). For example: <code>"arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-CDE456", /// "arn:aws:health:us-west-1::event/EBS/AWS_EBS_LOST_VOLUME/AWS_EBS_LOST_VOLUME_CHI789_JKL101"</code> /// /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> EventArns { get { return this._eventArns; } set { this._eventArns = value; } } // Check to see if EventArns property is set internal bool IsSetEventArns() { return this._eventArns != null && this._eventArns.Count > 0; } /// <summary> /// Gets and sets the property EventStatusCodes. /// <para> /// A list of event status codes. /// </para> /// </summary> [AWSProperty(Min=1, Max=6)] public List<string> EventStatusCodes { get { return this._eventStatusCodes; } set { this._eventStatusCodes = value; } } // Check to see if EventStatusCodes property is set internal bool IsSetEventStatusCodes() { return this._eventStatusCodes != null && this._eventStatusCodes.Count > 0; } /// <summary> /// Gets and sets the property EventTypeCategories. /// <para> /// A list of event type category codes. Possible values are <code>issue</code>, <code>accountNotification</code>, /// or <code>scheduledChange</code>. Currently, the <code>investigation</code> value isn't /// supported at this time. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> EventTypeCategories { get { return this._eventTypeCategories; } set { this._eventTypeCategories = value; } } // Check to see if EventTypeCategories property is set internal bool IsSetEventTypeCategories() { return this._eventTypeCategories != null && this._eventTypeCategories.Count > 0; } /// <summary> /// Gets and sets the property EventTypeCodes. /// <para> /// A list of unique identifiers for event types. For example, <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code> /// /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> EventTypeCodes { get { return this._eventTypeCodes; } set { this._eventTypeCodes = value; } } // Check to see if EventTypeCodes property is set internal bool IsSetEventTypeCodes() { return this._eventTypeCodes != null && this._eventTypeCodes.Count > 0; } /// <summary> /// Gets and sets the property LastUpdatedTimes. /// <para> /// A list of dates and times that the event was last updated. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<DateTimeRange> LastUpdatedTimes { get { return this._lastUpdatedTimes; } set { this._lastUpdatedTimes = value; } } // Check to see if LastUpdatedTimes property is set internal bool IsSetLastUpdatedTimes() { return this._lastUpdatedTimes != null && this._lastUpdatedTimes.Count > 0; } /// <summary> /// Gets and sets the property Regions. /// <para> /// A list of Amazon Web Services Regions. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> Regions { get { return this._regions; } set { this._regions = value; } } // Check to see if Regions property is set internal bool IsSetRegions() { return this._regions != null && this._regions.Count > 0; } /// <summary> /// Gets and sets the property Services. /// <para> /// The Amazon Web Services associated with the event. For example, <code>EC2</code>, /// <code>RDS</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> Services { get { return this._services; } set { this._services = value; } } // Check to see if Services property is set internal bool IsSetServices() { return this._services != null && this._services.Count > 0; } /// <summary> /// Gets and sets the property StartTimes. /// <para> /// A list of dates and times that the event began. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<DateTimeRange> StartTimes { get { return this._startTimes; } set { this._startTimes = value; } } // Check to see if StartTimes property is set internal bool IsSetStartTimes() { return this._startTimes != null && this._startTimes.Count > 0; } /// <summary> /// Gets and sets the property Tags. /// <para> /// A map of entity tags attached to the affected entity. /// </para> /// <note> /// <para> /// Currently, the <code>tags</code> property isn't supported. /// </para> /// </note> /// </summary> [AWSProperty(Max=50)] public List<Dictionary<string, string>> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
311
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Contains the metadata about a type of event that is reported by Health. The <code>EventType</code> /// shows the category, service, and the event type code of the event. For example, an /// <code>issue</code> might be the category, <code>EC2</code> the service, and <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code> /// the event type code. /// /// /// <para> /// You can use the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventTypes.html">DescribeEventTypes</a> /// API operation to return this information about an event. /// </para> /// /// <para> /// You can also use the Amazon CloudWatch Events console to create a rule so that you /// can get notified or take action when Health delivers a specific event to your Amazon /// Web Services account. For more information, see <a href="https://docs.aws.amazon.com/health/latest/ug/cloudwatch-events-health.html">Monitor /// for Health events with Amazon CloudWatch Events</a> in the <i>Health User Guide</i>. /// </para> /// </summary> public partial class EventType { private EventTypeCategory _category; private string _code; private string _service; /// <summary> /// Gets and sets the property Category. /// <para> /// A list of event type category codes. Possible values are <code>issue</code>, <code>accountNotification</code>, /// or <code>scheduledChange</code>. Currently, the <code>investigation</code> value isn't /// supported at this time. /// </para> /// </summary> [AWSProperty(Min=3, Max=255)] public EventTypeCategory Category { get { return this._category; } set { this._category = value; } } // Check to see if Category property is set internal bool IsSetCategory() { return this._category != null; } /// <summary> /// Gets and sets the property Code. /// <para> /// The unique identifier for the event type. The format is <code>AWS_<i>SERVICE</i>_<i>DESCRIPTION</i> /// </code>; for example, <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>. /// </para> /// </summary> [AWSProperty(Min=3, Max=100)] public string Code { get { return this._code; } set { this._code = value; } } // Check to see if Code property is set internal bool IsSetCode() { return this._code != null; } /// <summary> /// Gets and sets the property Service. /// <para> /// The Amazon Web Service that is affected by the event. For example, <code>EC2</code>, /// <code>RDS</code>. /// </para> /// </summary> [AWSProperty(Min=2, Max=30)] public string Service { get { return this._service; } set { this._service = value; } } // Check to see if Service property is set internal bool IsSetService() { return this._service != null; } } }
118
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model { /// <summary> /// The values to use to filter results from the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventTypes.html">DescribeEventTypes</a> /// operation. /// </summary> public partial class EventTypeFilter { private List<string> _eventTypeCategories = new List<string>(); private List<string> _eventTypeCodes = new List<string>(); private List<string> _services = new List<string>(); /// <summary> /// Gets and sets the property EventTypeCategories. /// <para> /// A list of event type category codes. Possible values are <code>issue</code>, <code>accountNotification</code>, /// or <code>scheduledChange</code>. Currently, the <code>investigation</code> value isn't /// supported at this time. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> EventTypeCategories { get { return this._eventTypeCategories; } set { this._eventTypeCategories = value; } } // Check to see if EventTypeCategories property is set internal bool IsSetEventTypeCategories() { return this._eventTypeCategories != null && this._eventTypeCategories.Count > 0; } /// <summary> /// Gets and sets the property EventTypeCodes. /// <para> /// A list of event type codes. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> EventTypeCodes { get { return this._eventTypeCodes; } set { this._eventTypeCodes = value; } } // Check to see if EventTypeCodes property is set internal bool IsSetEventTypeCodes() { return this._eventTypeCodes != null && this._eventTypeCodes.Count > 0; } /// <summary> /// Gets and sets the property Services. /// <para> /// The Amazon Web Services associated with the event. For example, <code>EC2</code>, /// <code>RDS</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> Services { get { return this._services; } set { this._services = value; } } // Check to see if Services property is set internal bool IsSetServices() { return this._services != null && this._services.Count > 0; } } }
102
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// The specified pagination token (<code>nextToken</code>) is not valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidPaginationTokenException : AmazonAWSHealthException { /// <summary> /// Constructs a new InvalidPaginationTokenException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidPaginationTokenException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidPaginationTokenException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidPaginationTokenException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidPaginationTokenException /// </summary> /// <param name="innerException"></param> public InvalidPaginationTokenException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidPaginationTokenException /// </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 InvalidPaginationTokenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidPaginationTokenException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidPaginationTokenException(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 InvalidPaginationTokenException 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 InvalidPaginationTokenException(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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Error information returned when a <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeAffectedEntitiesForOrganization.html">DescribeAffectedEntitiesForOrganization</a> /// operation can't find or process a specific entity. /// </summary> public partial class OrganizationAffectedEntitiesErrorItem { private string _awsAccountId; private string _errorMessage; private string _errorName; private string _eventArn; /// <summary> /// Gets and sets the property AwsAccountId. /// <para> /// The 12-digit Amazon Web Services account numbers that contains the affected entities. /// </para> /// </summary> [AWSProperty(Max=12)] public string AwsAccountId { get { return this._awsAccountId; } set { this._awsAccountId = value; } } // Check to see if AwsAccountId property is set internal bool IsSetAwsAccountId() { return this._awsAccountId != null; } /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// A message that describes the error. Follow the error message and retry your request. /// </para> /// /// <para> /// For example, the <code>InvalidAccountInputError</code> error message appears if you /// call the <code>DescribeAffectedEntitiesForOrganization</code> operation and specify /// the <code>AccountSpecific</code> value for the <code>EventScopeCode</code> parameter, /// but don't specify an Amazon Web Services account. /// </para> /// </summary> 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 ErrorName. /// <para> /// The name of the error. /// </para> /// </summary> public string ErrorName { get { return this._errorName; } set { this._errorName = value; } } // Check to see if ErrorName property is set internal bool IsSetErrorName() { return this._errorName != null; } /// <summary> /// Gets and sets the property EventArn. /// <para> /// The unique identifier for the event. The event ARN has the <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i> /// </code> format. /// </para> /// /// <para> /// For example, an event ARN might look like the following: /// </para> /// /// <para> /// <code>arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code> /// /// </para> /// </summary> [AWSProperty(Max=1600)] public string EventArn { get { return this._eventArn; } set { this._eventArn = value; } } // Check to see if EventArn property is set internal bool IsSetEventArn() { return this._eventArn != null; } } }
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Summary information about an event, returned by the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventsForOrganization.html">DescribeEventsForOrganization</a> /// operation. /// </summary> public partial class OrganizationEvent { private string _arn; private DateTime? _endTime; private EventScopeCode _eventScopeCode; private EventTypeCategory _eventTypeCategory; private string _eventTypeCode; private DateTime? _lastUpdatedTime; private string _region; private string _service; private DateTime? _startTime; private EventStatusCode _statusCode; /// <summary> /// Gets and sets the property Arn. /// <para> /// The unique identifier for the event. The event ARN has the <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i> /// </code> format. /// </para> /// /// <para> /// For example, an event ARN might look like the following: /// </para> /// /// <para> /// <code>arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code> /// /// </para> /// </summary> [AWSProperty(Max=1600)] 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; } /// <summary> /// Gets and sets the property EndTime. /// <para> /// The date and time that the event ended. /// </para> /// </summary> public DateTime EndTime { get { return this._endTime.GetValueOrDefault(); } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime.HasValue; } /// <summary> /// Gets and sets the property EventScopeCode. /// <para> /// This parameter specifies if the Health event is a public Amazon Web Service event /// or an account-specific event. /// </para> /// <ul> <li> /// <para> /// If the <code>eventScopeCode</code> value is <code>PUBLIC</code>, then the <code>affectedAccounts</code> /// value is always empty. /// </para> /// </li> <li> /// <para> /// If the <code>eventScopeCode</code> value is <code>ACCOUNT_SPECIFIC</code>, then the /// <code>affectedAccounts</code> value lists the affected Amazon Web Services accounts /// in your organization. For example, if an event affects a service such as Amazon Elastic /// Compute Cloud and you have Amazon Web Services accounts that use that service, those /// account IDs appear in the response. /// </para> /// </li> <li> /// <para> /// If the <code>eventScopeCode</code> value is <code>NONE</code>, then the <code>eventArn</code> /// that you specified in the request is invalid or doesn't exist. /// </para> /// </li> </ul> /// </summary> public EventScopeCode EventScopeCode { get { return this._eventScopeCode; } set { this._eventScopeCode = value; } } // Check to see if EventScopeCode property is set internal bool IsSetEventScopeCode() { return this._eventScopeCode != null; } /// <summary> /// Gets and sets the property EventTypeCategory. /// <para> /// A list of event type category codes. Possible values are <code>issue</code>, <code>accountNotification</code>, /// or <code>scheduledChange</code>. Currently, the <code>investigation</code> value isn't /// supported at this time. /// </para> /// </summary> [AWSProperty(Min=3, Max=255)] public EventTypeCategory EventTypeCategory { get { return this._eventTypeCategory; } set { this._eventTypeCategory = value; } } // Check to see if EventTypeCategory property is set internal bool IsSetEventTypeCategory() { return this._eventTypeCategory != null; } /// <summary> /// Gets and sets the property EventTypeCode. /// <para> /// The unique identifier for the event type. The format is <code>AWS_SERVICE_DESCRIPTION</code>. /// For example, <code>AWS_EC2_SYSTEM_MAINTENANCE_EVENT</code>. /// </para> /// </summary> [AWSProperty(Min=3, Max=100)] public string EventTypeCode { get { return this._eventTypeCode; } set { this._eventTypeCode = value; } } // Check to see if EventTypeCode property is set internal bool IsSetEventTypeCode() { return this._eventTypeCode != null; } /// <summary> /// Gets and sets the property LastUpdatedTime. /// <para> /// The most recent date and time that the event was updated. /// </para> /// </summary> public DateTime LastUpdatedTime { get { return this._lastUpdatedTime.GetValueOrDefault(); } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime.HasValue; } /// <summary> /// Gets and sets the property Region. /// <para> /// The Amazon Web Services Region name of the event. /// </para> /// </summary> [AWSProperty(Min=2, Max=25)] public string Region { get { return this._region; } set { this._region = value; } } // Check to see if Region property is set internal bool IsSetRegion() { return this._region != null; } /// <summary> /// Gets and sets the property Service. /// <para> /// The Amazon Web Service that is affected by the event, such as EC2 and RDS. /// </para> /// </summary> [AWSProperty(Min=2, Max=30)] public string Service { get { return this._service; } set { this._service = value; } } // Check to see if Service property is set internal bool IsSetService() { return this._service != null; } /// <summary> /// Gets and sets the property StartTime. /// <para> /// The date and time that the event began. /// </para> /// </summary> public DateTime StartTime { get { return this._startTime.GetValueOrDefault(); } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime.HasValue; } /// <summary> /// Gets and sets the property StatusCode. /// <para> /// The most recent status of the event. Possible values are <code>open</code>, <code>closed</code>, /// and <code>upcoming</code>. /// </para> /// </summary> public EventStatusCode StatusCode { get { return this._statusCode; } set { this._statusCode = value; } } // Check to see if StatusCode property is set internal bool IsSetStatusCode() { return this._statusCode != null; } } }
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Detailed information about an event. A combination of an <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_Event.html">Event</a> /// object, an <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_EventDescription.html">EventDescription</a> /// object, and additional metadata about the event. Returned by the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a> /// operation. /// </summary> public partial class OrganizationEventDetails { private string _awsAccountId; private Event _event; private EventDescription _eventDescription; private Dictionary<string, string> _eventMetadata = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property AwsAccountId. /// <para> /// The 12-digit Amazon Web Services account numbers that contains the affected entities. /// </para> /// </summary> [AWSProperty(Max=12)] public string AwsAccountId { get { return this._awsAccountId; } set { this._awsAccountId = value; } } // Check to see if AwsAccountId property is set internal bool IsSetAwsAccountId() { return this._awsAccountId != null; } /// <summary> /// Gets and sets the property Event. /// </summary> public Event Event { get { return this._event; } set { this._event = value; } } // Check to see if Event property is set internal bool IsSetEvent() { return this._event != null; } /// <summary> /// Gets and sets the property EventDescription. /// </summary> public EventDescription EventDescription { get { return this._eventDescription; } set { this._eventDescription = value; } } // Check to see if EventDescription property is set internal bool IsSetEventDescription() { return this._eventDescription != null; } /// <summary> /// Gets and sets the property EventMetadata. /// <para> /// Additional metadata about the event. /// </para> /// </summary> public Dictionary<string, string> EventMetadata { get { return this._eventMetadata; } set { this._eventMetadata = value; } } // Check to see if EventMetadata property is set internal bool IsSetEventMetadata() { return this._eventMetadata != null && this._eventMetadata.Count > 0; } } }
112
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model { /// <summary> /// Error information returned when a <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a> /// operation can't find a specified event. /// </summary> public partial class OrganizationEventDetailsErrorItem { private string _awsAccountId; private string _errorMessage; private string _errorName; private string _eventArn; /// <summary> /// Gets and sets the property AwsAccountId. /// <para> /// Error information returned when a <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventDetailsForOrganization.html">DescribeEventDetailsForOrganization</a> /// operation can't find a specified event. /// </para> /// </summary> [AWSProperty(Max=12)] public string AwsAccountId { get { return this._awsAccountId; } set { this._awsAccountId = value; } } // Check to see if AwsAccountId property is set internal bool IsSetAwsAccountId() { return this._awsAccountId != null; } /// <summary> /// Gets and sets the property ErrorMessage. /// <para> /// A message that describes the error. /// </para> /// /// <para> /// If you call the <code>DescribeEventDetailsForOrganization</code> operation and receive /// one of the following errors, follow the recommendations in the message: /// </para> /// <ul> <li> /// <para> /// We couldn't find a public event that matches your request. To find an event that is /// account specific, you must enter an Amazon Web Services account ID in the request. /// </para> /// </li> <li> /// <para> /// We couldn't find an account specific event for the specified Amazon Web Services account. /// To find an event that is public, you must enter a null value for the Amazon Web Services /// account ID in the request. /// </para> /// </li> <li> /// <para> /// Your Amazon Web Services account doesn't include the Amazon Web Services Support plan /// required to use the Health API. You must have either a Business, Enterprise On-Ramp, /// or Enterprise Support plan. /// </para> /// </li> </ul> /// </summary> 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 ErrorName. /// <para> /// The name of the error. /// </para> /// </summary> public string ErrorName { get { return this._errorName; } set { this._errorName = value; } } // Check to see if ErrorName property is set internal bool IsSetErrorName() { return this._errorName != null; } /// <summary> /// Gets and sets the property EventArn. /// <para> /// The unique identifier for the event. The event ARN has the <code>arn:aws:health:<i>event-region</i>::event/<i>SERVICE</i>/<i>EVENT_TYPE_CODE</i>/<i>EVENT_TYPE_PLUS_ID</i> /// </code> format. /// </para> /// /// <para> /// For example, an event ARN might look like the following: /// </para> /// /// <para> /// <code>arn:aws:health:us-east-1::event/EC2/EC2_INSTANCE_RETIREMENT_SCHEDULED/EC2_INSTANCE_RETIREMENT_SCHEDULED_ABC123-DEF456</code> /// /// </para> /// </summary> [AWSProperty(Max=1600)] public string EventArn { get { return this._eventArn; } set { this._eventArn = value; } } // Check to see if EventArn property is set internal bool IsSetEventArn() { return this._eventArn != null; } } }
151
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// The values to filter results from the <a href="https://docs.aws.amazon.com/health/latest/APIReference/API_DescribeEventsForOrganization.html">DescribeEventsForOrganization</a> /// operation. /// </summary> public partial class OrganizationEventFilter { private List<string> _awsAccountIds = new List<string>(); private DateTimeRange _endTime; private List<string> _entityArns = new List<string>(); private List<string> _entityValues = new List<string>(); private List<string> _eventStatusCodes = new List<string>(); private List<string> _eventTypeCategories = new List<string>(); private List<string> _eventTypeCodes = new List<string>(); private DateTimeRange _lastUpdatedTime; private List<string> _regions = new List<string>(); private List<string> _services = new List<string>(); private DateTimeRange _startTime; /// <summary> /// Gets and sets the property AwsAccountIds. /// <para> /// A list of 12-digit Amazon Web Services account numbers that contains the affected /// entities. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<string> AwsAccountIds { get { return this._awsAccountIds; } set { this._awsAccountIds = value; } } // Check to see if AwsAccountIds property is set internal bool IsSetAwsAccountIds() { return this._awsAccountIds != null && this._awsAccountIds.Count > 0; } /// <summary> /// Gets and sets the property EndTime. /// </summary> public DateTimeRange EndTime { get { return this._endTime; } set { this._endTime = value; } } // Check to see if EndTime property is set internal bool IsSetEndTime() { return this._endTime != null; } /// <summary> /// Gets and sets the property EntityArns. /// <para> /// A list of entity ARNs (unique identifiers). /// </para> /// </summary> [AWSProperty(Min=1, Max=99)] public List<string> EntityArns { get { return this._entityArns; } set { this._entityArns = value; } } // Check to see if EntityArns property is set internal bool IsSetEntityArns() { return this._entityArns != null && this._entityArns.Count > 0; } /// <summary> /// Gets and sets the property EntityValues. /// <para> /// A list of entity identifiers, such as EC2 instance IDs (i-34ab692e) or EBS volumes /// (vol-426ab23e). /// </para> /// </summary> [AWSProperty(Min=1, Max=99)] public List<string> EntityValues { get { return this._entityValues; } set { this._entityValues = value; } } // Check to see if EntityValues property is set internal bool IsSetEntityValues() { return this._entityValues != null && this._entityValues.Count > 0; } /// <summary> /// Gets and sets the property EventStatusCodes. /// <para> /// A list of event status codes. /// </para> /// </summary> [AWSProperty(Min=1, Max=6)] public List<string> EventStatusCodes { get { return this._eventStatusCodes; } set { this._eventStatusCodes = value; } } // Check to see if EventStatusCodes property is set internal bool IsSetEventStatusCodes() { return this._eventStatusCodes != null && this._eventStatusCodes.Count > 0; } /// <summary> /// Gets and sets the property EventTypeCategories. /// <para> /// A list of event type category codes. Possible values are <code>issue</code>, <code>accountNotification</code>, /// or <code>scheduledChange</code>. Currently, the <code>investigation</code> value isn't /// supported at this time. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> EventTypeCategories { get { return this._eventTypeCategories; } set { this._eventTypeCategories = value; } } // Check to see if EventTypeCategories property is set internal bool IsSetEventTypeCategories() { return this._eventTypeCategories != null && this._eventTypeCategories.Count > 0; } /// <summary> /// Gets and sets the property EventTypeCodes. /// <para> /// A list of unique identifiers for event types. For example, <code>"AWS_EC2_SYSTEM_MAINTENANCE_EVENT","AWS_RDS_MAINTENANCE_SCHEDULED".</code> /// /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> EventTypeCodes { get { return this._eventTypeCodes; } set { this._eventTypeCodes = value; } } // Check to see if EventTypeCodes property is set internal bool IsSetEventTypeCodes() { return this._eventTypeCodes != null && this._eventTypeCodes.Count > 0; } /// <summary> /// Gets and sets the property LastUpdatedTime. /// </summary> public DateTimeRange LastUpdatedTime { get { return this._lastUpdatedTime; } set { this._lastUpdatedTime = value; } } // Check to see if LastUpdatedTime property is set internal bool IsSetLastUpdatedTime() { return this._lastUpdatedTime != null; } /// <summary> /// Gets and sets the property Regions. /// <para> /// A list of Amazon Web Services Regions. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> Regions { get { return this._regions; } set { this._regions = value; } } // Check to see if Regions property is set internal bool IsSetRegions() { return this._regions != null && this._regions.Count > 0; } /// <summary> /// Gets and sets the property Services. /// <para> /// The Amazon Web Services associated with the event. For example, <code>EC2</code>, /// <code>RDS</code>. /// </para> /// </summary> [AWSProperty(Min=1, Max=10)] public List<string> Services { get { return this._services; } set { this._services = value; } } // Check to see if Services property is set internal bool IsSetServices() { return this._services != null && this._services.Count > 0; } /// <summary> /// Gets and sets the property StartTime. /// </summary> public DateTimeRange StartTime { get { return this._startTime; } set { this._startTime = value; } } // Check to see if StartTime property is set internal bool IsSetStartTime() { return this._startTime != null; } } }
253
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 health-2016-08-04.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.AWSHealth.Model { /// <summary> /// The specified locale is not supported. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class UnsupportedLocaleException : AmazonAWSHealthException { /// <summary> /// Constructs a new UnsupportedLocaleException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public UnsupportedLocaleException(string message) : base(message) {} /// <summary> /// Construct instance of UnsupportedLocaleException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public UnsupportedLocaleException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of UnsupportedLocaleException /// </summary> /// <param name="innerException"></param> public UnsupportedLocaleException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of UnsupportedLocaleException /// </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 UnsupportedLocaleException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of UnsupportedLocaleException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public UnsupportedLocaleException(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 UnsupportedLocaleException 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 UnsupportedLocaleException(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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AffectedEntity Object /// </summary> public class AffectedEntityUnmarshaller : IUnmarshaller<AffectedEntity, XmlUnmarshallerContext>, IUnmarshaller<AffectedEntity, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AffectedEntity IUnmarshaller<AffectedEntity, 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 AffectedEntity Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AffectedEntity unmarshalledObject = new AffectedEntity(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("awsAccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsAccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("entityArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EntityArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("entityUrl", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EntityUrl = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("entityValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EntityValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AffectedEntityUnmarshaller _instance = new AffectedEntityUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AffectedEntityUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConcurrentModificationException Object /// </summary> public class ConcurrentModificationExceptionUnmarshaller : IErrorResponseUnmarshaller<ConcurrentModificationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConcurrentModificationException 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 ConcurrentModificationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConcurrentModificationException unmarshalledObject = new ConcurrentModificationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ConcurrentModificationExceptionUnmarshaller _instance = new ConcurrentModificationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConcurrentModificationExceptionUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DateTimeRange Marshaller /// </summary> public class DateTimeRangeMarshaller : IRequestMarshaller<DateTimeRange, 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(DateTimeRange requestObject, JsonMarshallerContext context) { if(requestObject.IsSetFrom()) { context.Writer.WritePropertyName("from"); context.Writer.Write(requestObject.From); } if(requestObject.IsSetTo()) { context.Writer.WritePropertyName("to"); context.Writer.Write(requestObject.To); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DateTimeRangeMarshaller Instance = new DateTimeRangeMarshaller(); } }
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeAffectedAccountsForOrganization Request Marshaller /// </summary> public class DescribeAffectedAccountsForOrganizationRequestMarshaller : IMarshaller<IRequest, DescribeAffectedAccountsForOrganizationRequest> , 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((DescribeAffectedAccountsForOrganizationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeAffectedAccountsForOrganizationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeAffectedAccountsForOrganization"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetEventArn()) { context.Writer.WritePropertyName("eventArn"); context.Writer.Write(publicRequest.EventArn); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeAffectedAccountsForOrganizationRequestMarshaller _instance = new DescribeAffectedAccountsForOrganizationRequestMarshaller(); internal static DescribeAffectedAccountsForOrganizationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeAffectedAccountsForOrganizationRequestMarshaller Instance { get { return _instance; } } } }
115
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeAffectedAccountsForOrganization operation /// </summary> public class DescribeAffectedAccountsForOrganizationResponseUnmarshaller : 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) { DescribeAffectedAccountsForOrganizationResponse response = new DescribeAffectedAccountsForOrganizationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("affectedAccounts", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); response.AffectedAccounts = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventScopeCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.EventScopeCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidPaginationToken")) { return InvalidPaginationTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeAffectedAccountsForOrganizationResponseUnmarshaller _instance = new DescribeAffectedAccountsForOrganizationResponseUnmarshaller(); internal static DescribeAffectedAccountsForOrganizationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeAffectedAccountsForOrganizationResponseUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeAffectedEntitiesForOrganization Request Marshaller /// </summary> public class DescribeAffectedEntitiesForOrganizationRequestMarshaller : IMarshaller<IRequest, DescribeAffectedEntitiesForOrganizationRequest> , 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((DescribeAffectedEntitiesForOrganizationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeAffectedEntitiesForOrganizationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeAffectedEntitiesForOrganization"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetLocale()) { context.Writer.WritePropertyName("locale"); context.Writer.Write(publicRequest.Locale); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } if(publicRequest.IsSetOrganizationEntityFilters()) { context.Writer.WritePropertyName("organizationEntityFilters"); context.Writer.WriteArrayStart(); foreach(var publicRequestOrganizationEntityFiltersListValue in publicRequest.OrganizationEntityFilters) { context.Writer.WriteObjectStart(); var marshaller = EventAccountFilterMarshaller.Instance; marshaller.Marshall(publicRequestOrganizationEntityFiltersListValue, 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 DescribeAffectedEntitiesForOrganizationRequestMarshaller _instance = new DescribeAffectedEntitiesForOrganizationRequestMarshaller(); internal static DescribeAffectedEntitiesForOrganizationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeAffectedEntitiesForOrganizationRequestMarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeAffectedEntitiesForOrganization operation /// </summary> public class DescribeAffectedEntitiesForOrganizationResponseUnmarshaller : 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) { DescribeAffectedEntitiesForOrganizationResponse response = new DescribeAffectedEntitiesForOrganizationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("entities", targetDepth)) { var unmarshaller = new ListUnmarshaller<AffectedEntity, AffectedEntityUnmarshaller>(AffectedEntityUnmarshaller.Instance); response.Entities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("failedSet", targetDepth)) { var unmarshaller = new ListUnmarshaller<OrganizationAffectedEntitiesErrorItem, OrganizationAffectedEntitiesErrorItemUnmarshaller>(OrganizationAffectedEntitiesErrorItemUnmarshaller.Instance); response.FailedSet = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidPaginationToken")) { return InvalidPaginationTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedLocale")) { return UnsupportedLocaleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeAffectedEntitiesForOrganizationResponseUnmarshaller _instance = new DescribeAffectedEntitiesForOrganizationResponseUnmarshaller(); internal static DescribeAffectedEntitiesForOrganizationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeAffectedEntitiesForOrganizationResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeAffectedEntities Request Marshaller /// </summary> public class DescribeAffectedEntitiesRequestMarshaller : IMarshaller<IRequest, DescribeAffectedEntitiesRequest> , 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((DescribeAffectedEntitiesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeAffectedEntitiesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeAffectedEntities"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFilter()) { context.Writer.WritePropertyName("filter"); context.Writer.WriteObjectStart(); var marshaller = EntityFilterMarshaller.Instance; marshaller.Marshall(publicRequest.Filter, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetLocale()) { context.Writer.WritePropertyName("locale"); context.Writer.Write(publicRequest.Locale); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeAffectedEntitiesRequestMarshaller _instance = new DescribeAffectedEntitiesRequestMarshaller(); internal static DescribeAffectedEntitiesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeAffectedEntitiesRequestMarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeAffectedEntities operation /// </summary> public class DescribeAffectedEntitiesResponseUnmarshaller : 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) { DescribeAffectedEntitiesResponse response = new DescribeAffectedEntitiesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("entities", targetDepth)) { var unmarshaller = new ListUnmarshaller<AffectedEntity, AffectedEntityUnmarshaller>(AffectedEntityUnmarshaller.Instance); response.Entities = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidPaginationToken")) { return InvalidPaginationTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedLocale")) { return UnsupportedLocaleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeAffectedEntitiesResponseUnmarshaller _instance = new DescribeAffectedEntitiesResponseUnmarshaller(); internal static DescribeAffectedEntitiesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeAffectedEntitiesResponseUnmarshaller Instance { get { return _instance; } } } }
120
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeEntityAggregates Request Marshaller /// </summary> public class DescribeEntityAggregatesRequestMarshaller : IMarshaller<IRequest, DescribeEntityAggregatesRequest> , 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((DescribeEntityAggregatesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeEntityAggregatesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeEntityAggregates"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetEventArns()) { context.Writer.WritePropertyName("eventArns"); context.Writer.WriteArrayStart(); foreach(var publicRequestEventArnsListValue in publicRequest.EventArns) { context.Writer.Write(publicRequestEventArnsListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeEntityAggregatesRequestMarshaller _instance = new DescribeEntityAggregatesRequestMarshaller(); internal static DescribeEntityAggregatesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEntityAggregatesRequestMarshaller Instance { get { return _instance; } } } }
108
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeEntityAggregates operation /// </summary> public class DescribeEntityAggregatesResponseUnmarshaller : 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) { DescribeEntityAggregatesResponse response = new DescribeEntityAggregatesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("entityAggregates", targetDepth)) { var unmarshaller = new ListUnmarshaller<EntityAggregate, EntityAggregateUnmarshaller>(EntityAggregateUnmarshaller.Instance); response.EntityAggregates = 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)) { } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeEntityAggregatesResponseUnmarshaller _instance = new DescribeEntityAggregatesResponseUnmarshaller(); internal static DescribeEntityAggregatesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEntityAggregatesResponseUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeEventAggregates Request Marshaller /// </summary> public class DescribeEventAggregatesRequestMarshaller : IMarshaller<IRequest, DescribeEventAggregatesRequest> , 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((DescribeEventAggregatesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeEventAggregatesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeEventAggregates"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetAggregateField()) { context.Writer.WritePropertyName("aggregateField"); context.Writer.Write(publicRequest.AggregateField); } if(publicRequest.IsSetFilter()) { context.Writer.WritePropertyName("filter"); context.Writer.WriteObjectStart(); var marshaller = EventFilterMarshaller.Instance; marshaller.Marshall(publicRequest.Filter, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeEventAggregatesRequestMarshaller _instance = new DescribeEventAggregatesRequestMarshaller(); internal static DescribeEventAggregatesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventAggregatesRequestMarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeEventAggregates operation /// </summary> public class DescribeEventAggregatesResponseUnmarshaller : 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) { DescribeEventAggregatesResponse response = new DescribeEventAggregatesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("eventAggregates", targetDepth)) { var unmarshaller = new ListUnmarshaller<EventAggregate, EventAggregateUnmarshaller>(EventAggregateUnmarshaller.Instance); response.EventAggregates = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidPaginationToken")) { return InvalidPaginationTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeEventAggregatesResponseUnmarshaller _instance = new DescribeEventAggregatesResponseUnmarshaller(); internal static DescribeEventAggregatesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventAggregatesResponseUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeEventDetailsForOrganization Request Marshaller /// </summary> public class DescribeEventDetailsForOrganizationRequestMarshaller : IMarshaller<IRequest, DescribeEventDetailsForOrganizationRequest> , 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((DescribeEventDetailsForOrganizationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeEventDetailsForOrganizationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeEventDetailsForOrganization"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetLocale()) { context.Writer.WritePropertyName("locale"); context.Writer.Write(publicRequest.Locale); } if(publicRequest.IsSetOrganizationEventDetailFilters()) { context.Writer.WritePropertyName("organizationEventDetailFilters"); context.Writer.WriteArrayStart(); foreach(var publicRequestOrganizationEventDetailFiltersListValue in publicRequest.OrganizationEventDetailFilters) { context.Writer.WriteObjectStart(); var marshaller = EventAccountFilterMarshaller.Instance; marshaller.Marshall(publicRequestOrganizationEventDetailFiltersListValue, 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 DescribeEventDetailsForOrganizationRequestMarshaller _instance = new DescribeEventDetailsForOrganizationRequestMarshaller(); internal static DescribeEventDetailsForOrganizationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventDetailsForOrganizationRequestMarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeEventDetailsForOrganization operation /// </summary> public class DescribeEventDetailsForOrganizationResponseUnmarshaller : 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) { DescribeEventDetailsForOrganizationResponse response = new DescribeEventDetailsForOrganizationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("failedSet", targetDepth)) { var unmarshaller = new ListUnmarshaller<OrganizationEventDetailsErrorItem, OrganizationEventDetailsErrorItemUnmarshaller>(OrganizationEventDetailsErrorItemUnmarshaller.Instance); response.FailedSet = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("successfulSet", targetDepth)) { var unmarshaller = new ListUnmarshaller<OrganizationEventDetails, OrganizationEventDetailsUnmarshaller>(OrganizationEventDetailsUnmarshaller.Instance); response.SuccessfulSet = 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("UnsupportedLocale")) { return UnsupportedLocaleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeEventDetailsForOrganizationResponseUnmarshaller _instance = new DescribeEventDetailsForOrganizationResponseUnmarshaller(); internal static DescribeEventDetailsForOrganizationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventDetailsForOrganizationResponseUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeEventDetails Request Marshaller /// </summary> public class DescribeEventDetailsRequestMarshaller : IMarshaller<IRequest, DescribeEventDetailsRequest> , 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((DescribeEventDetailsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeEventDetailsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeEventDetails"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetEventArns()) { context.Writer.WritePropertyName("eventArns"); context.Writer.WriteArrayStart(); foreach(var publicRequestEventArnsListValue in publicRequest.EventArns) { context.Writer.Write(publicRequestEventArnsListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetLocale()) { context.Writer.WritePropertyName("locale"); context.Writer.Write(publicRequest.Locale); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeEventDetailsRequestMarshaller _instance = new DescribeEventDetailsRequestMarshaller(); internal static DescribeEventDetailsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventDetailsRequestMarshaller Instance { get { return _instance; } } } }
114
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeEventDetails operation /// </summary> public class DescribeEventDetailsResponseUnmarshaller : 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) { DescribeEventDetailsResponse response = new DescribeEventDetailsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("failedSet", targetDepth)) { var unmarshaller = new ListUnmarshaller<EventDetailsErrorItem, EventDetailsErrorItemUnmarshaller>(EventDetailsErrorItemUnmarshaller.Instance); response.FailedSet = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("successfulSet", targetDepth)) { var unmarshaller = new ListUnmarshaller<EventDetails, EventDetailsUnmarshaller>(EventDetailsUnmarshaller.Instance); response.SuccessfulSet = 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("UnsupportedLocale")) { return UnsupportedLocaleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeEventDetailsResponseUnmarshaller _instance = new DescribeEventDetailsResponseUnmarshaller(); internal static DescribeEventDetailsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventDetailsResponseUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeEventsForOrganization Request Marshaller /// </summary> public class DescribeEventsForOrganizationRequestMarshaller : IMarshaller<IRequest, DescribeEventsForOrganizationRequest> , 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((DescribeEventsForOrganizationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeEventsForOrganizationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeEventsForOrganization"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFilter()) { context.Writer.WritePropertyName("filter"); context.Writer.WriteObjectStart(); var marshaller = OrganizationEventFilterMarshaller.Instance; marshaller.Marshall(publicRequest.Filter, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetLocale()) { context.Writer.WritePropertyName("locale"); context.Writer.Write(publicRequest.Locale); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeEventsForOrganizationRequestMarshaller _instance = new DescribeEventsForOrganizationRequestMarshaller(); internal static DescribeEventsForOrganizationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventsForOrganizationRequestMarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeEventsForOrganization operation /// </summary> public class DescribeEventsForOrganizationResponseUnmarshaller : 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) { DescribeEventsForOrganizationResponse response = new DescribeEventsForOrganizationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("events", targetDepth)) { var unmarshaller = new ListUnmarshaller<OrganizationEvent, OrganizationEventUnmarshaller>(OrganizationEventUnmarshaller.Instance); response.Events = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidPaginationToken")) { return InvalidPaginationTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedLocale")) { return UnsupportedLocaleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeEventsForOrganizationResponseUnmarshaller _instance = new DescribeEventsForOrganizationResponseUnmarshaller(); internal static DescribeEventsForOrganizationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventsForOrganizationResponseUnmarshaller Instance { get { return _instance; } } } }
120
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeEvents Request Marshaller /// </summary> public class DescribeEventsRequestMarshaller : IMarshaller<IRequest, DescribeEventsRequest> , 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((DescribeEventsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeEventsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeEvents"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFilter()) { context.Writer.WritePropertyName("filter"); context.Writer.WriteObjectStart(); var marshaller = EventFilterMarshaller.Instance; marshaller.Marshall(publicRequest.Filter, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetLocale()) { context.Writer.WritePropertyName("locale"); context.Writer.Write(publicRequest.Locale); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeEventsRequestMarshaller _instance = new DescribeEventsRequestMarshaller(); internal static DescribeEventsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventsRequestMarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeEvents operation /// </summary> public class DescribeEventsResponseUnmarshaller : 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) { DescribeEventsResponse response = new DescribeEventsResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("events", targetDepth)) { var unmarshaller = new ListUnmarshaller<Event, EventUnmarshaller>(EventUnmarshaller.Instance); response.Events = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidPaginationToken")) { return InvalidPaginationTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedLocale")) { return UnsupportedLocaleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeEventsResponseUnmarshaller _instance = new DescribeEventsResponseUnmarshaller(); internal static DescribeEventsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventsResponseUnmarshaller Instance { get { return _instance; } } } }
120
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeEventTypes Request Marshaller /// </summary> public class DescribeEventTypesRequestMarshaller : IMarshaller<IRequest, DescribeEventTypesRequest> , 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((DescribeEventTypesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeEventTypesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeEventTypes"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetFilter()) { context.Writer.WritePropertyName("filter"); context.Writer.WriteObjectStart(); var marshaller = EventTypeFilterMarshaller.Instance; marshaller.Marshall(publicRequest.Filter, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetLocale()) { context.Writer.WritePropertyName("locale"); context.Writer.Write(publicRequest.Locale); } if(publicRequest.IsSetMaxResults()) { context.Writer.WritePropertyName("maxResults"); context.Writer.Write(publicRequest.MaxResults); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("nextToken"); context.Writer.Write(publicRequest.NextToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeEventTypesRequestMarshaller _instance = new DescribeEventTypesRequestMarshaller(); internal static DescribeEventTypesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventTypesRequestMarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeEventTypes operation /// </summary> public class DescribeEventTypesResponseUnmarshaller : 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) { DescribeEventTypesResponse response = new DescribeEventTypesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("eventTypes", targetDepth)) { var unmarshaller = new ListUnmarshaller<EventType, EventTypeUnmarshaller>(EventTypeUnmarshaller.Instance); response.EventTypes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("nextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidPaginationToken")) { return InvalidPaginationTokenExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("UnsupportedLocale")) { return UnsupportedLocaleExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeEventTypesResponseUnmarshaller _instance = new DescribeEventTypesResponseUnmarshaller(); internal static DescribeEventTypesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeEventTypesResponseUnmarshaller Instance { get { return _instance; } } } }
120
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DescribeHealthServiceStatusForOrganization Request Marshaller /// </summary> public class DescribeHealthServiceStatusForOrganizationRequestMarshaller : IMarshaller<IRequest, DescribeHealthServiceStatusForOrganizationRequest> , 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((DescribeHealthServiceStatusForOrganizationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeHealthServiceStatusForOrganizationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DescribeHealthServiceStatusForOrganization"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; var content = "{}"; request.Content = System.Text.Encoding.UTF8.GetBytes(content); return request; } private static DescribeHealthServiceStatusForOrganizationRequestMarshaller _instance = new DescribeHealthServiceStatusForOrganizationRequestMarshaller(); internal static DescribeHealthServiceStatusForOrganizationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeHealthServiceStatusForOrganizationRequestMarshaller Instance { get { return _instance; } } } }
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeHealthServiceStatusForOrganization operation /// </summary> public class DescribeHealthServiceStatusForOrganizationResponseUnmarshaller : 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) { DescribeHealthServiceStatusForOrganizationResponse response = new DescribeHealthServiceStatusForOrganizationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("healthServiceAccessStatusForOrganization", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.HealthServiceAccessStatusForOrganization = 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)) { } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeHealthServiceStatusForOrganizationResponseUnmarshaller _instance = new DescribeHealthServiceStatusForOrganizationResponseUnmarshaller(); internal static DescribeHealthServiceStatusForOrganizationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeHealthServiceStatusForOrganizationResponseUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// DisableHealthServiceAccessForOrganization Request Marshaller /// </summary> public class DisableHealthServiceAccessForOrganizationRequestMarshaller : IMarshaller<IRequest, DisableHealthServiceAccessForOrganizationRequest> , 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((DisableHealthServiceAccessForOrganizationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DisableHealthServiceAccessForOrganizationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.DisableHealthServiceAccessForOrganization"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; var content = "{}"; request.Content = System.Text.Encoding.UTF8.GetBytes(content); return request; } private static DisableHealthServiceAccessForOrganizationRequestMarshaller _instance = new DisableHealthServiceAccessForOrganizationRequestMarshaller(); internal static DisableHealthServiceAccessForOrganizationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DisableHealthServiceAccessForOrganizationRequestMarshaller Instance { get { return _instance; } } } }
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DisableHealthServiceAccessForOrganization operation /// </summary> public class DisableHealthServiceAccessForOrganizationResponseUnmarshaller : 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) { DisableHealthServiceAccessForOrganizationResponse response = new DisableHealthServiceAccessForOrganizationResponse(); 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("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DisableHealthServiceAccessForOrganizationResponseUnmarshaller _instance = new DisableHealthServiceAccessForOrganizationResponseUnmarshaller(); internal static DisableHealthServiceAccessForOrganizationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DisableHealthServiceAccessForOrganizationResponseUnmarshaller Instance { get { return _instance; } } } }
99
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// EnableHealthServiceAccessForOrganization Request Marshaller /// </summary> public class EnableHealthServiceAccessForOrganizationRequestMarshaller : IMarshaller<IRequest, EnableHealthServiceAccessForOrganizationRequest> , 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((EnableHealthServiceAccessForOrganizationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(EnableHealthServiceAccessForOrganizationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSHealth"); string target = "AWSHealth_20160804.EnableHealthServiceAccessForOrganization"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2016-08-04"; request.HttpMethod = "POST"; request.ResourcePath = "/"; var content = "{}"; request.Content = System.Text.Encoding.UTF8.GetBytes(content); return request; } private static EnableHealthServiceAccessForOrganizationRequestMarshaller _instance = new EnableHealthServiceAccessForOrganizationRequestMarshaller(); internal static EnableHealthServiceAccessForOrganizationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static EnableHealthServiceAccessForOrganizationRequestMarshaller Instance { get { return _instance; } } } }
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EnableHealthServiceAccessForOrganization operation /// </summary> public class EnableHealthServiceAccessForOrganizationResponseUnmarshaller : 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) { EnableHealthServiceAccessForOrganizationResponse response = new EnableHealthServiceAccessForOrganizationResponse(); 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("ConcurrentModificationException")) { return ConcurrentModificationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAWSHealthException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static EnableHealthServiceAccessForOrganizationResponseUnmarshaller _instance = new EnableHealthServiceAccessForOrganizationResponseUnmarshaller(); internal static EnableHealthServiceAccessForOrganizationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static EnableHealthServiceAccessForOrganizationResponseUnmarshaller Instance { get { return _instance; } } } }
99
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EntityAggregate Object /// </summary> public class EntityAggregateUnmarshaller : IUnmarshaller<EntityAggregate, XmlUnmarshallerContext>, IUnmarshaller<EntityAggregate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EntityAggregate IUnmarshaller<EntityAggregate, 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 EntityAggregate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EntityAggregate unmarshalledObject = new EntityAggregate(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("count", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Count = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EntityAggregateUnmarshaller _instance = new EntityAggregateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EntityAggregateUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// EntityFilter Marshaller /// </summary> public class EntityFilterMarshaller : IRequestMarshaller<EntityFilter, 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(EntityFilter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEntityArns()) { context.Writer.WritePropertyName("entityArns"); context.Writer.WriteArrayStart(); foreach(var requestObjectEntityArnsListValue in requestObject.EntityArns) { context.Writer.Write(requestObjectEntityArnsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEntityValues()) { context.Writer.WritePropertyName("entityValues"); context.Writer.WriteArrayStart(); foreach(var requestObjectEntityValuesListValue in requestObject.EntityValues) { context.Writer.Write(requestObjectEntityValuesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEventArns()) { context.Writer.WritePropertyName("eventArns"); context.Writer.WriteArrayStart(); foreach(var requestObjectEventArnsListValue in requestObject.EventArns) { context.Writer.Write(requestObjectEventArnsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetLastUpdatedTimes()) { context.Writer.WritePropertyName("lastUpdatedTimes"); context.Writer.WriteArrayStart(); foreach(var requestObjectLastUpdatedTimesListValue in requestObject.LastUpdatedTimes) { context.Writer.WriteObjectStart(); var marshaller = DateTimeRangeMarshaller.Instance; marshaller.Marshall(requestObjectLastUpdatedTimesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetStatusCodes()) { context.Writer.WritePropertyName("statusCodes"); context.Writer.WriteArrayStart(); foreach(var requestObjectStatusCodesListValue in requestObject.StatusCodes) { context.Writer.Write(requestObjectStatusCodesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteArrayStart(); foreach(var requestObjectTagsListValue in requestObject.Tags) { context.Writer.WriteObjectStart(); foreach (var requestObjectTagsListValueKvp in requestObjectTagsListValue) { context.Writer.WritePropertyName(requestObjectTagsListValueKvp.Key); var requestObjectTagsListValueValue = requestObjectTagsListValueKvp.Value; context.Writer.Write(requestObjectTagsListValueValue); } context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EntityFilterMarshaller Instance = new EntityFilterMarshaller(); } }
135
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// EventAccountFilter Marshaller /// </summary> public class EventAccountFilterMarshaller : IRequestMarshaller<EventAccountFilter, 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(EventAccountFilter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAwsAccountId()) { context.Writer.WritePropertyName("awsAccountId"); context.Writer.Write(requestObject.AwsAccountId); } if(requestObject.IsSetEventArn()) { context.Writer.WritePropertyName("eventArn"); context.Writer.Write(requestObject.EventArn); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EventAccountFilterMarshaller Instance = new EventAccountFilterMarshaller(); } }
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EventAggregate Object /// </summary> public class EventAggregateUnmarshaller : IUnmarshaller<EventAggregate, XmlUnmarshallerContext>, IUnmarshaller<EventAggregate, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EventAggregate IUnmarshaller<EventAggregate, 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 EventAggregate Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EventAggregate unmarshalledObject = new EventAggregate(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("aggregateValue", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AggregateValue = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("count", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.Count = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EventAggregateUnmarshaller _instance = new EventAggregateUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EventAggregateUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EventDescription Object /// </summary> public class EventDescriptionUnmarshaller : IUnmarshaller<EventDescription, XmlUnmarshallerContext>, IUnmarshaller<EventDescription, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EventDescription IUnmarshaller<EventDescription, 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 EventDescription Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EventDescription unmarshalledObject = new EventDescription(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("latestDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LatestDescription = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EventDescriptionUnmarshaller _instance = new EventDescriptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EventDescriptionUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EventDetailsErrorItem Object /// </summary> public class EventDetailsErrorItemUnmarshaller : IUnmarshaller<EventDetailsErrorItem, XmlUnmarshallerContext>, IUnmarshaller<EventDetailsErrorItem, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EventDetailsErrorItem IUnmarshaller<EventDetailsErrorItem, 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 EventDetailsErrorItem Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EventDetailsErrorItem unmarshalledObject = new EventDetailsErrorItem(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EventDetailsErrorItemUnmarshaller _instance = new EventDetailsErrorItemUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EventDetailsErrorItemUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EventDetails Object /// </summary> public class EventDetailsUnmarshaller : IUnmarshaller<EventDetails, XmlUnmarshallerContext>, IUnmarshaller<EventDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EventDetails IUnmarshaller<EventDetails, 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 EventDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EventDetails unmarshalledObject = new EventDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("event", targetDepth)) { var unmarshaller = EventUnmarshaller.Instance; unmarshalledObject.Event = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventDescription", targetDepth)) { var unmarshaller = EventDescriptionUnmarshaller.Instance; unmarshalledObject.EventDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventMetadata", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.EventMetadata = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EventDetailsUnmarshaller _instance = new EventDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EventDetailsUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// EventFilter Marshaller /// </summary> public class EventFilterMarshaller : IRequestMarshaller<EventFilter, 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(EventFilter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAvailabilityZones()) { context.Writer.WritePropertyName("availabilityZones"); context.Writer.WriteArrayStart(); foreach(var requestObjectAvailabilityZonesListValue in requestObject.AvailabilityZones) { context.Writer.Write(requestObjectAvailabilityZonesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEndTimes()) { context.Writer.WritePropertyName("endTimes"); context.Writer.WriteArrayStart(); foreach(var requestObjectEndTimesListValue in requestObject.EndTimes) { context.Writer.WriteObjectStart(); var marshaller = DateTimeRangeMarshaller.Instance; marshaller.Marshall(requestObjectEndTimesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEntityArns()) { context.Writer.WritePropertyName("entityArns"); context.Writer.WriteArrayStart(); foreach(var requestObjectEntityArnsListValue in requestObject.EntityArns) { context.Writer.Write(requestObjectEntityArnsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEntityValues()) { context.Writer.WritePropertyName("entityValues"); context.Writer.WriteArrayStart(); foreach(var requestObjectEntityValuesListValue in requestObject.EntityValues) { context.Writer.Write(requestObjectEntityValuesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEventArns()) { context.Writer.WritePropertyName("eventArns"); context.Writer.WriteArrayStart(); foreach(var requestObjectEventArnsListValue in requestObject.EventArns) { context.Writer.Write(requestObjectEventArnsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEventStatusCodes()) { context.Writer.WritePropertyName("eventStatusCodes"); context.Writer.WriteArrayStart(); foreach(var requestObjectEventStatusCodesListValue in requestObject.EventStatusCodes) { context.Writer.Write(requestObjectEventStatusCodesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEventTypeCategories()) { context.Writer.WritePropertyName("eventTypeCategories"); context.Writer.WriteArrayStart(); foreach(var requestObjectEventTypeCategoriesListValue in requestObject.EventTypeCategories) { context.Writer.Write(requestObjectEventTypeCategoriesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEventTypeCodes()) { context.Writer.WritePropertyName("eventTypeCodes"); context.Writer.WriteArrayStart(); foreach(var requestObjectEventTypeCodesListValue in requestObject.EventTypeCodes) { context.Writer.Write(requestObjectEventTypeCodesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetLastUpdatedTimes()) { context.Writer.WritePropertyName("lastUpdatedTimes"); context.Writer.WriteArrayStart(); foreach(var requestObjectLastUpdatedTimesListValue in requestObject.LastUpdatedTimes) { context.Writer.WriteObjectStart(); var marshaller = DateTimeRangeMarshaller.Instance; marshaller.Marshall(requestObjectLastUpdatedTimesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetRegions()) { context.Writer.WritePropertyName("regions"); context.Writer.WriteArrayStart(); foreach(var requestObjectRegionsListValue in requestObject.Regions) { context.Writer.Write(requestObjectRegionsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetServices()) { context.Writer.WritePropertyName("services"); context.Writer.WriteArrayStart(); foreach(var requestObjectServicesListValue in requestObject.Services) { context.Writer.Write(requestObjectServicesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetStartTimes()) { context.Writer.WritePropertyName("startTimes"); context.Writer.WriteArrayStart(); foreach(var requestObjectStartTimesListValue in requestObject.StartTimes) { context.Writer.WriteObjectStart(); var marshaller = DateTimeRangeMarshaller.Instance; marshaller.Marshall(requestObjectStartTimesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetTags()) { context.Writer.WritePropertyName("tags"); context.Writer.WriteArrayStart(); foreach(var requestObjectTagsListValue in requestObject.Tags) { context.Writer.WriteObjectStart(); foreach (var requestObjectTagsListValueKvp in requestObjectTagsListValue) { context.Writer.WritePropertyName(requestObjectTagsListValueKvp.Key); var requestObjectTagsListValueValue = requestObjectTagsListValueKvp.Value; context.Writer.Write(requestObjectTagsListValueValue); } context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EventFilterMarshaller Instance = new EventFilterMarshaller(); } }
222
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// EventTypeFilter Marshaller /// </summary> public class EventTypeFilterMarshaller : IRequestMarshaller<EventTypeFilter, 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(EventTypeFilter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEventTypeCategories()) { context.Writer.WritePropertyName("eventTypeCategories"); context.Writer.WriteArrayStart(); foreach(var requestObjectEventTypeCategoriesListValue in requestObject.EventTypeCategories) { context.Writer.Write(requestObjectEventTypeCategoriesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEventTypeCodes()) { context.Writer.WritePropertyName("eventTypeCodes"); context.Writer.WriteArrayStart(); foreach(var requestObjectEventTypeCodesListValue in requestObject.EventTypeCodes) { context.Writer.Write(requestObjectEventTypeCodesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetServices()) { context.Writer.WritePropertyName("services"); context.Writer.WriteArrayStart(); foreach(var requestObjectServicesListValue in requestObject.Services) { context.Writer.Write(requestObjectServicesListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static EventTypeFilterMarshaller Instance = new EventTypeFilterMarshaller(); } }
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for EventType Object /// </summary> public class EventTypeUnmarshaller : IUnmarshaller<EventType, XmlUnmarshallerContext>, IUnmarshaller<EventType, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> EventType IUnmarshaller<EventType, 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 EventType Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; EventType unmarshalledObject = new EventType(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("category", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Category = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("code", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Code = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("service", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Service = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EventTypeUnmarshaller _instance = new EventTypeUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EventTypeUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Event Object /// </summary> public class EventUnmarshaller : IUnmarshaller<Event, XmlUnmarshallerContext>, IUnmarshaller<Event, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Event IUnmarshaller<Event, 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 Event Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Event unmarshalledObject = new Event(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("availabilityZone", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AvailabilityZone = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("endTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.EndTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventScopeCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventScopeCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventTypeCategory", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventTypeCategory = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventTypeCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventTypeCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("region", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Region = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("service", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Service = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusCode = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static EventUnmarshaller _instance = new EventUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static EventUnmarshaller Instance { get { return _instance; } } } }
152
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidPaginationTokenException Object /// </summary> public class InvalidPaginationTokenExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidPaginationTokenException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidPaginationTokenException 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 InvalidPaginationTokenException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidPaginationTokenException unmarshalledObject = new InvalidPaginationTokenException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidPaginationTokenExceptionUnmarshaller _instance = new InvalidPaginationTokenExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidPaginationTokenExceptionUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for OrganizationAffectedEntitiesErrorItem Object /// </summary> public class OrganizationAffectedEntitiesErrorItemUnmarshaller : IUnmarshaller<OrganizationAffectedEntitiesErrorItem, XmlUnmarshallerContext>, IUnmarshaller<OrganizationAffectedEntitiesErrorItem, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> OrganizationAffectedEntitiesErrorItem IUnmarshaller<OrganizationAffectedEntitiesErrorItem, 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 OrganizationAffectedEntitiesErrorItem Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; OrganizationAffectedEntitiesErrorItem unmarshalledObject = new OrganizationAffectedEntitiesErrorItem(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("awsAccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsAccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static OrganizationAffectedEntitiesErrorItemUnmarshaller _instance = new OrganizationAffectedEntitiesErrorItemUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OrganizationAffectedEntitiesErrorItemUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for OrganizationEventDetailsErrorItem Object /// </summary> public class OrganizationEventDetailsErrorItemUnmarshaller : IUnmarshaller<OrganizationEventDetailsErrorItem, XmlUnmarshallerContext>, IUnmarshaller<OrganizationEventDetailsErrorItem, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> OrganizationEventDetailsErrorItem IUnmarshaller<OrganizationEventDetailsErrorItem, 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 OrganizationEventDetailsErrorItem Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; OrganizationEventDetailsErrorItem unmarshalledObject = new OrganizationEventDetailsErrorItem(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("awsAccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsAccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventArn = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static OrganizationEventDetailsErrorItemUnmarshaller _instance = new OrganizationEventDetailsErrorItemUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OrganizationEventDetailsErrorItemUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for OrganizationEventDetails Object /// </summary> public class OrganizationEventDetailsUnmarshaller : IUnmarshaller<OrganizationEventDetails, XmlUnmarshallerContext>, IUnmarshaller<OrganizationEventDetails, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> OrganizationEventDetails IUnmarshaller<OrganizationEventDetails, 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 OrganizationEventDetails Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; OrganizationEventDetails unmarshalledObject = new OrganizationEventDetails(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("awsAccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsAccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("event", targetDepth)) { var unmarshaller = EventUnmarshaller.Instance; unmarshalledObject.Event = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventDescription", targetDepth)) { var unmarshaller = EventDescriptionUnmarshaller.Instance; unmarshalledObject.EventDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventMetadata", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.EventMetadata = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static OrganizationEventDetailsUnmarshaller _instance = new OrganizationEventDetailsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OrganizationEventDetailsUnmarshaller 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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// OrganizationEventFilter Marshaller /// </summary> public class OrganizationEventFilterMarshaller : IRequestMarshaller<OrganizationEventFilter, 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(OrganizationEventFilter requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAwsAccountIds()) { context.Writer.WritePropertyName("awsAccountIds"); context.Writer.WriteArrayStart(); foreach(var requestObjectAwsAccountIdsListValue in requestObject.AwsAccountIds) { context.Writer.Write(requestObjectAwsAccountIdsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEndTime()) { context.Writer.WritePropertyName("endTime"); context.Writer.WriteObjectStart(); var marshaller = DateTimeRangeMarshaller.Instance; marshaller.Marshall(requestObject.EndTime, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetEntityArns()) { context.Writer.WritePropertyName("entityArns"); context.Writer.WriteArrayStart(); foreach(var requestObjectEntityArnsListValue in requestObject.EntityArns) { context.Writer.Write(requestObjectEntityArnsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEntityValues()) { context.Writer.WritePropertyName("entityValues"); context.Writer.WriteArrayStart(); foreach(var requestObjectEntityValuesListValue in requestObject.EntityValues) { context.Writer.Write(requestObjectEntityValuesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEventStatusCodes()) { context.Writer.WritePropertyName("eventStatusCodes"); context.Writer.WriteArrayStart(); foreach(var requestObjectEventStatusCodesListValue in requestObject.EventStatusCodes) { context.Writer.Write(requestObjectEventStatusCodesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEventTypeCategories()) { context.Writer.WritePropertyName("eventTypeCategories"); context.Writer.WriteArrayStart(); foreach(var requestObjectEventTypeCategoriesListValue in requestObject.EventTypeCategories) { context.Writer.Write(requestObjectEventTypeCategoriesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetEventTypeCodes()) { context.Writer.WritePropertyName("eventTypeCodes"); context.Writer.WriteArrayStart(); foreach(var requestObjectEventTypeCodesListValue in requestObject.EventTypeCodes) { context.Writer.Write(requestObjectEventTypeCodesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetLastUpdatedTime()) { context.Writer.WritePropertyName("lastUpdatedTime"); context.Writer.WriteObjectStart(); var marshaller = DateTimeRangeMarshaller.Instance; marshaller.Marshall(requestObject.LastUpdatedTime, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetRegions()) { context.Writer.WritePropertyName("regions"); context.Writer.WriteArrayStart(); foreach(var requestObjectRegionsListValue in requestObject.Regions) { context.Writer.Write(requestObjectRegionsListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetServices()) { context.Writer.WritePropertyName("services"); context.Writer.WriteArrayStart(); foreach(var requestObjectServicesListValue in requestObject.Services) { context.Writer.Write(requestObjectServicesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetStartTime()) { context.Writer.WritePropertyName("startTime"); context.Writer.WriteObjectStart(); var marshaller = DateTimeRangeMarshaller.Instance; marshaller.Marshall(requestObject.StartTime, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static OrganizationEventFilterMarshaller Instance = new OrganizationEventFilterMarshaller(); } }
177
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 health-2016-08-04.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.AWSHealth.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AWSHealth.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for OrganizationEvent Object /// </summary> public class OrganizationEventUnmarshaller : IUnmarshaller<OrganizationEvent, XmlUnmarshallerContext>, IUnmarshaller<OrganizationEvent, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> OrganizationEvent IUnmarshaller<OrganizationEvent, 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 OrganizationEvent Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; OrganizationEvent unmarshalledObject = new OrganizationEvent(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("endTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.EndTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventScopeCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventScopeCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventTypeCategory", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventTypeCategory = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("eventTypeCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EventTypeCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("region", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Region = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("service", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Service = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("startTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.StartTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("statusCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.StatusCode = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static OrganizationEventUnmarshaller _instance = new OrganizationEventUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static OrganizationEventUnmarshaller Instance { get { return _instance; } } } }
146