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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Describes a standalone resource or similarly grouped resources that the application
/// is made up of.
/// </summary>
public partial class ApplicationComponent
{
private string _componentName;
private string _componentRemarks;
private Dictionary<string, Dictionary<string, string>> _detectedWorkload = new Dictionary<string, Dictionary<string, string>>();
private bool? _monitor;
private OsType _osType;
private string _resourceType;
private Tier _tier;
/// <summary>
/// Gets and sets the property ComponentName.
/// <para>
/// The name of the component.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1011)]
public string ComponentName
{
get { return this._componentName; }
set { this._componentName = value; }
}
// Check to see if ComponentName property is set
internal bool IsSetComponentName()
{
return this._componentName != null;
}
/// <summary>
/// Gets and sets the property ComponentRemarks.
/// <para>
/// If logging is supported for the resource type, indicates whether the component has
/// configured logs to be monitored.
/// </para>
/// </summary>
public string ComponentRemarks
{
get { return this._componentRemarks; }
set { this._componentRemarks = value; }
}
// Check to see if ComponentRemarks property is set
internal bool IsSetComponentRemarks()
{
return this._componentRemarks != null;
}
/// <summary>
/// Gets and sets the property DetectedWorkload.
/// <para>
/// Workloads detected in the application component.
/// </para>
/// </summary>
public Dictionary<string, Dictionary<string, string>> DetectedWorkload
{
get { return this._detectedWorkload; }
set { this._detectedWorkload = value; }
}
// Check to see if DetectedWorkload property is set
internal bool IsSetDetectedWorkload()
{
return this._detectedWorkload != null && this._detectedWorkload.Count > 0;
}
/// <summary>
/// Gets and sets the property Monitor.
/// <para>
/// Indicates whether the application component is monitored.
/// </para>
/// </summary>
public bool Monitor
{
get { return this._monitor.GetValueOrDefault(); }
set { this._monitor = value; }
}
// Check to see if Monitor property is set
internal bool IsSetMonitor()
{
return this._monitor.HasValue;
}
/// <summary>
/// Gets and sets the property OsType.
/// <para>
/// The operating system of the component.
/// </para>
/// </summary>
public OsType OsType
{
get { return this._osType; }
set { this._osType = value; }
}
// Check to see if OsType property is set
internal bool IsSetOsType()
{
return this._osType != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The resource type. Supported resource types include EC2 instances, Auto Scaling group,
/// Classic ELB, Application ELB, and SQS Queue.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
/// <summary>
/// Gets and sets the property Tier.
/// <para>
/// The stack tier of the application component.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public Tier Tier
{
get { return this._tier; }
set { this._tier = value; }
}
// Check to see if Tier property is set
internal bool IsSetTier()
{
return this._tier != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// The request is not understood by the server.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class BadRequestException : AmazonApplicationInsightsException
{
/// <summary>
/// Constructs a new BadRequestException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public BadRequestException(string message)
: base(message) {}
/// <summary>
/// Construct instance of BadRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public BadRequestException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of BadRequestException
/// </summary>
/// <param name="innerException"></param>
public BadRequestException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of BadRequestException
/// </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 BadRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of BadRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public BadRequestException(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 BadRequestException 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 BadRequestException(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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// The event information.
/// </summary>
public partial class ConfigurationEvent
{
private string _eventDetail;
private string _eventResourceName;
private ConfigurationEventResourceType _eventResourceType;
private ConfigurationEventStatus _eventStatus;
private DateTime? _eventTime;
private string _monitoredResourceARN;
/// <summary>
/// Gets and sets the property EventDetail.
/// <para>
/// The details of the event in plain text.
/// </para>
/// </summary>
public string EventDetail
{
get { return this._eventDetail; }
set { this._eventDetail = value; }
}
// Check to see if EventDetail property is set
internal bool IsSetEventDetail()
{
return this._eventDetail != null;
}
/// <summary>
/// Gets and sets the property EventResourceName.
/// <para>
/// The name of the resource Application Insights attempted to configure.
/// </para>
/// </summary>
public string EventResourceName
{
get { return this._eventResourceName; }
set { this._eventResourceName = value; }
}
// Check to see if EventResourceName property is set
internal bool IsSetEventResourceName()
{
return this._eventResourceName != null;
}
/// <summary>
/// Gets and sets the property EventResourceType.
/// <para>
/// The resource type that Application Insights attempted to configure, for example,
/// CLOUDWATCH_ALARM.
/// </para>
/// </summary>
public ConfigurationEventResourceType EventResourceType
{
get { return this._eventResourceType; }
set { this._eventResourceType = value; }
}
// Check to see if EventResourceType property is set
internal bool IsSetEventResourceType()
{
return this._eventResourceType != null;
}
/// <summary>
/// Gets and sets the property EventStatus.
/// <para>
/// The status of the configuration update event. Possible values include INFO, WARN,
/// and ERROR.
/// </para>
/// </summary>
public ConfigurationEventStatus EventStatus
{
get { return this._eventStatus; }
set { this._eventStatus = value; }
}
// Check to see if EventStatus property is set
internal bool IsSetEventStatus()
{
return this._eventStatus != null;
}
/// <summary>
/// Gets and sets the property EventTime.
/// <para>
/// The timestamp of the event.
/// </para>
/// </summary>
public DateTime EventTime
{
get { return this._eventTime.GetValueOrDefault(); }
set { this._eventTime = value; }
}
// Check to see if EventTime property is set
internal bool IsSetEventTime()
{
return this._eventTime.HasValue;
}
/// <summary>
/// Gets and sets the property MonitoredResourceARN.
/// <para>
/// The resource monitored by Application Insights.
/// </para>
/// </summary>
public string MonitoredResourceARN
{
get { return this._monitoredResourceARN; }
set { this._monitoredResourceARN = value; }
}
// Check to see if MonitoredResourceARN property is set
internal bool IsSetMonitoredResourceARN()
{
return this._monitoredResourceARN != null;
}
}
} | 154 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the CreateApplication operation.
/// Adds an application that is created from a resource group.
/// </summary>
public partial class CreateApplicationRequest : AmazonApplicationInsightsRequest
{
private bool? _autoConfigEnabled;
private bool? _autoCreate;
private bool? _cweMonitorEnabled;
private GroupingType _groupingType;
private bool? _opsCenterEnabled;
private string _opsItemSNSTopicArn;
private string _resourceGroupName;
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property AutoConfigEnabled.
/// <para>
/// Indicates whether Application Insights automatically configures unmonitored resources
/// in the resource group.
/// </para>
/// </summary>
public bool AutoConfigEnabled
{
get { return this._autoConfigEnabled.GetValueOrDefault(); }
set { this._autoConfigEnabled = value; }
}
// Check to see if AutoConfigEnabled property is set
internal bool IsSetAutoConfigEnabled()
{
return this._autoConfigEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property AutoCreate.
/// <para>
/// Configures all of the resources in the resource group by applying the recommended
/// configurations.
/// </para>
/// </summary>
public bool AutoCreate
{
get { return this._autoCreate.GetValueOrDefault(); }
set { this._autoCreate = value; }
}
// Check to see if AutoCreate property is set
internal bool IsSetAutoCreate()
{
return this._autoCreate.HasValue;
}
/// <summary>
/// Gets and sets the property CWEMonitorEnabled.
/// <para>
/// Indicates whether Application Insights can listen to CloudWatch events for the application
/// resources, such as <code>instance terminated</code>, <code>failed deployment</code>,
/// and others.
/// </para>
/// </summary>
public bool CWEMonitorEnabled
{
get { return this._cweMonitorEnabled.GetValueOrDefault(); }
set { this._cweMonitorEnabled = value; }
}
// Check to see if CWEMonitorEnabled property is set
internal bool IsSetCWEMonitorEnabled()
{
return this._cweMonitorEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property GroupingType.
/// <para>
/// Application Insights can create applications based on a resource group or on an account.
/// To create an account-based application using all of the resources in the account,
/// set this parameter to <code>ACCOUNT_BASED</code>.
/// </para>
/// </summary>
public GroupingType GroupingType
{
get { return this._groupingType; }
set { this._groupingType = value; }
}
// Check to see if GroupingType property is set
internal bool IsSetGroupingType()
{
return this._groupingType != null;
}
/// <summary>
/// Gets and sets the property OpsCenterEnabled.
/// <para>
/// When set to <code>true</code>, creates opsItems for any problems detected on an application.
///
/// </para>
/// </summary>
public bool OpsCenterEnabled
{
get { return this._opsCenterEnabled.GetValueOrDefault(); }
set { this._opsCenterEnabled = value; }
}
// Check to see if OpsCenterEnabled property is set
internal bool IsSetOpsCenterEnabled()
{
return this._opsCenterEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property OpsItemSNSTopicArn.
/// <para>
/// The SNS topic provided to Application Insights that is associated to the created
/// opsItem. Allows you to receive notifications for updates to the opsItem.
/// </para>
/// </summary>
[AWSProperty(Min=20, Max=300)]
public string OpsItemSNSTopicArn
{
get { return this._opsItemSNSTopicArn; }
set { this._opsItemSNSTopicArn = value; }
}
// Check to see if OpsItemSNSTopicArn property is set
internal bool IsSetOpsItemSNSTopicArn()
{
return this._opsItemSNSTopicArn != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// List of tags to add to the application. tag key (<code>Key</code>) and an associated
/// tag value (<code>Value</code>). The maximum length of a tag key is 128 characters.
/// The maximum length of a tag value is 256 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=200)]
public List<Tag> 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;
}
}
} | 204 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the CreateApplication operation.
/// </summary>
public partial class CreateApplicationResponse : AmazonWebServiceResponse
{
private ApplicationInfo _applicationInfo;
/// <summary>
/// Gets and sets the property ApplicationInfo.
/// <para>
/// Information about the application.
/// </para>
/// </summary>
public ApplicationInfo ApplicationInfo
{
get { return this._applicationInfo; }
set { this._applicationInfo = value; }
}
// Check to see if ApplicationInfo property is set
internal bool IsSetApplicationInfo()
{
return this._applicationInfo != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the CreateComponent operation.
/// Creates a custom component by grouping similar standalone instances to monitor.
/// </summary>
public partial class CreateComponentRequest : AmazonApplicationInsightsRequest
{
private string _componentName;
private string _resourceGroupName;
private List<string> _resourceList = new List<string>();
/// <summary>
/// Gets and sets the property ComponentName.
/// <para>
/// The name of the component.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string ComponentName
{
get { return this._componentName; }
set { this._componentName = value; }
}
// Check to see if ComponentName property is set
internal bool IsSetComponentName()
{
return this._componentName != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
/// <summary>
/// Gets and sets the property ResourceList.
/// <para>
/// The list of resource ARNs that belong to the component.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> ResourceList
{
get { return this._resourceList; }
set { this._resourceList = value; }
}
// Check to see if ResourceList property is set
internal bool IsSetResourceList()
{
return this._resourceList != null && this._resourceList.Count > 0;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the CreateComponent operation.
/// </summary>
public partial class CreateComponentResponse : 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the CreateLogPattern operation.
/// Adds an log pattern to a <code>LogPatternSet</code>.
/// </summary>
public partial class CreateLogPatternRequest : AmazonApplicationInsightsRequest
{
private string _pattern;
private string _patternName;
private string _patternSetName;
private int? _rank;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property Pattern.
/// <para>
/// The log pattern. The pattern must be DFA compatible. Patterns that utilize forward
/// lookahead or backreference constructions are not supported.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public string Pattern
{
get { return this._pattern; }
set { this._pattern = value; }
}
// Check to see if Pattern property is set
internal bool IsSetPattern()
{
return this._pattern != null;
}
/// <summary>
/// Gets and sets the property PatternName.
/// <para>
/// The name of the log pattern.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public string PatternName
{
get { return this._patternName; }
set { this._patternName = value; }
}
// Check to see if PatternName property is set
internal bool IsSetPatternName()
{
return this._patternName != null;
}
/// <summary>
/// Gets and sets the property PatternSetName.
/// <para>
/// The name of the log pattern set.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=30)]
public string PatternSetName
{
get { return this._patternSetName; }
set { this._patternSetName = value; }
}
// Check to see if PatternSetName property is set
internal bool IsSetPatternSetName()
{
return this._patternSetName != null;
}
/// <summary>
/// Gets and sets the property Rank.
/// <para>
/// Rank of the log pattern. Must be a value between <code>1</code> and <code>1,000,000</code>.
/// The patterns are sorted by rank, so we recommend that you set your highest priority
/// patterns with the lowest rank. A pattern of rank <code>1</code> will be the first
/// to get matched to a log line. A pattern of rank <code>1,000,000</code> will be last
/// to get matched. When you configure custom log patterns from the console, a <code>Low</code>
/// severity pattern translates to a <code>750,000</code> rank. A <code>Medium</code>
/// severity pattern translates to a <code>500,000</code> rank. And a <code>High</code>
/// severity pattern translates to a <code>250,000</code> rank. Rank values less than
/// <code>1</code> or greater than <code>1,000,000</code> are reserved for AWS-provided
/// patterns.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public int Rank
{
get { return this._rank.GetValueOrDefault(); }
set { this._rank = value; }
}
// Check to see if Rank property is set
internal bool IsSetRank()
{
return this._rank.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 149 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the CreateLogPattern operation.
/// </summary>
public partial class CreateLogPatternResponse : AmazonWebServiceResponse
{
private LogPattern _logPattern;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property LogPattern.
/// <para>
/// The successfully created log pattern.
/// </para>
/// </summary>
public LogPattern LogPattern
{
get { return this._logPattern; }
set { this._logPattern = value; }
}
// Check to see if LogPattern property is set
internal bool IsSetLogPattern()
{
return this._logPattern != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DeleteApplication operation.
/// Removes the specified application from monitoring. Does not delete the application.
/// </summary>
public partial class DeleteApplicationRequest : AmazonApplicationInsightsRequest
{
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DeleteApplication operation.
/// </summary>
public partial class DeleteApplicationResponse : 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DeleteComponent operation.
/// Ungroups a custom component. When you ungroup custom components, all applicable monitors
/// that are set up for the component are removed and the instances revert to their standalone
/// status.
/// </summary>
public partial class DeleteComponentRequest : AmazonApplicationInsightsRequest
{
private string _componentName;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property ComponentName.
/// <para>
/// The name of the component.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string ComponentName
{
get { return this._componentName; }
set { this._componentName = value; }
}
// Check to see if ComponentName property is set
internal bool IsSetComponentName()
{
return this._componentName != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DeleteComponent operation.
/// </summary>
public partial class DeleteComponentResponse : 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DeleteLogPattern operation.
/// Removes the specified log pattern from a <code>LogPatternSet</code>.
/// </summary>
public partial class DeleteLogPatternRequest : AmazonApplicationInsightsRequest
{
private string _patternName;
private string _patternSetName;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property PatternName.
/// <para>
/// The name of the log pattern.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public string PatternName
{
get { return this._patternName; }
set { this._patternName = value; }
}
// Check to see if PatternName property is set
internal bool IsSetPatternName()
{
return this._patternName != null;
}
/// <summary>
/// Gets and sets the property PatternSetName.
/// <para>
/// The name of the log pattern set.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=30)]
public string PatternSetName
{
get { return this._patternSetName; }
set { this._patternSetName = value; }
}
// Check to see if PatternSetName property is set
internal bool IsSetPatternSetName()
{
return this._patternSetName != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DeleteLogPattern operation.
/// </summary>
public partial class DeleteLogPatternResponse : 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DescribeApplication operation.
/// Describes the application.
/// </summary>
public partial class DescribeApplicationRequest : AmazonApplicationInsightsRequest
{
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DescribeApplication operation.
/// </summary>
public partial class DescribeApplicationResponse : AmazonWebServiceResponse
{
private ApplicationInfo _applicationInfo;
/// <summary>
/// Gets and sets the property ApplicationInfo.
/// <para>
/// Information about the application.
/// </para>
/// </summary>
public ApplicationInfo ApplicationInfo
{
get { return this._applicationInfo; }
set { this._applicationInfo = value; }
}
// Check to see if ApplicationInfo property is set
internal bool IsSetApplicationInfo()
{
return this._applicationInfo != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DescribeComponentConfigurationRecommendation operation.
/// Describes the recommended monitoring configuration of the component.
/// </summary>
public partial class DescribeComponentConfigurationRecommendationRequest : AmazonApplicationInsightsRequest
{
private string _componentName;
private string _resourceGroupName;
private Tier _tier;
/// <summary>
/// Gets and sets the property ComponentName.
/// <para>
/// The name of the component.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ComponentName
{
get { return this._componentName; }
set { this._componentName = value; }
}
// Check to see if ComponentName property is set
internal bool IsSetComponentName()
{
return this._componentName != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
/// <summary>
/// Gets and sets the property Tier.
/// <para>
/// The tier of the application component.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public Tier Tier
{
get { return this._tier; }
set { this._tier = value; }
}
// Check to see if Tier property is set
internal bool IsSetTier()
{
return this._tier != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DescribeComponentConfigurationRecommendation operation.
/// </summary>
public partial class DescribeComponentConfigurationRecommendationResponse : AmazonWebServiceResponse
{
private string _componentConfiguration;
/// <summary>
/// Gets and sets the property ComponentConfiguration.
/// <para>
/// The recommended configuration settings of the component. The value is the escaped
/// JSON of the configuration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=10000)]
public string ComponentConfiguration
{
get { return this._componentConfiguration; }
set { this._componentConfiguration = value; }
}
// Check to see if ComponentConfiguration property is set
internal bool IsSetComponentConfiguration()
{
return this._componentConfiguration != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DescribeComponentConfiguration operation.
/// Describes the monitoring configuration of the component.
/// </summary>
public partial class DescribeComponentConfigurationRequest : AmazonApplicationInsightsRequest
{
private string _componentName;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property ComponentName.
/// <para>
/// The name of the component.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ComponentName
{
get { return this._componentName; }
set { this._componentName = value; }
}
// Check to see if ComponentName property is set
internal bool IsSetComponentName()
{
return this._componentName != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DescribeComponentConfiguration operation.
/// </summary>
public partial class DescribeComponentConfigurationResponse : AmazonWebServiceResponse
{
private string _componentConfiguration;
private bool? _monitor;
private Tier _tier;
/// <summary>
/// Gets and sets the property ComponentConfiguration.
/// <para>
/// The configuration settings of the component. The value is the escaped JSON of the
/// configuration.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=10000)]
public string ComponentConfiguration
{
get { return this._componentConfiguration; }
set { this._componentConfiguration = value; }
}
// Check to see if ComponentConfiguration property is set
internal bool IsSetComponentConfiguration()
{
return this._componentConfiguration != null;
}
/// <summary>
/// Gets and sets the property Monitor.
/// <para>
/// Indicates whether the application component is monitored.
/// </para>
/// </summary>
public bool Monitor
{
get { return this._monitor.GetValueOrDefault(); }
set { this._monitor = value; }
}
// Check to see if Monitor property is set
internal bool IsSetMonitor()
{
return this._monitor.HasValue;
}
/// <summary>
/// Gets and sets the property Tier.
/// <para>
/// The tier of the application component. Supported tiers include <code>DOT_NET_CORE</code>,
/// <code>DOT_NET_WORKER</code>, <code>DOT_NET_WEB</code>, <code>SQL_SERVER</code>, and
/// <code>DEFAULT</code>
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public Tier Tier
{
get { return this._tier; }
set { this._tier = value; }
}
// Check to see if Tier property is set
internal bool IsSetTier()
{
return this._tier != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DescribeComponent operation.
/// Describes a component and lists the resources that are grouped together in a component.
/// </summary>
public partial class DescribeComponentRequest : AmazonApplicationInsightsRequest
{
private string _componentName;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property ComponentName.
/// <para>
/// The name of the component.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ComponentName
{
get { return this._componentName; }
set { this._componentName = value; }
}
// Check to see if ComponentName property is set
internal bool IsSetComponentName()
{
return this._componentName != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DescribeComponent operation.
/// </summary>
public partial class DescribeComponentResponse : AmazonWebServiceResponse
{
private ApplicationComponent _applicationComponent;
private List<string> _resourceList = new List<string>();
/// <summary>
/// Gets and sets the property ApplicationComponent.
/// </summary>
public ApplicationComponent ApplicationComponent
{
get { return this._applicationComponent; }
set { this._applicationComponent = value; }
}
// Check to see if ApplicationComponent property is set
internal bool IsSetApplicationComponent()
{
return this._applicationComponent != null;
}
/// <summary>
/// Gets and sets the property ResourceList.
/// <para>
/// The list of resource ARNs that belong to the component.
/// </para>
/// </summary>
public List<string> ResourceList
{
get { return this._resourceList; }
set { this._resourceList = value; }
}
// Check to see if ResourceList property is set
internal bool IsSetResourceList()
{
return this._resourceList != null && this._resourceList.Count > 0;
}
}
} | 73 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DescribeLogPattern operation.
/// Describe a specific log pattern from a <code>LogPatternSet</code>.
/// </summary>
public partial class DescribeLogPatternRequest : AmazonApplicationInsightsRequest
{
private string _patternName;
private string _patternSetName;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property PatternName.
/// <para>
/// The name of the log pattern.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public string PatternName
{
get { return this._patternName; }
set { this._patternName = value; }
}
// Check to see if PatternName property is set
internal bool IsSetPatternName()
{
return this._patternName != null;
}
/// <summary>
/// Gets and sets the property PatternSetName.
/// <para>
/// The name of the log pattern set.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=30)]
public string PatternSetName
{
get { return this._patternSetName; }
set { this._patternSetName = value; }
}
// Check to see if PatternSetName property is set
internal bool IsSetPatternSetName()
{
return this._patternSetName != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DescribeLogPattern operation.
/// </summary>
public partial class DescribeLogPatternResponse : AmazonWebServiceResponse
{
private LogPattern _logPattern;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property LogPattern.
/// <para>
/// The successfully created log pattern.
/// </para>
/// </summary>
public LogPattern LogPattern
{
get { return this._logPattern; }
set { this._logPattern = value; }
}
// Check to see if LogPattern property is set
internal bool IsSetLogPattern()
{
return this._logPattern != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DescribeObservation operation.
/// Describes an anomaly or error with the application.
/// </summary>
public partial class DescribeObservationRequest : AmazonApplicationInsightsRequest
{
private string _observationId;
/// <summary>
/// Gets and sets the property ObservationId.
/// <para>
/// The ID of the observation.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=38, Max=38)]
public string ObservationId
{
get { return this._observationId; }
set { this._observationId = value; }
}
// Check to see if ObservationId property is set
internal bool IsSetObservationId()
{
return this._observationId != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DescribeObservation operation.
/// </summary>
public partial class DescribeObservationResponse : AmazonWebServiceResponse
{
private Observation _observation;
/// <summary>
/// Gets and sets the property Observation.
/// <para>
/// Information about the observation.
/// </para>
/// </summary>
public Observation Observation
{
get { return this._observation; }
set { this._observation = value; }
}
// Check to see if Observation property is set
internal bool IsSetObservation()
{
return this._observation != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DescribeProblemObservations operation.
/// Describes the anomalies or errors associated with the problem.
/// </summary>
public partial class DescribeProblemObservationsRequest : AmazonApplicationInsightsRequest
{
private string _problemId;
/// <summary>
/// Gets and sets the property ProblemId.
/// <para>
/// The ID of the problem.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=38, Max=38)]
public string ProblemId
{
get { return this._problemId; }
set { this._problemId = value; }
}
// Check to see if ProblemId property is set
internal bool IsSetProblemId()
{
return this._problemId != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DescribeProblemObservations operation.
/// </summary>
public partial class DescribeProblemObservationsResponse : AmazonWebServiceResponse
{
private RelatedObservations _relatedObservations;
/// <summary>
/// Gets and sets the property RelatedObservations.
/// <para>
/// Observations related to the problem.
/// </para>
/// </summary>
public RelatedObservations RelatedObservations
{
get { return this._relatedObservations; }
set { this._relatedObservations = value; }
}
// Check to see if RelatedObservations property is set
internal bool IsSetRelatedObservations()
{
return this._relatedObservations != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the DescribeProblem operation.
/// Describes an application problem.
/// </summary>
public partial class DescribeProblemRequest : AmazonApplicationInsightsRequest
{
private string _problemId;
/// <summary>
/// Gets and sets the property ProblemId.
/// <para>
/// The ID of the problem.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=38, Max=38)]
public string ProblemId
{
get { return this._problemId; }
set { this._problemId = value; }
}
// Check to see if ProblemId property is set
internal bool IsSetProblemId()
{
return this._problemId != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the DescribeProblem operation.
/// </summary>
public partial class DescribeProblemResponse : AmazonWebServiceResponse
{
private Problem _problem;
/// <summary>
/// Gets and sets the property Problem.
/// <para>
/// Information about the problem.
/// </para>
/// </summary>
public Problem Problem
{
get { return this._problem; }
set { this._problem = value; }
}
// Check to see if Problem property is set
internal bool IsSetProblem()
{
return this._problem != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// The server encountered an internal error and is unable to complete the request.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalServerException : AmazonApplicationInsightsException
{
/// <summary>
/// Constructs a new InternalServerException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalServerException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalServerException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="innerException"></param>
public InternalServerException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </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 InternalServerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServerException(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 InternalServerException 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 InternalServerException(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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the ListApplications operation.
/// Lists the IDs of the applications that you are monitoring.
/// </summary>
public partial class ListApplicationsRequest : AmazonApplicationInsightsRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return in a single call. To retrieve the remaining
/// results, make another call with the returned <code>NextToken</code> value.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=40)]
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>
/// The token to request the next page of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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;
}
}
} | 80 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the ListApplications operation.
/// </summary>
public partial class ListApplicationsResponse : AmazonWebServiceResponse
{
private List<ApplicationInfo> _applicationInfoList = new List<ApplicationInfo>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ApplicationInfoList.
/// <para>
/// The list of applications.
/// </para>
/// </summary>
public List<ApplicationInfo> ApplicationInfoList
{
get { return this._applicationInfoList; }
set { this._applicationInfoList = value; }
}
// Check to see if ApplicationInfoList property is set
internal bool IsSetApplicationInfoList()
{
return this._applicationInfoList != null && this._applicationInfoList.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token used to retrieve the next page of results. This value is <code>null</code>
/// when there are no more results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the ListComponents operation.
/// Lists the auto-grouped, standalone, and custom components of the application.
/// </summary>
public partial class ListComponentsRequest : AmazonApplicationInsightsRequest
{
private int? _maxResults;
private string _nextToken;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return in a single call. To retrieve the remaining
/// results, make another call with the returned <code>NextToken</code> value.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=40)]
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>
/// The token to request the next page of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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 ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the ListComponents operation.
/// </summary>
public partial class ListComponentsResponse : AmazonWebServiceResponse
{
private List<ApplicationComponent> _applicationComponentList = new List<ApplicationComponent>();
private string _nextToken;
/// <summary>
/// Gets and sets the property ApplicationComponentList.
/// <para>
/// The list of application components.
/// </para>
/// </summary>
public List<ApplicationComponent> ApplicationComponentList
{
get { return this._applicationComponentList; }
set { this._applicationComponentList = value; }
}
// Check to see if ApplicationComponentList property is set
internal bool IsSetApplicationComponentList()
{
return this._applicationComponentList != null && this._applicationComponentList.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to request the next page of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the ListConfigurationHistory operation.
/// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed
/// by Application Insights. Examples of events represented are:
///
/// <ul> <li>
/// <para>
/// INFO: creating a new alarm or updating an alarm threshold.
/// </para>
/// </li> <li>
/// <para>
/// WARN: alarm not created due to insufficient data points used to predict thresholds.
/// </para>
/// </li> <li>
/// <para>
/// ERROR: alarm not created due to permission errors or exceeding quotas.
/// </para>
/// </li> </ul>
/// </summary>
public partial class ListConfigurationHistoryRequest : AmazonApplicationInsightsRequest
{
private DateTime? _endTime;
private ConfigurationEventStatus _eventStatus;
private int? _maxResults;
private string _nextToken;
private string _resourceGroupName;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The end time of the event.
/// </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 EventStatus.
/// <para>
/// The status of the configuration update event. Possible values include INFO, WARN,
/// and ERROR.
/// </para>
/// </summary>
public ConfigurationEventStatus EventStatus
{
get { return this._eventStatus; }
set { this._eventStatus = value; }
}
// Check to see if EventStatus property is set
internal bool IsSetEventStatus()
{
return this._eventStatus != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results returned by <code>ListConfigurationHistory</code> in
/// paginated output. When this parameter is used, <code>ListConfigurationHistory</code>
/// returns only <code>MaxResults</code> in a single page along with a <code>NextToken</code>
/// response element. The remaining results of the initial request can be seen by sending
/// another <code>ListConfigurationHistory</code> request with the returned <code>NextToken</code>
/// value. If this parameter is not used, then <code>ListConfigurationHistory</code> returns
/// all results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=40)]
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>
/// The <code>NextToken</code> value returned from a previous paginated <code>ListConfigurationHistory</code>
/// request where <code>MaxResults</code> was used and the results exceeded the value
/// of that parameter. Pagination continues from the end of the previous results that
/// returned the <code>NextToken</code> value. This value is <code>null</code> when there
/// are no more results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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 ResourceGroupName.
/// <para>
/// Resource group to which the application belongs.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The start time of the event.
/// </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;
}
}
} | 182 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the ListConfigurationHistory operation.
/// </summary>
public partial class ListConfigurationHistoryResponse : AmazonWebServiceResponse
{
private List<ConfigurationEvent> _eventList = new List<ConfigurationEvent>();
private string _nextToken;
/// <summary>
/// Gets and sets the property EventList.
/// <para>
/// The list of configuration events and their corresponding details.
/// </para>
/// </summary>
public List<ConfigurationEvent> EventList
{
get { return this._eventList; }
set { this._eventList = value; }
}
// Check to see if EventList property is set
internal bool IsSetEventList()
{
return this._eventList != null && this._eventList.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The <code>NextToken</code> value to include in a future <code>ListConfigurationHistory</code>
/// request. When the results of a <code>ListConfigurationHistory</code> request exceed
/// <code>MaxResults</code>, this value can be used to retrieve the next page of results.
/// This value is <code>null</code> when there are no more results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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;
}
}
} | 80 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the ListLogPatternSets operation.
/// Lists the log pattern sets in the specific application.
/// </summary>
public partial class ListLogPatternSetsRequest : AmazonApplicationInsightsRequest
{
private int? _maxResults;
private string _nextToken;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return in a single call. To retrieve the remaining
/// results, make another call with the returned <code>NextToken</code> value.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=40)]
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>
/// The token to request the next page of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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 ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the ListLogPatternSets operation.
/// </summary>
public partial class ListLogPatternSetsResponse : AmazonWebServiceResponse
{
private List<string> _logPatternSets = new List<string>();
private string _nextToken;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property LogPatternSets.
/// <para>
/// The list of log pattern sets.
/// </para>
/// </summary>
public List<string> LogPatternSets
{
get { return this._logPatternSets; }
set { this._logPatternSets = value; }
}
// Check to see if LogPatternSets property is set
internal bool IsSetLogPatternSets()
{
return this._logPatternSets != null && this._logPatternSets.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token used to retrieve the next page of results. This value is <code>null</code>
/// when there are no more results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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 ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the ListLogPatterns operation.
/// Lists the log patterns in the specific log <code>LogPatternSet</code>.
/// </summary>
public partial class ListLogPatternsRequest : AmazonApplicationInsightsRequest
{
private int? _maxResults;
private string _nextToken;
private string _patternSetName;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to return in a single call. To retrieve the remaining
/// results, make another call with the returned <code>NextToken</code> value.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=40)]
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>
/// The token to request the next page of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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 PatternSetName.
/// <para>
/// The name of the log pattern set.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=30)]
public string PatternSetName
{
get { return this._patternSetName; }
set { this._patternSetName = value; }
}
// Check to see if PatternSetName property is set
internal bool IsSetPatternSetName()
{
return this._patternSetName != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the ListLogPatterns operation.
/// </summary>
public partial class ListLogPatternsResponse : AmazonWebServiceResponse
{
private List<LogPattern> _logPatterns = new List<LogPattern>();
private string _nextToken;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property LogPatterns.
/// <para>
/// The list of log patterns.
/// </para>
/// </summary>
public List<LogPattern> LogPatterns
{
get { return this._logPatterns; }
set { this._logPatterns = value; }
}
// Check to see if LogPatterns property is set
internal bool IsSetLogPatterns()
{
return this._logPatterns != null && this._logPatterns.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token used to retrieve the next page of results. This value is <code>null</code>
/// when there are no more results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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 ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the ListProblems operation.
/// Lists the problems with your application.
/// </summary>
public partial class ListProblemsRequest : AmazonApplicationInsightsRequest
{
private string _componentName;
private DateTime? _endTime;
private int? _maxResults;
private string _nextToken;
private string _resourceGroupName;
private DateTime? _startTime;
/// <summary>
/// Gets and sets the property ComponentName.
/// <para>
/// The name of the component.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1011)]
public string ComponentName
{
get { return this._componentName; }
set { this._componentName = value; }
}
// Check to see if ComponentName property is set
internal bool IsSetComponentName()
{
return this._componentName != null;
}
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The time when the problem ended, in epoch seconds. If not specified, problems within
/// the past seven days are returned.
/// </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 MaxResults.
/// <para>
/// The maximum number of results to return in a single call. To retrieve the remaining
/// results, make another call with the returned <code>NextToken</code> value.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=40)]
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>
/// The token to request the next page of results.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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 ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The time when the problem was detected, in epoch seconds. If you don't specify a time
/// frame for the request, problems within the past seven days are returned.
/// </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;
}
}
} | 160 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the ListProblems operation.
/// </summary>
public partial class ListProblemsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<Problem> _problemList = new List<Problem>();
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token used to retrieve the next page of results. This value is <code>null</code>
/// when there are no more results to return.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
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 ProblemList.
/// <para>
/// The list of problems.
/// </para>
/// </summary>
public List<Problem> ProblemList
{
get { return this._problemList; }
set { this._problemList = value; }
}
// Check to see if ProblemList property is set
internal bool IsSetProblemList()
{
return this._problemList != null && this._problemList.Count > 0;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the ListTagsForResource operation.
/// Retrieve a list of the tags (keys and values) that are associated with a specified
/// application. A <i>tag</i> is a label that you optionally define and associate with
/// an application. Each tag consists of a required <i>tag key</i> and an optional associated
/// <i>tag value</i>. A tag key is a general label that acts as a category for more specific
/// tag values. A tag value acts as a descriptor within a tag key.
/// </summary>
public partial class ListTagsForResourceRequest : AmazonApplicationInsightsRequest
{
private string _resourceARN;
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The Amazon Resource Name (ARN) of the application that you want to retrieve tag information
/// for.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
}
} | 64 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the ListTagsForResource operation.
/// </summary>
public partial class ListTagsForResourceResponse : AmazonWebServiceResponse
{
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// An array that lists all the tags that are associated with the application. Each tag
/// consists of a required tag key (<code>Key</code>) and an associated tag value (<code>Value</code>).
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=200)]
public List<Tag> 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;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// An object that defines the log patterns that belongs to a <code>LogPatternSet</code>.
/// </summary>
public partial class LogPattern
{
private string _pattern;
private string _patternName;
private string _patternSetName;
private int? _rank;
/// <summary>
/// Gets and sets the property Pattern.
/// <para>
/// A regular expression that defines the log pattern. A log pattern can contain as many
/// as 50 characters, and it cannot be empty. The pattern must be DFA compatible. Patterns
/// that utilize forward lookahead or backreference constructions are not supported.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public string Pattern
{
get { return this._pattern; }
set { this._pattern = value; }
}
// Check to see if Pattern property is set
internal bool IsSetPattern()
{
return this._pattern != null;
}
/// <summary>
/// Gets and sets the property PatternName.
/// <para>
/// The name of the log pattern. A log pattern name can contain as many as 50 characters,
/// and it cannot be empty. The characters can be Unicode letters, digits, or one of the
/// following symbols: period, dash, underscore.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public string PatternName
{
get { return this._patternName; }
set { this._patternName = value; }
}
// Check to see if PatternName property is set
internal bool IsSetPatternName()
{
return this._patternName != null;
}
/// <summary>
/// Gets and sets the property PatternSetName.
/// <para>
/// The name of the log pattern. A log pattern name can contain as many as 30 characters,
/// and it cannot be empty. The characters can be Unicode letters, digits, or one of the
/// following symbols: period, dash, underscore.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=30)]
public string PatternSetName
{
get { return this._patternSetName; }
set { this._patternSetName = value; }
}
// Check to see if PatternSetName property is set
internal bool IsSetPatternSetName()
{
return this._patternSetName != null;
}
/// <summary>
/// Gets and sets the property Rank.
/// <para>
/// Rank of the log pattern. Must be a value between <code>1</code> and <code>1,000,000</code>.
/// The patterns are sorted by rank, so we recommend that you set your highest priority
/// patterns with the lowest rank. A pattern of rank <code>1</code> will be the first
/// to get matched to a log line. A pattern of rank <code>1,000,000</code> will be last
/// to get matched. When you configure custom log patterns from the console, a <code>Low</code>
/// severity pattern translates to a <code>750,000</code> rank. A <code>Medium</code>
/// severity pattern translates to a <code>500,000</code> rank. And a <code>High</code>
/// severity pattern translates to a <code>250,000</code> rank. Rank values less than
/// <code>1</code> or greater than <code>1,000,000</code> are reserved for AWS-provided
/// patterns.
/// </para>
/// </summary>
public int Rank
{
get { return this._rank.GetValueOrDefault(); }
set { this._rank = value; }
}
// Check to see if Rank property is set
internal bool IsSetRank()
{
return this._rank.HasValue;
}
}
} | 132 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Describes an anomaly or error with the application.
/// </summary>
public partial class Observation
{
private string _cloudWatchEventDetailType;
private string _cloudWatchEventId;
private CloudWatchEventSource _cloudWatchEventSource;
private string _codeDeployApplication;
private string _codeDeployDeploymentGroup;
private string _codeDeployDeploymentId;
private string _codeDeployInstanceGroupId;
private string _codeDeployState;
private string _ebsCause;
private string _ebsEvent;
private string _ebsRequestId;
private string _ebsResult;
private string _ec2State;
private DateTime? _endTime;
private string _healthEventArn;
private string _healthEventDescription;
private string _healthEventTypeCategory;
private string _healthEventTypeCode;
private string _healthService;
private string _id;
private DateTime? _lineTime;
private LogFilter _logFilter;
private string _logGroup;
private string _logText;
private string _metricName;
private string _metricNamespace;
private string _rdsEventCategories;
private string _rdsEventMessage;
private string _s3EventName;
private string _sourceARN;
private string _sourceType;
private DateTime? _startTime;
private string _statesArn;
private string _statesExecutionArn;
private string _statesInput;
private string _statesStatus;
private string _unit;
private double? _value;
private int? _xRayErrorPercent;
private int? _xRayFaultPercent;
private string _xRayNodeName;
private string _xRayNodeType;
private long? _xRayRequestAverageLatency;
private int? _xRayRequestCount;
private int? _xRayThrottlePercent;
/// <summary>
/// Gets and sets the property CloudWatchEventDetailType.
/// <para>
/// The detail type of the CloudWatch Event-based observation, for example, <code>EC2
/// Instance State-change Notification</code>.
/// </para>
/// </summary>
public string CloudWatchEventDetailType
{
get { return this._cloudWatchEventDetailType; }
set { this._cloudWatchEventDetailType = value; }
}
// Check to see if CloudWatchEventDetailType property is set
internal bool IsSetCloudWatchEventDetailType()
{
return this._cloudWatchEventDetailType != null;
}
/// <summary>
/// Gets and sets the property CloudWatchEventId.
/// <para>
/// The ID of the CloudWatch Event-based observation related to the detected problem.
///
/// </para>
/// </summary>
public string CloudWatchEventId
{
get { return this._cloudWatchEventId; }
set { this._cloudWatchEventId = value; }
}
// Check to see if CloudWatchEventId property is set
internal bool IsSetCloudWatchEventId()
{
return this._cloudWatchEventId != null;
}
/// <summary>
/// Gets and sets the property CloudWatchEventSource.
/// <para>
/// The source of the CloudWatch Event.
/// </para>
/// </summary>
public CloudWatchEventSource CloudWatchEventSource
{
get { return this._cloudWatchEventSource; }
set { this._cloudWatchEventSource = value; }
}
// Check to see if CloudWatchEventSource property is set
internal bool IsSetCloudWatchEventSource()
{
return this._cloudWatchEventSource != null;
}
/// <summary>
/// Gets and sets the property CodeDeployApplication.
/// <para>
/// The CodeDeploy application to which the deployment belongs.
/// </para>
/// </summary>
public string CodeDeployApplication
{
get { return this._codeDeployApplication; }
set { this._codeDeployApplication = value; }
}
// Check to see if CodeDeployApplication property is set
internal bool IsSetCodeDeployApplication()
{
return this._codeDeployApplication != null;
}
/// <summary>
/// Gets and sets the property CodeDeployDeploymentGroup.
/// <para>
/// The deployment group to which the CodeDeploy deployment belongs.
/// </para>
/// </summary>
public string CodeDeployDeploymentGroup
{
get { return this._codeDeployDeploymentGroup; }
set { this._codeDeployDeploymentGroup = value; }
}
// Check to see if CodeDeployDeploymentGroup property is set
internal bool IsSetCodeDeployDeploymentGroup()
{
return this._codeDeployDeploymentGroup != null;
}
/// <summary>
/// Gets and sets the property CodeDeployDeploymentId.
/// <para>
/// The deployment ID of the CodeDeploy-based observation related to the detected problem.
///
/// </para>
/// </summary>
public string CodeDeployDeploymentId
{
get { return this._codeDeployDeploymentId; }
set { this._codeDeployDeploymentId = value; }
}
// Check to see if CodeDeployDeploymentId property is set
internal bool IsSetCodeDeployDeploymentId()
{
return this._codeDeployDeploymentId != null;
}
/// <summary>
/// Gets and sets the property CodeDeployInstanceGroupId.
/// <para>
/// The instance group to which the CodeDeploy instance belongs.
/// </para>
/// </summary>
public string CodeDeployInstanceGroupId
{
get { return this._codeDeployInstanceGroupId; }
set { this._codeDeployInstanceGroupId = value; }
}
// Check to see if CodeDeployInstanceGroupId property is set
internal bool IsSetCodeDeployInstanceGroupId()
{
return this._codeDeployInstanceGroupId != null;
}
/// <summary>
/// Gets and sets the property CodeDeployState.
/// <para>
/// The status of the CodeDeploy deployment, for example <code>SUCCESS</code> or <code>
/// FAILURE</code>.
/// </para>
/// </summary>
public string CodeDeployState
{
get { return this._codeDeployState; }
set { this._codeDeployState = value; }
}
// Check to see if CodeDeployState property is set
internal bool IsSetCodeDeployState()
{
return this._codeDeployState != null;
}
/// <summary>
/// Gets and sets the property EbsCause.
/// <para>
/// The cause of an EBS CloudWatch event.
/// </para>
/// </summary>
public string EbsCause
{
get { return this._ebsCause; }
set { this._ebsCause = value; }
}
// Check to see if EbsCause property is set
internal bool IsSetEbsCause()
{
return this._ebsCause != null;
}
/// <summary>
/// Gets and sets the property EbsEvent.
/// <para>
/// The type of EBS CloudWatch event, such as <code>createVolume</code>, <code>deleteVolume</code>
/// or <code>attachVolume</code>.
/// </para>
/// </summary>
public string EbsEvent
{
get { return this._ebsEvent; }
set { this._ebsEvent = value; }
}
// Check to see if EbsEvent property is set
internal bool IsSetEbsEvent()
{
return this._ebsEvent != null;
}
/// <summary>
/// Gets and sets the property EbsRequestId.
/// <para>
/// The request ID of an EBS CloudWatch event.
/// </para>
/// </summary>
public string EbsRequestId
{
get { return this._ebsRequestId; }
set { this._ebsRequestId = value; }
}
// Check to see if EbsRequestId property is set
internal bool IsSetEbsRequestId()
{
return this._ebsRequestId != null;
}
/// <summary>
/// Gets and sets the property EbsResult.
/// <para>
/// The result of an EBS CloudWatch event, such as <code>failed</code> or <code>succeeded</code>.
///
/// </para>
/// </summary>
public string EbsResult
{
get { return this._ebsResult; }
set { this._ebsResult = value; }
}
// Check to see if EbsResult property is set
internal bool IsSetEbsResult()
{
return this._ebsResult != null;
}
/// <summary>
/// Gets and sets the property Ec2State.
/// <para>
/// The state of the instance, such as <code>STOPPING</code> or <code>TERMINATING</code>.
///
/// </para>
/// </summary>
public string Ec2State
{
get { return this._ec2State; }
set { this._ec2State = value; }
}
// Check to see if Ec2State property is set
internal bool IsSetEc2State()
{
return this._ec2State != null;
}
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The time when the observation ended, in epoch seconds.
/// </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 HealthEventArn.
/// <para>
/// The Amazon Resource Name (ARN) of the AWS Health Event-based observation.
/// </para>
/// </summary>
public string HealthEventArn
{
get { return this._healthEventArn; }
set { this._healthEventArn = value; }
}
// Check to see if HealthEventArn property is set
internal bool IsSetHealthEventArn()
{
return this._healthEventArn != null;
}
/// <summary>
/// Gets and sets the property HealthEventDescription.
/// <para>
/// The description of the AWS Health event provided by the service, such as Amazon EC2.
///
/// </para>
/// </summary>
public string HealthEventDescription
{
get { return this._healthEventDescription; }
set { this._healthEventDescription = value; }
}
// Check to see if HealthEventDescription property is set
internal bool IsSetHealthEventDescription()
{
return this._healthEventDescription != null;
}
/// <summary>
/// Gets and sets the property HealthEventTypeCategory.
/// <para>
/// The category of the AWS Health event, such as <code>issue</code>.
/// </para>
/// </summary>
public string HealthEventTypeCategory
{
get { return this._healthEventTypeCategory; }
set { this._healthEventTypeCategory = value; }
}
// Check to see if HealthEventTypeCategory property is set
internal bool IsSetHealthEventTypeCategory()
{
return this._healthEventTypeCategory != null;
}
/// <summary>
/// Gets and sets the property HealthEventTypeCode.
/// <para>
/// The type of the AWS Health event, for example, <code>AWS_EC2_POWER_CONNECTIVITY_ISSUE</code>.
///
/// </para>
/// </summary>
public string HealthEventTypeCode
{
get { return this._healthEventTypeCode; }
set { this._healthEventTypeCode = value; }
}
// Check to see if HealthEventTypeCode property is set
internal bool IsSetHealthEventTypeCode()
{
return this._healthEventTypeCode != null;
}
/// <summary>
/// Gets and sets the property HealthService.
/// <para>
/// The service to which the AWS Health Event belongs, such as EC2.
/// </para>
/// </summary>
public string HealthService
{
get { return this._healthService; }
set { this._healthService = value; }
}
// Check to see if HealthService property is set
internal bool IsSetHealthService()
{
return this._healthService != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The ID of the observation type.
/// </para>
/// </summary>
[AWSProperty(Min=38, Max=38)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property LineTime.
/// <para>
/// The timestamp in the CloudWatch Logs that specifies when the matched line occurred.
/// </para>
/// </summary>
public DateTime LineTime
{
get { return this._lineTime.GetValueOrDefault(); }
set { this._lineTime = value; }
}
// Check to see if LineTime property is set
internal bool IsSetLineTime()
{
return this._lineTime.HasValue;
}
/// <summary>
/// Gets and sets the property LogFilter.
/// <para>
/// The log filter of the observation.
/// </para>
/// </summary>
public LogFilter LogFilter
{
get { return this._logFilter; }
set { this._logFilter = value; }
}
// Check to see if LogFilter property is set
internal bool IsSetLogFilter()
{
return this._logFilter != null;
}
/// <summary>
/// Gets and sets the property LogGroup.
/// <para>
/// The log group name.
/// </para>
/// </summary>
public string LogGroup
{
get { return this._logGroup; }
set { this._logGroup = value; }
}
// Check to see if LogGroup property is set
internal bool IsSetLogGroup()
{
return this._logGroup != null;
}
/// <summary>
/// Gets and sets the property LogText.
/// <para>
/// The log text of the observation.
/// </para>
/// </summary>
public string LogText
{
get { return this._logText; }
set { this._logText = value; }
}
// Check to see if LogText property is set
internal bool IsSetLogText()
{
return this._logText != null;
}
/// <summary>
/// Gets and sets the property MetricName.
/// <para>
/// The name of the observation metric.
/// </para>
/// </summary>
public string MetricName
{
get { return this._metricName; }
set { this._metricName = value; }
}
// Check to see if MetricName property is set
internal bool IsSetMetricName()
{
return this._metricName != null;
}
/// <summary>
/// Gets and sets the property MetricNamespace.
/// <para>
/// The namespace of the observation metric.
/// </para>
/// </summary>
public string MetricNamespace
{
get { return this._metricNamespace; }
set { this._metricNamespace = value; }
}
// Check to see if MetricNamespace property is set
internal bool IsSetMetricNamespace()
{
return this._metricNamespace != null;
}
/// <summary>
/// Gets and sets the property RdsEventCategories.
/// <para>
/// The category of an RDS event.
/// </para>
/// </summary>
public string RdsEventCategories
{
get { return this._rdsEventCategories; }
set { this._rdsEventCategories = value; }
}
// Check to see if RdsEventCategories property is set
internal bool IsSetRdsEventCategories()
{
return this._rdsEventCategories != null;
}
/// <summary>
/// Gets and sets the property RdsEventMessage.
/// <para>
/// The message of an RDS event.
/// </para>
/// </summary>
public string RdsEventMessage
{
get { return this._rdsEventMessage; }
set { this._rdsEventMessage = value; }
}
// Check to see if RdsEventMessage property is set
internal bool IsSetRdsEventMessage()
{
return this._rdsEventMessage != null;
}
/// <summary>
/// Gets and sets the property S3EventName.
/// <para>
/// The name of the S3 CloudWatch Event-based observation.
/// </para>
/// </summary>
public string S3EventName
{
get { return this._s3EventName; }
set { this._s3EventName = value; }
}
// Check to see if S3EventName property is set
internal bool IsSetS3EventName()
{
return this._s3EventName != null;
}
/// <summary>
/// Gets and sets the property SourceARN.
/// <para>
/// The source resource ARN of the observation.
/// </para>
/// </summary>
public string SourceARN
{
get { return this._sourceARN; }
set { this._sourceARN = value; }
}
// Check to see if SourceARN property is set
internal bool IsSetSourceARN()
{
return this._sourceARN != null;
}
/// <summary>
/// Gets and sets the property SourceType.
/// <para>
/// The source type of the observation.
/// </para>
/// </summary>
public string SourceType
{
get { return this._sourceType; }
set { this._sourceType = value; }
}
// Check to see if SourceType property is set
internal bool IsSetSourceType()
{
return this._sourceType != null;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The time when the observation was first detected, in epoch seconds.
/// </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 StatesArn.
/// <para>
/// The Amazon Resource Name (ARN) of the step function-based observation.
/// </para>
/// </summary>
public string StatesArn
{
get { return this._statesArn; }
set { this._statesArn = value; }
}
// Check to see if StatesArn property is set
internal bool IsSetStatesArn()
{
return this._statesArn != null;
}
/// <summary>
/// Gets and sets the property StatesExecutionArn.
/// <para>
/// The Amazon Resource Name (ARN) of the step function execution-based observation.
///
/// </para>
/// </summary>
public string StatesExecutionArn
{
get { return this._statesExecutionArn; }
set { this._statesExecutionArn = value; }
}
// Check to see if StatesExecutionArn property is set
internal bool IsSetStatesExecutionArn()
{
return this._statesExecutionArn != null;
}
/// <summary>
/// Gets and sets the property StatesInput.
/// <para>
/// The input to the step function-based observation.
/// </para>
/// </summary>
public string StatesInput
{
get { return this._statesInput; }
set { this._statesInput = value; }
}
// Check to see if StatesInput property is set
internal bool IsSetStatesInput()
{
return this._statesInput != null;
}
/// <summary>
/// Gets and sets the property StatesStatus.
/// <para>
/// The status of the step function-related observation.
/// </para>
/// </summary>
public string StatesStatus
{
get { return this._statesStatus; }
set { this._statesStatus = value; }
}
// Check to see if StatesStatus property is set
internal bool IsSetStatesStatus()
{
return this._statesStatus != null;
}
/// <summary>
/// Gets and sets the property Unit.
/// <para>
/// The unit of the source observation metric.
/// </para>
/// </summary>
public string Unit
{
get { return this._unit; }
set { this._unit = value; }
}
// Check to see if Unit property is set
internal bool IsSetUnit()
{
return this._unit != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value of the source observation metric.
/// </para>
/// </summary>
public double Value
{
get { return this._value.GetValueOrDefault(); }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value.HasValue;
}
/// <summary>
/// Gets and sets the property XRayErrorPercent.
/// <para>
/// The X-Ray request error percentage for this node.
/// </para>
/// </summary>
public int XRayErrorPercent
{
get { return this._xRayErrorPercent.GetValueOrDefault(); }
set { this._xRayErrorPercent = value; }
}
// Check to see if XRayErrorPercent property is set
internal bool IsSetXRayErrorPercent()
{
return this._xRayErrorPercent.HasValue;
}
/// <summary>
/// Gets and sets the property XRayFaultPercent.
/// <para>
/// The X-Ray request fault percentage for this node.
/// </para>
/// </summary>
public int XRayFaultPercent
{
get { return this._xRayFaultPercent.GetValueOrDefault(); }
set { this._xRayFaultPercent = value; }
}
// Check to see if XRayFaultPercent property is set
internal bool IsSetXRayFaultPercent()
{
return this._xRayFaultPercent.HasValue;
}
/// <summary>
/// Gets and sets the property XRayNodeName.
/// <para>
/// The name of the X-Ray node.
/// </para>
/// </summary>
public string XRayNodeName
{
get { return this._xRayNodeName; }
set { this._xRayNodeName = value; }
}
// Check to see if XRayNodeName property is set
internal bool IsSetXRayNodeName()
{
return this._xRayNodeName != null;
}
/// <summary>
/// Gets and sets the property XRayNodeType.
/// <para>
/// The type of the X-Ray node.
/// </para>
/// </summary>
public string XRayNodeType
{
get { return this._xRayNodeType; }
set { this._xRayNodeType = value; }
}
// Check to see if XRayNodeType property is set
internal bool IsSetXRayNodeType()
{
return this._xRayNodeType != null;
}
/// <summary>
/// Gets and sets the property XRayRequestAverageLatency.
/// <para>
/// The X-Ray node request average latency for this node.
/// </para>
/// </summary>
public long XRayRequestAverageLatency
{
get { return this._xRayRequestAverageLatency.GetValueOrDefault(); }
set { this._xRayRequestAverageLatency = value; }
}
// Check to see if XRayRequestAverageLatency property is set
internal bool IsSetXRayRequestAverageLatency()
{
return this._xRayRequestAverageLatency.HasValue;
}
/// <summary>
/// Gets and sets the property XRayRequestCount.
/// <para>
/// The X-Ray request count for this node.
/// </para>
/// </summary>
public int XRayRequestCount
{
get { return this._xRayRequestCount.GetValueOrDefault(); }
set { this._xRayRequestCount = value; }
}
// Check to see if XRayRequestCount property is set
internal bool IsSetXRayRequestCount()
{
return this._xRayRequestCount.HasValue;
}
/// <summary>
/// Gets and sets the property XRayThrottlePercent.
/// <para>
/// The X-Ray request throttle percentage for this node.
/// </para>
/// </summary>
public int XRayThrottlePercent
{
get { return this._xRayThrottlePercent.GetValueOrDefault(); }
set { this._xRayThrottlePercent = value; }
}
// Check to see if XRayThrottlePercent property is set
internal bool IsSetXRayThrottlePercent()
{
return this._xRayThrottlePercent.HasValue;
}
}
} | 904 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Describes a problem that is detected by correlating observations.
/// </summary>
public partial class Problem
{
private string _affectedResource;
private DateTime? _endTime;
private Dictionary<string, string> _feedback = new Dictionary<string, string>();
private string _id;
private string _insights;
private DateTime? _lastRecurrenceTime;
private long? _recurringCount;
private string _resourceGroupName;
private SeverityLevel _severityLevel;
private DateTime? _startTime;
private Status _status;
private string _title;
/// <summary>
/// Gets and sets the property AffectedResource.
/// <para>
/// The resource affected by the problem.
/// </para>
/// </summary>
public string AffectedResource
{
get { return this._affectedResource; }
set { this._affectedResource = value; }
}
// Check to see if AffectedResource property is set
internal bool IsSetAffectedResource()
{
return this._affectedResource != null;
}
/// <summary>
/// Gets and sets the property EndTime.
/// <para>
/// The time when the problem ended, in epoch seconds.
/// </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 Feedback.
/// <para>
/// Feedback provided by the user about the problem.
/// </para>
/// </summary>
[AWSProperty(Max=10)]
public Dictionary<string, string> Feedback
{
get { return this._feedback; }
set { this._feedback = value; }
}
// Check to see if Feedback property is set
internal bool IsSetFeedback()
{
return this._feedback != null && this._feedback.Count > 0;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The ID of the problem.
/// </para>
/// </summary>
[AWSProperty(Min=38, Max=38)]
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property Insights.
/// <para>
/// A detailed analysis of the problem using machine learning.
/// </para>
/// </summary>
public string Insights
{
get { return this._insights; }
set { this._insights = value; }
}
// Check to see if Insights property is set
internal bool IsSetInsights()
{
return this._insights != null;
}
/// <summary>
/// Gets and sets the property LastRecurrenceTime.
/// <para>
/// The last time that the problem reoccurred after its last resolution.
/// </para>
/// </summary>
public DateTime LastRecurrenceTime
{
get { return this._lastRecurrenceTime.GetValueOrDefault(); }
set { this._lastRecurrenceTime = value; }
}
// Check to see if LastRecurrenceTime property is set
internal bool IsSetLastRecurrenceTime()
{
return this._lastRecurrenceTime.HasValue;
}
/// <summary>
/// Gets and sets the property RecurringCount.
/// <para>
/// The number of times that the same problem reoccurred after the first time it was
/// resolved.
/// </para>
/// </summary>
public long RecurringCount
{
get { return this._recurringCount.GetValueOrDefault(); }
set { this._recurringCount = value; }
}
// Check to see if RecurringCount property is set
internal bool IsSetRecurringCount()
{
return this._recurringCount.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group affected by the problem.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
/// <summary>
/// Gets and sets the property SeverityLevel.
/// <para>
/// A measure of the level of impact of the problem.
/// </para>
/// </summary>
public SeverityLevel SeverityLevel
{
get { return this._severityLevel; }
set { this._severityLevel = value; }
}
// Check to see if SeverityLevel property is set
internal bool IsSetSeverityLevel()
{
return this._severityLevel != null;
}
/// <summary>
/// Gets and sets the property StartTime.
/// <para>
/// The time when the problem started, in epoch seconds.
/// </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 Status.
/// <para>
/// The status of the problem.
/// </para>
/// </summary>
public Status Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property Title.
/// <para>
/// The name of the problem.
/// </para>
/// </summary>
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
}
} | 270 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Describes observations related to the problem.
/// </summary>
public partial class RelatedObservations
{
private List<Observation> _observationList = new List<Observation>();
/// <summary>
/// Gets and sets the property ObservationList.
/// <para>
/// The list of observations related to the problem.
/// </para>
/// </summary>
public List<Observation> ObservationList
{
get { return this._observationList; }
set { this._observationList = value; }
}
// Check to see if ObservationList property is set
internal bool IsSetObservationList()
{
return this._observationList != null && this._observationList.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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// The resource is already created or in use.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceInUseException : AmazonApplicationInsightsException
{
/// <summary>
/// Constructs a new ResourceInUseException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceInUseException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceInUseException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceInUseException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceInUseException
/// </summary>
/// <param name="innerException"></param>
public ResourceInUseException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceInUseException
/// </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 ResourceInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceInUseException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceInUseException(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 ResourceInUseException 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 ResourceInUseException(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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// The resource does not exist in the customer account.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonApplicationInsightsException
{
/// <summary>
/// Constructs a new ResourceNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ResourceNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </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 ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(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 ResourceNotFoundException 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 ResourceNotFoundException(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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// An object that defines the tags associated with an application. A <i>tag</i> is a
/// label that you optionally define and associate with an application. Tags can help
/// you categorize and manage resources in different ways, such as by purpose, owner,
/// environment, or other criteria.
///
///
/// <para>
/// Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>,
/// both of which you define. A tag key is a general label that acts as a category for
/// a more specific tag value. A tag value acts as a descriptor within a tag key. A tag
/// key can contain as many as 128 characters. A tag value can contain as many as 256
/// characters. The characters can be Unicode letters, digits, white space, or one of
/// the following symbols: _ . : / = + -. The following additional restrictions apply
/// to tags:
/// </para>
/// <ul> <li>
/// <para>
/// Tag keys and values are case sensitive.
/// </para>
/// </li> <li>
/// <para>
/// For each associated resource, each tag key must be unique and it can have only one
/// value.
/// </para>
/// </li> <li>
/// <para>
/// The <code>aws:</code> prefix is reserved for use by AWS; you can’t use it in any tag
/// keys or values that you define. In addition, you can't edit or remove tag keys or
/// values that use this prefix.
/// </para>
/// </li> </ul>
/// </summary>
public partial class Tag
{
private string _key;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// One part of a key-value pair that defines a tag. The maximum length of a tag key is
/// 128 characters. The minimum length is 1 character.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The optional part of a key-value pair that defines a tag. The maximum length of a
/// tag value is 256 characters. The minimum length is 0 characters. If you don't want
/// an application to have a specific tag value, don't specify a value for this parameter.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=256)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the TagResource operation.
/// Add one or more tags (keys and values) to a specified application. A <i>tag</i> is
/// a label that you optionally define and associate with an application. Tags can help
/// you categorize and manage application in different ways, such as by purpose, owner,
/// environment, or other criteria.
///
///
/// <para>
/// Each tag consists of a required <i>tag key</i> and an associated <i>tag value</i>,
/// both of which you define. A tag key is a general label that acts as a category for
/// more specific tag values. A tag value acts as a descriptor within a tag key.
/// </para>
/// </summary>
public partial class TagResourceRequest : AmazonApplicationInsightsRequest
{
private string _resourceARN;
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The Amazon Resource Name (ARN) of the application that you want to add one or more
/// tags to.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// A list of tags that to add to the application. A tag consists of a required tag key
/// (<code>Key</code>) and an associated tag value (<code>Value</code>). The maximum length
/// of a tag key is 128 characters. The maximum length of a tag value is 256 characters.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=200)]
public List<Tag> 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;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the TagResource operation.
/// </summary>
public partial class TagResourceResponse : 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Tags are already registered for the specified application ARN.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class TagsAlreadyExistException : AmazonApplicationInsightsException
{
/// <summary>
/// Constructs a new TagsAlreadyExistException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public TagsAlreadyExistException(string message)
: base(message) {}
/// <summary>
/// Construct instance of TagsAlreadyExistException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public TagsAlreadyExistException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of TagsAlreadyExistException
/// </summary>
/// <param name="innerException"></param>
public TagsAlreadyExistException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of TagsAlreadyExistException
/// </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 TagsAlreadyExistException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of TagsAlreadyExistException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public TagsAlreadyExistException(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 TagsAlreadyExistException 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 TagsAlreadyExistException(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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// The number of the provided tags is beyond the limit, or the number of total tags you
/// are trying to attach to the specified resource exceeds the limit.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class TooManyTagsException : AmazonApplicationInsightsException
{
private string _resourceName;
/// <summary>
/// Constructs a new TooManyTagsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public TooManyTagsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of TooManyTagsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public TooManyTagsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of TooManyTagsException
/// </summary>
/// <param name="innerException"></param>
public TooManyTagsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of TooManyTagsException
/// </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 TooManyTagsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of TooManyTagsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public TooManyTagsException(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 TooManyTagsException 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 TooManyTagsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.ResourceName = (string)info.GetValue("ResourceName", typeof(string));
}
/// <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);
info.AddValue("ResourceName", this.ResourceName);
}
#endif
/// <summary>
/// Gets and sets the property ResourceName.
/// <para>
/// The name of the resource with too many tags.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1011)]
public string ResourceName
{
get { return this._resourceName; }
set { this._resourceName = value; }
}
// Check to see if ResourceName property is set
internal bool IsSetResourceName()
{
return this._resourceName != null;
}
}
} | 147 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the UntagResource operation.
/// Remove one or more tags (keys and values) from a specified application.
/// </summary>
public partial class UntagResourceRequest : AmazonApplicationInsightsRequest
{
private string _resourceARN;
private List<string> _tagKeys = new List<string>();
/// <summary>
/// Gets and sets the property ResourceARN.
/// <para>
/// The Amazon Resource Name (ARN) of the application that you want to remove one or more
/// tags from.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ResourceARN
{
get { return this._resourceARN; }
set { this._resourceARN = value; }
}
// Check to see if ResourceARN property is set
internal bool IsSetResourceARN()
{
return this._resourceARN != null;
}
/// <summary>
/// Gets and sets the property TagKeys.
/// <para>
/// The tags (tag keys) that you want to remove from the resource. When you specify a
/// tag key, the action removes both that key and its associated tag value.
/// </para>
///
/// <para>
/// To remove more than one tag from the application, append the <code>TagKeys</code>
/// parameter and argument for each additional tag to remove, separated by an ampersand.
///
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=200)]
public List<string> TagKeys
{
get { return this._tagKeys; }
set { this._tagKeys = value; }
}
// Check to see if TagKeys property is set
internal bool IsSetTagKeys()
{
return this._tagKeys != null && this._tagKeys.Count > 0;
}
}
} | 87 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the UntagResource operation.
/// </summary>
public partial class UntagResourceResponse : 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the UpdateApplication operation.
/// Updates the application.
/// </summary>
public partial class UpdateApplicationRequest : AmazonApplicationInsightsRequest
{
private bool? _autoConfigEnabled;
private bool? _cweMonitorEnabled;
private bool? _opsCenterEnabled;
private string _opsItemSNSTopicArn;
private bool? _removeSNSTopic;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property AutoConfigEnabled.
/// <para>
/// Turns auto-configuration on or off.
/// </para>
/// </summary>
public bool AutoConfigEnabled
{
get { return this._autoConfigEnabled.GetValueOrDefault(); }
set { this._autoConfigEnabled = value; }
}
// Check to see if AutoConfigEnabled property is set
internal bool IsSetAutoConfigEnabled()
{
return this._autoConfigEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property CWEMonitorEnabled.
/// <para>
/// Indicates whether Application Insights can listen to CloudWatch events for the application
/// resources, such as <code>instance terminated</code>, <code>failed deployment</code>,
/// and others.
/// </para>
/// </summary>
public bool CWEMonitorEnabled
{
get { return this._cweMonitorEnabled.GetValueOrDefault(); }
set { this._cweMonitorEnabled = value; }
}
// Check to see if CWEMonitorEnabled property is set
internal bool IsSetCWEMonitorEnabled()
{
return this._cweMonitorEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property OpsCenterEnabled.
/// <para>
/// When set to <code>true</code>, creates opsItems for any problems detected on an application.
///
/// </para>
/// </summary>
public bool OpsCenterEnabled
{
get { return this._opsCenterEnabled.GetValueOrDefault(); }
set { this._opsCenterEnabled = value; }
}
// Check to see if OpsCenterEnabled property is set
internal bool IsSetOpsCenterEnabled()
{
return this._opsCenterEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property OpsItemSNSTopicArn.
/// <para>
/// The SNS topic provided to Application Insights that is associated to the created
/// opsItem. Allows you to receive notifications for updates to the opsItem.
/// </para>
/// </summary>
[AWSProperty(Min=20, Max=300)]
public string OpsItemSNSTopicArn
{
get { return this._opsItemSNSTopicArn; }
set { this._opsItemSNSTopicArn = value; }
}
// Check to see if OpsItemSNSTopicArn property is set
internal bool IsSetOpsItemSNSTopicArn()
{
return this._opsItemSNSTopicArn != null;
}
/// <summary>
/// Gets and sets the property RemoveSNSTopic.
/// <para>
/// Disassociates the SNS topic from the opsItem created for detected problems.
/// </para>
/// </summary>
public bool RemoveSNSTopic
{
get { return this._removeSNSTopic.GetValueOrDefault(); }
set { this._removeSNSTopic = value; }
}
// Check to see if RemoveSNSTopic property is set
internal bool IsSetRemoveSNSTopic()
{
return this._removeSNSTopic.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 159 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the UpdateApplication operation.
/// </summary>
public partial class UpdateApplicationResponse : AmazonWebServiceResponse
{
private ApplicationInfo _applicationInfo;
/// <summary>
/// Gets and sets the property ApplicationInfo.
/// <para>
/// Information about the application.
/// </para>
/// </summary>
public ApplicationInfo ApplicationInfo
{
get { return this._applicationInfo; }
set { this._applicationInfo = value; }
}
// Check to see if ApplicationInfo property is set
internal bool IsSetApplicationInfo()
{
return this._applicationInfo != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the UpdateComponentConfiguration operation.
/// Updates the monitoring configurations for the component. The configuration input parameter
/// is an escaped JSON of the configuration and should match the schema of what is returned
/// by <code>DescribeComponentConfigurationRecommendation</code>.
/// </summary>
public partial class UpdateComponentConfigurationRequest : AmazonApplicationInsightsRequest
{
private bool? _autoConfigEnabled;
private string _componentConfiguration;
private string _componentName;
private bool? _monitor;
private string _resourceGroupName;
private Tier _tier;
/// <summary>
/// Gets and sets the property AutoConfigEnabled.
/// <para>
/// Automatically configures the component by applying the recommended configurations.
///
/// </para>
/// </summary>
public bool AutoConfigEnabled
{
get { return this._autoConfigEnabled.GetValueOrDefault(); }
set { this._autoConfigEnabled = value; }
}
// Check to see if AutoConfigEnabled property is set
internal bool IsSetAutoConfigEnabled()
{
return this._autoConfigEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property ComponentConfiguration.
/// <para>
/// The configuration settings of the component. The value is the escaped JSON of the
/// configuration. For more information about the JSON format, see <a href="https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/working-with-json.html">Working
/// with JSON</a>. You can send a request to <code>DescribeComponentConfigurationRecommendation</code>
/// to see the recommended configuration for a component. For the complete format of the
/// component configuration file, see <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/component-config.html">Component
/// Configuration</a>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=10000)]
public string ComponentConfiguration
{
get { return this._componentConfiguration; }
set { this._componentConfiguration = value; }
}
// Check to see if ComponentConfiguration property is set
internal bool IsSetComponentConfiguration()
{
return this._componentConfiguration != null;
}
/// <summary>
/// Gets and sets the property ComponentName.
/// <para>
/// The name of the component.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ComponentName
{
get { return this._componentName; }
set { this._componentName = value; }
}
// Check to see if ComponentName property is set
internal bool IsSetComponentName()
{
return this._componentName != null;
}
/// <summary>
/// Gets and sets the property Monitor.
/// <para>
/// Indicates whether the application component is monitored.
/// </para>
/// </summary>
public bool Monitor
{
get { return this._monitor.GetValueOrDefault(); }
set { this._monitor = value; }
}
// Check to see if Monitor property is set
internal bool IsSetMonitor()
{
return this._monitor.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
/// <summary>
/// Gets and sets the property Tier.
/// <para>
/// The tier of the application component.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public Tier Tier
{
get { return this._tier; }
set { this._tier = value; }
}
// Check to see if Tier property is set
internal bool IsSetTier()
{
return this._tier != 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the UpdateComponentConfiguration operation.
/// </summary>
public partial class UpdateComponentConfigurationResponse : 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the UpdateComponent operation.
/// Updates the custom component name and/or the list of resources that make up the component.
/// </summary>
public partial class UpdateComponentRequest : AmazonApplicationInsightsRequest
{
private string _componentName;
private string _newComponentName;
private string _resourceGroupName;
private List<string> _resourceList = new List<string>();
/// <summary>
/// Gets and sets the property ComponentName.
/// <para>
/// The name of the component.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string ComponentName
{
get { return this._componentName; }
set { this._componentName = value; }
}
// Check to see if ComponentName property is set
internal bool IsSetComponentName()
{
return this._componentName != null;
}
/// <summary>
/// Gets and sets the property NewComponentName.
/// <para>
/// The new name of the component.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=128)]
public string NewComponentName
{
get { return this._newComponentName; }
set { this._newComponentName = value; }
}
// Check to see if NewComponentName property is set
internal bool IsSetNewComponentName()
{
return this._newComponentName != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
/// <summary>
/// Gets and sets the property ResourceList.
/// <para>
/// The list of resource ARNs that belong to the component.
/// </para>
/// </summary>
public List<string> ResourceList
{
get { return this._resourceList; }
set { this._resourceList = value; }
}
// Check to see if ResourceList property is set
internal bool IsSetResourceList()
{
return this._resourceList != null && this._resourceList.Count > 0;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the UpdateComponent operation.
/// </summary>
public partial class UpdateComponentResponse : 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// Container for the parameters to the UpdateLogPattern operation.
/// Adds a log pattern to a <code>LogPatternSet</code>.
/// </summary>
public partial class UpdateLogPatternRequest : AmazonApplicationInsightsRequest
{
private string _pattern;
private string _patternName;
private string _patternSetName;
private int? _rank;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property Pattern.
/// <para>
/// The log pattern. The pattern must be DFA compatible. Patterns that utilize forward
/// lookahead or backreference constructions are not supported.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=50)]
public string Pattern
{
get { return this._pattern; }
set { this._pattern = value; }
}
// Check to see if Pattern property is set
internal bool IsSetPattern()
{
return this._pattern != null;
}
/// <summary>
/// Gets and sets the property PatternName.
/// <para>
/// The name of the log pattern.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=50)]
public string PatternName
{
get { return this._patternName; }
set { this._patternName = value; }
}
// Check to see if PatternName property is set
internal bool IsSetPatternName()
{
return this._patternName != null;
}
/// <summary>
/// Gets and sets the property PatternSetName.
/// <para>
/// The name of the log pattern set.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=30)]
public string PatternSetName
{
get { return this._patternSetName; }
set { this._patternSetName = value; }
}
// Check to see if PatternSetName property is set
internal bool IsSetPatternSetName()
{
return this._patternSetName != null;
}
/// <summary>
/// Gets and sets the property Rank.
/// <para>
/// Rank of the log pattern. Must be a value between <code>1</code> and <code>1,000,000</code>.
/// The patterns are sorted by rank, so we recommend that you set your highest priority
/// patterns with the lowest rank. A pattern of rank <code>1</code> will be the first
/// to get matched to a log line. A pattern of rank <code>1,000,000</code> will be last
/// to get matched. When you configure custom log patterns from the console, a <code>Low</code>
/// severity pattern translates to a <code>750,000</code> rank. A <code>Medium</code>
/// severity pattern translates to a <code>500,000</code> rank. And a <code>High</code>
/// severity pattern translates to a <code>250,000</code> rank. Rank values less than
/// <code>1</code> or greater than <code>1,000,000</code> are reserved for AWS-provided
/// patterns.
/// </para>
/// </summary>
public int Rank
{
get { return this._rank.GetValueOrDefault(); }
set { this._rank = value; }
}
// Check to see if Rank property is set
internal bool IsSetRank()
{
return this._rank.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 148 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// This is the response object from the UpdateLogPattern operation.
/// </summary>
public partial class UpdateLogPatternResponse : AmazonWebServiceResponse
{
private LogPattern _logPattern;
private string _resourceGroupName;
/// <summary>
/// Gets and sets the property LogPattern.
/// <para>
/// The successfully created log pattern.
/// </para>
/// </summary>
public LogPattern LogPattern
{
get { return this._logPattern; }
set { this._logPattern = value; }
}
// Check to see if LogPattern property is set
internal bool IsSetLogPattern()
{
return this._logPattern != null;
}
/// <summary>
/// Gets and sets the property ResourceGroupName.
/// <para>
/// The name of the resource group.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ResourceGroupName
{
get { return this._resourceGroupName; }
set { this._resourceGroupName = value; }
}
// Check to see if ResourceGroupName property is set
internal bool IsSetResourceGroupName()
{
return this._resourceGroupName != null;
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model
{
/// <summary>
/// The parameter is not valid.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ValidationException : AmazonApplicationInsightsException
{
/// <summary>
/// Constructs a new ValidationException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ValidationException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ValidationException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="innerException"></param>
public ValidationException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </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 ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ValidationException(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 ValidationException 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 ValidationException(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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AccessDeniedException Object
/// </summary>
public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AccessDeniedException 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 AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AccessDeniedExceptionUnmarshaller 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ApplicationComponent Object
/// </summary>
public class ApplicationComponentUnmarshaller : IUnmarshaller<ApplicationComponent, XmlUnmarshallerContext>, IUnmarshaller<ApplicationComponent, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ApplicationComponent IUnmarshaller<ApplicationComponent, 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 ApplicationComponent Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ApplicationComponent unmarshalledObject = new ApplicationComponent();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ComponentName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ComponentName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ComponentRemarks", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ComponentRemarks = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DetectedWorkload", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, Dictionary<string, string>, StringUnmarshaller, DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>>(StringUnmarshaller.Instance, new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance));
unmarshalledObject.DetectedWorkload = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Monitor", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.Monitor = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("OsType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.OsType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Tier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Tier = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ApplicationComponentUnmarshaller _instance = new ApplicationComponentUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ApplicationComponentUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 128 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ApplicationInfo Object
/// </summary>
public class ApplicationInfoUnmarshaller : IUnmarshaller<ApplicationInfo, XmlUnmarshallerContext>, IUnmarshaller<ApplicationInfo, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ApplicationInfo IUnmarshaller<ApplicationInfo, 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 ApplicationInfo Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ApplicationInfo unmarshalledObject = new ApplicationInfo();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AutoConfigEnabled", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.AutoConfigEnabled = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CWEMonitorEnabled", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.CWEMonitorEnabled = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DiscoveryType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DiscoveryType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LifeCycle", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.LifeCycle = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("OpsCenterEnabled", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.OpsCenterEnabled = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("OpsItemSNSTopicArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.OpsItemSNSTopicArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Remarks", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Remarks = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceGroupName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ApplicationInfoUnmarshaller _instance = new ApplicationInfoUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ApplicationInfoUnmarshaller 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BadRequestException Object
/// </summary>
public class BadRequestExceptionUnmarshaller : IErrorResponseUnmarshaller<BadRequestException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public BadRequestException 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 BadRequestException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
BadRequestException unmarshalledObject = new BadRequestException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static BadRequestExceptionUnmarshaller _instance = new BadRequestExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BadRequestExceptionUnmarshaller 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ConfigurationEvent Object
/// </summary>
public class ConfigurationEventUnmarshaller : IUnmarshaller<ConfigurationEvent, XmlUnmarshallerContext>, IUnmarshaller<ConfigurationEvent, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ConfigurationEvent IUnmarshaller<ConfigurationEvent, 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 ConfigurationEvent Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ConfigurationEvent unmarshalledObject = new ConfigurationEvent();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("EventDetail", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EventDetail = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventResourceName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EventResourceName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventResourceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EventResourceType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EventStatus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EventTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.EventTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MonitoredResourceARN", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.MonitoredResourceARN = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ConfigurationEventUnmarshaller _instance = new ConfigurationEventUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConfigurationEventUnmarshaller 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateApplication Request Marshaller
/// </summary>
public class CreateApplicationRequestMarshaller : IMarshaller<IRequest, CreateApplicationRequest> , 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((CreateApplicationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateApplicationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.CreateApplication";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetAutoConfigEnabled())
{
context.Writer.WritePropertyName("AutoConfigEnabled");
context.Writer.Write(publicRequest.AutoConfigEnabled);
}
if(publicRequest.IsSetAutoCreate())
{
context.Writer.WritePropertyName("AutoCreate");
context.Writer.Write(publicRequest.AutoCreate);
}
if(publicRequest.IsSetCWEMonitorEnabled())
{
context.Writer.WritePropertyName("CWEMonitorEnabled");
context.Writer.Write(publicRequest.CWEMonitorEnabled);
}
if(publicRequest.IsSetGroupingType())
{
context.Writer.WritePropertyName("GroupingType");
context.Writer.Write(publicRequest.GroupingType);
}
if(publicRequest.IsSetOpsCenterEnabled())
{
context.Writer.WritePropertyName("OpsCenterEnabled");
context.Writer.Write(publicRequest.OpsCenterEnabled);
}
if(publicRequest.IsSetOpsItemSNSTopicArn())
{
context.Writer.WritePropertyName("OpsItemSNSTopicArn");
context.Writer.Write(publicRequest.OpsItemSNSTopicArn);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("Tags");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagsListValue in publicRequest.Tags)
{
context.Writer.WriteObjectStart();
var marshaller = TagMarshaller.Instance;
marshaller.Marshall(publicRequestTagsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateApplicationRequestMarshaller _instance = new CreateApplicationRequestMarshaller();
internal static CreateApplicationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateApplicationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 155 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateApplication operation
/// </summary>
public class CreateApplicationResponseUnmarshaller : 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)
{
CreateApplicationResponse response = new CreateApplicationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ApplicationInfo", targetDepth))
{
var unmarshaller = ApplicationInfoUnmarshaller.Instance;
response.ApplicationInfo = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceInUseException"))
{
return ResourceInUseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("TagsAlreadyExistException"))
{
return TagsAlreadyExistExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateApplicationResponseUnmarshaller _instance = new CreateApplicationResponseUnmarshaller();
internal static CreateApplicationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateApplicationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateComponent Request Marshaller
/// </summary>
public class CreateComponentRequestMarshaller : IMarshaller<IRequest, CreateComponentRequest> , 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((CreateComponentRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateComponentRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.CreateComponent";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetComponentName())
{
context.Writer.WritePropertyName("ComponentName");
context.Writer.Write(publicRequest.ComponentName);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
if(publicRequest.IsSetResourceList())
{
context.Writer.WritePropertyName("ResourceList");
context.Writer.WriteArrayStart();
foreach(var publicRequestResourceListListValue in publicRequest.ResourceList)
{
context.Writer.Write(publicRequestResourceListListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateComponentRequestMarshaller _instance = new CreateComponentRequestMarshaller();
internal static CreateComponentRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateComponentRequestMarshaller 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateComponent operation
/// </summary>
public class CreateComponentResponseUnmarshaller : 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)
{
CreateComponentResponse response = new CreateComponentResponse();
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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceInUseException"))
{
return ResourceInUseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateComponentResponseUnmarshaller _instance = new CreateComponentResponseUnmarshaller();
internal static CreateComponentResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateComponentResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateLogPattern Request Marshaller
/// </summary>
public class CreateLogPatternRequestMarshaller : IMarshaller<IRequest, CreateLogPatternRequest> , 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((CreateLogPatternRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateLogPatternRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.CreateLogPattern";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetPattern())
{
context.Writer.WritePropertyName("Pattern");
context.Writer.Write(publicRequest.Pattern);
}
if(publicRequest.IsSetPatternName())
{
context.Writer.WritePropertyName("PatternName");
context.Writer.Write(publicRequest.PatternName);
}
if(publicRequest.IsSetPatternSetName())
{
context.Writer.WritePropertyName("PatternSetName");
context.Writer.Write(publicRequest.PatternSetName);
}
if(publicRequest.IsSetRank())
{
context.Writer.WritePropertyName("Rank");
context.Writer.Write(publicRequest.Rank);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateLogPatternRequestMarshaller _instance = new CreateLogPatternRequestMarshaller();
internal static CreateLogPatternRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateLogPatternRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 127 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateLogPattern operation
/// </summary>
public class CreateLogPatternResponseUnmarshaller : 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)
{
CreateLogPatternResponse response = new CreateLogPatternResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("LogPattern", targetDepth))
{
var unmarshaller = LogPatternUnmarshaller.Instance;
response.LogPattern = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ResourceGroupName = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceInUseException"))
{
return ResourceInUseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateLogPatternResponseUnmarshaller _instance = new CreateLogPatternResponseUnmarshaller();
internal static CreateLogPatternResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateLogPatternResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 128 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteApplication Request Marshaller
/// </summary>
public class DeleteApplicationRequestMarshaller : IMarshaller<IRequest, DeleteApplicationRequest> , 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((DeleteApplicationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteApplicationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DeleteApplication";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteApplicationRequestMarshaller _instance = new DeleteApplicationRequestMarshaller();
internal static DeleteApplicationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteApplicationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteApplication operation
/// </summary>
public class DeleteApplicationResponseUnmarshaller : 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)
{
DeleteApplicationResponse response = new DeleteApplicationResponse();
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("BadRequestException"))
{
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteApplicationResponseUnmarshaller _instance = new DeleteApplicationResponseUnmarshaller();
internal static DeleteApplicationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteApplicationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteComponent Request Marshaller
/// </summary>
public class DeleteComponentRequestMarshaller : IMarshaller<IRequest, DeleteComponentRequest> , 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((DeleteComponentRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteComponentRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DeleteComponent";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetComponentName())
{
context.Writer.WritePropertyName("ComponentName");
context.Writer.Write(publicRequest.ComponentName);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteComponentRequestMarshaller _instance = new DeleteComponentRequestMarshaller();
internal static DeleteComponentRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteComponentRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteComponent operation
/// </summary>
public class DeleteComponentResponseUnmarshaller : 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)
{
DeleteComponentResponse response = new DeleteComponentResponse();
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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteComponentResponseUnmarshaller _instance = new DeleteComponentResponseUnmarshaller();
internal static DeleteComponentResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteComponentResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 107 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteLogPattern Request Marshaller
/// </summary>
public class DeleteLogPatternRequestMarshaller : IMarshaller<IRequest, DeleteLogPatternRequest> , 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((DeleteLogPatternRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteLogPatternRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DeleteLogPattern";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetPatternName())
{
context.Writer.WritePropertyName("PatternName");
context.Writer.Write(publicRequest.PatternName);
}
if(publicRequest.IsSetPatternSetName())
{
context.Writer.WritePropertyName("PatternSetName");
context.Writer.Write(publicRequest.PatternSetName);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DeleteLogPatternRequestMarshaller _instance = new DeleteLogPatternRequestMarshaller();
internal static DeleteLogPatternRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteLogPatternRequestMarshaller 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteLogPattern operation
/// </summary>
public class DeleteLogPatternResponseUnmarshaller : 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)
{
DeleteLogPatternResponse response = new DeleteLogPatternResponse();
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("BadRequestException"))
{
return BadRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteLogPatternResponseUnmarshaller _instance = new DeleteLogPatternResponseUnmarshaller();
internal static DeleteLogPatternResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteLogPatternResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeApplication Request Marshaller
/// </summary>
public class DescribeApplicationRequestMarshaller : IMarshaller<IRequest, DescribeApplicationRequest> , 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((DescribeApplicationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeApplicationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DescribeApplication";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeApplicationRequestMarshaller _instance = new DescribeApplicationRequestMarshaller();
internal static DescribeApplicationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeApplicationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeApplication operation
/// </summary>
public class DescribeApplicationResponseUnmarshaller : 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)
{
DescribeApplicationResponse response = new DescribeApplicationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ApplicationInfo", targetDepth))
{
var unmarshaller = ApplicationInfoUnmarshaller.Instance;
response.ApplicationInfo = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeApplicationResponseUnmarshaller _instance = new DescribeApplicationResponseUnmarshaller();
internal static DescribeApplicationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeApplicationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 118 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeComponentConfigurationRecommendation Request Marshaller
/// </summary>
public class DescribeComponentConfigurationRecommendationRequestMarshaller : IMarshaller<IRequest, DescribeComponentConfigurationRecommendationRequest> , 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((DescribeComponentConfigurationRecommendationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeComponentConfigurationRecommendationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DescribeComponentConfigurationRecommendation";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetComponentName())
{
context.Writer.WritePropertyName("ComponentName");
context.Writer.Write(publicRequest.ComponentName);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
if(publicRequest.IsSetTier())
{
context.Writer.WritePropertyName("Tier");
context.Writer.Write(publicRequest.Tier);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeComponentConfigurationRecommendationRequestMarshaller _instance = new DescribeComponentConfigurationRecommendationRequestMarshaller();
internal static DescribeComponentConfigurationRecommendationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeComponentConfigurationRecommendationRequestMarshaller 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeComponentConfigurationRecommendation operation
/// </summary>
public class DescribeComponentConfigurationRecommendationResponseUnmarshaller : 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)
{
DescribeComponentConfigurationRecommendationResponse response = new DescribeComponentConfigurationRecommendationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ComponentConfiguration", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ComponentConfiguration = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeComponentConfigurationRecommendationResponseUnmarshaller _instance = new DescribeComponentConfigurationRecommendationResponseUnmarshaller();
internal static DescribeComponentConfigurationRecommendationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeComponentConfigurationRecommendationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 118 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeComponentConfiguration Request Marshaller
/// </summary>
public class DescribeComponentConfigurationRequestMarshaller : IMarshaller<IRequest, DescribeComponentConfigurationRequest> , 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((DescribeComponentConfigurationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeComponentConfigurationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DescribeComponentConfiguration";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetComponentName())
{
context.Writer.WritePropertyName("ComponentName");
context.Writer.Write(publicRequest.ComponentName);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeComponentConfigurationRequestMarshaller _instance = new DescribeComponentConfigurationRequestMarshaller();
internal static DescribeComponentConfigurationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeComponentConfigurationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeComponentConfiguration operation
/// </summary>
public class DescribeComponentConfigurationResponseUnmarshaller : 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)
{
DescribeComponentConfigurationResponse response = new DescribeComponentConfigurationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ComponentConfiguration", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ComponentConfiguration = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Monitor", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
response.Monitor = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Tier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Tier = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeComponentConfigurationResponseUnmarshaller _instance = new DescribeComponentConfigurationResponseUnmarshaller();
internal static DescribeComponentConfigurationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeComponentConfigurationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeComponent Request Marshaller
/// </summary>
public class DescribeComponentRequestMarshaller : IMarshaller<IRequest, DescribeComponentRequest> , 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((DescribeComponentRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeComponentRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DescribeComponent";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetComponentName())
{
context.Writer.WritePropertyName("ComponentName");
context.Writer.Write(publicRequest.ComponentName);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeComponentRequestMarshaller _instance = new DescribeComponentRequestMarshaller();
internal static DescribeComponentRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeComponentRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeComponent operation
/// </summary>
public class DescribeComponentResponseUnmarshaller : 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)
{
DescribeComponentResponse response = new DescribeComponentResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ApplicationComponent", targetDepth))
{
var unmarshaller = ApplicationComponentUnmarshaller.Instance;
response.ApplicationComponent = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
response.ResourceList = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeComponentResponseUnmarshaller _instance = new DescribeComponentResponseUnmarshaller();
internal static DescribeComponentResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeComponentResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeLogPattern Request Marshaller
/// </summary>
public class DescribeLogPatternRequestMarshaller : IMarshaller<IRequest, DescribeLogPatternRequest> , 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((DescribeLogPatternRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeLogPatternRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DescribeLogPattern";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetPatternName())
{
context.Writer.WritePropertyName("PatternName");
context.Writer.Write(publicRequest.PatternName);
}
if(publicRequest.IsSetPatternSetName())
{
context.Writer.WritePropertyName("PatternSetName");
context.Writer.Write(publicRequest.PatternSetName);
}
if(publicRequest.IsSetResourceGroupName())
{
context.Writer.WritePropertyName("ResourceGroupName");
context.Writer.Write(publicRequest.ResourceGroupName);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeLogPatternRequestMarshaller _instance = new DescribeLogPatternRequestMarshaller();
internal static DescribeLogPatternRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeLogPatternRequestMarshaller 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeLogPattern operation
/// </summary>
public class DescribeLogPatternResponseUnmarshaller : 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)
{
DescribeLogPatternResponse response = new DescribeLogPatternResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("LogPattern", targetDepth))
{
var unmarshaller = LogPatternUnmarshaller.Instance;
response.LogPattern = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceGroupName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ResourceGroupName = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeLogPatternResponseUnmarshaller _instance = new DescribeLogPatternResponseUnmarshaller();
internal static DescribeLogPatternResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeLogPatternResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeObservation Request Marshaller
/// </summary>
public class DescribeObservationRequestMarshaller : IMarshaller<IRequest, DescribeObservationRequest> , 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((DescribeObservationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeObservationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DescribeObservation";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetObservationId())
{
context.Writer.WritePropertyName("ObservationId");
context.Writer.Write(publicRequest.ObservationId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeObservationRequestMarshaller _instance = new DescribeObservationRequestMarshaller();
internal static DescribeObservationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeObservationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeObservation operation
/// </summary>
public class DescribeObservationResponseUnmarshaller : 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)
{
DescribeObservationResponse response = new DescribeObservationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Observation", targetDepth))
{
var unmarshaller = ObservationUnmarshaller.Instance;
response.Observation = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeObservationResponseUnmarshaller _instance = new DescribeObservationResponseUnmarshaller();
internal static DescribeObservationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeObservationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 118 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeProblemObservations Request Marshaller
/// </summary>
public class DescribeProblemObservationsRequestMarshaller : IMarshaller<IRequest, DescribeProblemObservationsRequest> , 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((DescribeProblemObservationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeProblemObservationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DescribeProblemObservations";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetProblemId())
{
context.Writer.WritePropertyName("ProblemId");
context.Writer.Write(publicRequest.ProblemId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeProblemObservationsRequestMarshaller _instance = new DescribeProblemObservationsRequestMarshaller();
internal static DescribeProblemObservationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeProblemObservationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 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 application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeProblemObservations operation
/// </summary>
public class DescribeProblemObservationsResponseUnmarshaller : 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)
{
DescribeProblemObservationsResponse response = new DescribeProblemObservationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("RelatedObservations", targetDepth))
{
var unmarshaller = RelatedObservationsUnmarshaller.Instance;
response.RelatedObservations = 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("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonApplicationInsightsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeProblemObservationsResponseUnmarshaller _instance = new DescribeProblemObservationsResponseUnmarshaller();
internal static DescribeProblemObservationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeProblemObservationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 118 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the application-insights-2018-11-25.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.ApplicationInsights.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.ApplicationInsights.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeProblem Request Marshaller
/// </summary>
public class DescribeProblemRequestMarshaller : IMarshaller<IRequest, DescribeProblemRequest> , 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((DescribeProblemRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeProblemRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.ApplicationInsights");
string target = "EC2WindowsBarleyService.DescribeProblem";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-25";
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.IsSetProblemId())
{
context.Writer.WritePropertyName("ProblemId");
context.Writer.Write(publicRequest.ProblemId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeProblemRequestMarshaller _instance = new DescribeProblemRequestMarshaller();
internal static DescribeProblemRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeProblemRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 103 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.