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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the ListControlDomainInsights operation. /// Lists the latest analytics data for control domains across all of your active assessments. /// /// /// <note> /// <para> /// A control domain is listed only if at least one of the controls within that domain /// collected evidence on the <code>lastUpdated</code> date of <code>controlDomainInsights</code>. /// If this condition isn’t met, no data is listed for that control domain. /// </para> /// </note> /// </summary> public partial class ListControlDomainInsightsRequest : AmazonAuditManagerRequest { private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// Represents the maximum number of results on a page or for an API request call. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 pagination token that's used to fetch the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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; } } }
88
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the ListControlDomainInsights operation. /// </summary> public partial class ListControlDomainInsightsResponse : AmazonWebServiceResponse { private List<ControlDomainInsights> _controlDomainInsights = new List<ControlDomainInsights>(); private string _nextToken; /// <summary> /// Gets and sets the property ControlDomainInsights. /// <para> /// The control domain analytics data that the <code>ListControlDomainInsights</code> /// API returned. /// </para> /// </summary> public List<ControlDomainInsights> ControlDomainInsights { get { return this._controlDomainInsights; } set { this._controlDomainInsights = value; } } // Check to see if ControlDomainInsights property is set internal bool IsSetControlDomainInsights() { return this._controlDomainInsights != null && this._controlDomainInsights.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used to fetch the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the ListControlInsightsByControlDomain operation. /// Lists the latest analytics data for controls within a specific control domain across /// all active assessments. /// /// <note> /// <para> /// Control insights are listed only if the control belongs to the control domain that /// was specified and the control collected evidence on the <code>lastUpdated</code> date /// of <code>controlInsightsMetadata</code>. If neither of these conditions are met, no /// data is listed for that control. /// </para> /// </note> /// </summary> public partial class ListControlInsightsByControlDomainRequest : AmazonAuditManagerRequest { private string _controlDomainId; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property ControlDomainId. /// <para> /// The unique identifier for the control domain. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string ControlDomainId { get { return this._controlDomainId; } set { this._controlDomainId = value; } } // Check to see if ControlDomainId property is set internal bool IsSetControlDomainId() { return this._controlDomainId != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// Represents the maximum number of results on a page or for an API request call. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 pagination token that's used to fetch the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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; } } }
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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the ListControlInsightsByControlDomain operation. /// </summary> public partial class ListControlInsightsByControlDomainResponse : AmazonWebServiceResponse { private List<ControlInsightsMetadataItem> _controlInsightsMetadata = new List<ControlInsightsMetadataItem>(); private string _nextToken; /// <summary> /// Gets and sets the property ControlInsightsMetadata. /// <para> /// The control analytics data that the <code>ListControlInsightsByControlDomain</code> /// API returned. /// </para> /// </summary> public List<ControlInsightsMetadataItem> ControlInsightsMetadata { get { return this._controlInsightsMetadata; } set { this._controlInsightsMetadata = value; } } // Check to see if ControlInsightsMetadata property is set internal bool IsSetControlInsightsMetadata() { return this._controlInsightsMetadata != null && this._controlInsightsMetadata.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used to fetch the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the ListControls operation. /// Returns a list of controls from Audit Manager. /// </summary> public partial class ListControlsRequest : AmazonAuditManagerRequest { private ControlType _controlType; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property ControlType. /// <para> /// The type of control, such as a standard control or a custom control. /// </para> /// </summary> [AWSProperty(Required=true)] public ControlType ControlType { get { return this._controlType; } set { this._controlType = value; } } // Check to see if ControlType property is set internal bool IsSetControlType() { return this._controlType != null; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// Represents the maximum number of results on a page or for an API request call. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 pagination token that's used to fetch the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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; } } }
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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the ListControls operation. /// </summary> public partial class ListControlsResponse : AmazonWebServiceResponse { private List<ControlMetadata> _controlMetadataList = new List<ControlMetadata>(); private string _nextToken; /// <summary> /// Gets and sets the property ControlMetadataList. /// <para> /// A list of metadata that the <code>ListControls</code> API returns for each control. /// </para> /// </summary> public List<ControlMetadata> ControlMetadataList { get { return this._controlMetadataList; } set { this._controlMetadataList = value; } } // Check to see if ControlMetadataList property is set internal bool IsSetControlMetadataList() { return this._controlMetadataList != null && this._controlMetadataList.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used to fetch the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the ListKeywordsForDataSource operation. /// Returns a list of keywords that are pre-mapped to the specified control data source. /// </summary> public partial class ListKeywordsForDataSourceRequest : AmazonAuditManagerRequest { private int? _maxResults; private string _nextToken; private SourceType _source; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// Represents the maximum number of results on a page or for an API request call. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 pagination token that's used to fetch the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 Source. /// <para> /// The control mapping data source that the keywords apply to. /// </para> /// </summary> [AWSProperty(Required=true)] public SourceType Source { get { return this._source; } set { this._source = value; } } // Check to see if Source property is set internal bool IsSetSource() { return this._source != 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the ListKeywordsForDataSource operation. /// </summary> public partial class ListKeywordsForDataSourceResponse : AmazonWebServiceResponse { private List<string> _keywords = new List<string>(); private string _nextToken; /// <summary> /// Gets and sets the property Keywords. /// <para> /// The list of keywords for the event mapping source. /// </para> /// </summary> public List<string> Keywords { get { return this._keywords; } set { this._keywords = value; } } // Check to see if Keywords property is set internal bool IsSetKeywords() { return this._keywords != null && this._keywords.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used to fetch the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the ListNotifications operation. /// Returns a list of all Audit Manager notifications. /// </summary> public partial class ListNotificationsRequest : AmazonAuditManagerRequest { private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// Represents the maximum number of results on a page or for an API request call. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 pagination token that's used to fetch the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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; } } }
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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the ListNotifications operation. /// </summary> public partial class ListNotificationsResponse : AmazonWebServiceResponse { private string _nextToken; private List<Notification> _notifications = new List<Notification>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// The pagination token that's used to fetch the next set of results. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] 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 Notifications. /// <para> /// The returned list of notifications. /// </para> /// </summary> public List<Notification> Notifications { get { return this._notifications; } set { this._notifications = value; } } // Check to see if Notifications property is set internal bool IsSetNotifications() { return this._notifications != null && this._notifications.Count > 0; } } }
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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the ListTagsForResource operation. /// Returns a list of tags for the specified resource in Audit Manager. /// </summary> public partial class ListTagsForResourceRequest : AmazonAuditManagerRequest { private string _resourceArn; /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Name (ARN) of the resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] 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; } } }
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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the ListTagsForResource operation. /// </summary> public partial class ListTagsForResourceResponse : AmazonWebServiceResponse { private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property Tags. /// <para> /// The list of tags that the <code>ListTagsForResource</code> API returned. /// </para> /// </summary> [AWSProperty(Min=0, Max=50)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Evidence that's manually added to a control in Audit Manager. <code>manualEvidence</code> /// can be one of the following: <code>evidenceFileName</code>, <code>s3ResourcePath</code>, /// or <code>textResponse</code>. /// </summary> public partial class ManualEvidence { private string _evidenceFileName; private string _s3ResourcePath; private string _textResponse; /// <summary> /// Gets and sets the property EvidenceFileName. /// <para> /// The name of the file that's uploaded as manual evidence. This name is populated using /// the <code>evidenceFileName</code> value from the <a href="https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_GetEvidenceFileUploadUrl.html"> /// <code>GetEvidenceFileUploadUrl</code> </a> API response. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string EvidenceFileName { get { return this._evidenceFileName; } set { this._evidenceFileName = value; } } // Check to see if EvidenceFileName property is set internal bool IsSetEvidenceFileName() { return this._evidenceFileName != null; } /// <summary> /// Gets and sets the property S3ResourcePath. /// <para> /// The S3 URL of the object that's imported as manual evidence. /// </para> /// </summary> [AWSProperty(Min=1, Max=1024)] public string S3ResourcePath { get { return this._s3ResourcePath; } set { this._s3ResourcePath = value; } } // Check to see if S3ResourcePath property is set internal bool IsSetS3ResourcePath() { return this._s3ResourcePath != null; } /// <summary> /// Gets and sets the property TextResponse. /// <para> /// The plain text response that's entered and saved as manual evidence. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] public string TextResponse { get { return this._textResponse; } set { this._textResponse = value; } } // Check to see if TextResponse property is set internal bool IsSetTextResponse() { return this._textResponse != null; } } }
102
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// The notification that informs a user of an update in Audit Manager. For example, /// this includes the notification that's sent when a control set is delegated for review. /// </summary> public partial class Notification { private string _assessmentId; private string _assessmentName; private string _controlSetId; private string _controlSetName; private string _description; private DateTime? _eventTime; private string _id; private string _source; /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The identifier for the assessment. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property AssessmentName. /// <para> /// The name of the related assessment. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string AssessmentName { get { return this._assessmentName; } set { this._assessmentName = value; } } // Check to see if AssessmentName property is set internal bool IsSetAssessmentName() { return this._assessmentName != null; } /// <summary> /// Gets and sets the property ControlSetId. /// <para> /// The identifier for the control set. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string ControlSetId { get { return this._controlSetId; } set { this._controlSetId = value; } } // Check to see if ControlSetId property is set internal bool IsSetControlSetId() { return this._controlSetId != null; } /// <summary> /// Gets and sets the property ControlSetName. /// <para> /// Specifies the name of the control set that the notification is about. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string ControlSetName { get { return this._controlSetName; } set { this._controlSetName = value; } } // Check to see if ControlSetName property is set internal bool IsSetControlSetName() { return this._controlSetName != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the notification. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property EventTime. /// <para> /// The time when the notification was sent. /// </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 Id. /// <para> /// The unique identifier for the notification. /// </para> /// </summary> [AWSProperty(Min=47, Max=50)] 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 Source. /// <para> /// The sender of the notification. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string Source { get { return this._source; } set { this._source = value; } } // Check to see if Source property is set internal bool IsSetSource() { return this._source != null; } } }
198
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the RegisterAccount operation. /// Enables Audit Manager for the specified Amazon Web Services account. /// </summary> public partial class RegisterAccountRequest : AmazonAuditManagerRequest { private string _delegatedAdminAccount; private string _kmsKey; /// <summary> /// Gets and sets the property DelegatedAdminAccount. /// <para> /// The delegated administrator account for Audit Manager. /// </para> /// </summary> [AWSProperty(Min=12, Max=12)] public string DelegatedAdminAccount { get { return this._delegatedAdminAccount; } set { this._delegatedAdminAccount = value; } } // Check to see if DelegatedAdminAccount property is set internal bool IsSetDelegatedAdminAccount() { return this._delegatedAdminAccount != null; } /// <summary> /// Gets and sets the property KmsKey. /// <para> /// The KMS key details. /// </para> /// </summary> [AWSProperty(Min=7, Max=2048)] public string KmsKey { get { return this._kmsKey; } set { this._kmsKey = value; } } // Check to see if KmsKey property is set internal bool IsSetKmsKey() { return this._kmsKey != 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the RegisterAccount operation. /// </summary> public partial class RegisterAccountResponse : AmazonWebServiceResponse { private AccountStatus _status; /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the account registration request. /// </para> /// </summary> public AccountStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the RegisterOrganizationAdminAccount operation. /// Enables an Amazon Web Services account within the organization as the delegated administrator /// for Audit Manager. /// </summary> public partial class RegisterOrganizationAdminAccountRequest : AmazonAuditManagerRequest { private string _adminAccountId; /// <summary> /// Gets and sets the property AdminAccountId. /// <para> /// The identifier for the delegated administrator account. /// </para> /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string AdminAccountId { get { return this._adminAccountId; } set { this._adminAccountId = value; } } // Check to see if AdminAccountId property is set internal bool IsSetAdminAccountId() { return this._adminAccountId != null; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the RegisterOrganizationAdminAccount operation. /// </summary> public partial class RegisterOrganizationAdminAccountResponse : AmazonWebServiceResponse { private string _adminAccountId; private string _organizationId; /// <summary> /// Gets and sets the property AdminAccountId. /// <para> /// The identifier for the delegated administrator account. /// </para> /// </summary> [AWSProperty(Min=12, Max=12)] public string AdminAccountId { get { return this._adminAccountId; } set { this._adminAccountId = value; } } // Check to see if AdminAccountId property is set internal bool IsSetAdminAccountId() { return this._adminAccountId != null; } /// <summary> /// Gets and sets the property OrganizationId. /// <para> /// The identifier for the organization. /// </para> /// </summary> [AWSProperty(Min=12, Max=34)] public string OrganizationId { get { return this._organizationId; } set { this._organizationId = value; } } // Check to see if OrganizationId property is set internal bool IsSetOrganizationId() { return this._organizationId != 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// A system asset that's evaluated in an Audit Manager assessment. /// </summary> public partial class Resource { private string _arn; private string _complianceCheck; private string _value; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) for the resource. /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property ComplianceCheck. /// <para> /// The evaluation status for a resource that was assessed when collecting compliance /// check evidence. /// </para> /// <ul> <li> /// <para> /// Audit Manager classes the resource as non-compliant if Security Hub reports a <i>Fail</i> /// result, or if Config reports a <i>Non-compliant</i> result. /// </para> /// </li> <li> /// <para> /// Audit Manager classes the resource as compliant if Security Hub reports a <i>Pass</i> /// result, or if Config reports a <i>Compliant</i> result. /// </para> /// </li> <li> /// <para> /// If a compliance check isn't available or applicable, then no compliance evaluation /// can be made for that resource. This is the case if a resource assessment uses Config /// or Security Hub as the underlying data source type, but those services aren't enabled. /// This is also the case if the resource assessment uses an underlying data source type /// that doesn't support compliance checks (such as manual evidence, Amazon Web Services /// API calls, or CloudTrail). /// </para> /// </li> </ul> /// </summary> [AWSProperty(Min=0, Max=2048)] public string ComplianceCheck { get { return this._complianceCheck; } set { this._complianceCheck = value; } } // Check to see if ComplianceCheck property is set internal bool IsSetComplianceCheck() { return this._complianceCheck != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// The value of the resource. /// </para> /// </summary> [AWSProperty(Min=0, Max=2048)] 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; } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// The resource that's specified in the request can't be found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonAuditManagerException { private string _resourceId; private string _resourceType; /// <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) { this.ResourceId = (string)info.GetValue("ResourceId", typeof(string)); this.ResourceType = (string)info.GetValue("ResourceType", 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("ResourceId", this.ResourceId); info.AddValue("ResourceType", this.ResourceType); } #endif /// <summary> /// Gets and sets the property ResourceId. /// <para> /// The unique identifier for the resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string ResourceId { get { return this._resourceId; } set { this._resourceId = value; } } // Check to see if ResourceId property is set internal bool IsSetResourceId() { return this._resourceId != null; } /// <summary> /// Gets and sets the property ResourceType. /// <para> /// The type of resource that's affected by the error. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] 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; } } }
168
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// The wrapper that contains the Audit Manager role information of the current user. /// This includes the role type and IAM Amazon Resource Name (ARN). /// </summary> public partial class Role { private string _roleArn; private RoleType _roleType; /// <summary> /// Gets and sets the property RoleArn. /// <para> /// The Amazon Resource Name (ARN) of the IAM role. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] public string RoleArn { get { return this._roleArn; } set { this._roleArn = value; } } // Check to see if RoleArn property is set internal bool IsSetRoleArn() { return this._roleArn != null; } /// <summary> /// Gets and sets the property RoleType. /// <para> /// The type of customer persona. /// </para> /// <note> /// <para> /// In <code>CreateAssessment</code>, <code>roleType</code> can only be <code>PROCESS_OWNER</code>. /// /// </para> /// /// <para> /// In <code>UpdateSettings</code>, <code>roleType</code> can only be <code>PROCESS_OWNER</code>. /// </para> /// /// <para> /// In <code>BatchCreateDelegationByAssessment</code>, <code>roleType</code> can only /// be <code>RESOURCE_OWNER</code>. /// </para> /// </note> /// </summary> [AWSProperty(Required=true)] public RoleType RoleType { get { return this._roleType; } set { this._roleType = value; } } // Check to see if RoleType property is set internal bool IsSetRoleType() { return this._roleType != null; } } }
94
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// The wrapper that contains the Amazon Web Services accounts and services that are /// in scope for the assessment. /// </summary> public partial class Scope { private List<AWSAccount> _awsAccounts = new List<AWSAccount>(); private List<AWSService> _awsServices = new List<AWSService>(); /// <summary> /// Gets and sets the property AwsAccounts. /// <para> /// The Amazon Web Services accounts that are included in the scope of the assessment. /// /// </para> /// </summary> public List<AWSAccount> AwsAccounts { get { return this._awsAccounts; } set { this._awsAccounts = value; } } // Check to see if AwsAccounts property is set internal bool IsSetAwsAccounts() { return this._awsAccounts != null && this._awsAccounts.Count > 0; } /// <summary> /// Gets and sets the property AwsServices. /// <para> /// The Amazon Web Services services that are included in the scope of the assessment. /// /// </para> /// </summary> public List<AWSService> AwsServices { get { return this._awsServices; } set { this._awsServices = value; } } // Check to see if AwsServices property is set internal bool IsSetAwsServices() { return this._awsServices != null && this._awsServices.Count > 0; } } }
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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// The metadata that's associated with the Amazon Web Service. /// </summary> public partial class ServiceMetadata { private string _category; private string _description; private string _displayName; private string _name; /// <summary> /// Gets and sets the property Category. /// <para> /// The category that the Amazon Web Service belongs to, such as compute, storage, or /// database. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string Category { get { return this._category; } set { this._category = value; } } // Check to see if Category property is set internal bool IsSetCategory() { return this._category != null; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the Amazon Web Service. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property DisplayName. /// <para> /// The display name of the Amazon Web Service. /// </para> /// </summary> [AWSProperty(Min=1, Max=2048)] public string DisplayName { get { return this._displayName; } set { this._displayName = value; } } // Check to see if DisplayName property is set internal bool IsSetDisplayName() { return this._displayName != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the Amazon Web Service. /// </para> /// </summary> [AWSProperty(Min=1, Max=40)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// You've reached your account quota for this resource type. To perform the requested /// action, delete some existing resources or <a href="https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html">request /// a quota increase</a> from the Service Quotas console. For a list of Audit Manager /// service quotas, see <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/service-quotas.html">Quotas /// and restrictions for Audit Manager</a>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ServiceQuotaExceededException : AmazonAuditManagerException { /// <summary> /// Constructs a new ServiceQuotaExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ServiceQuotaExceededException(string message) : base(message) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ServiceQuotaExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="innerException"></param> public ServiceQuotaExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </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 ServiceQuotaExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ServiceQuotaExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ServiceQuotaExceededException(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 ServiceQuotaExceededException 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 ServiceQuotaExceededException(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 } }
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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// The settings object that holds all supported Audit Manager settings. /// </summary> public partial class Settings { private AssessmentReportsDestination _defaultAssessmentReportsDestination; private DefaultExportDestination _defaultExportDestination; private List<Role> _defaultProcessOwners = new List<Role>(); private DeregistrationPolicy _deregistrationPolicy; private EvidenceFinderEnablement _evidenceFinderEnablement; private bool? _isAwsOrgEnabled; private string _kmsKey; private string _snsTopic; /// <summary> /// Gets and sets the property DefaultAssessmentReportsDestination. /// <para> /// The default S3 destination bucket for storing assessment reports. /// </para> /// </summary> public AssessmentReportsDestination DefaultAssessmentReportsDestination { get { return this._defaultAssessmentReportsDestination; } set { this._defaultAssessmentReportsDestination = value; } } // Check to see if DefaultAssessmentReportsDestination property is set internal bool IsSetDefaultAssessmentReportsDestination() { return this._defaultAssessmentReportsDestination != null; } /// <summary> /// Gets and sets the property DefaultExportDestination. /// <para> /// The default S3 destination bucket for storing evidence finder exports. /// </para> /// </summary> public DefaultExportDestination DefaultExportDestination { get { return this._defaultExportDestination; } set { this._defaultExportDestination = value; } } // Check to see if DefaultExportDestination property is set internal bool IsSetDefaultExportDestination() { return this._defaultExportDestination != null; } /// <summary> /// Gets and sets the property DefaultProcessOwners. /// <para> /// The designated default audit owners. /// </para> /// </summary> public List<Role> DefaultProcessOwners { get { return this._defaultProcessOwners; } set { this._defaultProcessOwners = value; } } // Check to see if DefaultProcessOwners property is set internal bool IsSetDefaultProcessOwners() { return this._defaultProcessOwners != null && this._defaultProcessOwners.Count > 0; } /// <summary> /// Gets and sets the property DeregistrationPolicy. /// <para> /// The deregistration policy for your Audit Manager data. You can use this attribute /// to determine how your data is handled when you deregister Audit Manager. /// </para> /// </summary> public DeregistrationPolicy DeregistrationPolicy { get { return this._deregistrationPolicy; } set { this._deregistrationPolicy = value; } } // Check to see if DeregistrationPolicy property is set internal bool IsSetDeregistrationPolicy() { return this._deregistrationPolicy != null; } /// <summary> /// Gets and sets the property EvidenceFinderEnablement. /// <para> /// The current evidence finder status and event data store details. /// </para> /// </summary> public EvidenceFinderEnablement EvidenceFinderEnablement { get { return this._evidenceFinderEnablement; } set { this._evidenceFinderEnablement = value; } } // Check to see if EvidenceFinderEnablement property is set internal bool IsSetEvidenceFinderEnablement() { return this._evidenceFinderEnablement != null; } /// <summary> /// Gets and sets the property IsAwsOrgEnabled. /// <para> /// Specifies whether Organizations is enabled. /// </para> /// </summary> public bool IsAwsOrgEnabled { get { return this._isAwsOrgEnabled.GetValueOrDefault(); } set { this._isAwsOrgEnabled = value; } } // Check to see if IsAwsOrgEnabled property is set internal bool IsSetIsAwsOrgEnabled() { return this._isAwsOrgEnabled.HasValue; } /// <summary> /// Gets and sets the property KmsKey. /// <para> /// The KMS key details. /// </para> /// </summary> [AWSProperty(Min=7, Max=2048)] public string KmsKey { get { return this._kmsKey; } set { this._kmsKey = value; } } // Check to see if KmsKey property is set internal bool IsSetKmsKey() { return this._kmsKey != null; } /// <summary> /// Gets and sets the property SnsTopic. /// <para> /// The designated Amazon Simple Notification Service (Amazon SNS) topic. /// </para> /// </summary> [AWSProperty(Min=1, Max=255)] public string SnsTopic { get { return this._snsTopic; } set { this._snsTopic = value; } } // Check to see if SnsTopic property is set internal bool IsSetSnsTopic() { return this._snsTopic != null; } } }
193
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// A keyword that relates to the control data source. /// /// /// <para> /// For manual evidence, this keyword indicates if the manual evidence is a file or text. /// </para> /// /// <para> /// For automated evidence, this keyword identifies a specific CloudTrail event, Config /// rule, Security Hub control, or Amazon Web Services API name. /// </para> /// /// <para> /// To learn more about the supported keywords that you can use when mapping a control /// data source, see the following pages in the <i>Audit Manager User Guide</i>: /// </para> /// <ul> <li> /// <para> /// <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-config.html">Config /// rules supported by Audit Manager</a> /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-ash.html">Security /// Hub controls supported by Audit Manager</a> /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-api.html">API /// calls supported by Audit Manager</a> /// </para> /// </li> <li> /// <para> /// <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-cloudtrail.html">CloudTrail /// event names supported by Audit Manager</a> /// </para> /// </li> </ul> /// </summary> public partial class SourceKeyword { private KeywordInputType _keywordInputType; private string _keywordValue; /// <summary> /// Gets and sets the property KeywordInputType. /// <para> /// The input method for the keyword. /// </para> /// <ul> <li> /// <para> /// <code>SELECT_FROM_LIST</code> is used when mapping a data source for automated evidence. /// </para> /// <ul> <li> /// <para> /// When <code>keywordInputType</code> is <code>SELECT_FROM_LIST</code>, a keyword must /// be selected to collect automated evidence. For example, this keyword can be a CloudTrail /// event name, a rule name for Config, a Security Hub control, or the name of an Amazon /// Web Services API call. /// </para> /// </li> </ul> </li> <li> /// <para> /// <code>UPLOAD_FILE</code> and <code>INPUT_TEXT</code> are only used when mapping a /// data source for manual evidence. /// </para> /// <ul> <li> /// <para> /// When <code>keywordInputType</code> is <code>UPLOAD_FILE</code>, a file must be uploaded /// as manual evidence. /// </para> /// </li> <li> /// <para> /// When <code>keywordInputType</code> is <code>INPUT_TEXT</code>, text must be entered /// as manual evidence. /// </para> /// </li> </ul> </li> </ul> /// </summary> public KeywordInputType KeywordInputType { get { return this._keywordInputType; } set { this._keywordInputType = value; } } // Check to see if KeywordInputType property is set internal bool IsSetKeywordInputType() { return this._keywordInputType != null; } /// <summary> /// Gets and sets the property KeywordValue. /// <para> /// The value of the keyword that's used when mapping a control data source. For example, /// this can be a CloudTrail event name, a rule name for Config, a Security Hub control, /// or the name of an Amazon Web Services API call. /// </para> /// /// <para> /// If you’re mapping a data source to a rule in Config, the <code>keywordValue</code> /// that you specify depends on the type of rule: /// </para> /// <ul> <li> /// <para> /// For <a href="https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html">managed /// rules</a>, you can use the rule identifier as the <code>keywordValue</code>. You can /// find the rule identifier from the <a href="https://docs.aws.amazon.com/config/latest/developerguide/managed-rules-by-aws-config.html">list /// of Config managed rules</a>. For some rules, the rule identifier is different from /// the rule name. For example, the rule name <code>restricted-ssh</code> has the following /// rule identifier: <code>INCOMING_SSH_DISABLED</code>. Make sure to use the rule identifier, /// not the rule name. /// </para> /// /// <para> /// Keyword example for managed rules: /// </para> /// <ul> <li> /// <para> /// Managed rule name: <a href="https://docs.aws.amazon.com/config/latest/developerguide/s3-bucket-acl-prohibited.html">s3-bucket-acl-prohibited</a> /// /// </para> /// /// <para> /// <code>keywordValue</code>: <code>S3_BUCKET_ACL_PROHIBITED</code> /// </para> /// </li> </ul> </li> <li> /// <para> /// For <a href="https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_develop-rules.html">custom /// rules</a>, you form the <code>keywordValue</code> by adding the <code>Custom_</code> /// prefix to the rule name. This prefix distinguishes the custom rule from a managed /// rule. /// </para> /// /// <para> /// Keyword example for custom rules: /// </para> /// <ul> <li> /// <para> /// Custom rule name: my-custom-config-rule /// </para> /// /// <para> /// <code>keywordValue</code>: <code>Custom_my-custom-config-rule</code> /// </para> /// </li> </ul> </li> <li> /// <para> /// For <a href="https://docs.aws.amazon.com/config/latest/developerguide/service-linked-awsconfig-rules.html">service-linked /// rules</a>, you form the <code>keywordValue</code> by adding the <code>Custom_</code> /// prefix to the rule name. In addition, you remove the suffix ID that appears at the /// end of the rule name. /// </para> /// /// <para> /// Keyword examples for service-linked rules: /// </para> /// <ul> <li> /// <para> /// Service-linked rule name: CustomRuleForAccount-conformance-pack-szsm1uv0w /// </para> /// /// <para> /// <code>keywordValue</code>: <code>Custom_CustomRuleForAccount-conformance-pack</code> /// /// </para> /// </li> <li> /// <para> /// Service-linked rule name: OrgConfigRule-s3-bucket-versioning-enabled-dbgzf8ba /// </para> /// /// <para> /// <code>keywordValue</code>: <code>Custom_OrgConfigRule-s3-bucket-versioning-enabled</code> /// /// </para> /// </li> </ul> </li> </ul> <important> /// <para> /// The <code>keywordValue</code> is case sensitive. If you enter a value incorrectly, /// Audit Manager might not recognize the data source mapping. As a result, you might /// not successfully collect evidence from that data source as intended. /// </para> /// /// <para> /// Keep in mind the following requirements, depending on the data source type that you're /// using. /// </para> /// <ol> <li> /// <para> /// For Config: /// </para> /// <ul> <li> /// <para> /// For managed rules, make sure that the <code>keywordValue</code> is the rule identifier /// in <code>ALL_CAPS_WITH_UNDERSCORES</code>. For example, <code>CLOUDWATCH_LOG_GROUP_ENCRYPTED</code>. /// For accuracy, we recommend that you reference the list of <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-config.html">supported /// Config managed rules</a>. /// </para> /// </li> <li> /// <para> /// For custom rules, make sure that the <code>keywordValue</code> has the <code>Custom_</code> /// prefix followed by the custom rule name. The format of the custom rule name itself /// may vary. For accuracy, we recommend that you visit the <a href="https://console.aws.amazon.com/config/">Config /// console</a> to verify your custom rule name. /// </para> /// </li> </ul> </li> <li> /// <para> /// For Security Hub: The format varies for Security Hub control names. For accuracy, /// we recommend that you reference the list of <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-ash.html">supported /// Security Hub controls</a>. /// </para> /// </li> <li> /// <para> /// For Amazon Web Services API calls: Make sure that the <code>keywordValue</code> is /// written as <code>serviceprefix_ActionName</code>. For example, <code>iam_ListGroups</code>. /// For accuracy, we recommend that you reference the list of <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/control-data-sources-api.html">supported /// API calls</a>. /// </para> /// </li> <li> /// <para> /// For CloudTrail: Make sure that the <code>keywordValue</code> is written as <code>serviceprefix_ActionName</code>. /// For example, <code>cloudtrail_StartLogging</code>. For accuracy, we recommend that /// you review the Amazon Web Service prefix and action names in the <a href="https://docs.aws.amazon.com/service-authorization/latest/reference/reference_policies_actions-resources-contextkeys.html">Service /// Authorization Reference</a>. /// </para> /// </li> </ol> </important> /// </summary> [AWSProperty(Min=1, Max=100)] public string KeywordValue { get { return this._keywordValue; } set { this._keywordValue = value; } } // Check to see if KeywordValue property is set internal bool IsSetKeywordValue() { return this._keywordValue != null; } } }
268
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the StartAssessmentFrameworkShare operation. /// Creates a share request for a custom framework in Audit Manager. /// /// /// <para> /// The share request specifies a recipient and notifies them that a custom framework /// is available. Recipients have 120 days to accept or decline the request. If no action /// is taken, the share request expires. /// </para> /// /// <para> /// When you create a share request, Audit Manager stores a snapshot of your custom framework /// in the US East (N. Virginia) Amazon Web Services Region. Audit Manager also stores /// a backup of the same snapshot in the US West (Oregon) Amazon Web Services Region. /// </para> /// /// <para> /// Audit Manager deletes the snapshot and the backup snapshot when one of the following /// events occurs: /// </para> /// <ul> <li> /// <para> /// The sender revokes the share request. /// </para> /// </li> <li> /// <para> /// The recipient declines the share request. /// </para> /// </li> <li> /// <para> /// The recipient encounters an error and doesn't successfully accept the share request. /// </para> /// </li> <li> /// <para> /// The share request expires before the recipient responds to the request. /// </para> /// </li> </ul> /// <para> /// When a sender <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/framework-sharing.html#framework-sharing-resend">resends /// a share request</a>, the snapshot is replaced with an updated version that corresponds /// with the latest version of the custom framework. /// </para> /// /// <para> /// When a recipient accepts a share request, the snapshot is replicated into their Amazon /// Web Services account under the Amazon Web Services Region that was specified in the /// share request. /// </para> /// <important> /// <para> /// When you invoke the <code>StartAssessmentFrameworkShare</code> API, you are about /// to share a custom framework with another Amazon Web Services account. You may not /// share a custom framework that is derived from a standard framework if the standard /// framework is designated as not eligible for sharing by Amazon Web Services, unless /// you have obtained permission to do so from the owner of the standard framework. To /// learn more about which standard frameworks are eligible for sharing, see <a href="https://docs.aws.amazon.com/audit-manager/latest/userguide/share-custom-framework-concepts-and-terminology.html#eligibility">Framework /// sharing eligibility</a> in the <i>Audit Manager User Guide</i>. /// </para> /// </important> /// </summary> public partial class StartAssessmentFrameworkShareRequest : AmazonAuditManagerRequest { private string _comment; private string _destinationAccount; private string _destinationRegion; private string _frameworkId; /// <summary> /// Gets and sets the property Comment. /// <para> /// An optional comment from the sender about the share request. /// </para> /// </summary> [AWSProperty(Max=500)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property DestinationAccount. /// <para> /// The Amazon Web Services account of the recipient. /// </para> /// </summary> [AWSProperty(Required=true, Min=12, Max=12)] public string DestinationAccount { get { return this._destinationAccount; } set { this._destinationAccount = value; } } // Check to see if DestinationAccount property is set internal bool IsSetDestinationAccount() { return this._destinationAccount != null; } /// <summary> /// Gets and sets the property DestinationRegion. /// <para> /// The Amazon Web Services Region of the recipient. /// </para> /// </summary> [AWSProperty(Required=true)] public string DestinationRegion { get { return this._destinationRegion; } set { this._destinationRegion = value; } } // Check to see if DestinationRegion property is set internal bool IsSetDestinationRegion() { return this._destinationRegion != null; } /// <summary> /// Gets and sets the property FrameworkId. /// <para> /// The unique identifier for the custom framework to be shared. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string FrameworkId { get { return this._frameworkId; } set { this._frameworkId = value; } } // Check to see if FrameworkId property is set internal bool IsSetFrameworkId() { return this._frameworkId != null; } } }
176
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the StartAssessmentFrameworkShare operation. /// </summary> public partial class StartAssessmentFrameworkShareResponse : AmazonWebServiceResponse { private AssessmentFrameworkShareRequest _assessmentFrameworkShareRequest; /// <summary> /// Gets and sets the property AssessmentFrameworkShareRequest. /// <para> /// The share request that's created by the <code>StartAssessmentFrameworkShare</code> /// API. /// </para> /// </summary> public AssessmentFrameworkShareRequest AssessmentFrameworkShareRequest { get { return this._assessmentFrameworkShareRequest; } set { this._assessmentFrameworkShareRequest = value; } } // Check to see if AssessmentFrameworkShareRequest property is set internal bool IsSetAssessmentFrameworkShareRequest() { return this._assessmentFrameworkShareRequest != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the TagResource operation. /// Tags the specified resource in Audit Manager. /// </summary> public partial class TagResourceRequest : AmazonAuditManagerRequest { private string _resourceArn; private Dictionary<string, string> _tags = new Dictionary<string, string>(); /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Name (ARN) of the resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] 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> /// The tags that are associated with the resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=50)] public Dictionary<string, string> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
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 auditmanager-2017-07-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.AuditManager.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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// The request was denied due to request throttling. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonAuditManagerException { /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </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 ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(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 ThrottlingException 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 ThrottlingException(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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the UntagResource operation. /// Removes a tag from a resource in Audit Manager. /// </summary> public partial class UntagResourceRequest : AmazonAuditManagerRequest { 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 specified resource. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] 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 name or key of the tag. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] 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; } } }
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 auditmanager-2017-07-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.AuditManager.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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the UpdateAssessmentControl operation. /// Updates a control within an assessment in Audit Manager. /// </summary> public partial class UpdateAssessmentControlRequest : AmazonAuditManagerRequest { private string _assessmentId; private string _commentBody; private string _controlId; private string _controlSetId; private ControlStatus _controlStatus; /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The unique identifier for the assessment. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property CommentBody. /// <para> /// The comment body text for the control. /// </para> /// </summary> [AWSProperty(Max=500)] public string CommentBody { get { return this._commentBody; } set { this._commentBody = value; } } // Check to see if CommentBody property is set internal bool IsSetCommentBody() { return this._commentBody != null; } /// <summary> /// Gets and sets the property ControlId. /// <para> /// The unique identifier for the control. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string ControlId { get { return this._controlId; } set { this._controlId = value; } } // Check to see if ControlId property is set internal bool IsSetControlId() { return this._controlId != null; } /// <summary> /// Gets and sets the property ControlSetId. /// <para> /// The unique identifier for the control set. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=300)] public string ControlSetId { get { return this._controlSetId; } set { this._controlSetId = value; } } // Check to see if ControlSetId property is set internal bool IsSetControlSetId() { return this._controlSetId != null; } /// <summary> /// Gets and sets the property ControlStatus. /// <para> /// The status of the control. /// </para> /// </summary> public ControlStatus ControlStatus { get { return this._controlStatus; } set { this._controlStatus = value; } } // Check to see if ControlStatus property is set internal bool IsSetControlStatus() { return this._controlStatus != null; } } }
138
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the UpdateAssessmentControl operation. /// </summary> public partial class UpdateAssessmentControlResponse : AmazonWebServiceResponse { private AssessmentControl _control; /// <summary> /// Gets and sets the property Control. /// <para> /// The name of the updated control set that the <code>UpdateAssessmentControl</code> /// API returned. /// </para> /// </summary> public AssessmentControl Control { get { return this._control; } set { this._control = value; } } // Check to see if Control property is set internal bool IsSetControl() { return this._control != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the UpdateAssessmentControlSetStatus operation. /// Updates the status of a control set in an Audit Manager assessment. /// </summary> public partial class UpdateAssessmentControlSetStatusRequest : AmazonAuditManagerRequest { private string _assessmentId; private string _comment; private string _controlSetId; private ControlSetStatus _status; /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The unique identifier for the assessment. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property Comment. /// <para> /// The comment that's related to the status update. /// </para> /// </summary> [AWSProperty(Required=true, Max=350)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// <summary> /// Gets and sets the property ControlSetId. /// <para> /// The unique identifier for the control set. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string ControlSetId { get { return this._controlSetId; } set { this._controlSetId = value; } } // Check to see if ControlSetId property is set internal bool IsSetControlSetId() { return this._controlSetId != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The status of the control set that's being updated. /// </para> /// </summary> [AWSProperty(Required=true)] public ControlSetStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } } }
119
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the UpdateAssessmentControlSetStatus operation. /// </summary> public partial class UpdateAssessmentControlSetStatusResponse : AmazonWebServiceResponse { private AssessmentControlSet _controlSet; /// <summary> /// Gets and sets the property ControlSet. /// <para> /// The name of the updated control set that the <code>UpdateAssessmentControlSetStatus</code> /// API returned. /// </para> /// </summary> public AssessmentControlSet ControlSet { get { return this._controlSet; } set { this._controlSet = value; } } // Check to see if ControlSet property is set internal bool IsSetControlSet() { return this._controlSet != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// A <code>controlSet</code> entity that represents a collection of controls in Audit /// Manager. This doesn't contain the control set ID. /// </summary> public partial class UpdateAssessmentFrameworkControlSet { private List<CreateAssessmentFrameworkControl> _controls = new List<CreateAssessmentFrameworkControl>(); private string _id; private string _name; /// <summary> /// Gets and sets the property Controls. /// <para> /// The list of controls that are contained within the control set. /// </para> /// </summary> [AWSProperty(Required=true, Min=1)] public List<CreateAssessmentFrameworkControl> Controls { get { return this._controls; } set { this._controls = value; } } // Check to see if Controls property is set internal bool IsSetControls() { return this._controls != null && this._controls.Count > 0; } /// <summary> /// Gets and sets the property Id. /// <para> /// The unique identifier for the control set. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] 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 Name. /// <para> /// The name of the control set. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=300)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the UpdateAssessmentFramework operation. /// Updates a custom framework in Audit Manager. /// </summary> public partial class UpdateAssessmentFrameworkRequest : AmazonAuditManagerRequest { private string _complianceType; private List<UpdateAssessmentFrameworkControlSet> _controlSets = new List<UpdateAssessmentFrameworkControlSet>(); private string _description; private string _frameworkId; private string _name; /// <summary> /// Gets and sets the property ComplianceType. /// <para> /// The compliance type that the new custom framework supports, such as CIS or HIPAA. /// /// </para> /// </summary> [AWSProperty(Max=100)] public string ComplianceType { get { return this._complianceType; } set { this._complianceType = value; } } // Check to see if ComplianceType property is set internal bool IsSetComplianceType() { return this._complianceType != null; } /// <summary> /// Gets and sets the property ControlSets. /// <para> /// The control sets that are associated with the framework. /// </para> /// </summary> [AWSProperty(Required=true, Min=1)] public List<UpdateAssessmentFrameworkControlSet> ControlSets { get { return this._controlSets; } set { this._controlSets = value; } } // Check to see if ControlSets property is set internal bool IsSetControlSets() { return this._controlSets != null && this._controlSets.Count > 0; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the updated framework. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property FrameworkId. /// <para> /// The unique identifier for the framework. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string FrameworkId { get { return this._frameworkId; } set { this._frameworkId = value; } } // Check to see if FrameworkId property is set internal bool IsSetFrameworkId() { return this._frameworkId != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the framework to be updated. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=300)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
140
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the UpdateAssessmentFramework operation. /// </summary> public partial class UpdateAssessmentFrameworkResponse : AmazonWebServiceResponse { private Framework _framework; /// <summary> /// Gets and sets the property Framework. /// <para> /// The name of the framework. /// </para> /// </summary> public Framework Framework { get { return this._framework; } set { this._framework = value; } } // Check to see if Framework property is set internal bool IsSetFramework() { return this._framework != 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the UpdateAssessmentFrameworkShare operation. /// Updates a share request for a custom framework in Audit Manager. /// </summary> public partial class UpdateAssessmentFrameworkShareRequest : AmazonAuditManagerRequest { private ShareRequestAction _action; private string _requestId; private ShareRequestType _requestType; /// <summary> /// Gets and sets the property Action. /// <para> /// Specifies the update action for the share request. /// </para> /// </summary> [AWSProperty(Required=true)] public ShareRequestAction Action { get { return this._action; } set { this._action = value; } } // Check to see if Action property is set internal bool IsSetAction() { return this._action != null; } /// <summary> /// Gets and sets the property RequestId. /// <para> /// The unique identifier for the share request. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string RequestId { get { return this._requestId; } set { this._requestId = value; } } // Check to see if RequestId property is set internal bool IsSetRequestId() { return this._requestId != null; } /// <summary> /// Gets and sets the property RequestType. /// <para> /// Specifies whether the share request is a sent request or a received request. /// </para> /// </summary> [AWSProperty(Required=true)] public ShareRequestType RequestType { get { return this._requestType; } set { this._requestType = value; } } // Check to see if RequestType property is set internal bool IsSetRequestType() { return this._requestType != 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the UpdateAssessmentFrameworkShare operation. /// </summary> public partial class UpdateAssessmentFrameworkShareResponse : AmazonWebServiceResponse { private AssessmentFrameworkShareRequest _assessmentFrameworkShareRequest; /// <summary> /// Gets and sets the property AssessmentFrameworkShareRequest. /// <para> /// The updated share request that's returned by the <code>UpdateAssessmentFrameworkShare</code> /// operation. /// </para> /// </summary> public AssessmentFrameworkShareRequest AssessmentFrameworkShareRequest { get { return this._assessmentFrameworkShareRequest; } set { this._assessmentFrameworkShareRequest = value; } } // Check to see if AssessmentFrameworkShareRequest property is set internal bool IsSetAssessmentFrameworkShareRequest() { return this._assessmentFrameworkShareRequest != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the UpdateAssessment operation. /// Edits an Audit Manager assessment. /// </summary> public partial class UpdateAssessmentRequest : AmazonAuditManagerRequest { private string _assessmentDescription; private string _assessmentId; private string _assessmentName; private AssessmentReportsDestination _assessmentReportsDestination; private List<Role> _roles = new List<Role>(); private Scope _scope; /// <summary> /// Gets and sets the property AssessmentDescription. /// <para> /// The description of the assessment. /// </para> /// </summary> [AWSProperty(Max=1000)] public string AssessmentDescription { get { return this._assessmentDescription; } set { this._assessmentDescription = value; } } // Check to see if AssessmentDescription property is set internal bool IsSetAssessmentDescription() { return this._assessmentDescription != null; } /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The unique identifier for the assessment. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property AssessmentName. /// <para> /// The name of the assessment to be updated. /// </para> /// </summary> [AWSProperty(Min=1, Max=300)] public string AssessmentName { get { return this._assessmentName; } set { this._assessmentName = value; } } // Check to see if AssessmentName property is set internal bool IsSetAssessmentName() { return this._assessmentName != null; } /// <summary> /// Gets and sets the property AssessmentReportsDestination. /// <para> /// The assessment report storage destination for the assessment that's being updated. /// /// </para> /// </summary> public AssessmentReportsDestination AssessmentReportsDestination { get { return this._assessmentReportsDestination; } set { this._assessmentReportsDestination = value; } } // Check to see if AssessmentReportsDestination property is set internal bool IsSetAssessmentReportsDestination() { return this._assessmentReportsDestination != null; } /// <summary> /// Gets and sets the property Roles. /// <para> /// The list of roles for the assessment. /// </para> /// </summary> public List<Role> Roles { get { return this._roles; } set { this._roles = value; } } // Check to see if Roles property is set internal bool IsSetRoles() { return this._roles != null && this._roles.Count > 0; } /// <summary> /// Gets and sets the property Scope. /// <para> /// The scope of the assessment. /// </para> /// </summary> [AWSProperty(Required=true)] public Scope Scope { get { return this._scope; } set { this._scope = value; } } // Check to see if Scope property is set internal bool IsSetScope() { return this._scope != null; } } }
158
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the UpdateAssessment operation. /// </summary> public partial class UpdateAssessmentResponse : AmazonWebServiceResponse { private Assessment _assessment; /// <summary> /// Gets and sets the property Assessment. /// <para> /// The response object for the <code>UpdateAssessment</code> API. This is the name of /// the updated assessment. /// </para> /// </summary> public Assessment Assessment { get { return this._assessment; } set { this._assessment = value; } } // Check to see if Assessment property is set internal bool IsSetAssessment() { return this._assessment != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the UpdateAssessmentStatus operation. /// Updates the status of an assessment in Audit Manager. /// </summary> public partial class UpdateAssessmentStatusRequest : AmazonAuditManagerRequest { private string _assessmentId; private AssessmentStatus _status; /// <summary> /// Gets and sets the property AssessmentId. /// <para> /// The unique identifier for the assessment. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string AssessmentId { get { return this._assessmentId; } set { this._assessmentId = value; } } // Check to see if AssessmentId property is set internal bool IsSetAssessmentId() { return this._assessmentId != null; } /// <summary> /// Gets and sets the property Status. /// <para> /// The current status of the assessment. /// </para> /// </summary> [AWSProperty(Required=true)] public AssessmentStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the UpdateAssessmentStatus operation. /// </summary> public partial class UpdateAssessmentStatusResponse : AmazonWebServiceResponse { private Assessment _assessment; /// <summary> /// Gets and sets the property Assessment. /// <para> /// The name of the updated assessment that the <code>UpdateAssessmentStatus</code> API /// returned. /// </para> /// </summary> public Assessment Assessment { get { return this._assessment; } set { this._assessment = value; } } // Check to see if Assessment property is set internal bool IsSetAssessment() { return this._assessment != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the UpdateControl operation. /// Updates a custom control in Audit Manager. /// </summary> public partial class UpdateControlRequest : AmazonAuditManagerRequest { private string _actionPlanInstructions; private string _actionPlanTitle; private string _controlId; private List<ControlMappingSource> _controlMappingSources = new List<ControlMappingSource>(); private string _description; private string _name; private string _testingInformation; /// <summary> /// Gets and sets the property ActionPlanInstructions. /// <para> /// The recommended actions to carry out if the control isn't fulfilled. /// </para> /// </summary> [AWSProperty(Max=1000)] public string ActionPlanInstructions { get { return this._actionPlanInstructions; } set { this._actionPlanInstructions = value; } } // Check to see if ActionPlanInstructions property is set internal bool IsSetActionPlanInstructions() { return this._actionPlanInstructions != null; } /// <summary> /// Gets and sets the property ActionPlanTitle. /// <para> /// The title of the action plan for remediating the control. /// </para> /// </summary> [AWSProperty(Max=300)] public string ActionPlanTitle { get { return this._actionPlanTitle; } set { this._actionPlanTitle = value; } } // Check to see if ActionPlanTitle property is set internal bool IsSetActionPlanTitle() { return this._actionPlanTitle != null; } /// <summary> /// Gets and sets the property ControlId. /// <para> /// The identifier for the control. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string ControlId { get { return this._controlId; } set { this._controlId = value; } } // Check to see if ControlId property is set internal bool IsSetControlId() { return this._controlId != null; } /// <summary> /// Gets and sets the property ControlMappingSources. /// <para> /// The data mapping sources for the control. /// </para> /// </summary> [AWSProperty(Required=true, Min=1)] public List<ControlMappingSource> ControlMappingSources { get { return this._controlMappingSources; } set { this._controlMappingSources = value; } } // Check to see if ControlMappingSources property is set internal bool IsSetControlMappingSources() { return this._controlMappingSources != null && this._controlMappingSources.Count > 0; } /// <summary> /// Gets and sets the property Description. /// <para> /// The optional description of the control. /// </para> /// </summary> [AWSProperty(Max=1000)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the updated control. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=300)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property TestingInformation. /// <para> /// The steps that you should follow to determine if the control is met. /// </para> /// </summary> [AWSProperty(Max=1000)] public string TestingInformation { get { return this._testingInformation; } set { this._testingInformation = value; } } // Check to see if TestingInformation property is set internal bool IsSetTestingInformation() { return this._testingInformation != null; } } }
179
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the UpdateControl operation. /// </summary> public partial class UpdateControlResponse : AmazonWebServiceResponse { private Control _control; /// <summary> /// Gets and sets the property Control. /// <para> /// The name of the updated control set that the <code>UpdateControl</code> API returned. /// /// </para> /// </summary> public Control Control { get { return this._control; } set { this._control = value; } } // Check to see if Control property is set internal bool IsSetControl() { return this._control != null; } } }
58
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the UpdateSettings operation. /// Updates Audit Manager settings for the current account. /// </summary> public partial class UpdateSettingsRequest : AmazonAuditManagerRequest { private AssessmentReportsDestination _defaultAssessmentReportsDestination; private DefaultExportDestination _defaultExportDestination; private List<Role> _defaultProcessOwners = new List<Role>(); private DeregistrationPolicy _deregistrationPolicy; private bool? _evidenceFinderEnabled; private string _kmsKey; private string _snsTopic; /// <summary> /// Gets and sets the property DefaultAssessmentReportsDestination. /// <para> /// The default S3 destination bucket for storing assessment reports. /// </para> /// </summary> public AssessmentReportsDestination DefaultAssessmentReportsDestination { get { return this._defaultAssessmentReportsDestination; } set { this._defaultAssessmentReportsDestination = value; } } // Check to see if DefaultAssessmentReportsDestination property is set internal bool IsSetDefaultAssessmentReportsDestination() { return this._defaultAssessmentReportsDestination != null; } /// <summary> /// Gets and sets the property DefaultExportDestination. /// <para> /// The default S3 destination bucket for storing evidence finder exports. /// </para> /// </summary> public DefaultExportDestination DefaultExportDestination { get { return this._defaultExportDestination; } set { this._defaultExportDestination = value; } } // Check to see if DefaultExportDestination property is set internal bool IsSetDefaultExportDestination() { return this._defaultExportDestination != null; } /// <summary> /// Gets and sets the property DefaultProcessOwners. /// <para> /// A list of the default audit owners. /// </para> /// </summary> public List<Role> DefaultProcessOwners { get { return this._defaultProcessOwners; } set { this._defaultProcessOwners = value; } } // Check to see if DefaultProcessOwners property is set internal bool IsSetDefaultProcessOwners() { return this._defaultProcessOwners != null && this._defaultProcessOwners.Count > 0; } /// <summary> /// Gets and sets the property DeregistrationPolicy. /// <para> /// The deregistration policy for your Audit Manager data. You can use this attribute /// to determine how your data is handled when you deregister Audit Manager. /// </para> /// </summary> public DeregistrationPolicy DeregistrationPolicy { get { return this._deregistrationPolicy; } set { this._deregistrationPolicy = value; } } // Check to see if DeregistrationPolicy property is set internal bool IsSetDeregistrationPolicy() { return this._deregistrationPolicy != null; } /// <summary> /// Gets and sets the property EvidenceFinderEnabled. /// <para> /// Specifies whether the evidence finder feature is enabled. Change this attribute to /// enable or disable evidence finder. /// </para> /// <important> /// <para> /// When you use this attribute to disable evidence finder, Audit Manager deletes the /// event data store that’s used to query your evidence data. As a result, you can’t re-enable /// evidence finder and use the feature again. Your only alternative is to <a href="https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_DeregisterAccount.html">deregister</a> /// and then <a href="https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_RegisterAccount.html">re-register</a> /// Audit Manager. /// </para> /// </important> /// </summary> public bool EvidenceFinderEnabled { get { return this._evidenceFinderEnabled.GetValueOrDefault(); } set { this._evidenceFinderEnabled = value; } } // Check to see if EvidenceFinderEnabled property is set internal bool IsSetEvidenceFinderEnabled() { return this._evidenceFinderEnabled.HasValue; } /// <summary> /// Gets and sets the property KmsKey. /// <para> /// The KMS key details. /// </para> /// </summary> [AWSProperty(Min=7, Max=2048)] public string KmsKey { get { return this._kmsKey; } set { this._kmsKey = value; } } // Check to see if KmsKey property is set internal bool IsSetKmsKey() { return this._kmsKey != null; } /// <summary> /// Gets and sets the property SnsTopic. /// <para> /// The Amazon Simple Notification Service (Amazon SNS) topic that Audit Manager sends /// notifications to. /// </para> /// </summary> [AWSProperty(Min=4, Max=2048)] public string SnsTopic { get { return this._snsTopic; } set { this._snsTopic = value; } } // Check to see if SnsTopic property is set internal bool IsSetSnsTopic() { return this._snsTopic != null; } } }
186
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the UpdateSettings operation. /// </summary> public partial class UpdateSettingsResponse : AmazonWebServiceResponse { private Settings _settings; /// <summary> /// Gets and sets the property Settings. /// <para> /// The current list of settings. /// </para> /// </summary> public Settings Settings { get { return this._settings; } set { this._settings = value; } } // Check to see if Settings property is set internal bool IsSetSettings() { return this._settings != 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Short for uniform resource locator. A URL is used as a unique identifier to locate /// a resource on the internet. /// </summary> public partial class URL { private string _hyperlinkName; private string _link; /// <summary> /// Gets and sets the property HyperlinkName. /// <para> /// The name or word that's used as a hyperlink to the URL. /// </para> /// </summary> [AWSProperty(Min=1, Max=200)] public string HyperlinkName { get { return this._hyperlinkName; } set { this._hyperlinkName = value; } } // Check to see if HyperlinkName property is set internal bool IsSetHyperlinkName() { return this._hyperlinkName != null; } /// <summary> /// Gets and sets the property Link. /// <para> /// The unique identifier for the internet resource. /// </para> /// </summary> [AWSProperty(Min=1, Max=8192)] public string Link { get { return this._link; } set { this._link = value; } } // Check to see if Link property is set internal bool IsSetLink() { return this._link != 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 auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Container for the parameters to the ValidateAssessmentReportIntegrity operation. /// Validates the integrity of an assessment report in Audit Manager. /// </summary> public partial class ValidateAssessmentReportIntegrityRequest : AmazonAuditManagerRequest { private string _s3RelativePath; /// <summary> /// Gets and sets the property S3RelativePath. /// <para> /// The relative path of the Amazon S3 bucket that the assessment report is stored in. /// /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1024)] public string S3RelativePath { get { return this._s3RelativePath; } set { this._s3RelativePath = value; } } // Check to see if S3RelativePath property is set internal bool IsSetS3RelativePath() { return this._s3RelativePath != null; } } }
60
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// This is the response object from the ValidateAssessmentReportIntegrity operation. /// </summary> public partial class ValidateAssessmentReportIntegrityResponse : AmazonWebServiceResponse { private string _signatureAlgorithm; private string _signatureDateTime; private string _signatureKeyId; private bool? _signatureValid; private List<string> _validationErrors = new List<string>(); /// <summary> /// Gets and sets the property SignatureAlgorithm. /// <para> /// The signature algorithm that's used to code sign the assessment report file. /// </para> /// </summary> [AWSProperty(Min=0, Max=2048)] public string SignatureAlgorithm { get { return this._signatureAlgorithm; } set { this._signatureAlgorithm = value; } } // Check to see if SignatureAlgorithm property is set internal bool IsSetSignatureAlgorithm() { return this._signatureAlgorithm != null; } /// <summary> /// Gets and sets the property SignatureDateTime. /// <para> /// The date and time signature that specifies when the assessment report was created. /// /// </para> /// </summary> [AWSProperty(Min=0, Max=2048)] public string SignatureDateTime { get { return this._signatureDateTime; } set { this._signatureDateTime = value; } } // Check to see if SignatureDateTime property is set internal bool IsSetSignatureDateTime() { return this._signatureDateTime != null; } /// <summary> /// Gets and sets the property SignatureKeyId. /// <para> /// The unique identifier for the validation signature key. /// </para> /// </summary> [AWSProperty(Min=0, Max=2048)] public string SignatureKeyId { get { return this._signatureKeyId; } set { this._signatureKeyId = value; } } // Check to see if SignatureKeyId property is set internal bool IsSetSignatureKeyId() { return this._signatureKeyId != null; } /// <summary> /// Gets and sets the property SignatureValid. /// <para> /// Specifies whether the signature key is valid. /// </para> /// </summary> public bool SignatureValid { get { return this._signatureValid.GetValueOrDefault(); } set { this._signatureValid = value; } } // Check to see if SignatureValid property is set internal bool IsSetSignatureValid() { return this._signatureValid.HasValue; } /// <summary> /// Gets and sets the property ValidationErrors. /// <para> /// Represents any errors that occurred when validating the assessment report. /// </para> /// </summary> public List<string> ValidationErrors { get { return this._validationErrors; } set { this._validationErrors = value; } } // Check to see if ValidationErrors property is set internal bool IsSetValidationErrors() { return this._validationErrors != null && this._validationErrors.Count > 0; } } }
137
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// The request has invalid or missing parameters. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ValidationException : AmazonAuditManagerException { private List<ValidationExceptionField> _fields = new List<ValidationExceptionField>(); private ValidationExceptionReason _reason; /// <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) { this.Fields = (List<ValidationExceptionField>)info.GetValue("Fields", typeof(List<ValidationExceptionField>)); this.Reason = (ValidationExceptionReason)info.GetValue("Reason", typeof(ValidationExceptionReason)); } /// <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("Fields", this.Fields); info.AddValue("Reason", this.Reason); } #endif /// <summary> /// Gets and sets the property Fields. /// <para> /// The fields that caused the error, if applicable. /// </para> /// </summary> public List<ValidationExceptionField> Fields { get { return this._fields; } set { this._fields = value; } } // Check to see if Fields property is set internal bool IsSetFields() { return this._fields != null && this._fields.Count > 0; } /// <summary> /// Gets and sets the property Reason. /// <para> /// The reason the request failed validation. /// </para> /// </summary> public ValidationExceptionReason Reason { get { return this._reason; } set { this._reason = value; } } // Check to see if Reason property is set internal bool IsSetReason() { return this._reason != null; } } }
166
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model { /// <summary> /// Indicates that the request has invalid or missing parameters for the field. /// </summary> public partial class ValidationExceptionField { private string _message; private string _name; /// <summary> /// Gets and sets the property Message. /// <para> /// The body of the error message. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Message { get { return this._message; } set { this._message = value; } } // Check to see if Message property is set internal bool IsSetMessage() { return this._message != null; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the validation error. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=2048)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } } }
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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentControlSet Object /// </summary> public class AssessmentControlSetUnmarshaller : IUnmarshaller<AssessmentControlSet, XmlUnmarshallerContext>, IUnmarshaller<AssessmentControlSet, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentControlSet IUnmarshaller<AssessmentControlSet, 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 AssessmentControlSet Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentControlSet unmarshalledObject = new AssessmentControlSet(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("controls", targetDepth)) { var unmarshaller = new ListUnmarshaller<AssessmentControl, AssessmentControlUnmarshaller>(AssessmentControlUnmarshaller.Instance); unmarshalledObject.Controls = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("delegations", targetDepth)) { var unmarshaller = new ListUnmarshaller<Delegation, DelegationUnmarshaller>(DelegationUnmarshaller.Instance); unmarshalledObject.Delegations = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("manualEvidenceCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ManualEvidenceCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("roles", targetDepth)) { var unmarshaller = new ListUnmarshaller<Role, RoleUnmarshaller>(RoleUnmarshaller.Instance); unmarshalledObject.Roles = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("systemEvidenceCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.SystemEvidenceCount = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentControlSetUnmarshaller _instance = new AssessmentControlSetUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentControlSetUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentControl Object /// </summary> public class AssessmentControlUnmarshaller : IUnmarshaller<AssessmentControl, XmlUnmarshallerContext>, IUnmarshaller<AssessmentControl, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentControl IUnmarshaller<AssessmentControl, 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 AssessmentControl Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentControl unmarshalledObject = new AssessmentControl(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("assessmentReportEvidenceCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.AssessmentReportEvidenceCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("comments", targetDepth)) { var unmarshaller = new ListUnmarshaller<ControlComment, ControlCommentUnmarshaller>(ControlCommentUnmarshaller.Instance); unmarshalledObject.Comments = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.EvidenceCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceSources", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.EvidenceSources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("response", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Response = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentControlUnmarshaller _instance = new AssessmentControlUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentControlUnmarshaller Instance { get { return _instance; } } } }
140
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentEvidenceFolder Object /// </summary> public class AssessmentEvidenceFolderUnmarshaller : IUnmarshaller<AssessmentEvidenceFolder, XmlUnmarshallerContext>, IUnmarshaller<AssessmentEvidenceFolder, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentEvidenceFolder IUnmarshaller<AssessmentEvidenceFolder, 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 AssessmentEvidenceFolder Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentEvidenceFolder unmarshalledObject = new AssessmentEvidenceFolder(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("assessmentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssessmentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("assessmentReportSelectionCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.AssessmentReportSelectionCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("author", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Author = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ControlId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ControlName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlSetId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ControlSetId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("dataSource", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DataSource = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("date", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.Date = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceAwsServiceSourceCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.EvidenceAwsServiceSourceCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceByTypeComplianceCheckCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.EvidenceByTypeComplianceCheckCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceByTypeComplianceCheckIssuesCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.EvidenceByTypeComplianceCheckIssuesCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceByTypeConfigurationDataCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.EvidenceByTypeConfigurationDataCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceByTypeManualCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.EvidenceByTypeManualCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceByTypeUserActivityCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.EvidenceByTypeUserActivityCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceResourcesIncludedCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.EvidenceResourcesIncludedCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("totalEvidence", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.TotalEvidence = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentEvidenceFolderUnmarshaller _instance = new AssessmentEvidenceFolderUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentEvidenceFolderUnmarshaller Instance { get { return _instance; } } } }
194
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentFrameworkMetadata Object /// </summary> public class AssessmentFrameworkMetadataUnmarshaller : IUnmarshaller<AssessmentFrameworkMetadata, XmlUnmarshallerContext>, IUnmarshaller<AssessmentFrameworkMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentFrameworkMetadata IUnmarshaller<AssessmentFrameworkMetadata, 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 AssessmentFrameworkMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentFrameworkMetadata unmarshalledObject = new AssessmentFrameworkMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("complianceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ComplianceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlsCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ControlsCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlSetsCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ControlSetsCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("logo", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Logo = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentFrameworkMetadataUnmarshaller _instance = new AssessmentFrameworkMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentFrameworkMetadataUnmarshaller Instance { get { return _instance; } } } }
152
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentFrameworkShareRequest Object /// </summary> public class AssessmentFrameworkShareRequestUnmarshaller : IUnmarshaller<AssessmentFrameworkShareRequest, XmlUnmarshallerContext>, IUnmarshaller<AssessmentFrameworkShareRequest, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentFrameworkShareRequest IUnmarshaller<AssessmentFrameworkShareRequest, 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 AssessmentFrameworkShareRequest Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentFrameworkShareRequest unmarshalledObject = new AssessmentFrameworkShareRequest(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("comment", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Comment = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("complianceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ComplianceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("customControlsCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.CustomControlsCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("destinationAccount", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DestinationAccount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("destinationRegion", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DestinationRegion = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("expirationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.ExpirationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("frameworkDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FrameworkDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("frameworkId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FrameworkId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("frameworkName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FrameworkName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdated", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceAccount", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceAccount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("standardControlsCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.StandardControlsCount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentFrameworkShareRequestUnmarshaller _instance = new AssessmentFrameworkShareRequestUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentFrameworkShareRequestUnmarshaller Instance { get { return _instance; } } } }
176
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentFramework Object /// </summary> public class AssessmentFrameworkUnmarshaller : IUnmarshaller<AssessmentFramework, XmlUnmarshallerContext>, IUnmarshaller<AssessmentFramework, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentFramework IUnmarshaller<AssessmentFramework, 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 AssessmentFramework Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentFramework unmarshalledObject = new AssessmentFramework(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlSets", targetDepth)) { var unmarshaller = new ListUnmarshaller<AssessmentControlSet, AssessmentControlSetUnmarshaller>(AssessmentControlSetUnmarshaller.Instance); unmarshalledObject.ControlSets = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("metadata", targetDepth)) { var unmarshaller = FrameworkMetadataUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentFrameworkUnmarshaller _instance = new AssessmentFrameworkUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentFrameworkUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentMetadataItem Object /// </summary> public class AssessmentMetadataItemUnmarshaller : IUnmarshaller<AssessmentMetadataItem, XmlUnmarshallerContext>, IUnmarshaller<AssessmentMetadataItem, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentMetadataItem IUnmarshaller<AssessmentMetadataItem, 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 AssessmentMetadataItem Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentMetadataItem unmarshalledObject = new AssessmentMetadataItem(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("complianceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ComplianceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("delegations", targetDepth)) { var unmarshaller = new ListUnmarshaller<Delegation, DelegationUnmarshaller>(DelegationUnmarshaller.Instance); unmarshalledObject.Delegations = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdated", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("roles", targetDepth)) { var unmarshaller = new ListUnmarshaller<Role, RoleUnmarshaller>(RoleUnmarshaller.Instance); unmarshalledObject.Roles = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentMetadataItemUnmarshaller _instance = new AssessmentMetadataItemUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentMetadataItemUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentMetadata Object /// </summary> public class AssessmentMetadataUnmarshaller : IUnmarshaller<AssessmentMetadata, XmlUnmarshallerContext>, IUnmarshaller<AssessmentMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentMetadata IUnmarshaller<AssessmentMetadata, 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 AssessmentMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentMetadata unmarshalledObject = new AssessmentMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("assessmentReportsDestination", targetDepth)) { var unmarshaller = AssessmentReportsDestinationUnmarshaller.Instance; unmarshalledObject.AssessmentReportsDestination = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("complianceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ComplianceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("delegations", targetDepth)) { var unmarshaller = new ListUnmarshaller<Delegation, DelegationUnmarshaller>(DelegationUnmarshaller.Instance); unmarshalledObject.Delegations = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdated", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("roles", targetDepth)) { var unmarshaller = new ListUnmarshaller<Role, RoleUnmarshaller>(RoleUnmarshaller.Instance); unmarshalledObject.Roles = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("scope", targetDepth)) { var unmarshaller = ScopeUnmarshaller.Instance; unmarshalledObject.Scope = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentMetadataUnmarshaller _instance = new AssessmentMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentMetadataUnmarshaller Instance { get { return _instance; } } } }
152
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentReportEvidenceError Object /// </summary> public class AssessmentReportEvidenceErrorUnmarshaller : IUnmarshaller<AssessmentReportEvidenceError, XmlUnmarshallerContext>, IUnmarshaller<AssessmentReportEvidenceError, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentReportEvidenceError IUnmarshaller<AssessmentReportEvidenceError, 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 AssessmentReportEvidenceError Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentReportEvidenceError unmarshalledObject = new AssessmentReportEvidenceError(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EvidenceId = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentReportEvidenceErrorUnmarshaller _instance = new AssessmentReportEvidenceErrorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentReportEvidenceErrorUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentReportMetadata Object /// </summary> public class AssessmentReportMetadataUnmarshaller : IUnmarshaller<AssessmentReportMetadata, XmlUnmarshallerContext>, IUnmarshaller<AssessmentReportMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentReportMetadata IUnmarshaller<AssessmentReportMetadata, 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 AssessmentReportMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentReportMetadata unmarshalledObject = new AssessmentReportMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("assessmentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssessmentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("assessmentName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssessmentName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("author", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Author = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentReportMetadataUnmarshaller _instance = new AssessmentReportMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentReportMetadataUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// AssessmentReportsDestination Marshaller /// </summary> public class AssessmentReportsDestinationMarshaller : IRequestMarshaller<AssessmentReportsDestination, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AssessmentReportsDestination requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDestination()) { context.Writer.WritePropertyName("destination"); context.Writer.Write(requestObject.Destination); } if(requestObject.IsSetDestinationType()) { context.Writer.WritePropertyName("destinationType"); context.Writer.Write(requestObject.DestinationType); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AssessmentReportsDestinationMarshaller Instance = new AssessmentReportsDestinationMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentReportsDestination Object /// </summary> public class AssessmentReportsDestinationUnmarshaller : IUnmarshaller<AssessmentReportsDestination, XmlUnmarshallerContext>, IUnmarshaller<AssessmentReportsDestination, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentReportsDestination IUnmarshaller<AssessmentReportsDestination, 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 AssessmentReportsDestination Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentReportsDestination unmarshalledObject = new AssessmentReportsDestination(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("destination", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Destination = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("destinationType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DestinationType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentReportsDestinationUnmarshaller _instance = new AssessmentReportsDestinationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentReportsDestinationUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssessmentReport Object /// </summary> public class AssessmentReportUnmarshaller : IUnmarshaller<AssessmentReport, XmlUnmarshallerContext>, IUnmarshaller<AssessmentReport, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AssessmentReport IUnmarshaller<AssessmentReport, 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 AssessmentReport Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AssessmentReport unmarshalledObject = new AssessmentReport(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("assessmentId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssessmentId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("assessmentName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AssessmentName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("author", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Author = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("awsAccountId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AwsAccountId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("creationTime", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreationTime = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentReportUnmarshaller _instance = new AssessmentReportUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentReportUnmarshaller Instance { get { return _instance; } } } }
140
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Assessment Object /// </summary> public class AssessmentUnmarshaller : IUnmarshaller<Assessment, XmlUnmarshallerContext>, IUnmarshaller<Assessment, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Assessment IUnmarshaller<Assessment, 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 Assessment Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Assessment unmarshalledObject = new Assessment(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("awsAccount", targetDepth)) { var unmarshaller = AWSAccountUnmarshaller.Instance; unmarshalledObject.AwsAccount = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("framework", targetDepth)) { var unmarshaller = AssessmentFrameworkUnmarshaller.Instance; unmarshalledObject.Framework = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("metadata", targetDepth)) { var unmarshaller = AssessmentMetadataUnmarshaller.Instance; unmarshalledObject.Metadata = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AssessmentUnmarshaller _instance = new AssessmentUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AssessmentUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// AssociateAssessmentReportEvidenceFolder Request Marshaller /// </summary> public class AssociateAssessmentReportEvidenceFolderRequestMarshaller : IMarshaller<IRequest, AssociateAssessmentReportEvidenceFolderRequest> , 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((AssociateAssessmentReportEvidenceFolderRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(AssociateAssessmentReportEvidenceFolderRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AuditManager"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetAssessmentId()) throw new AmazonAuditManagerException("Request object does not have required field AssessmentId set"); request.AddPathResource("{assessmentId}", StringUtils.FromString(publicRequest.AssessmentId)); request.ResourcePath = "/assessments/{assessmentId}/associateToAssessmentReport"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetEvidenceFolderId()) { context.Writer.WritePropertyName("evidenceFolderId"); context.Writer.Write(publicRequest.EvidenceFolderId); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static AssociateAssessmentReportEvidenceFolderRequestMarshaller _instance = new AssociateAssessmentReportEvidenceFolderRequestMarshaller(); internal static AssociateAssessmentReportEvidenceFolderRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateAssessmentReportEvidenceFolderRequestMarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AssociateAssessmentReportEvidenceFolder operation /// </summary> public class AssociateAssessmentReportEvidenceFolderResponseUnmarshaller : 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) { AssociateAssessmentReportEvidenceFolderResponse response = new AssociateAssessmentReportEvidenceFolderResponse(); 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("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAuditManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static AssociateAssessmentReportEvidenceFolderResponseUnmarshaller _instance = new AssociateAssessmentReportEvidenceFolderResponseUnmarshaller(); internal static AssociateAssessmentReportEvidenceFolderResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AssociateAssessmentReportEvidenceFolderResponseUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// AWSAccount Marshaller /// </summary> public class AWSAccountMarshaller : IRequestMarshaller<AWSAccount, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AWSAccount requestObject, JsonMarshallerContext context) { if(requestObject.IsSetEmailAddress()) { context.Writer.WritePropertyName("emailAddress"); context.Writer.Write(requestObject.EmailAddress); } if(requestObject.IsSetId()) { context.Writer.WritePropertyName("id"); context.Writer.Write(requestObject.Id); } if(requestObject.IsSetName()) { context.Writer.WritePropertyName("name"); context.Writer.Write(requestObject.Name); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AWSAccountMarshaller Instance = new AWSAccountMarshaller(); } }
74
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AWSAccount Object /// </summary> public class AWSAccountUnmarshaller : IUnmarshaller<AWSAccount, XmlUnmarshallerContext>, IUnmarshaller<AWSAccount, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AWSAccount IUnmarshaller<AWSAccount, 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 AWSAccount Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AWSAccount unmarshalledObject = new AWSAccount(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("emailAddress", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.EmailAddress = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AWSAccountUnmarshaller _instance = new AWSAccountUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AWSAccountUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// AWSService Marshaller /// </summary> public class AWSServiceMarshaller : IRequestMarshaller<AWSService, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AWSService requestObject, JsonMarshallerContext context) { if(requestObject.IsSetServiceName()) { context.Writer.WritePropertyName("serviceName"); context.Writer.Write(requestObject.ServiceName); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AWSServiceMarshaller Instance = new AWSServiceMarshaller(); } }
62
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AWSService Object /// </summary> public class AWSServiceUnmarshaller : IUnmarshaller<AWSService, XmlUnmarshallerContext>, IUnmarshaller<AWSService, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AWSService IUnmarshaller<AWSService, 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 AWSService Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AWSService unmarshalledObject = new AWSService(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("serviceName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ServiceName = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AWSServiceUnmarshaller _instance = new AWSServiceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AWSServiceUnmarshaller Instance { get { return _instance; } } } }
92
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// BatchAssociateAssessmentReportEvidence Request Marshaller /// </summary> public class BatchAssociateAssessmentReportEvidenceRequestMarshaller : IMarshaller<IRequest, BatchAssociateAssessmentReportEvidenceRequest> , 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((BatchAssociateAssessmentReportEvidenceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(BatchAssociateAssessmentReportEvidenceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AuditManager"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetAssessmentId()) throw new AmazonAuditManagerException("Request object does not have required field AssessmentId set"); request.AddPathResource("{assessmentId}", StringUtils.FromString(publicRequest.AssessmentId)); request.ResourcePath = "/assessments/{assessmentId}/batchAssociateToAssessmentReport"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetEvidenceFolderId()) { context.Writer.WritePropertyName("evidenceFolderId"); context.Writer.Write(publicRequest.EvidenceFolderId); } if(publicRequest.IsSetEvidenceIds()) { context.Writer.WritePropertyName("evidenceIds"); context.Writer.WriteArrayStart(); foreach(var publicRequestEvidenceIdsListValue in publicRequest.EvidenceIds) { context.Writer.Write(publicRequestEvidenceIdsListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static BatchAssociateAssessmentReportEvidenceRequestMarshaller _instance = new BatchAssociateAssessmentReportEvidenceRequestMarshaller(); internal static BatchAssociateAssessmentReportEvidenceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchAssociateAssessmentReportEvidenceRequestMarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchAssociateAssessmentReportEvidence operation /// </summary> public class BatchAssociateAssessmentReportEvidenceResponseUnmarshaller : 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) { BatchAssociateAssessmentReportEvidenceResponse response = new BatchAssociateAssessmentReportEvidenceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errors", targetDepth)) { var unmarshaller = new ListUnmarshaller<AssessmentReportEvidenceError, AssessmentReportEvidenceErrorUnmarshaller>(AssessmentReportEvidenceErrorUnmarshaller.Instance); response.Errors = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceIds", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); response.EvidenceIds = 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("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAuditManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static BatchAssociateAssessmentReportEvidenceResponseUnmarshaller _instance = new BatchAssociateAssessmentReportEvidenceResponseUnmarshaller(); internal static BatchAssociateAssessmentReportEvidenceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchAssociateAssessmentReportEvidenceResponseUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchCreateDelegationByAssessmentError Object /// </summary> public class BatchCreateDelegationByAssessmentErrorUnmarshaller : IUnmarshaller<BatchCreateDelegationByAssessmentError, XmlUnmarshallerContext>, IUnmarshaller<BatchCreateDelegationByAssessmentError, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> BatchCreateDelegationByAssessmentError IUnmarshaller<BatchCreateDelegationByAssessmentError, 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 BatchCreateDelegationByAssessmentError Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; BatchCreateDelegationByAssessmentError unmarshalledObject = new BatchCreateDelegationByAssessmentError(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("createDelegationRequest", targetDepth)) { var unmarshaller = CreateDelegationRequestUnmarshaller.Instance; unmarshalledObject.CreateDelegationRequest = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BatchCreateDelegationByAssessmentErrorUnmarshaller _instance = new BatchCreateDelegationByAssessmentErrorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BatchCreateDelegationByAssessmentErrorUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// BatchCreateDelegationByAssessment Request Marshaller /// </summary> public class BatchCreateDelegationByAssessmentRequestMarshaller : IMarshaller<IRequest, BatchCreateDelegationByAssessmentRequest> , 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((BatchCreateDelegationByAssessmentRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(BatchCreateDelegationByAssessmentRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AuditManager"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetAssessmentId()) throw new AmazonAuditManagerException("Request object does not have required field AssessmentId set"); request.AddPathResource("{assessmentId}", StringUtils.FromString(publicRequest.AssessmentId)); request.ResourcePath = "/assessments/{assessmentId}/delegations"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCreateDelegationRequests()) { context.Writer.WritePropertyName("createDelegationRequests"); context.Writer.WriteArrayStart(); foreach(var publicRequestCreateDelegationRequestsListValue in publicRequest.CreateDelegationRequests) { context.Writer.WriteObjectStart(); var marshaller = CreateDelegationRequestMarshaller.Instance; marshaller.Marshall(publicRequestCreateDelegationRequestsListValue, 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 BatchCreateDelegationByAssessmentRequestMarshaller _instance = new BatchCreateDelegationByAssessmentRequestMarshaller(); internal static BatchCreateDelegationByAssessmentRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchCreateDelegationByAssessmentRequestMarshaller Instance { get { return _instance; } } } }
114
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchCreateDelegationByAssessment operation /// </summary> public class BatchCreateDelegationByAssessmentResponseUnmarshaller : 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) { BatchCreateDelegationByAssessmentResponse response = new BatchCreateDelegationByAssessmentResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("delegations", targetDepth)) { var unmarshaller = new ListUnmarshaller<Delegation, DelegationUnmarshaller>(DelegationUnmarshaller.Instance); response.Delegations = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errors", targetDepth)) { var unmarshaller = new ListUnmarshaller<BatchCreateDelegationByAssessmentError, BatchCreateDelegationByAssessmentErrorUnmarshaller>(BatchCreateDelegationByAssessmentErrorUnmarshaller.Instance); response.Errors = 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("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAuditManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static BatchCreateDelegationByAssessmentResponseUnmarshaller _instance = new BatchCreateDelegationByAssessmentResponseUnmarshaller(); internal static BatchCreateDelegationByAssessmentResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchCreateDelegationByAssessmentResponseUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchDeleteDelegationByAssessmentError Object /// </summary> public class BatchDeleteDelegationByAssessmentErrorUnmarshaller : IUnmarshaller<BatchDeleteDelegationByAssessmentError, XmlUnmarshallerContext>, IUnmarshaller<BatchDeleteDelegationByAssessmentError, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> BatchDeleteDelegationByAssessmentError IUnmarshaller<BatchDeleteDelegationByAssessmentError, 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 BatchDeleteDelegationByAssessmentError Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; BatchDeleteDelegationByAssessmentError unmarshalledObject = new BatchDeleteDelegationByAssessmentError(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("delegationId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DelegationId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BatchDeleteDelegationByAssessmentErrorUnmarshaller _instance = new BatchDeleteDelegationByAssessmentErrorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BatchDeleteDelegationByAssessmentErrorUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// BatchDeleteDelegationByAssessment Request Marshaller /// </summary> public class BatchDeleteDelegationByAssessmentRequestMarshaller : IMarshaller<IRequest, BatchDeleteDelegationByAssessmentRequest> , 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((BatchDeleteDelegationByAssessmentRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(BatchDeleteDelegationByAssessmentRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AuditManager"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetAssessmentId()) throw new AmazonAuditManagerException("Request object does not have required field AssessmentId set"); request.AddPathResource("{assessmentId}", StringUtils.FromString(publicRequest.AssessmentId)); request.ResourcePath = "/assessments/{assessmentId}/delegations"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetDelegationIds()) { context.Writer.WritePropertyName("delegationIds"); context.Writer.WriteArrayStart(); foreach(var publicRequestDelegationIdsListValue in publicRequest.DelegationIds) { context.Writer.Write(publicRequestDelegationIdsListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static BatchDeleteDelegationByAssessmentRequestMarshaller _instance = new BatchDeleteDelegationByAssessmentRequestMarshaller(); internal static BatchDeleteDelegationByAssessmentRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchDeleteDelegationByAssessmentRequestMarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchDeleteDelegationByAssessment operation /// </summary> public class BatchDeleteDelegationByAssessmentResponseUnmarshaller : 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) { BatchDeleteDelegationByAssessmentResponse response = new BatchDeleteDelegationByAssessmentResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errors", targetDepth)) { var unmarshaller = new ListUnmarshaller<BatchDeleteDelegationByAssessmentError, BatchDeleteDelegationByAssessmentErrorUnmarshaller>(BatchDeleteDelegationByAssessmentErrorUnmarshaller.Instance); response.Errors = 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("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAuditManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static BatchDeleteDelegationByAssessmentResponseUnmarshaller _instance = new BatchDeleteDelegationByAssessmentResponseUnmarshaller(); internal static BatchDeleteDelegationByAssessmentResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchDeleteDelegationByAssessmentResponseUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// BatchDisassociateAssessmentReportEvidence Request Marshaller /// </summary> public class BatchDisassociateAssessmentReportEvidenceRequestMarshaller : IMarshaller<IRequest, BatchDisassociateAssessmentReportEvidenceRequest> , 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((BatchDisassociateAssessmentReportEvidenceRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(BatchDisassociateAssessmentReportEvidenceRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AuditManager"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "PUT"; if (!publicRequest.IsSetAssessmentId()) throw new AmazonAuditManagerException("Request object does not have required field AssessmentId set"); request.AddPathResource("{assessmentId}", StringUtils.FromString(publicRequest.AssessmentId)); request.ResourcePath = "/assessments/{assessmentId}/batchDisassociateFromAssessmentReport"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetEvidenceFolderId()) { context.Writer.WritePropertyName("evidenceFolderId"); context.Writer.Write(publicRequest.EvidenceFolderId); } if(publicRequest.IsSetEvidenceIds()) { context.Writer.WritePropertyName("evidenceIds"); context.Writer.WriteArrayStart(); foreach(var publicRequestEvidenceIdsListValue in publicRequest.EvidenceIds) { context.Writer.Write(publicRequestEvidenceIdsListValue); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static BatchDisassociateAssessmentReportEvidenceRequestMarshaller _instance = new BatchDisassociateAssessmentReportEvidenceRequestMarshaller(); internal static BatchDisassociateAssessmentReportEvidenceRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchDisassociateAssessmentReportEvidenceRequestMarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchDisassociateAssessmentReportEvidence operation /// </summary> public class BatchDisassociateAssessmentReportEvidenceResponseUnmarshaller : 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) { BatchDisassociateAssessmentReportEvidenceResponse response = new BatchDisassociateAssessmentReportEvidenceResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errors", targetDepth)) { var unmarshaller = new ListUnmarshaller<AssessmentReportEvidenceError, AssessmentReportEvidenceErrorUnmarshaller>(AssessmentReportEvidenceErrorUnmarshaller.Instance); response.Errors = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceIds", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); response.EvidenceIds = 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("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAuditManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static BatchDisassociateAssessmentReportEvidenceResponseUnmarshaller _instance = new BatchDisassociateAssessmentReportEvidenceResponseUnmarshaller(); internal static BatchDisassociateAssessmentReportEvidenceResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchDisassociateAssessmentReportEvidenceResponseUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchImportEvidenceToAssessmentControlError Object /// </summary> public class BatchImportEvidenceToAssessmentControlErrorUnmarshaller : IUnmarshaller<BatchImportEvidenceToAssessmentControlError, XmlUnmarshallerContext>, IUnmarshaller<BatchImportEvidenceToAssessmentControlError, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> BatchImportEvidenceToAssessmentControlError IUnmarshaller<BatchImportEvidenceToAssessmentControlError, 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 BatchImportEvidenceToAssessmentControlError Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; BatchImportEvidenceToAssessmentControlError unmarshalledObject = new BatchImportEvidenceToAssessmentControlError(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errorCode", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorCode = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("errorMessage", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ErrorMessage = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("manualEvidence", targetDepth)) { var unmarshaller = ManualEvidenceUnmarshaller.Instance; unmarshalledObject.ManualEvidence = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static BatchImportEvidenceToAssessmentControlErrorUnmarshaller _instance = new BatchImportEvidenceToAssessmentControlErrorUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static BatchImportEvidenceToAssessmentControlErrorUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// BatchImportEvidenceToAssessmentControl Request Marshaller /// </summary> public class BatchImportEvidenceToAssessmentControlRequestMarshaller : IMarshaller<IRequest, BatchImportEvidenceToAssessmentControlRequest> , 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((BatchImportEvidenceToAssessmentControlRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(BatchImportEvidenceToAssessmentControlRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.AuditManager"); request.Headers["Content-Type"] = "application/json"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-07-25"; request.HttpMethod = "POST"; if (!publicRequest.IsSetAssessmentId()) throw new AmazonAuditManagerException("Request object does not have required field AssessmentId set"); request.AddPathResource("{assessmentId}", StringUtils.FromString(publicRequest.AssessmentId)); if (!publicRequest.IsSetControlId()) throw new AmazonAuditManagerException("Request object does not have required field ControlId set"); request.AddPathResource("{controlId}", StringUtils.FromString(publicRequest.ControlId)); if (!publicRequest.IsSetControlSetId()) throw new AmazonAuditManagerException("Request object does not have required field ControlSetId set"); request.AddPathResource("{controlSetId}", StringUtils.FromString(publicRequest.ControlSetId)); request.ResourcePath = "/assessments/{assessmentId}/controlSets/{controlSetId}/controls/{controlId}/evidence"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetManualEvidence()) { context.Writer.WritePropertyName("manualEvidence"); context.Writer.WriteArrayStart(); foreach(var publicRequestManualEvidenceListValue in publicRequest.ManualEvidence) { context.Writer.WriteObjectStart(); var marshaller = ManualEvidenceMarshaller.Instance; marshaller.Marshall(publicRequestManualEvidenceListValue, 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 BatchImportEvidenceToAssessmentControlRequestMarshaller _instance = new BatchImportEvidenceToAssessmentControlRequestMarshaller(); internal static BatchImportEvidenceToAssessmentControlRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchImportEvidenceToAssessmentControlRequestMarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for BatchImportEvidenceToAssessmentControl operation /// </summary> public class BatchImportEvidenceToAssessmentControlResponseUnmarshaller : 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) { BatchImportEvidenceToAssessmentControlResponse response = new BatchImportEvidenceToAssessmentControlResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("errors", targetDepth)) { var unmarshaller = new ListUnmarshaller<BatchImportEvidenceToAssessmentControlError, BatchImportEvidenceToAssessmentControlErrorUnmarshaller>(BatchImportEvidenceToAssessmentControlErrorUnmarshaller.Instance); response.Errors = 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("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonAuditManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static BatchImportEvidenceToAssessmentControlResponseUnmarshaller _instance = new BatchImportEvidenceToAssessmentControlResponseUnmarshaller(); internal static BatchImportEvidenceToAssessmentControlResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static BatchImportEvidenceToAssessmentControlResponseUnmarshaller Instance { get { return _instance; } } } }
126
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ChangeLog Object /// </summary> public class ChangeLogUnmarshaller : IUnmarshaller<ChangeLog, XmlUnmarshallerContext>, IUnmarshaller<ChangeLog, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ChangeLog IUnmarshaller<ChangeLog, 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 ChangeLog Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ChangeLog unmarshalledObject = new ChangeLog(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("action", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Action = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CreatedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("objectName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ObjectName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("objectType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ObjectType = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ChangeLogUnmarshaller _instance = new ChangeLogUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ChangeLogUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ControlComment Object /// </summary> public class ControlCommentUnmarshaller : IUnmarshaller<ControlComment, XmlUnmarshallerContext>, IUnmarshaller<ControlComment, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ControlComment IUnmarshaller<ControlComment, 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 ControlComment Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ControlComment unmarshalledObject = new ControlComment(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("authorName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AuthorName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("commentBody", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CommentBody = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("postedDate", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.PostedDate = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ControlCommentUnmarshaller _instance = new ControlCommentUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ControlCommentUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ControlDomainInsights Object /// </summary> public class ControlDomainInsightsUnmarshaller : IUnmarshaller<ControlDomainInsights, XmlUnmarshallerContext>, IUnmarshaller<ControlDomainInsights, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ControlDomainInsights IUnmarshaller<ControlDomainInsights, 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 ControlDomainInsights Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ControlDomainInsights unmarshalledObject = new ControlDomainInsights(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("controlsCountByNoncompliantEvidence", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.ControlsCountByNoncompliantEvidence = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceInsights", targetDepth)) { var unmarshaller = EvidenceInsightsUnmarshaller.Instance; unmarshalledObject.EvidenceInsights = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdated", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("totalControlsCount", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.TotalControlsCount = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ControlDomainInsightsUnmarshaller _instance = new ControlDomainInsightsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ControlDomainInsightsUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ControlInsightsMetadataByAssessmentItem Object /// </summary> public class ControlInsightsMetadataByAssessmentItemUnmarshaller : IUnmarshaller<ControlInsightsMetadataByAssessmentItem, XmlUnmarshallerContext>, IUnmarshaller<ControlInsightsMetadataByAssessmentItem, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ControlInsightsMetadataByAssessmentItem IUnmarshaller<ControlInsightsMetadataByAssessmentItem, 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 ControlInsightsMetadataByAssessmentItem Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ControlInsightsMetadataByAssessmentItem unmarshalledObject = new ControlInsightsMetadataByAssessmentItem(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("controlSetName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ControlSetName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("evidenceInsights", targetDepth)) { var unmarshaller = EvidenceInsightsUnmarshaller.Instance; unmarshalledObject.EvidenceInsights = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdated", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ControlInsightsMetadataByAssessmentItemUnmarshaller _instance = new ControlInsightsMetadataByAssessmentItemUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ControlInsightsMetadataByAssessmentItemUnmarshaller Instance { get { return _instance; } } } }
116
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ControlInsightsMetadataItem Object /// </summary> public class ControlInsightsMetadataItemUnmarshaller : IUnmarshaller<ControlInsightsMetadataItem, XmlUnmarshallerContext>, IUnmarshaller<ControlInsightsMetadataItem, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ControlInsightsMetadataItem IUnmarshaller<ControlInsightsMetadataItem, 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 ControlInsightsMetadataItem Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ControlInsightsMetadataItem unmarshalledObject = new ControlInsightsMetadataItem(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("evidenceInsights", targetDepth)) { var unmarshaller = EvidenceInsightsUnmarshaller.Instance; unmarshalledObject.EvidenceInsights = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdated", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdated = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ControlInsightsMetadataItemUnmarshaller _instance = new ControlInsightsMetadataItemUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ControlInsightsMetadataItemUnmarshaller Instance { get { return _instance; } } } }
110
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// ControlMappingSource Marshaller /// </summary> public class ControlMappingSourceMarshaller : IRequestMarshaller<ControlMappingSource, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ControlMappingSource requestObject, JsonMarshallerContext context) { if(requestObject.IsSetSourceDescription()) { context.Writer.WritePropertyName("sourceDescription"); context.Writer.Write(requestObject.SourceDescription); } if(requestObject.IsSetSourceFrequency()) { context.Writer.WritePropertyName("sourceFrequency"); context.Writer.Write(requestObject.SourceFrequency); } if(requestObject.IsSetSourceId()) { context.Writer.WritePropertyName("sourceId"); context.Writer.Write(requestObject.SourceId); } if(requestObject.IsSetSourceKeyword()) { context.Writer.WritePropertyName("sourceKeyword"); context.Writer.WriteObjectStart(); var marshaller = SourceKeywordMarshaller.Instance; marshaller.Marshall(requestObject.SourceKeyword, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSourceName()) { context.Writer.WritePropertyName("sourceName"); context.Writer.Write(requestObject.SourceName); } if(requestObject.IsSetSourceSetUpOption()) { context.Writer.WritePropertyName("sourceSetUpOption"); context.Writer.Write(requestObject.SourceSetUpOption); } if(requestObject.IsSetSourceType()) { context.Writer.WritePropertyName("sourceType"); context.Writer.Write(requestObject.SourceType); } if(requestObject.IsSetTroubleshootingText()) { context.Writer.WritePropertyName("troubleshootingText"); context.Writer.Write(requestObject.TroubleshootingText); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ControlMappingSourceMarshaller Instance = new ControlMappingSourceMarshaller(); } }
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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ControlMappingSource Object /// </summary> public class ControlMappingSourceUnmarshaller : IUnmarshaller<ControlMappingSource, XmlUnmarshallerContext>, IUnmarshaller<ControlMappingSource, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ControlMappingSource IUnmarshaller<ControlMappingSource, 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 ControlMappingSource Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ControlMappingSource unmarshalledObject = new ControlMappingSource(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("sourceDescription", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceDescription = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceFrequency", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceFrequency = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceId", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceId = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceKeyword", targetDepth)) { var unmarshaller = SourceKeywordUnmarshaller.Instance; unmarshalledObject.SourceKeyword = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceSetUpOption", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceSetUpOption = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("sourceType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SourceType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("troubleshootingText", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TroubleshootingText = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ControlMappingSourceUnmarshaller _instance = new ControlMappingSourceUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ControlMappingSourceUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ControlMetadata Object /// </summary> public class ControlMetadataUnmarshaller : IUnmarshaller<ControlMetadata, XmlUnmarshallerContext>, IUnmarshaller<ControlMetadata, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ControlMetadata IUnmarshaller<ControlMetadata, 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 ControlMetadata Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ControlMetadata unmarshalledObject = new ControlMetadata(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlSources", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ControlSources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ControlMetadataUnmarshaller _instance = new ControlMetadataUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ControlMetadataUnmarshaller 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 auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ControlSet Object /// </summary> public class ControlSetUnmarshaller : IUnmarshaller<ControlSet, XmlUnmarshallerContext>, IUnmarshaller<ControlSet, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ControlSet IUnmarshaller<ControlSet, 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 ControlSet Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ControlSet unmarshalledObject = new ControlSet(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("controls", targetDepth)) { var unmarshaller = new ListUnmarshaller<Control, ControlUnmarshaller>(ControlUnmarshaller.Instance); unmarshalledObject.Controls = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ControlSetUnmarshaller _instance = new ControlSetUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ControlSetUnmarshaller Instance { get { return _instance; } } } }
104
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Control Object /// </summary> public class ControlUnmarshaller : IUnmarshaller<Control, XmlUnmarshallerContext>, IUnmarshaller<Control, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Control IUnmarshaller<Control, 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 Control Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Control unmarshalledObject = new Control(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("actionPlanInstructions", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ActionPlanInstructions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("actionPlanTitle", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ActionPlanTitle = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("arn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Arn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlMappingSources", targetDepth)) { var unmarshaller = new ListUnmarshaller<ControlMappingSource, ControlMappingSourceUnmarshaller>(ControlMappingSourceUnmarshaller.Instance); unmarshalledObject.ControlMappingSources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("controlSources", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ControlSources = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("createdBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CreatedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("description", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Description = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("id", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Id = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.LastUpdatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("lastUpdatedBy", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.LastUpdatedBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("tags", targetDepth)) { var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance); unmarshalledObject.Tags = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("testingInformation", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.TestingInformation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ControlUnmarshaller _instance = new ControlUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ControlUnmarshaller Instance { get { return _instance; } } } }
176
aws-sdk-net
aws
C#
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the auditmanager-2017-07-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.AuditManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.AuditManager.Model.Internal.MarshallTransformations { /// <summary> /// CreateAssessmentFrameworkControl Marshaller /// </summary> public class CreateAssessmentFrameworkControlMarshaller : IRequestMarshaller<CreateAssessmentFrameworkControl, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CreateAssessmentFrameworkControl requestObject, JsonMarshallerContext context) { if(requestObject.IsSetId()) { context.Writer.WritePropertyName("id"); context.Writer.Write(requestObject.Id); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CreateAssessmentFrameworkControlMarshaller Instance = new CreateAssessmentFrameworkControlMarshaller(); } }
62