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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the ListReportJobs operation.
/// Returns details about your report jobs.
/// </summary>
public partial class ListReportJobsRequest : AmazonBackupRequest
{
private DateTime? _byCreationAfter;
private DateTime? _byCreationBefore;
private string _byReportPlanName;
private string _byStatus;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property ByCreationAfter.
/// <para>
/// Returns only report jobs that were created after the date and time specified in Unix
/// format and Coordinated Universal Time (UTC). For example, the value 1516925490 represents
/// Friday, January 26, 2018 12:11:30 AM.
/// </para>
/// </summary>
public DateTime ByCreationAfter
{
get { return this._byCreationAfter.GetValueOrDefault(); }
set { this._byCreationAfter = value; }
}
// Check to see if ByCreationAfter property is set
internal bool IsSetByCreationAfter()
{
return this._byCreationAfter.HasValue;
}
/// <summary>
/// Gets and sets the property ByCreationBefore.
/// <para>
/// Returns only report jobs that were created before the date and time specified in Unix
/// format and Coordinated Universal Time (UTC). For example, the value 1516925490 represents
/// Friday, January 26, 2018 12:11:30 AM.
/// </para>
/// </summary>
public DateTime ByCreationBefore
{
get { return this._byCreationBefore.GetValueOrDefault(); }
set { this._byCreationBefore = value; }
}
// Check to see if ByCreationBefore property is set
internal bool IsSetByCreationBefore()
{
return this._byCreationBefore.HasValue;
}
/// <summary>
/// Gets and sets the property ByReportPlanName.
/// <para>
/// Returns only report jobs with the specified report plan name.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ByReportPlanName
{
get { return this._byReportPlanName; }
set { this._byReportPlanName = value; }
}
// Check to see if ByReportPlanName property is set
internal bool IsSetByReportPlanName()
{
return this._byReportPlanName != null;
}
/// <summary>
/// Gets and sets the property ByStatus.
/// <para>
/// Returns only report jobs that are in the specified status. The statuses are:
/// </para>
///
/// <para>
/// <code>CREATED | RUNNING | COMPLETED | FAILED</code>
/// </para>
/// </summary>
public string ByStatus
{
get { return this._byStatus; }
set { this._byStatus = value; }
}
// Check to see if ByStatus property is set
internal bool IsSetByStatus()
{
return this._byStatus != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The number of desired results from 1 to 1000. Optional. If unspecified, the query
/// will return 1 MB of data.
/// </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>
/// An identifier that was returned from the previous call to this operation, which can
/// be used to return the next set of items in the list.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 165 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the ListReportJobs operation.
/// </summary>
public partial class ListReportJobsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<ReportJob> _reportJobs = new List<ReportJob>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// An identifier that was returned from the previous call to this operation, which can
/// be used to return the next set of items in the list.
/// </para>
/// </summary>
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 ReportJobs.
/// <para>
/// Details about your report jobs in JSON format.
/// </para>
/// </summary>
public List<ReportJob> ReportJobs
{
get { return this._reportJobs; }
set { this._reportJobs = value; }
}
// Check to see if ReportJobs property is set
internal bool IsSetReportJobs()
{
return this._reportJobs != null && this._reportJobs.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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the ListReportPlans operation.
/// Returns a list of your report plans. For detailed information about a single report
/// plan, use <code>DescribeReportPlan</code>.
/// </summary>
public partial class ListReportPlansRequest : AmazonBackupRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The number of desired results from 1 to 1000. Optional. If unspecified, the query
/// will return 1 MB of data.
/// </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>
/// An identifier that was returned from the previous call to this operation, which can
/// be used to return the next set of items in the list.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
}
| 81 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the ListReportPlans operation.
/// </summary>
public partial class ListReportPlansResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<ReportPlan> _reportPlans = new List<ReportPlan>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// An identifier that was returned from the previous call to this operation, which can
/// be used to return the next set of items in the list.
/// </para>
/// </summary>
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 ReportPlans.
/// <para>
/// A list of your report plans with detailed information for each plan. This information
/// includes the Amazon Resource Name (ARN), report plan name, description, settings,
/// delivery channel, deployment status, creation time, and last times the report plan
/// attempted to and successfully ran.
/// </para>
/// </summary>
public List<ReportPlan> ReportPlans
{
get { return this._reportPlans; }
set { this._reportPlans = value; }
}
// Check to see if ReportPlans property is set
internal bool IsSetReportPlans()
{
return this._reportPlans != null && this._reportPlans.Count > 0;
}
}
}
| 80 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the ListRestoreJobs operation.
/// Returns a list of jobs that Backup initiated to restore a saved resource, including
/// details about the recovery process.
/// </summary>
public partial class ListRestoreJobsRequest : AmazonBackupRequest
{
private string _byAccountId;
private DateTime? _byCompleteAfter;
private DateTime? _byCompleteBefore;
private DateTime? _byCreatedAfter;
private DateTime? _byCreatedBefore;
private RestoreJobStatus _byStatus;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property ByAccountId.
/// <para>
/// The account ID to list the jobs from. Returns only restore jobs associated with the
/// specified account ID.
/// </para>
/// </summary>
public string ByAccountId
{
get { return this._byAccountId; }
set { this._byAccountId = value; }
}
// Check to see if ByAccountId property is set
internal bool IsSetByAccountId()
{
return this._byAccountId != null;
}
/// <summary>
/// Gets and sets the property ByCompleteAfter.
/// <para>
/// Returns only copy jobs completed after a date expressed in Unix format and Coordinated
/// Universal Time (UTC).
/// </para>
/// </summary>
public DateTime ByCompleteAfter
{
get { return this._byCompleteAfter.GetValueOrDefault(); }
set { this._byCompleteAfter = value; }
}
// Check to see if ByCompleteAfter property is set
internal bool IsSetByCompleteAfter()
{
return this._byCompleteAfter.HasValue;
}
/// <summary>
/// Gets and sets the property ByCompleteBefore.
/// <para>
/// Returns only copy jobs completed before a date expressed in Unix format and Coordinated
/// Universal Time (UTC).
/// </para>
/// </summary>
public DateTime ByCompleteBefore
{
get { return this._byCompleteBefore.GetValueOrDefault(); }
set { this._byCompleteBefore = value; }
}
// Check to see if ByCompleteBefore property is set
internal bool IsSetByCompleteBefore()
{
return this._byCompleteBefore.HasValue;
}
/// <summary>
/// Gets and sets the property ByCreatedAfter.
/// <para>
/// Returns only restore jobs that were created after the specified date.
/// </para>
/// </summary>
public DateTime ByCreatedAfter
{
get { return this._byCreatedAfter.GetValueOrDefault(); }
set { this._byCreatedAfter = value; }
}
// Check to see if ByCreatedAfter property is set
internal bool IsSetByCreatedAfter()
{
return this._byCreatedAfter.HasValue;
}
/// <summary>
/// Gets and sets the property ByCreatedBefore.
/// <para>
/// Returns only restore jobs that were created before the specified date.
/// </para>
/// </summary>
public DateTime ByCreatedBefore
{
get { return this._byCreatedBefore.GetValueOrDefault(); }
set { this._byCreatedBefore = value; }
}
// Check to see if ByCreatedBefore property is set
internal bool IsSetByCreatedBefore()
{
return this._byCreatedBefore.HasValue;
}
/// <summary>
/// Gets and sets the property ByStatus.
/// <para>
/// Returns only restore jobs associated with the specified job status.
/// </para>
/// </summary>
public RestoreJobStatus ByStatus
{
get { return this._byStatus; }
set { this._byStatus = value; }
}
// Check to see if ByStatus property is set
internal bool IsSetByStatus()
{
return this._byStatus != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of items to be returned.
/// </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 next item following a partial list of returned items. For example, if a request
/// is made to return <code>maxResults</code> number of items, <code>NextToken</code>
/// allows you to return more items in your list starting at the location pointed to by
/// the next token.
/// </para>
/// </summary>
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;
}
}
}
| 199 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the ListRestoreJobs operation.
/// </summary>
public partial class ListRestoreJobsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<RestoreJobsListMember> _restoreJobs = new List<RestoreJobsListMember>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The next item following a partial list of returned items. For example, if a request
/// is made to return <code>maxResults</code> number of items, <code>NextToken</code>
/// allows you to return more items in your list starting at the location pointed to by
/// the next token.
/// </para>
/// </summary>
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 RestoreJobs.
/// <para>
/// An array of objects that contain detailed information about jobs to restore saved
/// resources.
/// </para>
/// </summary>
public List<RestoreJobsListMember> RestoreJobs
{
get { return this._restoreJobs; }
set { this._restoreJobs = value; }
}
// Check to see if RestoreJobs property is set
internal bool IsSetRestoreJobs()
{
return this._restoreJobs != null && this._restoreJobs.Count > 0;
}
}
}
| 80 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the ListTags operation.
/// Returns a list of key-value pairs assigned to a target recovery point, backup plan,
/// or backup vault.
///
///
/// <para>
/// <code>ListTags</code> only works for resource types that support full Backup management
/// of their backups. Those resource types are listed in the "Full Backup management"
/// section of the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/whatisbackup.html#features-by-resource">
/// Feature availability by resource</a> table.
/// </para>
/// </summary>
public partial class ListTagsRequest : AmazonBackupRequest
{
private int? _maxResults;
private string _nextToken;
private string _resourceArn;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of items to be returned.
/// </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 next item following a partial list of returned items. For example, if a request
/// is made to return <code>maxResults</code> number of items, <code>NextToken</code>
/// allows you to return more items in your list starting at the location pointed to by
/// the next token.
/// </para>
/// </summary>
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 ResourceArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the
/// ARN depends on the type of resource. Valid targets for <code>ListTags</code> are recovery
/// points, backup plans, and backup vaults.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
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;
}
}
}
| 112 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the ListTags operation.
/// </summary>
public partial class ListTagsResponse : AmazonWebServiceResponse
{
private string _nextToken;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The next item following a partial list of returned items. For example, if a request
/// is made to return <code>maxResults</code> number of items, <code>NextToken</code>
/// allows you to return more items in your list starting at the location pointed to by
/// the next token.
/// </para>
/// </summary>
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 Tags.
/// <para>
/// To help organize your resources, you can assign your own metadata to the resources
/// you create. Each tag is a key-value pair.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true)]
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;
}
}
}
| 81 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Indicates that a required parameter is missing.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class MissingParameterValueException : AmazonBackupException
{
private string _code;
private string _context;
private string _type;
/// <summary>
/// Constructs a new MissingParameterValueException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public MissingParameterValueException(string message)
: base(message) {}
/// <summary>
/// Construct instance of MissingParameterValueException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public MissingParameterValueException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of MissingParameterValueException
/// </summary>
/// <param name="innerException"></param>
public MissingParameterValueException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of MissingParameterValueException
/// </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 MissingParameterValueException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of MissingParameterValueException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public MissingParameterValueException(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 MissingParameterValueException 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 MissingParameterValueException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Code = (string)info.GetValue("Code", typeof(string));
this.Context = (string)info.GetValue("Context", typeof(string));
this.Type = (string)info.GetValue("Type", 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("Code", this.Code);
info.AddValue("Context", this.Context);
info.AddValue("Type", this.Type);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public string Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
/// <summary>
/// Gets and sets the property Context.
/// </summary>
public string Context
{
get { return this._context; }
set { this._context = value; }
}
// Check to see if Context property is set
internal bool IsSetContext()
{
return this._context != null;
}
/// <summary>
/// Gets and sets the property Type.
/// </summary>
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 178 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// A structure that contains information about a backed-up resource.
/// </summary>
public partial class ProtectedResource
{
private DateTime? _lastBackupTime;
private string _resourceArn;
private string _resourceName;
private string _resourceType;
/// <summary>
/// Gets and sets the property LastBackupTime.
/// <para>
/// The date and time a resource was last backed up, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>LastBackupTime</code> is accurate to milliseconds.
/// For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime LastBackupTime
{
get { return this._lastBackupTime.GetValueOrDefault(); }
set { this._lastBackupTime = value; }
}
// Check to see if LastBackupTime property is set
internal bool IsSetLastBackupTime()
{
return this._lastBackupTime.HasValue;
}
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the
/// ARN depends on the resource type.
/// </para>
/// </summary>
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 ResourceName.
/// <para>
/// This is the non-unique name of the resource that belongs to the specified backup.
/// </para>
/// </summary>
public string ResourceName
{
get { return this._resourceName; }
set { this._resourceName = value; }
}
// Check to see if ResourceName property is set
internal bool IsSetResourceName()
{
return this._resourceName != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The type of Amazon Web Services resource; for example, an Amazon Elastic Block Store
/// (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
/// For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource
/// type is Amazon EC2.
/// </para>
/// </summary>
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;
}
}
}
| 121 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the PutBackupVaultAccessPolicy operation.
/// Sets a resource-based policy that is used to manage access permissions on the target
/// backup vault. Requires a backup vault name and an access policy document in JSON format.
/// </summary>
public partial class PutBackupVaultAccessPolicyRequest : AmazonBackupRequest
{
private string _backupVaultName;
private string _policy;
/// <summary>
/// Gets and sets the property BackupVaultName.
/// <para>
/// The name of a logical container where backups are stored. Backup vaults are identified
/// by names that are unique to the account used to create them and the Amazon Web Services
/// Region where they are created. They consist of lowercase letters, numbers, and hyphens.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string BackupVaultName
{
get { return this._backupVaultName; }
set { this._backupVaultName = value; }
}
// Check to see if BackupVaultName property is set
internal bool IsSetBackupVaultName()
{
return this._backupVaultName != null;
}
/// <summary>
/// Gets and sets the property Policy.
/// <para>
/// The backup vault access policy document in JSON format.
/// </para>
/// </summary>
public string Policy
{
get { return this._policy; }
set { this._policy = value; }
}
// Check to see if Policy property is set
internal bool IsSetPolicy()
{
return this._policy != null;
}
}
}
| 81 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the PutBackupVaultAccessPolicy operation.
/// </summary>
public partial class PutBackupVaultAccessPolicyResponse : 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the PutBackupVaultLockConfiguration operation.
/// Applies Backup Vault Lock to a backup vault, preventing attempts to delete any recovery
/// point stored in or created in a backup vault. Vault Lock also prevents attempts to
/// update the lifecycle policy that controls the retention period of any recovery point
/// currently stored in a backup vault. If specified, Vault Lock enforces a minimum and
/// maximum retention period for future backup and copy jobs that target a backup vault.
///
/// <note>
/// <para>
/// Backup Vault Lock has been assessed by Cohasset Associates for use in environments
/// that are subject to SEC 17a-4, CFTC, and FINRA regulations. For more information about
/// how Backup Vault Lock relates to these regulations, see the <a href="samples/cohassetreport.zip">Cohasset
/// Associates Compliance Assessment.</a>
/// </para>
/// </note>
/// </summary>
public partial class PutBackupVaultLockConfigurationRequest : AmazonBackupRequest
{
private string _backupVaultName;
private long? _changeableForDays;
private long? _maxRetentionDays;
private long? _minRetentionDays;
/// <summary>
/// Gets and sets the property BackupVaultName.
/// <para>
/// The Backup Vault Lock configuration that specifies the name of the backup vault it
/// protects.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string BackupVaultName
{
get { return this._backupVaultName; }
set { this._backupVaultName = value; }
}
// Check to see if BackupVaultName property is set
internal bool IsSetBackupVaultName()
{
return this._backupVaultName != null;
}
/// <summary>
/// Gets and sets the property ChangeableForDays.
/// <para>
/// The Backup Vault Lock configuration that specifies the number of days before the lock
/// date. For example, setting <code>ChangeableForDays</code> to 30 on Jan. 1, 2022 at
/// 8pm UTC will set the lock date to Jan. 31, 2022 at 8pm UTC.
/// </para>
///
/// <para>
/// Backup enforces a 72-hour cooling-off period before Vault Lock takes effect and becomes
/// immutable. Therefore, you must set <code>ChangeableForDays</code> to 3 or greater.
/// </para>
///
/// <para>
/// Before the lock date, you can delete Vault Lock from the vault using <code>DeleteBackupVaultLockConfiguration</code>
/// or change the Vault Lock configuration using <code>PutBackupVaultLockConfiguration</code>.
/// On and after the lock date, the Vault Lock becomes immutable and cannot be changed
/// or deleted.
/// </para>
///
/// <para>
/// If this parameter is not specified, you can delete Vault Lock from the vault using
/// <code>DeleteBackupVaultLockConfiguration</code> or change the Vault Lock configuration
/// using <code>PutBackupVaultLockConfiguration</code> at any time.
/// </para>
/// </summary>
public long ChangeableForDays
{
get { return this._changeableForDays.GetValueOrDefault(); }
set { this._changeableForDays = value; }
}
// Check to see if ChangeableForDays property is set
internal bool IsSetChangeableForDays()
{
return this._changeableForDays.HasValue;
}
/// <summary>
/// Gets and sets the property MaxRetentionDays.
/// <para>
/// The Backup Vault Lock configuration that specifies the maximum retention period that
/// the vault retains its recovery points. This setting can be useful if, for example,
/// your organization's policies require you to destroy certain data after retaining it
/// for four years (1460 days).
/// </para>
///
/// <para>
/// If this parameter is not included, Vault Lock does not enforce a maximum retention
/// period on the recovery points in the vault. If this parameter is included without
/// a value, Vault Lock will not enforce a maximum retention period.
/// </para>
///
/// <para>
/// If this parameter is specified, any backup or copy job to the vault must have a lifecycle
/// policy with a retention period equal to or shorter than the maximum retention period.
/// If the job's retention period is longer than that maximum retention period, then the
/// vault fails the backup or copy job, and you should either modify your lifecycle settings
/// or use a different vault. The longest maximum retention period you can specify is
/// 36500 days (approximately 100 years). Recovery points already saved in the vault prior
/// to Vault Lock are not affected.
/// </para>
/// </summary>
public long MaxRetentionDays
{
get { return this._maxRetentionDays.GetValueOrDefault(); }
set { this._maxRetentionDays = value; }
}
// Check to see if MaxRetentionDays property is set
internal bool IsSetMaxRetentionDays()
{
return this._maxRetentionDays.HasValue;
}
/// <summary>
/// Gets and sets the property MinRetentionDays.
/// <para>
/// The Backup Vault Lock configuration that specifies the minimum retention period that
/// the vault retains its recovery points. This setting can be useful if, for example,
/// your organization's policies require you to retain certain data for at least seven
/// years (2555 days).
/// </para>
///
/// <para>
/// If this parameter is not specified, Vault Lock will not enforce a minimum retention
/// period.
/// </para>
///
/// <para>
/// If this parameter is specified, any backup or copy job to the vault must have a lifecycle
/// policy with a retention period equal to or longer than the minimum retention period.
/// If the job's retention period is shorter than that minimum retention period, then
/// the vault fails that backup or copy job, and you should either modify your lifecycle
/// settings or use a different vault. The shortest minimum retention period you can specify
/// is 1 day. Recovery points already saved in the vault prior to Vault Lock are not affected.
/// </para>
/// </summary>
public long MinRetentionDays
{
get { return this._minRetentionDays.GetValueOrDefault(); }
set { this._minRetentionDays = value; }
}
// Check to see if MinRetentionDays property is set
internal bool IsSetMinRetentionDays()
{
return this._minRetentionDays.HasValue;
}
}
}
| 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the PutBackupVaultLockConfiguration operation.
/// </summary>
public partial class PutBackupVaultLockConfigurationResponse : 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the PutBackupVaultNotifications operation.
/// Turns on notifications on a backup vault for the specified topic and events.
/// </summary>
public partial class PutBackupVaultNotificationsRequest : AmazonBackupRequest
{
private List<string> _backupVaultEvents = new List<string>();
private string _backupVaultName;
private string _snsTopicArn;
/// <summary>
/// Gets and sets the property BackupVaultEvents.
/// <para>
/// An array of events that indicate the status of jobs to back up resources to the backup
/// vault.
/// </para>
///
/// <para>
/// For common use cases and code samples, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/sns-notifications.html">Using
/// Amazon SNS to track Backup events</a>.
/// </para>
///
/// <para>
/// The following events are supported:
/// </para>
/// <ul> <li>
/// <para>
/// <code>BACKUP_JOB_STARTED</code> | <code>BACKUP_JOB_COMPLETED</code>
/// </para>
/// </li> <li>
/// <para>
/// <code>COPY_JOB_STARTED</code> | <code>COPY_JOB_SUCCESSFUL</code> | <code>COPY_JOB_FAILED</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>RESTORE_JOB_STARTED</code> | <code>RESTORE_JOB_COMPLETED</code> | <code>RECOVERY_POINT_MODIFIED</code>
///
/// </para>
/// </li> <li>
/// <para>
/// <code>S3_BACKUP_OBJECT_FAILED</code> | <code>S3_RESTORE_OBJECT_FAILED</code>
/// </para>
/// </li> </ul> <note>
/// <para>
/// The list below shows items that are deprecated events (for reference) and are no longer
/// in use. They are no longer supported and will not return statuses or notifications.
/// Refer to the list above for current supported events.
/// </para>
/// </note>
/// </summary>
[AWSProperty(Required=true)]
public List<string> BackupVaultEvents
{
get { return this._backupVaultEvents; }
set { this._backupVaultEvents = value; }
}
// Check to see if BackupVaultEvents property is set
internal bool IsSetBackupVaultEvents()
{
return this._backupVaultEvents != null && this._backupVaultEvents.Count > 0;
}
/// <summary>
/// Gets and sets the property BackupVaultName.
/// <para>
/// The name of a logical container where backups are stored. Backup vaults are identified
/// by names that are unique to the account used to create them and the Amazon Web Services
/// Region where they are created. They consist of lowercase letters, numbers, and hyphens.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string BackupVaultName
{
get { return this._backupVaultName; }
set { this._backupVaultName = value; }
}
// Check to see if BackupVaultName property is set
internal bool IsSetBackupVaultName()
{
return this._backupVaultName != null;
}
/// <summary>
/// Gets and sets the property SNSTopicArn.
/// <para>
/// The Amazon Resource Name (ARN) that specifies the topic for a backup vault’s events;
/// for example, <code>arn:aws:sns:us-west-2:111122223333:MyVaultTopic</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SNSTopicArn
{
get { return this._snsTopicArn; }
set { this._snsTopicArn = value; }
}
// Check to see if SNSTopicArn property is set
internal bool IsSetSNSTopicArn()
{
return this._snsTopicArn != null;
}
}
}
| 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the PutBackupVaultNotifications operation.
/// </summary>
public partial class PutBackupVaultNotificationsResponse : 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Contains detailed information about a saved recovery point.
/// </summary>
public partial class RecoveryPointByResource
{
private long? _backupSizeBytes;
private string _backupVaultName;
private DateTime? _creationDate;
private string _encryptionKeyArn;
private bool? _isParent;
private string _parentRecoveryPointArn;
private string _recoveryPointArn;
private string _resourceName;
private RecoveryPointStatus _status;
private string _statusMessage;
/// <summary>
/// Gets and sets the property BackupSizeBytes.
/// <para>
/// The size, in bytes, of a backup.
/// </para>
/// </summary>
public long BackupSizeBytes
{
get { return this._backupSizeBytes.GetValueOrDefault(); }
set { this._backupSizeBytes = value; }
}
// Check to see if BackupSizeBytes property is set
internal bool IsSetBackupSizeBytes()
{
return this._backupSizeBytes.HasValue;
}
/// <summary>
/// Gets and sets the property BackupVaultName.
/// <para>
/// The name of a logical container where backups are stored. Backup vaults are identified
/// by names that are unique to the account used to create them and the Amazon Web Services
/// Region where they are created. They consist of lowercase letters, numbers, and hyphens.
/// </para>
/// </summary>
public string BackupVaultName
{
get { return this._backupVaultName; }
set { this._backupVaultName = value; }
}
// Check to see if BackupVaultName property is set
internal bool IsSetBackupVaultName()
{
return this._backupVaultName != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time a recovery point is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property EncryptionKeyArn.
/// <para>
/// The server-side encryption key that is used to protect your backups; for example,
/// <code>arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>.
/// </para>
/// </summary>
public string EncryptionKeyArn
{
get { return this._encryptionKeyArn; }
set { this._encryptionKeyArn = value; }
}
// Check to see if EncryptionKeyArn property is set
internal bool IsSetEncryptionKeyArn()
{
return this._encryptionKeyArn != null;
}
/// <summary>
/// Gets and sets the property IsParent.
/// <para>
/// This is a boolean value indicating this is a parent (composite) recovery point.
/// </para>
/// </summary>
public bool IsParent
{
get { return this._isParent.GetValueOrDefault(); }
set { this._isParent = value; }
}
// Check to see if IsParent property is set
internal bool IsSetIsParent()
{
return this._isParent.HasValue;
}
/// <summary>
/// Gets and sets the property ParentRecoveryPointArn.
/// <para>
/// This is the Amazon Resource Name (ARN) of the parent (composite) recovery point.
/// </para>
/// </summary>
public string ParentRecoveryPointArn
{
get { return this._parentRecoveryPointArn; }
set { this._parentRecoveryPointArn = value; }
}
// Check to see if ParentRecoveryPointArn property is set
internal bool IsSetParentRecoveryPointArn()
{
return this._parentRecoveryPointArn != null;
}
/// <summary>
/// Gets and sets the property RecoveryPointArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a recovery point; for example,
/// <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
/// </para>
/// </summary>
public string RecoveryPointArn
{
get { return this._recoveryPointArn; }
set { this._recoveryPointArn = value; }
}
// Check to see if RecoveryPointArn property is set
internal bool IsSetRecoveryPointArn()
{
return this._recoveryPointArn != null;
}
/// <summary>
/// Gets and sets the property ResourceName.
/// <para>
/// This is the non-unique name of the resource that belongs to the specified backup.
/// </para>
/// </summary>
public string ResourceName
{
get { return this._resourceName; }
set { this._resourceName = value; }
}
// Check to see if ResourceName property is set
internal bool IsSetResourceName()
{
return this._resourceName != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// A status code specifying the state of the recovery point.
/// </para>
/// </summary>
public RecoveryPointStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property StatusMessage.
/// <para>
/// A message explaining the reason of the recovery point deletion failure.
/// </para>
/// </summary>
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
}
}
| 235 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Contains information about the backup plan and rule that Backup used to initiate the
/// recovery point backup.
/// </summary>
public partial class RecoveryPointCreator
{
private string _backupPlanArn;
private string _backupPlanId;
private string _backupPlanVersion;
private string _backupRuleId;
/// <summary>
/// Gets and sets the property BackupPlanArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example,
/// <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.
/// </para>
/// </summary>
public string BackupPlanArn
{
get { return this._backupPlanArn; }
set { this._backupPlanArn = value; }
}
// Check to see if BackupPlanArn property is set
internal bool IsSetBackupPlanArn()
{
return this._backupPlanArn != null;
}
/// <summary>
/// Gets and sets the property BackupPlanId.
/// <para>
/// Uniquely identifies a backup plan.
/// </para>
/// </summary>
public string BackupPlanId
{
get { return this._backupPlanId; }
set { this._backupPlanId = value; }
}
// Check to see if BackupPlanId property is set
internal bool IsSetBackupPlanId()
{
return this._backupPlanId != null;
}
/// <summary>
/// Gets and sets the property BackupPlanVersion.
/// <para>
/// Version IDs are unique, randomly generated, Unicode, UTF-8 encoded strings that are
/// at most 1,024 bytes long. They cannot be edited.
/// </para>
/// </summary>
public string BackupPlanVersion
{
get { return this._backupPlanVersion; }
set { this._backupPlanVersion = value; }
}
// Check to see if BackupPlanVersion property is set
internal bool IsSetBackupPlanVersion()
{
return this._backupPlanVersion != null;
}
/// <summary>
/// Gets and sets the property BackupRuleId.
/// <para>
/// Uniquely identifies a rule used to schedule the backup of a selection of resources.
/// </para>
/// </summary>
public string BackupRuleId
{
get { return this._backupRuleId; }
set { this._backupRuleId = value; }
}
// Check to see if BackupRuleId property is set
internal bool IsSetBackupRuleId()
{
return this._backupRuleId != null;
}
}
}
| 117 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is a recovery point which is a child (nested) recovery point of a parent (composite)
/// recovery point. These recovery points can be disassociated from their parent (composite)
/// recovery point, in which case they will no longer be a member.
/// </summary>
public partial class RecoveryPointMember
{
private string _backupVaultName;
private string _recoveryPointArn;
private string _resourceArn;
private string _resourceType;
/// <summary>
/// Gets and sets the property BackupVaultName.
/// <para>
/// This is the name of the backup vault (the logical container in which backups are stored).
/// </para>
/// </summary>
public string BackupVaultName
{
get { return this._backupVaultName; }
set { this._backupVaultName = value; }
}
// Check to see if BackupVaultName property is set
internal bool IsSetBackupVaultName()
{
return this._backupVaultName != null;
}
/// <summary>
/// Gets and sets the property RecoveryPointArn.
/// <para>
/// This is the Amazon Resource Name (ARN) of the parent (composite) recovery point.
/// </para>
/// </summary>
public string RecoveryPointArn
{
get { return this._recoveryPointArn; }
set { this._recoveryPointArn = value; }
}
// Check to see if RecoveryPointArn property is set
internal bool IsSetRecoveryPointArn()
{
return this._recoveryPointArn != null;
}
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// This is the Amazon Resource Name (ARN) that uniquely identifies a saved resource.
/// </para>
/// </summary>
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 ResourceType.
/// <para>
/// This is the Amazon Web Services resource type that is saved as a recovery point.
/// </para>
/// </summary>
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;
}
}
}
| 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This specifies criteria to assign a set of resources, such as resource types or backup
/// vaults.
/// </summary>
public partial class RecoveryPointSelection
{
private DateRange _dateRange;
private List<string> _resourceIdentifiers = new List<string>();
private List<string> _vaultNames = new List<string>();
/// <summary>
/// Gets and sets the property DateRange.
/// </summary>
public DateRange DateRange
{
get { return this._dateRange; }
set { this._dateRange = value; }
}
// Check to see if DateRange property is set
internal bool IsSetDateRange()
{
return this._dateRange != null;
}
/// <summary>
/// Gets and sets the property ResourceIdentifiers.
/// <para>
/// These are the resources included in the resource selection (including type of resources
/// and vaults).
/// </para>
/// </summary>
public List<string> ResourceIdentifiers
{
get { return this._resourceIdentifiers; }
set { this._resourceIdentifiers = value; }
}
// Check to see if ResourceIdentifiers property is set
internal bool IsSetResourceIdentifiers()
{
return this._resourceIdentifiers != null && this._resourceIdentifiers.Count > 0;
}
/// <summary>
/// Gets and sets the property VaultNames.
/// <para>
/// These are the names of the vaults in which the selected recovery points are contained.
/// </para>
/// </summary>
public List<string> VaultNames
{
get { return this._vaultNames; }
set { this._vaultNames = value; }
}
// Check to see if VaultNames property is set
internal bool IsSetVaultNames()
{
return this._vaultNames != null && this._vaultNames.Count > 0;
}
}
}
| 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Contains information from your report plan about where to deliver your reports, specifically
/// your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
/// </summary>
public partial class ReportDeliveryChannel
{
private List<string> _formats = new List<string>();
private string _s3BucketName;
private string _s3KeyPrefix;
/// <summary>
/// Gets and sets the property Formats.
/// <para>
/// A list of the format of your reports: <code>CSV</code>, <code>JSON</code>, or both.
/// If not specified, the default format is <code>CSV</code>.
/// </para>
/// </summary>
public List<string> Formats
{
get { return this._formats; }
set { this._formats = value; }
}
// Check to see if Formats property is set
internal bool IsSetFormats()
{
return this._formats != null && this._formats.Count > 0;
}
/// <summary>
/// Gets and sets the property S3BucketName.
/// <para>
/// The unique name of the S3 bucket that receives your reports.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string S3BucketName
{
get { return this._s3BucketName; }
set { this._s3BucketName = value; }
}
// Check to see if S3BucketName property is set
internal bool IsSetS3BucketName()
{
return this._s3BucketName != null;
}
/// <summary>
/// Gets and sets the property S3KeyPrefix.
/// <para>
/// The prefix for where Backup Audit Manager delivers your reports to Amazon S3. The
/// prefix is this part of the following path: s3://your-bucket-name/<code>prefix</code>/Backup/us-west-2/year/month/day/report-name.
/// If not specified, there is no prefix.
/// </para>
/// </summary>
public string S3KeyPrefix
{
get { return this._s3KeyPrefix; }
set { this._s3KeyPrefix = value; }
}
// Check to see if S3KeyPrefix property is set
internal bool IsSetS3KeyPrefix()
{
return this._s3KeyPrefix != null;
}
}
}
| 100 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Contains information from your report job about your report destination.
/// </summary>
public partial class ReportDestination
{
private string _s3BucketName;
private List<string> _s3Keys = new List<string>();
/// <summary>
/// Gets and sets the property S3BucketName.
/// <para>
/// The unique name of the Amazon S3 bucket that receives your reports.
/// </para>
/// </summary>
public string S3BucketName
{
get { return this._s3BucketName; }
set { this._s3BucketName = value; }
}
// Check to see if S3BucketName property is set
internal bool IsSetS3BucketName()
{
return this._s3BucketName != null;
}
/// <summary>
/// Gets and sets the property S3Keys.
/// <para>
/// The object key that uniquely identifies your reports in your S3 bucket.
/// </para>
/// </summary>
public List<string> S3Keys
{
get { return this._s3Keys; }
set { this._s3Keys = value; }
}
// Check to see if S3Keys property is set
internal bool IsSetS3Keys()
{
return this._s3Keys != null && this._s3Keys.Count > 0;
}
}
}
| 76 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Contains detailed information about a report job. A report job compiles a report based
/// on a report plan and publishes it to Amazon S3.
/// </summary>
public partial class ReportJob
{
private DateTime? _completionTime;
private DateTime? _creationTime;
private ReportDestination _reportDestination;
private string _reportJobId;
private string _reportPlanArn;
private string _reportTemplate;
private string _status;
private string _statusMessage;
/// <summary>
/// Gets and sets the property CompletionTime.
/// <para>
/// The date and time that a report job is completed, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CompletionTime</code> is accurate to milliseconds.
/// For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CompletionTime
{
get { return this._completionTime.GetValueOrDefault(); }
set { this._completionTime = value; }
}
// Check to see if CompletionTime property is set
internal bool IsSetCompletionTime()
{
return this._completionTime.HasValue;
}
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The date and time that a report job is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationTime</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property ReportDestination.
/// <para>
/// The S3 bucket name and S3 keys for the destination where the report job publishes
/// the report.
/// </para>
/// </summary>
public ReportDestination ReportDestination
{
get { return this._reportDestination; }
set { this._reportDestination = value; }
}
// Check to see if ReportDestination property is set
internal bool IsSetReportDestination()
{
return this._reportDestination != null;
}
/// <summary>
/// Gets and sets the property ReportJobId.
/// <para>
/// The identifier for a report job. A unique, randomly generated, Unicode, UTF-8 encoded
/// string that is at most 1,024 bytes long. Report job IDs cannot be edited.
/// </para>
/// </summary>
public string ReportJobId
{
get { return this._reportJobId; }
set { this._reportJobId = value; }
}
// Check to see if ReportJobId property is set
internal bool IsSetReportJobId()
{
return this._reportJobId != null;
}
/// <summary>
/// Gets and sets the property ReportPlanArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the
/// ARN depends on the resource type.
/// </para>
/// </summary>
public string ReportPlanArn
{
get { return this._reportPlanArn; }
set { this._reportPlanArn = value; }
}
// Check to see if ReportPlanArn property is set
internal bool IsSetReportPlanArn()
{
return this._reportPlanArn != null;
}
/// <summary>
/// Gets and sets the property ReportTemplate.
/// <para>
/// Identifies the report template for the report. Reports are built using a report template.
/// The report templates are:
/// </para>
///
/// <para>
/// <code>RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT
/// | COPY_JOB_REPORT | RESTORE_JOB_REPORT</code>
/// </para>
/// </summary>
public string ReportTemplate
{
get { return this._reportTemplate; }
set { this._reportTemplate = value; }
}
// Check to see if ReportTemplate property is set
internal bool IsSetReportTemplate()
{
return this._reportTemplate != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The status of a report job. The statuses are:
/// </para>
///
/// <para>
/// <code>CREATED | RUNNING | COMPLETED | FAILED</code>
/// </para>
///
/// <para>
/// <code>COMPLETED</code> means that the report is available for your review at your
/// designated destination. If the status is <code>FAILED</code>, review the <code>StatusMessage</code>
/// for the reason.
/// </para>
/// </summary>
public string Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property StatusMessage.
/// <para>
/// A message explaining the status of the report job.
/// </para>
/// </summary>
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
}
}
| 216 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Contains detailed information about a report plan.
/// </summary>
public partial class ReportPlan
{
private DateTime? _creationTime;
private string _deploymentStatus;
private DateTime? _lastAttemptedExecutionTime;
private DateTime? _lastSuccessfulExecutionTime;
private ReportDeliveryChannel _reportDeliveryChannel;
private string _reportPlanArn;
private string _reportPlanDescription;
private string _reportPlanName;
private ReportSetting _reportSetting;
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The date and time that a report plan is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationTime</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property DeploymentStatus.
/// <para>
/// The deployment status of a report plan. The statuses are:
/// </para>
///
/// <para>
/// <code>CREATE_IN_PROGRESS | UPDATE_IN_PROGRESS | DELETE_IN_PROGRESS | COMPLETED</code>
///
/// </para>
/// </summary>
public string DeploymentStatus
{
get { return this._deploymentStatus; }
set { this._deploymentStatus = value; }
}
// Check to see if DeploymentStatus property is set
internal bool IsSetDeploymentStatus()
{
return this._deploymentStatus != null;
}
/// <summary>
/// Gets and sets the property LastAttemptedExecutionTime.
/// <para>
/// The date and time that a report job associated with this report plan last attempted
/// to run, in Unix format and Coordinated Universal Time (UTC). The value of <code>LastAttemptedExecutionTime</code>
/// is accurate to milliseconds. For example, the value 1516925490.087 represents Friday,
/// January 26, 2018 12:11:30.087 AM.
/// </para>
/// </summary>
public DateTime LastAttemptedExecutionTime
{
get { return this._lastAttemptedExecutionTime.GetValueOrDefault(); }
set { this._lastAttemptedExecutionTime = value; }
}
// Check to see if LastAttemptedExecutionTime property is set
internal bool IsSetLastAttemptedExecutionTime()
{
return this._lastAttemptedExecutionTime.HasValue;
}
/// <summary>
/// Gets and sets the property LastSuccessfulExecutionTime.
/// <para>
/// The date and time that a report job associated with this report plan last successfully
/// ran, in Unix format and Coordinated Universal Time (UTC). The value of <code>LastSuccessfulExecutionTime</code>
/// is accurate to milliseconds. For example, the value 1516925490.087 represents Friday,
/// January 26, 2018 12:11:30.087 AM.
/// </para>
/// </summary>
public DateTime LastSuccessfulExecutionTime
{
get { return this._lastSuccessfulExecutionTime.GetValueOrDefault(); }
set { this._lastSuccessfulExecutionTime = value; }
}
// Check to see if LastSuccessfulExecutionTime property is set
internal bool IsSetLastSuccessfulExecutionTime()
{
return this._lastSuccessfulExecutionTime.HasValue;
}
/// <summary>
/// Gets and sets the property ReportDeliveryChannel.
/// <para>
/// Contains information about where and how to deliver your reports, specifically your
/// Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
/// </para>
/// </summary>
public ReportDeliveryChannel ReportDeliveryChannel
{
get { return this._reportDeliveryChannel; }
set { this._reportDeliveryChannel = value; }
}
// Check to see if ReportDeliveryChannel property is set
internal bool IsSetReportDeliveryChannel()
{
return this._reportDeliveryChannel != null;
}
/// <summary>
/// Gets and sets the property ReportPlanArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the
/// ARN depends on the resource type.
/// </para>
/// </summary>
public string ReportPlanArn
{
get { return this._reportPlanArn; }
set { this._reportPlanArn = value; }
}
// Check to see if ReportPlanArn property is set
internal bool IsSetReportPlanArn()
{
return this._reportPlanArn != null;
}
/// <summary>
/// Gets and sets the property ReportPlanDescription.
/// <para>
/// An optional description of the report plan with a maximum 1,024 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1024)]
public string ReportPlanDescription
{
get { return this._reportPlanDescription; }
set { this._reportPlanDescription = value; }
}
// Check to see if ReportPlanDescription property is set
internal bool IsSetReportPlanDescription()
{
return this._reportPlanDescription != null;
}
/// <summary>
/// Gets and sets the property ReportPlanName.
/// <para>
/// The unique name of the report plan. This name is between 1 and 256 characters starting
/// with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores
/// (_).
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ReportPlanName
{
get { return this._reportPlanName; }
set { this._reportPlanName = value; }
}
// Check to see if ReportPlanName property is set
internal bool IsSetReportPlanName()
{
return this._reportPlanName != null;
}
/// <summary>
/// Gets and sets the property ReportSetting.
/// <para>
/// Identifies the report template for the report. Reports are built using a report template.
/// The report templates are:
/// </para>
///
/// <para>
/// <code>RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT
/// | COPY_JOB_REPORT | RESTORE_JOB_REPORT</code>
/// </para>
///
/// <para>
/// If the report template is <code>RESOURCE_COMPLIANCE_REPORT</code> or <code>CONTROL_COMPLIANCE_REPORT</code>,
/// this API resource also describes the report coverage by Amazon Web Services Regions
/// and frameworks.
/// </para>
/// </summary>
public ReportSetting ReportSetting
{
get { return this._reportSetting; }
set { this._reportSetting = value; }
}
// Check to see if ReportSetting property is set
internal bool IsSetReportSetting()
{
return this._reportSetting != null;
}
}
}
| 241 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Contains detailed information about a report setting.
/// </summary>
public partial class ReportSetting
{
private List<string> _accounts = new List<string>();
private List<string> _frameworkArns = new List<string>();
private int? _numberOfFrameworks;
private List<string> _organizationUnits = new List<string>();
private List<string> _regions = new List<string>();
private string _reportTemplate;
/// <summary>
/// Gets and sets the property Accounts.
/// <para>
/// These are the accounts to be included in the report.
/// </para>
/// </summary>
public List<string> Accounts
{
get { return this._accounts; }
set { this._accounts = value; }
}
// Check to see if Accounts property is set
internal bool IsSetAccounts()
{
return this._accounts != null && this._accounts.Count > 0;
}
/// <summary>
/// Gets and sets the property FrameworkArns.
/// <para>
/// The Amazon Resource Names (ARNs) of the frameworks a report covers.
/// </para>
/// </summary>
public List<string> FrameworkArns
{
get { return this._frameworkArns; }
set { this._frameworkArns = value; }
}
// Check to see if FrameworkArns property is set
internal bool IsSetFrameworkArns()
{
return this._frameworkArns != null && this._frameworkArns.Count > 0;
}
/// <summary>
/// Gets and sets the property NumberOfFrameworks.
/// <para>
/// The number of frameworks a report covers.
/// </para>
/// </summary>
public int NumberOfFrameworks
{
get { return this._numberOfFrameworks.GetValueOrDefault(); }
set { this._numberOfFrameworks = value; }
}
// Check to see if NumberOfFrameworks property is set
internal bool IsSetNumberOfFrameworks()
{
return this._numberOfFrameworks.HasValue;
}
/// <summary>
/// Gets and sets the property OrganizationUnits.
/// <para>
/// These are the Organizational Units to be included in the report.
/// </para>
/// </summary>
public List<string> OrganizationUnits
{
get { return this._organizationUnits; }
set { this._organizationUnits = value; }
}
// Check to see if OrganizationUnits property is set
internal bool IsSetOrganizationUnits()
{
return this._organizationUnits != null && this._organizationUnits.Count > 0;
}
/// <summary>
/// Gets and sets the property Regions.
/// <para>
/// These are the Regions to be included in the report.
/// </para>
/// </summary>
public List<string> Regions
{
get { return this._regions; }
set { this._regions = value; }
}
// Check to see if Regions property is set
internal bool IsSetRegions()
{
return this._regions != null && this._regions.Count > 0;
}
/// <summary>
/// Gets and sets the property ReportTemplate.
/// <para>
/// Identifies the report template for the report. Reports are built using a report template.
/// The report templates are:
/// </para>
///
/// <para>
/// <code>RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT
/// | COPY_JOB_REPORT | RESTORE_JOB_REPORT</code>
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ReportTemplate
{
get { return this._reportTemplate; }
set { this._reportTemplate = value; }
}
// Check to see if ReportTemplate property is set
internal bool IsSetReportTemplate()
{
return this._reportTemplate != null;
}
}
}
| 159 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// A resource that is required for the action doesn't exist.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonBackupException
{
private string _code;
private string _context;
private string _type;
/// <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.Code = (string)info.GetValue("Code", typeof(string));
this.Context = (string)info.GetValue("Context", typeof(string));
this.Type = (string)info.GetValue("Type", 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("Code", this.Code);
info.AddValue("Context", this.Context);
info.AddValue("Type", this.Type);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public string Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
/// <summary>
/// Gets and sets the property Context.
/// </summary>
public string Context
{
get { return this._context; }
set { this._context = value; }
}
// Check to see if Context property is set
internal bool IsSetContext()
{
return this._context != null;
}
/// <summary>
/// Gets and sets the property Type.
/// </summary>
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 178 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Contains metadata about a restore job.
/// </summary>
public partial class RestoreJobsListMember
{
private string _accountId;
private long? _backupSizeInBytes;
private DateTime? _completionDate;
private string _createdResourceArn;
private DateTime? _creationDate;
private long? _expectedCompletionTimeMinutes;
private string _iamRoleArn;
private string _percentDone;
private string _recoveryPointArn;
private string _resourceType;
private string _restoreJobId;
private RestoreJobStatus _status;
private string _statusMessage;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// The account ID that owns the restore job.
/// </para>
/// </summary>
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
/// <summary>
/// Gets and sets the property BackupSizeInBytes.
/// <para>
/// The size, in bytes, of the restored resource.
/// </para>
/// </summary>
public long BackupSizeInBytes
{
get { return this._backupSizeInBytes.GetValueOrDefault(); }
set { this._backupSizeInBytes = value; }
}
// Check to see if BackupSizeInBytes property is set
internal bool IsSetBackupSizeInBytes()
{
return this._backupSizeInBytes.HasValue;
}
/// <summary>
/// Gets and sets the property CompletionDate.
/// <para>
/// The date and time a job to restore a recovery point is completed, in Unix format and
/// Coordinated Universal Time (UTC). The value of <code>CompletionDate</code> is accurate
/// to milliseconds. For example, the value 1516925490.087 represents Friday, January
/// 26, 2018 12:11:30.087 AM.
/// </para>
/// </summary>
public DateTime CompletionDate
{
get { return this._completionDate.GetValueOrDefault(); }
set { this._completionDate = value; }
}
// Check to see if CompletionDate property is set
internal bool IsSetCompletionDate()
{
return this._completionDate.HasValue;
}
/// <summary>
/// Gets and sets the property CreatedResourceArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the
/// ARN depends on the resource type.
/// </para>
/// </summary>
public string CreatedResourceArn
{
get { return this._createdResourceArn; }
set { this._createdResourceArn = value; }
}
// Check to see if CreatedResourceArn property is set
internal bool IsSetCreatedResourceArn()
{
return this._createdResourceArn != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time a restore job is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property ExpectedCompletionTimeMinutes.
/// <para>
/// The amount of time in minutes that a job restoring a recovery point is expected to
/// take.
/// </para>
/// </summary>
public long ExpectedCompletionTimeMinutes
{
get { return this._expectedCompletionTimeMinutes.GetValueOrDefault(); }
set { this._expectedCompletionTimeMinutes = value; }
}
// Check to see if ExpectedCompletionTimeMinutes property is set
internal bool IsSetExpectedCompletionTimeMinutes()
{
return this._expectedCompletionTimeMinutes.HasValue;
}
/// <summary>
/// Gets and sets the property IamRoleArn.
/// <para>
/// Specifies the IAM role ARN used to create the target recovery point; for example,
/// <code>arn:aws:iam::123456789012:role/S3Access</code>.
/// </para>
/// </summary>
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
/// <summary>
/// Gets and sets the property PercentDone.
/// <para>
/// Contains an estimated percentage complete of a job at the time the job status was
/// queried.
/// </para>
/// </summary>
public string PercentDone
{
get { return this._percentDone; }
set { this._percentDone = value; }
}
// Check to see if PercentDone property is set
internal bool IsSetPercentDone()
{
return this._percentDone != null;
}
/// <summary>
/// Gets and sets the property RecoveryPointArn.
/// <para>
/// An ARN that uniquely identifies a recovery point; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
/// </para>
/// </summary>
public string RecoveryPointArn
{
get { return this._recoveryPointArn; }
set { this._recoveryPointArn = value; }
}
// Check to see if RecoveryPointArn property is set
internal bool IsSetRecoveryPointArn()
{
return this._recoveryPointArn != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The resource type of the listed restore jobs; for example, an Amazon Elastic Block
/// Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
/// For Windows Volume Shadow Copy Service (VSS) backups, the only supported resource
/// type is Amazon EC2.
/// </para>
/// </summary>
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
/// <summary>
/// Gets and sets the property RestoreJobId.
/// <para>
/// Uniquely identifies the job that restores a recovery point.
/// </para>
/// </summary>
public string RestoreJobId
{
get { return this._restoreJobId; }
set { this._restoreJobId = value; }
}
// Check to see if RestoreJobId property is set
internal bool IsSetRestoreJobId()
{
return this._restoreJobId != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// A status code specifying the state of the job initiated by Backup to restore a recovery
/// point.
/// </para>
/// </summary>
public RestoreJobStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property StatusMessage.
/// <para>
/// A detailed message explaining the status of the job to restore a recovery point.
/// </para>
/// </summary>
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
}
}
| 299 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// The request failed due to a temporary failure of the server.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ServiceUnavailableException : AmazonBackupException
{
private string _code;
private string _context;
private string _type;
/// <summary>
/// Constructs a new ServiceUnavailableException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ServiceUnavailableException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ServiceUnavailableException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ServiceUnavailableException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ServiceUnavailableException
/// </summary>
/// <param name="innerException"></param>
public ServiceUnavailableException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ServiceUnavailableException
/// </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 ServiceUnavailableException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ServiceUnavailableException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceUnavailableException(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 ServiceUnavailableException 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 ServiceUnavailableException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Code = (string)info.GetValue("Code", typeof(string));
this.Context = (string)info.GetValue("Context", typeof(string));
this.Type = (string)info.GetValue("Type", 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("Code", this.Code);
info.AddValue("Context", this.Context);
info.AddValue("Type", this.Type);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public string Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
/// <summary>
/// Gets and sets the property Context.
/// </summary>
public string Context
{
get { return this._context; }
set { this._context = value; }
}
// Check to see if Context property is set
internal bool IsSetContext()
{
return this._context != null;
}
/// <summary>
/// Gets and sets the property Type.
/// </summary>
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 178 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the StartBackupJob operation.
/// </summary>
public partial class StartBackupJobResponse : AmazonWebServiceResponse
{
private string _backupJobId;
private DateTime? _creationDate;
private bool? _isParent;
private string _recoveryPointArn;
/// <summary>
/// Gets and sets the property BackupJobId.
/// <para>
/// Uniquely identifies a request to Backup to back up a resource.
/// </para>
/// </summary>
public string BackupJobId
{
get { return this._backupJobId; }
set { this._backupJobId = value; }
}
// Check to see if BackupJobId property is set
internal bool IsSetBackupJobId()
{
return this._backupJobId != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time that a backup job is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property IsParent.
/// <para>
/// This is a returned boolean value indicating this is a parent (composite) backup job.
/// </para>
/// </summary>
public bool IsParent
{
get { return this._isParent.GetValueOrDefault(); }
set { this._isParent = value; }
}
// Check to see if IsParent property is set
internal bool IsSetIsParent()
{
return this._isParent.HasValue;
}
/// <summary>
/// Gets and sets the property RecoveryPointArn.
/// <para>
/// <i>Note: This field is only returned for Amazon EFS and Advanced DynamoDB resources.</i>
///
/// </para>
///
/// <para>
/// An ARN that uniquely identifies a recovery point; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
/// </para>
/// </summary>
public string RecoveryPointArn
{
get { return this._recoveryPointArn; }
set { this._recoveryPointArn = value; }
}
// Check to see if RecoveryPointArn property is set
internal bool IsSetRecoveryPointArn()
{
return this._recoveryPointArn != null;
}
}
}
| 122 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the StartCopyJob operation.
/// Starts a job to create a one-time copy of the specified resource.
///
///
/// <para>
/// Does not support continuous backups.
/// </para>
/// </summary>
public partial class StartCopyJobRequest : AmazonBackupRequest
{
private string _destinationBackupVaultArn;
private string _iamRoleArn;
private string _idempotencyToken;
private Lifecycle _lifecycle;
private string _recoveryPointArn;
private string _sourceBackupVaultName;
/// <summary>
/// Gets and sets the property DestinationBackupVaultArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a destination backup vault
/// to copy to; for example, <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DestinationBackupVaultArn
{
get { return this._destinationBackupVaultArn; }
set { this._destinationBackupVaultArn = value; }
}
// Check to see if DestinationBackupVaultArn property is set
internal bool IsSetDestinationBackupVaultArn()
{
return this._destinationBackupVaultArn != null;
}
/// <summary>
/// Gets and sets the property IamRoleArn.
/// <para>
/// Specifies the IAM role ARN used to copy the target recovery point; for example, <code>arn:aws:iam::123456789012:role/S3Access</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
/// <summary>
/// Gets and sets the property IdempotencyToken.
/// <para>
/// A customer-chosen string that you can use to distinguish between otherwise identical
/// calls to <code>StartCopyJob</code>. Retrying a successful request with the same idempotency
/// token results in a success message with no action taken.
/// </para>
/// </summary>
public string IdempotencyToken
{
get { return this._idempotencyToken; }
set { this._idempotencyToken = value; }
}
// Check to see if IdempotencyToken property is set
internal bool IsSetIdempotencyToken()
{
return this._idempotencyToken != null;
}
/// <summary>
/// Gets and sets the property Lifecycle.
/// </summary>
public Lifecycle Lifecycle
{
get { return this._lifecycle; }
set { this._lifecycle = value; }
}
// Check to see if Lifecycle property is set
internal bool IsSetLifecycle()
{
return this._lifecycle != null;
}
/// <summary>
/// Gets and sets the property RecoveryPointArn.
/// <para>
/// An ARN that uniquely identifies a recovery point to use for the copy job; for example,
/// arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45.
///
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RecoveryPointArn
{
get { return this._recoveryPointArn; }
set { this._recoveryPointArn = value; }
}
// Check to see if RecoveryPointArn property is set
internal bool IsSetRecoveryPointArn()
{
return this._recoveryPointArn != null;
}
/// <summary>
/// Gets and sets the property SourceBackupVaultName.
/// <para>
/// The name of a logical source container where backups are stored. Backup vaults are
/// identified by names that are unique to the account used to create them and the Amazon
/// Web Services Region where they are created. They consist of lowercase letters, numbers,
/// and hyphens.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SourceBackupVaultName
{
get { return this._sourceBackupVaultName; }
set { this._sourceBackupVaultName = value; }
}
// Check to see if SourceBackupVaultName property is set
internal bool IsSetSourceBackupVaultName()
{
return this._sourceBackupVaultName != null;
}
}
}
| 167 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the StartCopyJob operation.
/// </summary>
public partial class StartCopyJobResponse : AmazonWebServiceResponse
{
private string _copyJobId;
private DateTime? _creationDate;
private bool? _isParent;
/// <summary>
/// Gets and sets the property CopyJobId.
/// <para>
/// Uniquely identifies a copy job.
/// </para>
/// </summary>
public string CopyJobId
{
get { return this._copyJobId; }
set { this._copyJobId = value; }
}
// Check to see if CopyJobId property is set
internal bool IsSetCopyJobId()
{
return this._copyJobId != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time that a copy job is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property IsParent.
/// <para>
/// This is a returned boolean value indicating this is a parent (composite) copy job.
/// </para>
/// </summary>
public bool IsParent
{
get { return this._isParent.GetValueOrDefault(); }
set { this._isParent = value; }
}
// Check to see if IsParent property is set
internal bool IsSetIsParent()
{
return this._isParent.HasValue;
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the StartReportJob operation.
/// Starts an on-demand report job for the specified report plan.
/// </summary>
public partial class StartReportJobRequest : AmazonBackupRequest
{
private string _idempotencyToken;
private string _reportPlanName;
/// <summary>
/// Gets and sets the property IdempotencyToken.
/// <para>
/// A customer-chosen string that you can use to distinguish between otherwise identical
/// calls to <code>StartReportJobInput</code>. Retrying a successful request with the
/// same idempotency token results in a success message with no action taken.
/// </para>
/// </summary>
public string IdempotencyToken
{
get { return this._idempotencyToken; }
set { this._idempotencyToken = value; }
}
// Check to see if IdempotencyToken property is set
internal bool IsSetIdempotencyToken()
{
return this._idempotencyToken != null;
}
/// <summary>
/// Gets and sets the property ReportPlanName.
/// <para>
/// The unique name of a report plan.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ReportPlanName
{
get { return this._reportPlanName; }
set { this._reportPlanName = value; }
}
// Check to see if ReportPlanName property is set
internal bool IsSetReportPlanName()
{
return this._reportPlanName != null;
}
}
}
| 80 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the StartReportJob operation.
/// </summary>
public partial class StartReportJobResponse : AmazonWebServiceResponse
{
private string _reportJobId;
/// <summary>
/// Gets and sets the property ReportJobId.
/// <para>
/// The identifier of the report job. A unique, randomly generated, Unicode, UTF-8 encoded
/// string that is at most 1,024 bytes long. The report job ID cannot be edited.
/// </para>
/// </summary>
public string ReportJobId
{
get { return this._reportJobId; }
set { this._reportJobId = value; }
}
// Check to see if ReportJobId property is set
internal bool IsSetReportJobId()
{
return this._reportJobId != 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the StartRestoreJob operation.
/// Recovers the saved resource identified by an Amazon Resource Name (ARN).
/// </summary>
public partial class StartRestoreJobRequest : AmazonBackupRequest
{
private bool? _copySourceTagsToRestoredResource;
private string _iamRoleArn;
private string _idempotencyToken;
private Dictionary<string, string> _metadata = new Dictionary<string, string>();
private string _recoveryPointArn;
private string _resourceType;
/// <summary>
/// Gets and sets the property CopySourceTagsToRestoredResource.
/// <para>
/// This is an optional parameter. If this equals <code>True</code>, tags included in
/// the backup will be copied to the restored resource.
/// </para>
///
/// <para>
/// This can only be applied to backups created through Backup.
/// </para>
/// </summary>
public bool CopySourceTagsToRestoredResource
{
get { return this._copySourceTagsToRestoredResource.GetValueOrDefault(); }
set { this._copySourceTagsToRestoredResource = value; }
}
// Check to see if CopySourceTagsToRestoredResource property is set
internal bool IsSetCopySourceTagsToRestoredResource()
{
return this._copySourceTagsToRestoredResource.HasValue;
}
/// <summary>
/// Gets and sets the property IamRoleArn.
/// <para>
/// The Amazon Resource Name (ARN) of the IAM role that Backup uses to create the target
/// resource; for example: <code>arn:aws:iam::123456789012:role/S3Access</code>.
/// </para>
/// </summary>
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
/// <summary>
/// Gets and sets the property IdempotencyToken.
/// <para>
/// A customer-chosen string that you can use to distinguish between otherwise identical
/// calls to <code>StartRestoreJob</code>. Retrying a successful request with the same
/// idempotency token results in a success message with no action taken.
/// </para>
/// </summary>
public string IdempotencyToken
{
get { return this._idempotencyToken; }
set { this._idempotencyToken = value; }
}
// Check to see if IdempotencyToken property is set
internal bool IsSetIdempotencyToken()
{
return this._idempotencyToken != null;
}
/// <summary>
/// Gets and sets the property Metadata.
/// <para>
/// A set of metadata key-value pairs. Contains information, such as a resource name,
/// required to restore a recovery point.
/// </para>
///
/// <para>
/// You can get configuration metadata about a resource at the time it was backed up
/// by calling <code>GetRecoveryPointRestoreMetadata</code>. However, values in addition
/// to those provided by <code>GetRecoveryPointRestoreMetadata</code> might be required
/// to restore a resource. For example, you might need to provide a new resource name
/// if the original already exists.
/// </para>
///
/// <para>
/// You need to specify specific metadata to restore an Amazon Elastic File System (Amazon
/// EFS) instance:
/// </para>
/// <ul> <li>
/// <para>
/// <code>file-system-id</code>: The ID of the Amazon EFS file system that is backed
/// up by Backup. Returned in <code>GetRecoveryPointRestoreMetadata</code>.
/// </para>
/// </li> <li>
/// <para>
/// <code>Encrypted</code>: A Boolean value that, if true, specifies that the file system
/// is encrypted. If <code>KmsKeyId</code> is specified, <code>Encrypted</code> must be
/// set to <code>true</code>.
/// </para>
/// </li> <li>
/// <para>
/// <code>KmsKeyId</code>: Specifies the Amazon Web Services KMS key that is used to
/// encrypt the restored file system. You can specify a key from another Amazon Web Services
/// account provided that key it is properly shared with your account via Amazon Web Services
/// KMS.
/// </para>
/// </li> <li>
/// <para>
/// <code>PerformanceMode</code>: Specifies the throughput mode of the file system.
/// </para>
/// </li> <li>
/// <para>
/// <code>CreationToken</code>: A user-supplied value that ensures the uniqueness (idempotency)
/// of the request.
/// </para>
/// </li> <li>
/// <para>
/// <code>newFileSystem</code>: A Boolean value that, if true, specifies that the recovery
/// point is restored to a new Amazon EFS file system.
/// </para>
/// </li> <li>
/// <para>
/// <code>ItemsToRestore</code>: An array of one to five strings where each string is
/// a file path. Use <code>ItemsToRestore</code> to restore specific files or directories
/// rather than the entire file system. This parameter is optional. For example, <code>"itemsToRestore":"[\"/my.test\"]"</code>.
/// </para>
/// </li> </ul>
/// </summary>
[AWSProperty(Required=true, Sensitive=true)]
public Dictionary<string, string> Metadata
{
get { return this._metadata; }
set { this._metadata = value; }
}
// Check to see if Metadata property is set
internal bool IsSetMetadata()
{
return this._metadata != null && this._metadata.Count > 0;
}
/// <summary>
/// Gets and sets the property RecoveryPointArn.
/// <para>
/// An ARN that uniquely identifies a recovery point; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RecoveryPointArn
{
get { return this._recoveryPointArn; }
set { this._recoveryPointArn = value; }
}
// Check to see if RecoveryPointArn property is set
internal bool IsSetRecoveryPointArn()
{
return this._recoveryPointArn != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// Starts a job to restore a recovery point for one of the following resources:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Aurora</code> for Amazon Aurora
/// </para>
/// </li> <li>
/// <para>
/// <code>DocumentDB</code> for Amazon DocumentDB (with MongoDB compatibility)
/// </para>
/// </li> <li>
/// <para>
/// <code>CloudFormation</code> for CloudFormation
/// </para>
/// </li> <li>
/// <para>
/// <code>DynamoDB</code> for Amazon DynamoDB
/// </para>
/// </li> <li>
/// <para>
/// <code>EBS</code> for Amazon Elastic Block Store
/// </para>
/// </li> <li>
/// <para>
/// <code>EC2</code> for Amazon Elastic Compute Cloud
/// </para>
/// </li> <li>
/// <para>
/// <code>EFS</code> for Amazon Elastic File System
/// </para>
/// </li> <li>
/// <para>
/// <code>FSx</code> for Amazon FSx
/// </para>
/// </li> <li>
/// <para>
/// <code>Neptune</code> for Amazon Neptune
/// </para>
/// </li> <li>
/// <para>
/// <code>RDS</code> for Amazon Relational Database Service
/// </para>
/// </li> <li>
/// <para>
/// <code>Redshift</code> for Amazon Redshift
/// </para>
/// </li> <li>
/// <para>
/// <code>Storage Gateway</code> for Storage Gateway
/// </para>
/// </li> <li>
/// <para>
/// <code>S3</code> for Amazon S3
/// </para>
/// </li> <li>
/// <para>
/// <code>Timestream</code> for Amazon Timestream
/// </para>
/// </li> <li>
/// <para>
/// <code>VirtualMachine</code> for virtual machines
/// </para>
/// </li> </ul>
/// </summary>
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;
}
}
}
| 277 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the StartRestoreJob operation.
/// </summary>
public partial class StartRestoreJobResponse : AmazonWebServiceResponse
{
private string _restoreJobId;
/// <summary>
/// Gets and sets the property RestoreJobId.
/// <para>
/// Uniquely identifies the job that restores a recovery point.
/// </para>
/// </summary>
public string RestoreJobId
{
get { return this._restoreJobId; }
set { this._restoreJobId = value; }
}
// Check to see if RestoreJobId property is set
internal bool IsSetRestoreJobId()
{
return this._restoreJobId != 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the StopBackupJob operation.
/// Attempts to cancel a job to create a one-time backup of a resource.
///
///
/// <para>
/// This action is not supported for the following services: Amazon FSx for Windows File
/// Server, Amazon FSx for Lustre, FSx for ONTAP , Amazon FSx for OpenZFS, Amazon DocumentDB
/// (with MongoDB compatibility), Amazon RDS, Amazon Aurora, and Amazon Neptune.
/// </para>
/// </summary>
public partial class StopBackupJobRequest : AmazonBackupRequest
{
private string _backupJobId;
/// <summary>
/// Gets and sets the property BackupJobId.
/// <para>
/// Uniquely identifies a request to Backup to back up a resource.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string BackupJobId
{
get { return this._backupJobId; }
set { this._backupJobId = value; }
}
// Check to see if BackupJobId property is set
internal bool IsSetBackupJobId()
{
return this._backupJobId != null;
}
}
}
| 66 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the StopBackupJob operation.
/// </summary>
public partial class StopBackupJobResponse : 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the TagResource operation.
/// Assigns a set of key-value pairs to a recovery point, backup plan, or backup vault
/// identified by an Amazon Resource Name (ARN).
/// </summary>
public partial class TagResourceRequest : AmazonBackupRequest
{
private string _resourceArn;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// An ARN that uniquely identifies a resource. The format of the ARN depends on the type
/// of the tagged resource.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
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>
/// Key-value pairs that are used to help organize your resources. You can assign your
/// own metadata to the resources you create. For clarity, this is the structure to assign
/// tags: <code>[{"Key":"string","Value":"string"}]</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true)]
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;
}
}
}
| 83 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the UntagResource operation.
/// Removes a set of key-value pairs from a recovery point, backup plan, or backup vault
/// identified by an Amazon Resource Name (ARN)
/// </summary>
public partial class UntagResourceRequest : AmazonBackupRequest
{
private string _resourceArn;
private List<string> _tagKeyList = new List<string>();
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// An ARN that uniquely identifies a resource. The format of the ARN depends on the type
/// of the tagged resource.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
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 TagKeyList.
/// <para>
/// A list of keys to identify which key-value tags to remove from a resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true)]
public List<string> TagKeyList
{
get { return this._tagKeyList; }
set { this._tagKeyList = value; }
}
// Check to see if TagKeyList property is set
internal bool IsSetTagKeyList()
{
return this._tagKeyList != null && this._tagKeyList.Count > 0;
}
}
}
| 81 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the UpdateBackupPlan operation.
/// Updates an existing backup plan identified by its <code>backupPlanId</code> with the
/// input document in JSON format. The new version is uniquely identified by a <code>VersionId</code>.
/// </summary>
public partial class UpdateBackupPlanRequest : AmazonBackupRequest
{
private BackupPlanInput _backupPlan;
private string _backupPlanId;
/// <summary>
/// Gets and sets the property BackupPlan.
/// <para>
/// Specifies the body of a backup plan. Includes a <code>BackupPlanName</code> and one
/// or more sets of <code>Rules</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public BackupPlanInput BackupPlan
{
get { return this._backupPlan; }
set { this._backupPlan = value; }
}
// Check to see if BackupPlan property is set
internal bool IsSetBackupPlan()
{
return this._backupPlan != null;
}
/// <summary>
/// Gets and sets the property BackupPlanId.
/// <para>
/// Uniquely identifies a backup plan.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string BackupPlanId
{
get { return this._backupPlanId; }
set { this._backupPlanId = value; }
}
// Check to see if BackupPlanId property is set
internal bool IsSetBackupPlanId()
{
return this._backupPlanId != null;
}
}
}
| 81 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the UpdateBackupPlan operation.
/// </summary>
public partial class UpdateBackupPlanResponse : AmazonWebServiceResponse
{
private List<AdvancedBackupSetting> _advancedBackupSettings = new List<AdvancedBackupSetting>();
private string _backupPlanArn;
private string _backupPlanId;
private DateTime? _creationDate;
private string _versionId;
/// <summary>
/// Gets and sets the property AdvancedBackupSettings.
/// <para>
/// Contains a list of <code>BackupOptions</code> for each resource type.
/// </para>
/// </summary>
public List<AdvancedBackupSetting> AdvancedBackupSettings
{
get { return this._advancedBackupSettings; }
set { this._advancedBackupSettings = value; }
}
// Check to see if AdvancedBackupSettings property is set
internal bool IsSetAdvancedBackupSettings()
{
return this._advancedBackupSettings != null && this._advancedBackupSettings.Count > 0;
}
/// <summary>
/// Gets and sets the property BackupPlanArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example,
/// <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.
/// </para>
/// </summary>
public string BackupPlanArn
{
get { return this._backupPlanArn; }
set { this._backupPlanArn = value; }
}
// Check to see if BackupPlanArn property is set
internal bool IsSetBackupPlanArn()
{
return this._backupPlanArn != null;
}
/// <summary>
/// Gets and sets the property BackupPlanId.
/// <para>
/// Uniquely identifies a backup plan.
/// </para>
/// </summary>
public string BackupPlanId
{
get { return this._backupPlanId; }
set { this._backupPlanId = value; }
}
// Check to see if BackupPlanId property is set
internal bool IsSetBackupPlanId()
{
return this._backupPlanId != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time a backup plan is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property VersionId.
/// <para>
/// Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024
/// bytes long. Version Ids cannot be edited.
/// </para>
/// </summary>
public string VersionId
{
get { return this._versionId; }
set { this._versionId = value; }
}
// Check to see if VersionId property is set
internal bool IsSetVersionId()
{
return this._versionId != 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the UpdateFramework operation.
/// Updates an existing framework identified by its <code>FrameworkName</code> with the
/// input document in JSON format.
/// </summary>
public partial class UpdateFrameworkRequest : AmazonBackupRequest
{
private List<FrameworkControl> _frameworkControls = new List<FrameworkControl>();
private string _frameworkDescription;
private string _frameworkName;
private string _idempotencyToken;
/// <summary>
/// Gets and sets the property FrameworkControls.
/// <para>
/// A list of the controls that make up the framework. Each control in the list has a
/// name, input parameters, and scope.
/// </para>
/// </summary>
public List<FrameworkControl> FrameworkControls
{
get { return this._frameworkControls; }
set { this._frameworkControls = value; }
}
// Check to see if FrameworkControls property is set
internal bool IsSetFrameworkControls()
{
return this._frameworkControls != null && this._frameworkControls.Count > 0;
}
/// <summary>
/// Gets and sets the property FrameworkDescription.
/// <para>
/// An optional description of the framework with a maximum 1,024 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1024)]
public string FrameworkDescription
{
get { return this._frameworkDescription; }
set { this._frameworkDescription = value; }
}
// Check to see if FrameworkDescription property is set
internal bool IsSetFrameworkDescription()
{
return this._frameworkDescription != null;
}
/// <summary>
/// Gets and sets the property FrameworkName.
/// <para>
/// The unique name of a framework. This name is between 1 and 256 characters, starting
/// with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores
/// (_).
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string FrameworkName
{
get { return this._frameworkName; }
set { this._frameworkName = value; }
}
// Check to see if FrameworkName property is set
internal bool IsSetFrameworkName()
{
return this._frameworkName != null;
}
/// <summary>
/// Gets and sets the property IdempotencyToken.
/// <para>
/// A customer-chosen string that you can use to distinguish between otherwise identical
/// calls to <code>UpdateFrameworkInput</code>. Retrying a successful request with the
/// same idempotency token results in a success message with no action taken.
/// </para>
/// </summary>
public string IdempotencyToken
{
get { return this._idempotencyToken; }
set { this._idempotencyToken = value; }
}
// Check to see if IdempotencyToken property is set
internal bool IsSetIdempotencyToken()
{
return this._idempotencyToken != null;
}
}
}
| 123 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the UpdateFramework operation.
/// </summary>
public partial class UpdateFrameworkResponse : AmazonWebServiceResponse
{
private DateTime? _creationTime;
private string _frameworkArn;
private string _frameworkName;
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The date and time that a framework is created, in ISO 8601 representation. The value
/// of <code>CreationTime</code> is accurate to milliseconds. For example, 2020-07-10T15:00:00.000-08:00
/// represents the 10th of July 2020 at 3:00 PM 8 hours behind UTC.
/// </para>
/// </summary>
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property FrameworkArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the
/// ARN depends on the resource type.
/// </para>
/// </summary>
public string FrameworkArn
{
get { return this._frameworkArn; }
set { this._frameworkArn = value; }
}
// Check to see if FrameworkArn property is set
internal bool IsSetFrameworkArn()
{
return this._frameworkArn != null;
}
/// <summary>
/// Gets and sets the property FrameworkName.
/// <para>
/// The unique name of a framework. This name is between 1 and 256 characters, starting
/// with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores
/// (_).
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string FrameworkName
{
get { return this._frameworkName; }
set { this._frameworkName = value; }
}
// Check to see if FrameworkName property is set
internal bool IsSetFrameworkName()
{
return this._frameworkName != null;
}
}
}
| 101 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the UpdateGlobalSettings operation.
/// Updates whether the Amazon Web Services account is opted in to cross-account backup.
/// Returns an error if the account is not an Organizations management account. Use the
/// <code>DescribeGlobalSettings</code> API to determine the current settings.
/// </summary>
public partial class UpdateGlobalSettingsRequest : AmazonBackupRequest
{
private Dictionary<string, string> _globalSettings = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property GlobalSettings.
/// <para>
/// A value for <code>isCrossAccountBackupEnabled</code> and a Region. Example: <code>update-global-settings
/// --global-settings isCrossAccountBackupEnabled=false --region us-west-2</code>.
/// </para>
/// </summary>
public Dictionary<string, string> GlobalSettings
{
get { return this._globalSettings; }
set { this._globalSettings = value; }
}
// Check to see if GlobalSettings property is set
internal bool IsSetGlobalSettings()
{
return this._globalSettings != null && this._globalSettings.Count > 0;
}
}
}
| 61 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the UpdateGlobalSettings operation.
/// </summary>
public partial class UpdateGlobalSettingsResponse : 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the UpdateRegionSettings operation.
/// Updates the current service opt-in settings for the Region. If service-opt-in is enabled
/// for a service, Backup tries to protect that service's resources in this Region, when
/// the resource is included in an on-demand backup or scheduled backup plan. Otherwise,
/// Backup does not try to protect that service's resources in this Region. Use the <code>DescribeRegionSettings</code>
/// API to determine the resource types that are supported.
/// </summary>
public partial class UpdateRegionSettingsRequest : AmazonBackupRequest
{
private Dictionary<string, bool> _resourceTypeManagementPreference = new Dictionary<string, bool>();
private Dictionary<string, bool> _resourceTypeOptInPreference = new Dictionary<string, bool>();
/// <summary>
/// Gets and sets the property ResourceTypeManagementPreference.
/// <para>
/// Enables or disables full Backup management of backups for a resource type. To enable
/// full Backup management for DynamoDB along with <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html">
/// Backup's advanced DynamoDB backup features</a>, follow the procedure to <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/advanced-ddb-backup.html#advanced-ddb-backup-enable-cli">
/// enable advanced DynamoDB backup programmatically</a>.
/// </para>
/// </summary>
public Dictionary<string, bool> ResourceTypeManagementPreference
{
get { return this._resourceTypeManagementPreference; }
set { this._resourceTypeManagementPreference = value; }
}
// Check to see if ResourceTypeManagementPreference property is set
internal bool IsSetResourceTypeManagementPreference()
{
return this._resourceTypeManagementPreference != null && this._resourceTypeManagementPreference.Count > 0;
}
/// <summary>
/// Gets and sets the property ResourceTypeOptInPreference.
/// <para>
/// Updates the list of services along with the opt-in preferences for the Region.
/// </para>
/// </summary>
public Dictionary<string, bool> ResourceTypeOptInPreference
{
get { return this._resourceTypeOptInPreference; }
set { this._resourceTypeOptInPreference = value; }
}
// Check to see if ResourceTypeOptInPreference property is set
internal bool IsSetResourceTypeOptInPreference()
{
return this._resourceTypeOptInPreference != null && this._resourceTypeOptInPreference.Count > 0;
}
}
}
| 84 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the UpdateRegionSettings operation.
/// </summary>
public partial class UpdateRegionSettingsResponse : 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// Container for the parameters to the UpdateReportPlan operation.
/// Updates an existing report plan identified by its <code>ReportPlanName</code> with
/// the input document in JSON format.
/// </summary>
public partial class UpdateReportPlanRequest : AmazonBackupRequest
{
private string _idempotencyToken;
private ReportDeliveryChannel _reportDeliveryChannel;
private string _reportPlanDescription;
private string _reportPlanName;
private ReportSetting _reportSetting;
/// <summary>
/// Gets and sets the property IdempotencyToken.
/// <para>
/// A customer-chosen string that you can use to distinguish between otherwise identical
/// calls to <code>UpdateReportPlanInput</code>. Retrying a successful request with the
/// same idempotency token results in a success message with no action taken.
/// </para>
/// </summary>
public string IdempotencyToken
{
get { return this._idempotencyToken; }
set { this._idempotencyToken = value; }
}
// Check to see if IdempotencyToken property is set
internal bool IsSetIdempotencyToken()
{
return this._idempotencyToken != null;
}
/// <summary>
/// Gets and sets the property ReportDeliveryChannel.
/// <para>
/// A structure that contains information about where to deliver your reports, specifically
/// your Amazon S3 bucket name, S3 key prefix, and the formats of your reports.
/// </para>
/// </summary>
public ReportDeliveryChannel ReportDeliveryChannel
{
get { return this._reportDeliveryChannel; }
set { this._reportDeliveryChannel = value; }
}
// Check to see if ReportDeliveryChannel property is set
internal bool IsSetReportDeliveryChannel()
{
return this._reportDeliveryChannel != null;
}
/// <summary>
/// Gets and sets the property ReportPlanDescription.
/// <para>
/// An optional description of the report plan with a maximum 1,024 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1024)]
public string ReportPlanDescription
{
get { return this._reportPlanDescription; }
set { this._reportPlanDescription = value; }
}
// Check to see if ReportPlanDescription property is set
internal bool IsSetReportPlanDescription()
{
return this._reportPlanDescription != null;
}
/// <summary>
/// Gets and sets the property ReportPlanName.
/// <para>
/// The unique name of the report plan. This name is between 1 and 256 characters, starting
/// with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores
/// (_).
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string ReportPlanName
{
get { return this._reportPlanName; }
set { this._reportPlanName = value; }
}
// Check to see if ReportPlanName property is set
internal bool IsSetReportPlanName()
{
return this._reportPlanName != null;
}
/// <summary>
/// Gets and sets the property ReportSetting.
/// <para>
/// Identifies the report template for the report. Reports are built using a report template.
/// The report templates are:
/// </para>
///
/// <para>
/// <code>RESOURCE_COMPLIANCE_REPORT | CONTROL_COMPLIANCE_REPORT | BACKUP_JOB_REPORT
/// | COPY_JOB_REPORT | RESTORE_JOB_REPORT</code>
/// </para>
///
/// <para>
/// If the report template is <code>RESOURCE_COMPLIANCE_REPORT</code> or <code>CONTROL_COMPLIANCE_REPORT</code>,
/// this API resource also describes the report coverage by Amazon Web Services Regions
/// and frameworks.
/// </para>
/// </summary>
public ReportSetting ReportSetting
{
get { return this._reportSetting; }
set { this._reportSetting = value; }
}
// Check to see if ReportSetting property is set
internal bool IsSetReportSetting()
{
return this._reportSetting != null;
}
}
}
| 154 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Model
{
/// <summary>
/// This is the response object from the UpdateReportPlan operation.
/// </summary>
public partial class UpdateReportPlanResponse : AmazonWebServiceResponse
{
private DateTime? _creationTime;
private string _reportPlanArn;
private string _reportPlanName;
/// <summary>
/// Gets and sets the property CreationTime.
/// <para>
/// The date and time that a report plan is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationTime</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationTime
{
get { return this._creationTime.GetValueOrDefault(); }
set { this._creationTime = value; }
}
// Check to see if CreationTime property is set
internal bool IsSetCreationTime()
{
return this._creationTime.HasValue;
}
/// <summary>
/// Gets and sets the property ReportPlanArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the
/// ARN depends on the resource type.
/// </para>
/// </summary>
public string ReportPlanArn
{
get { return this._reportPlanArn; }
set { this._reportPlanArn = value; }
}
// Check to see if ReportPlanArn property is set
internal bool IsSetReportPlanArn()
{
return this._reportPlanArn != null;
}
/// <summary>
/// Gets and sets the property ReportPlanName.
/// <para>
/// The unique name of the report plan.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string ReportPlanName
{
get { return this._reportPlanName; }
set { this._reportPlanName = value; }
}
// Check to see if ReportPlanName property is set
internal bool IsSetReportPlanName()
{
return this._reportPlanName != null;
}
}
}
| 100 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// AdvancedBackupSetting Marshaller
/// </summary>
public class AdvancedBackupSettingMarshaller : IRequestMarshaller<AdvancedBackupSetting, 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(AdvancedBackupSetting requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBackupOptions())
{
context.Writer.WritePropertyName("BackupOptions");
context.Writer.WriteObjectStart();
foreach (var requestObjectBackupOptionsKvp in requestObject.BackupOptions)
{
context.Writer.WritePropertyName(requestObjectBackupOptionsKvp.Key);
var requestObjectBackupOptionsValue = requestObjectBackupOptionsKvp.Value;
context.Writer.Write(requestObjectBackupOptionsValue);
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetResourceType())
{
context.Writer.WritePropertyName("ResourceType");
context.Writer.Write(requestObject.ResourceType);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static AdvancedBackupSettingMarshaller Instance = new AdvancedBackupSettingMarshaller();
}
}
| 76 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AdvancedBackupSetting Object
/// </summary>
public class AdvancedBackupSettingUnmarshaller : IUnmarshaller<AdvancedBackupSetting, XmlUnmarshallerContext>, IUnmarshaller<AdvancedBackupSetting, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AdvancedBackupSetting IUnmarshaller<AdvancedBackupSetting, 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 AdvancedBackupSetting Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AdvancedBackupSetting unmarshalledObject = new AdvancedBackupSetting();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("BackupOptions", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.BackupOptions = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AdvancedBackupSettingUnmarshaller _instance = new AdvancedBackupSettingUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AdvancedBackupSettingUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AlreadyExistsException Object
/// </summary>
public class AlreadyExistsExceptionUnmarshaller : IErrorResponseUnmarshaller<AlreadyExistsException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AlreadyExistsException 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 AlreadyExistsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
AlreadyExistsException unmarshalledObject = new AlreadyExistsException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
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("Code", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Code = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Context", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Context = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatorRequestId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CreatorRequestId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AlreadyExistsExceptionUnmarshaller _instance = new AlreadyExistsExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AlreadyExistsExceptionUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BackupJob Object
/// </summary>
public class BackupJobUnmarshaller : IUnmarshaller<BackupJob, XmlUnmarshallerContext>, IUnmarshaller<BackupJob, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BackupJob IUnmarshaller<BackupJob, 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 BackupJob Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BackupJob unmarshalledObject = new BackupJob();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AccountId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AccountId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupJobId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupJobId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupOptions", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.BackupOptions = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupSizeInBytes", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.BackupSizeInBytes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupVaultArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupVaultArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupVaultName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupVaultName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BytesTransferred", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.BytesTransferred = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CompletionDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CompletionDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatedBy", targetDepth))
{
var unmarshaller = RecoveryPointCreatorUnmarshaller.Instance;
unmarshalledObject.CreatedBy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ExpectedCompletionDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ExpectedCompletionDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IamRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.IamRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IsParent", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IsParent = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ParentJobId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ParentJobId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("PercentDone", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.PercentDone = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RecoveryPointArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RecoveryPointArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StartBy", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.StartBy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("State", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.State = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatusMessage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatusMessage = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BackupJobUnmarshaller _instance = new BackupJobUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BackupJobUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 224 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// BackupPlanInput Marshaller
/// </summary>
public class BackupPlanInputMarshaller : IRequestMarshaller<BackupPlanInput, 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(BackupPlanInput requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAdvancedBackupSettings())
{
context.Writer.WritePropertyName("AdvancedBackupSettings");
context.Writer.WriteArrayStart();
foreach(var requestObjectAdvancedBackupSettingsListValue in requestObject.AdvancedBackupSettings)
{
context.Writer.WriteObjectStart();
var marshaller = AdvancedBackupSettingMarshaller.Instance;
marshaller.Marshall(requestObjectAdvancedBackupSettingsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetBackupPlanName())
{
context.Writer.WritePropertyName("BackupPlanName");
context.Writer.Write(requestObject.BackupPlanName);
}
if(requestObject.IsSetRules())
{
context.Writer.WritePropertyName("Rules");
context.Writer.WriteArrayStart();
foreach(var requestObjectRulesListValue in requestObject.Rules)
{
context.Writer.WriteObjectStart();
var marshaller = BackupRuleInputMarshaller.Instance;
marshaller.Marshall(requestObjectRulesListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BackupPlanInputMarshaller Instance = new BackupPlanInputMarshaller();
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BackupPlansListMember Object
/// </summary>
public class BackupPlansListMemberUnmarshaller : IUnmarshaller<BackupPlansListMember, XmlUnmarshallerContext>, IUnmarshaller<BackupPlansListMember, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BackupPlansListMember IUnmarshaller<BackupPlansListMember, 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 BackupPlansListMember Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BackupPlansListMember unmarshalledObject = new BackupPlansListMember();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AdvancedBackupSettings", targetDepth))
{
var unmarshaller = new ListUnmarshaller<AdvancedBackupSetting, AdvancedBackupSettingUnmarshaller>(AdvancedBackupSettingUnmarshaller.Instance);
unmarshalledObject.AdvancedBackupSettings = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupPlanArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupPlanArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupPlanId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupPlanId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupPlanName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupPlanName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatorRequestId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CreatorRequestId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DeletionDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.DeletionDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LastExecutionDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LastExecutionDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VersionId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.VersionId = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BackupPlansListMemberUnmarshaller _instance = new BackupPlansListMemberUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BackupPlansListMemberUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BackupPlanTemplatesListMember Object
/// </summary>
public class BackupPlanTemplatesListMemberUnmarshaller : IUnmarshaller<BackupPlanTemplatesListMember, XmlUnmarshallerContext>, IUnmarshaller<BackupPlanTemplatesListMember, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BackupPlanTemplatesListMember IUnmarshaller<BackupPlanTemplatesListMember, 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 BackupPlanTemplatesListMember Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BackupPlanTemplatesListMember unmarshalledObject = new BackupPlanTemplatesListMember();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("BackupPlanTemplateId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupPlanTemplateId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupPlanTemplateName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupPlanTemplateName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BackupPlanTemplatesListMemberUnmarshaller _instance = new BackupPlanTemplatesListMemberUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BackupPlanTemplatesListMemberUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BackupPlan Object
/// </summary>
public class BackupPlanUnmarshaller : IUnmarshaller<BackupPlan, XmlUnmarshallerContext>, IUnmarshaller<BackupPlan, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BackupPlan IUnmarshaller<BackupPlan, 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 BackupPlan Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BackupPlan unmarshalledObject = new BackupPlan();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AdvancedBackupSettings", targetDepth))
{
var unmarshaller = new ListUnmarshaller<AdvancedBackupSetting, AdvancedBackupSettingUnmarshaller>(AdvancedBackupSettingUnmarshaller.Instance);
unmarshalledObject.AdvancedBackupSettings = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupPlanName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupPlanName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Rules", targetDepth))
{
var unmarshaller = new ListUnmarshaller<BackupRule, BackupRuleUnmarshaller>(BackupRuleUnmarshaller.Instance);
unmarshalledObject.Rules = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BackupPlanUnmarshaller _instance = new BackupPlanUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BackupPlanUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// BackupRuleInput Marshaller
/// </summary>
public class BackupRuleInputMarshaller : IRequestMarshaller<BackupRuleInput, 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(BackupRuleInput requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetCompletionWindowMinutes())
{
context.Writer.WritePropertyName("CompletionWindowMinutes");
context.Writer.Write(requestObject.CompletionWindowMinutes);
}
if(requestObject.IsSetCopyActions())
{
context.Writer.WritePropertyName("CopyActions");
context.Writer.WriteArrayStart();
foreach(var requestObjectCopyActionsListValue in requestObject.CopyActions)
{
context.Writer.WriteObjectStart();
var marshaller = CopyActionMarshaller.Instance;
marshaller.Marshall(requestObjectCopyActionsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetEnableContinuousBackup())
{
context.Writer.WritePropertyName("EnableContinuousBackup");
context.Writer.Write(requestObject.EnableContinuousBackup);
}
if(requestObject.IsSetLifecycle())
{
context.Writer.WritePropertyName("Lifecycle");
context.Writer.WriteObjectStart();
var marshaller = LifecycleMarshaller.Instance;
marshaller.Marshall(requestObject.Lifecycle, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetRecoveryPointTags())
{
context.Writer.WritePropertyName("RecoveryPointTags");
context.Writer.WriteObjectStart();
foreach (var requestObjectRecoveryPointTagsKvp in requestObject.RecoveryPointTags)
{
context.Writer.WritePropertyName(requestObjectRecoveryPointTagsKvp.Key);
var requestObjectRecoveryPointTagsValue = requestObjectRecoveryPointTagsKvp.Value;
context.Writer.Write(requestObjectRecoveryPointTagsValue);
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetRuleName())
{
context.Writer.WritePropertyName("RuleName");
context.Writer.Write(requestObject.RuleName);
}
if(requestObject.IsSetScheduleExpression())
{
context.Writer.WritePropertyName("ScheduleExpression");
context.Writer.Write(requestObject.ScheduleExpression);
}
if(requestObject.IsSetStartWindowMinutes())
{
context.Writer.WritePropertyName("StartWindowMinutes");
context.Writer.Write(requestObject.StartWindowMinutes);
}
if(requestObject.IsSetTargetBackupVaultName())
{
context.Writer.WritePropertyName("TargetBackupVaultName");
context.Writer.Write(requestObject.TargetBackupVaultName);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BackupRuleInputMarshaller Instance = new BackupRuleInputMarshaller();
}
}
| 133 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BackupRule Object
/// </summary>
public class BackupRuleUnmarshaller : IUnmarshaller<BackupRule, XmlUnmarshallerContext>, IUnmarshaller<BackupRule, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BackupRule IUnmarshaller<BackupRule, 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 BackupRule Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BackupRule unmarshalledObject = new BackupRule();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CompletionWindowMinutes", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.CompletionWindowMinutes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CopyActions", targetDepth))
{
var unmarshaller = new ListUnmarshaller<CopyAction, CopyActionUnmarshaller>(CopyActionUnmarshaller.Instance);
unmarshalledObject.CopyActions = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EnableContinuousBackup", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.EnableContinuousBackup = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Lifecycle", targetDepth))
{
var unmarshaller = LifecycleUnmarshaller.Instance;
unmarshalledObject.Lifecycle = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RecoveryPointTags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.RecoveryPointTags = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RuleId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RuleId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RuleName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.RuleName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ScheduleExpression", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ScheduleExpression = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StartWindowMinutes", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.StartWindowMinutes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("TargetBackupVaultName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TargetBackupVaultName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BackupRuleUnmarshaller _instance = new BackupRuleUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BackupRuleUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 146 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// BackupSelection Marshaller
/// </summary>
public class BackupSelectionMarshaller : IRequestMarshaller<BackupSelection, 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(BackupSelection requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetConditions())
{
context.Writer.WritePropertyName("Conditions");
context.Writer.WriteObjectStart();
var marshaller = ConditionsMarshaller.Instance;
marshaller.Marshall(requestObject.Conditions, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetIamRoleArn())
{
context.Writer.WritePropertyName("IamRoleArn");
context.Writer.Write(requestObject.IamRoleArn);
}
if(requestObject.IsSetListOfTags())
{
context.Writer.WritePropertyName("ListOfTags");
context.Writer.WriteArrayStart();
foreach(var requestObjectListOfTagsListValue in requestObject.ListOfTags)
{
context.Writer.WriteObjectStart();
var marshaller = ConditionMarshaller.Instance;
marshaller.Marshall(requestObjectListOfTagsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetNotResources())
{
context.Writer.WritePropertyName("NotResources");
context.Writer.WriteArrayStart();
foreach(var requestObjectNotResourcesListValue in requestObject.NotResources)
{
context.Writer.Write(requestObjectNotResourcesListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetResources())
{
context.Writer.WritePropertyName("Resources");
context.Writer.WriteArrayStart();
foreach(var requestObjectResourcesListValue in requestObject.Resources)
{
context.Writer.Write(requestObjectResourcesListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetSelectionName())
{
context.Writer.WritePropertyName("SelectionName");
context.Writer.Write(requestObject.SelectionName);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BackupSelectionMarshaller Instance = new BackupSelectionMarshaller();
}
}
| 117 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BackupSelectionsListMember Object
/// </summary>
public class BackupSelectionsListMemberUnmarshaller : IUnmarshaller<BackupSelectionsListMember, XmlUnmarshallerContext>, IUnmarshaller<BackupSelectionsListMember, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BackupSelectionsListMember IUnmarshaller<BackupSelectionsListMember, 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 BackupSelectionsListMember Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BackupSelectionsListMember unmarshalledObject = new BackupSelectionsListMember();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("BackupPlanId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupPlanId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatorRequestId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CreatorRequestId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IamRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.IamRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SelectionId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SelectionId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SelectionName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SelectionName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BackupSelectionsListMemberUnmarshaller _instance = new BackupSelectionsListMemberUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BackupSelectionsListMemberUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BackupSelection Object
/// </summary>
public class BackupSelectionUnmarshaller : IUnmarshaller<BackupSelection, XmlUnmarshallerContext>, IUnmarshaller<BackupSelection, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BackupSelection IUnmarshaller<BackupSelection, 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 BackupSelection Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BackupSelection unmarshalledObject = new BackupSelection();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Conditions", targetDepth))
{
var unmarshaller = ConditionsUnmarshaller.Instance;
unmarshalledObject.Conditions = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IamRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.IamRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ListOfTags", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Condition, ConditionUnmarshaller>(ConditionUnmarshaller.Instance);
unmarshalledObject.ListOfTags = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NotResources", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.NotResources = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Resources", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.Resources = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SelectionName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SelectionName = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BackupSelectionUnmarshaller _instance = new BackupSelectionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BackupSelectionUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BackupVaultListMember Object
/// </summary>
public class BackupVaultListMemberUnmarshaller : IUnmarshaller<BackupVaultListMember, XmlUnmarshallerContext>, IUnmarshaller<BackupVaultListMember, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BackupVaultListMember IUnmarshaller<BackupVaultListMember, 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 BackupVaultListMember Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BackupVaultListMember unmarshalledObject = new BackupVaultListMember();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("BackupVaultArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupVaultArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupVaultName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.BackupVaultName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatorRequestId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CreatorRequestId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("EncryptionKeyArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EncryptionKeyArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LockDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.LockDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Locked", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.Locked = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MaxRetentionDays", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.MaxRetentionDays = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MinRetentionDays", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.MinRetentionDays = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NumberOfRecoveryPoints", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.NumberOfRecoveryPoints = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BackupVaultListMemberUnmarshaller _instance = new BackupVaultListMemberUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BackupVaultListMemberUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 146 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CalculatedLifecycle Object
/// </summary>
public class CalculatedLifecycleUnmarshaller : IUnmarshaller<CalculatedLifecycle, XmlUnmarshallerContext>, IUnmarshaller<CalculatedLifecycle, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
CalculatedLifecycle IUnmarshaller<CalculatedLifecycle, 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 CalculatedLifecycle Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
CalculatedLifecycle unmarshalledObject = new CalculatedLifecycle();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("DeleteAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.DeleteAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("MoveToColdStorageAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.MoveToColdStorageAt = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CalculatedLifecycleUnmarshaller _instance = new CalculatedLifecycleUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CalculatedLifecycleUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// CancelLegalHold Request Marshaller
/// </summary>
public class CancelLegalHoldRequestMarshaller : IMarshaller<IRequest, CancelLegalHoldRequest> , 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((CancelLegalHoldRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CancelLegalHoldRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Backup");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-15";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetLegalHoldId())
throw new AmazonBackupException("Request object does not have required field LegalHoldId set");
request.AddPathResource("{legalHoldId}", StringUtils.FromString(publicRequest.LegalHoldId));
if (publicRequest.IsSetCancelDescription())
request.Parameters.Add("cancelDescription", StringUtils.FromString(publicRequest.CancelDescription));
if (publicRequest.IsSetRetainRecordInDays())
request.Parameters.Add("retainRecordInDays", StringUtils.FromLong(publicRequest.RetainRecordInDays));
request.ResourcePath = "/legal-holds/{legalHoldId}";
request.UseQueryString = true;
return request;
}
private static CancelLegalHoldRequestMarshaller _instance = new CancelLegalHoldRequestMarshaller();
internal static CancelLegalHoldRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CancelLegalHoldRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CancelLegalHold operation
/// </summary>
public class CancelLegalHoldResponseUnmarshaller : 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)
{
CancelLegalHoldResponse response = new CancelLegalHoldResponse();
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("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidResourceStateException"))
{
return InvalidResourceStateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameterValueException"))
{
return MissingParameterValueExceptionUnmarshaller.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("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CancelLegalHoldResponseUnmarshaller _instance = new CancelLegalHoldResponseUnmarshaller();
internal static CancelLegalHoldResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CancelLegalHoldResponseUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Condition Marshaller
/// </summary>
public class ConditionMarshaller : IRequestMarshaller<Condition, 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(Condition requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetConditionKey())
{
context.Writer.WritePropertyName("ConditionKey");
context.Writer.Write(requestObject.ConditionKey);
}
if(requestObject.IsSetConditionType())
{
context.Writer.WritePropertyName("ConditionType");
context.Writer.Write(requestObject.ConditionType);
}
if(requestObject.IsSetConditionValue())
{
context.Writer.WritePropertyName("ConditionValue");
context.Writer.Write(requestObject.ConditionValue);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ConditionMarshaller Instance = new ConditionMarshaller();
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// ConditionParameter Marshaller
/// </summary>
public class ConditionParameterMarshaller : IRequestMarshaller<ConditionParameter, 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(ConditionParameter requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetConditionKey())
{
context.Writer.WritePropertyName("ConditionKey");
context.Writer.Write(requestObject.ConditionKey);
}
if(requestObject.IsSetConditionValue())
{
context.Writer.WritePropertyName("ConditionValue");
context.Writer.Write(requestObject.ConditionValue);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ConditionParameterMarshaller Instance = new ConditionParameterMarshaller();
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ConditionParameter Object
/// </summary>
public class ConditionParameterUnmarshaller : IUnmarshaller<ConditionParameter, XmlUnmarshallerContext>, IUnmarshaller<ConditionParameter, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ConditionParameter IUnmarshaller<ConditionParameter, 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 ConditionParameter Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ConditionParameter unmarshalledObject = new ConditionParameter();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ConditionKey", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ConditionKey = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ConditionValue", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ConditionValue = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ConditionParameterUnmarshaller _instance = new ConditionParameterUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConditionParameterUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Conditions Marshaller
/// </summary>
public class ConditionsMarshaller : IRequestMarshaller<Conditions, 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(Conditions requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetStringEquals())
{
context.Writer.WritePropertyName("StringEquals");
context.Writer.WriteArrayStart();
foreach(var requestObjectStringEqualsListValue in requestObject.StringEquals)
{
context.Writer.WriteObjectStart();
var marshaller = ConditionParameterMarshaller.Instance;
marshaller.Marshall(requestObjectStringEqualsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetStringLike())
{
context.Writer.WritePropertyName("StringLike");
context.Writer.WriteArrayStart();
foreach(var requestObjectStringLikeListValue in requestObject.StringLike)
{
context.Writer.WriteObjectStart();
var marshaller = ConditionParameterMarshaller.Instance;
marshaller.Marshall(requestObjectStringLikeListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetStringNotEquals())
{
context.Writer.WritePropertyName("StringNotEquals");
context.Writer.WriteArrayStart();
foreach(var requestObjectStringNotEqualsListValue in requestObject.StringNotEquals)
{
context.Writer.WriteObjectStart();
var marshaller = ConditionParameterMarshaller.Instance;
marshaller.Marshall(requestObjectStringNotEqualsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetStringNotLike())
{
context.Writer.WritePropertyName("StringNotLike");
context.Writer.WriteArrayStart();
foreach(var requestObjectStringNotLikeListValue in requestObject.StringNotLike)
{
context.Writer.WriteObjectStart();
var marshaller = ConditionParameterMarshaller.Instance;
marshaller.Marshall(requestObjectStringNotLikeListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ConditionsMarshaller Instance = new ConditionsMarshaller();
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Conditions Object
/// </summary>
public class ConditionsUnmarshaller : IUnmarshaller<Conditions, XmlUnmarshallerContext>, IUnmarshaller<Conditions, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Conditions IUnmarshaller<Conditions, 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 Conditions Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Conditions unmarshalledObject = new Conditions();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("StringEquals", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ConditionParameter, ConditionParameterUnmarshaller>(ConditionParameterUnmarshaller.Instance);
unmarshalledObject.StringEquals = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StringLike", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ConditionParameter, ConditionParameterUnmarshaller>(ConditionParameterUnmarshaller.Instance);
unmarshalledObject.StringLike = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StringNotEquals", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ConditionParameter, ConditionParameterUnmarshaller>(ConditionParameterUnmarshaller.Instance);
unmarshalledObject.StringNotEquals = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StringNotLike", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ConditionParameter, ConditionParameterUnmarshaller>(ConditionParameterUnmarshaller.Instance);
unmarshalledObject.StringNotLike = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ConditionsUnmarshaller _instance = new ConditionsUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConditionsUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Condition Object
/// </summary>
public class ConditionUnmarshaller : IUnmarshaller<Condition, XmlUnmarshallerContext>, IUnmarshaller<Condition, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Condition IUnmarshaller<Condition, 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 Condition Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Condition unmarshalledObject = new Condition();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ConditionKey", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ConditionKey = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ConditionType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ConditionType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ConditionValue", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ConditionValue = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ConditionUnmarshaller _instance = new ConditionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConditionUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ConflictException Object
/// </summary>
public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ConflictException 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 ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Code", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Code = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Context", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Context = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConflictExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// ControlInputParameter Marshaller
/// </summary>
public class ControlInputParameterMarshaller : IRequestMarshaller<ControlInputParameter, 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(ControlInputParameter requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetParameterName())
{
context.Writer.WritePropertyName("ParameterName");
context.Writer.Write(requestObject.ParameterName);
}
if(requestObject.IsSetParameterValue())
{
context.Writer.WritePropertyName("ParameterValue");
context.Writer.Write(requestObject.ParameterValue);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ControlInputParameterMarshaller Instance = new ControlInputParameterMarshaller();
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ControlInputParameter Object
/// </summary>
public class ControlInputParameterUnmarshaller : IUnmarshaller<ControlInputParameter, XmlUnmarshallerContext>, IUnmarshaller<ControlInputParameter, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ControlInputParameter IUnmarshaller<ControlInputParameter, 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 ControlInputParameter Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ControlInputParameter unmarshalledObject = new ControlInputParameter();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ParameterName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ParameterName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ParameterValue", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ParameterValue = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ControlInputParameterUnmarshaller _instance = new ControlInputParameterUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ControlInputParameterUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// ControlScope Marshaller
/// </summary>
public class ControlScopeMarshaller : IRequestMarshaller<ControlScope, 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(ControlScope requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetComplianceResourceIds())
{
context.Writer.WritePropertyName("ComplianceResourceIds");
context.Writer.WriteArrayStart();
foreach(var requestObjectComplianceResourceIdsListValue in requestObject.ComplianceResourceIds)
{
context.Writer.Write(requestObjectComplianceResourceIdsListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetComplianceResourceTypes())
{
context.Writer.WritePropertyName("ComplianceResourceTypes");
context.Writer.WriteArrayStart();
foreach(var requestObjectComplianceResourceTypesListValue in requestObject.ComplianceResourceTypes)
{
context.Writer.Write(requestObjectComplianceResourceTypesListValue);
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetTags())
{
context.Writer.WritePropertyName("Tags");
context.Writer.WriteObjectStart();
foreach (var requestObjectTagsKvp in requestObject.Tags)
{
context.Writer.WritePropertyName(requestObjectTagsKvp.Key);
var requestObjectTagsValue = requestObjectTagsKvp.Value;
context.Writer.Write(requestObjectTagsValue);
}
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ControlScopeMarshaller Instance = new ControlScopeMarshaller();
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ControlScope Object
/// </summary>
public class ControlScopeUnmarshaller : IUnmarshaller<ControlScope, XmlUnmarshallerContext>, IUnmarshaller<ControlScope, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ControlScope IUnmarshaller<ControlScope, 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 ControlScope Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ControlScope unmarshalledObject = new ControlScope();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ComplianceResourceIds", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.ComplianceResourceIds = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ComplianceResourceTypes", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.ComplianceResourceTypes = 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 ControlScopeUnmarshaller _instance = new ControlScopeUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ControlScopeUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// CopyAction Marshaller
/// </summary>
public class CopyActionMarshaller : IRequestMarshaller<CopyAction, 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(CopyAction requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDestinationBackupVaultArn())
{
context.Writer.WritePropertyName("DestinationBackupVaultArn");
context.Writer.Write(requestObject.DestinationBackupVaultArn);
}
if(requestObject.IsSetLifecycle())
{
context.Writer.WritePropertyName("Lifecycle");
context.Writer.WriteObjectStart();
var marshaller = LifecycleMarshaller.Instance;
marshaller.Marshall(requestObject.Lifecycle, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static CopyActionMarshaller Instance = new CopyActionMarshaller();
}
}
| 73 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CopyAction Object
/// </summary>
public class CopyActionUnmarshaller : IUnmarshaller<CopyAction, XmlUnmarshallerContext>, IUnmarshaller<CopyAction, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
CopyAction IUnmarshaller<CopyAction, 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 CopyAction Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
CopyAction unmarshalledObject = new CopyAction();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("DestinationBackupVaultArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DestinationBackupVaultArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Lifecycle", targetDepth))
{
var unmarshaller = LifecycleUnmarshaller.Instance;
unmarshalledObject.Lifecycle = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CopyActionUnmarshaller _instance = new CopyActionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CopyActionUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CopyJob Object
/// </summary>
public class CopyJobUnmarshaller : IUnmarshaller<CopyJob, XmlUnmarshallerContext>, IUnmarshaller<CopyJob, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
CopyJob IUnmarshaller<CopyJob, 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 CopyJob Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
CopyJob unmarshalledObject = new CopyJob();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AccountId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AccountId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupSizeInBytes", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.BackupSizeInBytes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ChildJobsInState", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, long, StringUnmarshaller, LongUnmarshaller>(StringUnmarshaller.Instance, LongUnmarshaller.Instance);
unmarshalledObject.ChildJobsInState = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CompletionDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CompletionDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CompositeMemberIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CompositeMemberIdentifier = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CopyJobId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CopyJobId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreatedBy", targetDepth))
{
var unmarshaller = RecoveryPointCreatorUnmarshaller.Instance;
unmarshalledObject.CreatedBy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreationDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DestinationBackupVaultArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DestinationBackupVaultArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DestinationRecoveryPointArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DestinationRecoveryPointArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IamRoleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.IamRoleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("IsParent", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IsParent = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("NumberOfChildJobs", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.NumberOfChildJobs = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ParentJobId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ParentJobId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ResourceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SourceBackupVaultArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SourceBackupVaultArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SourceRecoveryPointArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SourceRecoveryPointArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("State", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.State = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("StatusMessage", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StatusMessage = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CopyJobUnmarshaller _instance = new CopyJobUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CopyJobUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 212 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateBackupPlan Request Marshaller
/// </summary>
public class CreateBackupPlanRequestMarshaller : IMarshaller<IRequest, CreateBackupPlanRequest> , 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((CreateBackupPlanRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateBackupPlanRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Backup");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-15";
request.HttpMethod = "PUT";
request.ResourcePath = "/backup/plans/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetBackupPlan())
{
context.Writer.WritePropertyName("BackupPlan");
context.Writer.WriteObjectStart();
var marshaller = BackupPlanInputMarshaller.Instance;
marshaller.Marshall(publicRequest.BackupPlan, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetBackupPlanTags())
{
context.Writer.WritePropertyName("BackupPlanTags");
context.Writer.WriteObjectStart();
foreach (var publicRequestBackupPlanTagsKvp in publicRequest.BackupPlanTags)
{
context.Writer.WritePropertyName(publicRequestBackupPlanTagsKvp.Key);
var publicRequestBackupPlanTagsValue = publicRequestBackupPlanTagsKvp.Value;
context.Writer.Write(publicRequestBackupPlanTagsValue);
}
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetCreatorRequestId())
{
context.Writer.WritePropertyName("CreatorRequestId");
context.Writer.Write(publicRequest.CreatorRequestId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateBackupPlanRequestMarshaller _instance = new CreateBackupPlanRequestMarshaller();
internal static CreateBackupPlanRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateBackupPlanRequestMarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateBackupPlan operation
/// </summary>
public class CreateBackupPlanResponseUnmarshaller : 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)
{
CreateBackupPlanResponse response = new CreateBackupPlanResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AdvancedBackupSettings", targetDepth))
{
var unmarshaller = new ListUnmarshaller<AdvancedBackupSetting, AdvancedBackupSettingUnmarshaller>(AdvancedBackupSettingUnmarshaller.Instance);
response.AdvancedBackupSettings = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupPlanArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.BackupPlanArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupPlanId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.BackupPlanId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreationDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VersionId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.VersionId = 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("AlreadyExistsException"))
{
return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameterValueException"))
{
return MissingParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateBackupPlanResponseUnmarshaller _instance = new CreateBackupPlanResponseUnmarshaller();
internal static CreateBackupPlanResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateBackupPlanResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 150 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateBackupSelection Request Marshaller
/// </summary>
public class CreateBackupSelectionRequestMarshaller : IMarshaller<IRequest, CreateBackupSelectionRequest> , 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((CreateBackupSelectionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateBackupSelectionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Backup");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-15";
request.HttpMethod = "PUT";
if (!publicRequest.IsSetBackupPlanId())
throw new AmazonBackupException("Request object does not have required field BackupPlanId set");
request.AddPathResource("{backupPlanId}", StringUtils.FromString(publicRequest.BackupPlanId));
request.ResourcePath = "/backup/plans/{backupPlanId}/selections/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetBackupSelection())
{
context.Writer.WritePropertyName("BackupSelection");
context.Writer.WriteObjectStart();
var marshaller = BackupSelectionMarshaller.Instance;
marshaller.Marshall(publicRequest.BackupSelection, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetCreatorRequestId())
{
context.Writer.WritePropertyName("CreatorRequestId");
context.Writer.Write(publicRequest.CreatorRequestId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateBackupSelectionRequestMarshaller _instance = new CreateBackupSelectionRequestMarshaller();
internal static CreateBackupSelectionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateBackupSelectionRequestMarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateBackupSelection operation
/// </summary>
public class CreateBackupSelectionResponseUnmarshaller : 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)
{
CreateBackupSelectionResponse response = new CreateBackupSelectionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("BackupPlanId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.BackupPlanId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreationDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SelectionId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.SelectionId = 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("AlreadyExistsException"))
{
return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameterValueException"))
{
return MissingParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateBackupSelectionResponseUnmarshaller _instance = new CreateBackupSelectionResponseUnmarshaller();
internal static CreateBackupSelectionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateBackupSelectionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateBackupVault Request Marshaller
/// </summary>
public class CreateBackupVaultRequestMarshaller : IMarshaller<IRequest, CreateBackupVaultRequest> , 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((CreateBackupVaultRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateBackupVaultRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Backup");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-15";
request.HttpMethod = "PUT";
if (!publicRequest.IsSetBackupVaultName())
throw new AmazonBackupException("Request object does not have required field BackupVaultName set");
request.AddPathResource("{backupVaultName}", StringUtils.FromString(publicRequest.BackupVaultName));
request.ResourcePath = "/backup-vaults/{backupVaultName}";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetBackupVaultTags())
{
context.Writer.WritePropertyName("BackupVaultTags");
context.Writer.WriteObjectStart();
foreach (var publicRequestBackupVaultTagsKvp in publicRequest.BackupVaultTags)
{
context.Writer.WritePropertyName(publicRequestBackupVaultTagsKvp.Key);
var publicRequestBackupVaultTagsValue = publicRequestBackupVaultTagsKvp.Value;
context.Writer.Write(publicRequestBackupVaultTagsValue);
}
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetCreatorRequestId())
{
context.Writer.WritePropertyName("CreatorRequestId");
context.Writer.Write(publicRequest.CreatorRequestId);
}
if(publicRequest.IsSetEncryptionKeyArn())
{
context.Writer.WritePropertyName("EncryptionKeyArn");
context.Writer.Write(publicRequest.EncryptionKeyArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateBackupVaultRequestMarshaller _instance = new CreateBackupVaultRequestMarshaller();
internal static CreateBackupVaultRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateBackupVaultRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateBackupVault operation
/// </summary>
public class CreateBackupVaultResponseUnmarshaller : 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)
{
CreateBackupVaultResponse response = new CreateBackupVaultResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("BackupVaultArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.BackupVaultArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupVaultName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.BackupVaultName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("CreationDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreationDate = 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("AlreadyExistsException"))
{
return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameterValueException"))
{
return MissingParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateBackupVaultResponseUnmarshaller _instance = new CreateBackupVaultResponseUnmarshaller();
internal static CreateBackupVaultResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateBackupVaultResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateFramework Request Marshaller
/// </summary>
public class CreateFrameworkRequestMarshaller : IMarshaller<IRequest, CreateFrameworkRequest> , 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((CreateFrameworkRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateFrameworkRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Backup");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-15";
request.HttpMethod = "POST";
request.ResourcePath = "/audit/frameworks";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetFrameworkControls())
{
context.Writer.WritePropertyName("FrameworkControls");
context.Writer.WriteArrayStart();
foreach(var publicRequestFrameworkControlsListValue in publicRequest.FrameworkControls)
{
context.Writer.WriteObjectStart();
var marshaller = FrameworkControlMarshaller.Instance;
marshaller.Marshall(publicRequestFrameworkControlsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetFrameworkDescription())
{
context.Writer.WritePropertyName("FrameworkDescription");
context.Writer.Write(publicRequest.FrameworkDescription);
}
if(publicRequest.IsSetFrameworkName())
{
context.Writer.WritePropertyName("FrameworkName");
context.Writer.Write(publicRequest.FrameworkName);
}
if(publicRequest.IsSetFrameworkTags())
{
context.Writer.WritePropertyName("FrameworkTags");
context.Writer.WriteObjectStart();
foreach (var publicRequestFrameworkTagsKvp in publicRequest.FrameworkTags)
{
context.Writer.WritePropertyName(publicRequestFrameworkTagsKvp.Key);
var publicRequestFrameworkTagsValue = publicRequestFrameworkTagsKvp.Value;
context.Writer.Write(publicRequestFrameworkTagsValue);
}
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetIdempotencyToken())
{
context.Writer.WritePropertyName("IdempotencyToken");
context.Writer.Write(publicRequest.IdempotencyToken);
}
else if(!(publicRequest.IsSetIdempotencyToken()))
{
context.Writer.WritePropertyName("IdempotencyToken");
context.Writer.Write(Guid.NewGuid().ToString());
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateFrameworkRequestMarshaller _instance = new CreateFrameworkRequestMarshaller();
internal static CreateFrameworkRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateFrameworkRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 148 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateFramework operation
/// </summary>
public class CreateFrameworkResponseUnmarshaller : 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)
{
CreateFrameworkResponse response = new CreateFrameworkResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("FrameworkArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.FrameworkArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("FrameworkName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.FrameworkName = 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("AlreadyExistsException"))
{
return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameterValueException"))
{
return MissingParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateFrameworkResponseUnmarshaller _instance = new CreateFrameworkResponseUnmarshaller();
internal static CreateFrameworkResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateFrameworkResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 132 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateLegalHold Request Marshaller
/// </summary>
public class CreateLegalHoldRequestMarshaller : IMarshaller<IRequest, CreateLegalHoldRequest> , 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((CreateLegalHoldRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateLegalHoldRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Backup");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-15";
request.HttpMethod = "POST";
request.ResourcePath = "/legal-holds/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetDescription())
{
context.Writer.WritePropertyName("Description");
context.Writer.Write(publicRequest.Description);
}
if(publicRequest.IsSetIdempotencyToken())
{
context.Writer.WritePropertyName("IdempotencyToken");
context.Writer.Write(publicRequest.IdempotencyToken);
}
if(publicRequest.IsSetRecoveryPointSelection())
{
context.Writer.WritePropertyName("RecoveryPointSelection");
context.Writer.WriteObjectStart();
var marshaller = RecoveryPointSelectionMarshaller.Instance;
marshaller.Marshall(publicRequest.RecoveryPointSelection, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("Tags");
context.Writer.WriteObjectStart();
foreach (var publicRequestTagsKvp in publicRequest.Tags)
{
context.Writer.WritePropertyName(publicRequestTagsKvp.Key);
var publicRequestTagsValue = publicRequestTagsKvp.Value;
context.Writer.Write(publicRequestTagsValue);
}
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetTitle())
{
context.Writer.WritePropertyName("Title");
context.Writer.Write(publicRequest.Title);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateLegalHoldRequestMarshaller _instance = new CreateLegalHoldRequestMarshaller();
internal static CreateLegalHoldRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateLegalHoldRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateLegalHold operation
/// </summary>
public class CreateLegalHoldResponseUnmarshaller : 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)
{
CreateLegalHoldResponse response = new CreateLegalHoldResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CreationDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreationDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LegalHoldArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.LegalHoldArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("LegalHoldId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.LegalHoldId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("RecoveryPointSelection", targetDepth))
{
var unmarshaller = RecoveryPointSelectionUnmarshaller.Instance;
response.RecoveryPointSelection = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Title", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.Title = 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("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameterValueException"))
{
return MissingParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateLegalHoldResponseUnmarshaller _instance = new CreateLegalHoldResponseUnmarshaller();
internal static CreateLegalHoldResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateLegalHoldResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateReportPlan Request Marshaller
/// </summary>
public class CreateReportPlanRequestMarshaller : IMarshaller<IRequest, CreateReportPlanRequest> , 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((CreateReportPlanRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateReportPlanRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Backup");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-15";
request.HttpMethod = "POST";
request.ResourcePath = "/audit/report-plans";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetIdempotencyToken())
{
context.Writer.WritePropertyName("IdempotencyToken");
context.Writer.Write(publicRequest.IdempotencyToken);
}
else if(!(publicRequest.IsSetIdempotencyToken()))
{
context.Writer.WritePropertyName("IdempotencyToken");
context.Writer.Write(Guid.NewGuid().ToString());
}
if(publicRequest.IsSetReportDeliveryChannel())
{
context.Writer.WritePropertyName("ReportDeliveryChannel");
context.Writer.WriteObjectStart();
var marshaller = ReportDeliveryChannelMarshaller.Instance;
marshaller.Marshall(publicRequest.ReportDeliveryChannel, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetReportPlanDescription())
{
context.Writer.WritePropertyName("ReportPlanDescription");
context.Writer.Write(publicRequest.ReportPlanDescription);
}
if(publicRequest.IsSetReportPlanName())
{
context.Writer.WritePropertyName("ReportPlanName");
context.Writer.Write(publicRequest.ReportPlanName);
}
if(publicRequest.IsSetReportPlanTags())
{
context.Writer.WritePropertyName("ReportPlanTags");
context.Writer.WriteObjectStart();
foreach (var publicRequestReportPlanTagsKvp in publicRequest.ReportPlanTags)
{
context.Writer.WritePropertyName(publicRequestReportPlanTagsKvp.Key);
var publicRequestReportPlanTagsValue = publicRequestReportPlanTagsKvp.Value;
context.Writer.Write(publicRequestReportPlanTagsValue);
}
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetReportSetting())
{
context.Writer.WritePropertyName("ReportSetting");
context.Writer.WriteObjectStart();
var marshaller = ReportSettingMarshaller.Instance;
marshaller.Marshall(publicRequest.ReportSetting, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateReportPlanRequestMarshaller _instance = new CreateReportPlanRequestMarshaller();
internal static CreateReportPlanRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateReportPlanRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 154 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateReportPlan operation
/// </summary>
public class CreateReportPlanResponseUnmarshaller : 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)
{
CreateReportPlanResponse response = new CreateReportPlanResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("CreationTime", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.CreationTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ReportPlanArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ReportPlanArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ReportPlanName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.ReportPlanName = 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("AlreadyExistsException"))
{
return AlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameterValueException"))
{
return MissingParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateReportPlanResponseUnmarshaller _instance = new CreateReportPlanResponseUnmarshaller();
internal static CreateReportPlanResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateReportPlanResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// DateRange Marshaller
/// </summary>
public class DateRangeMarshaller : IRequestMarshaller<DateRange, 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(DateRange requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetFromDate())
{
context.Writer.WritePropertyName("FromDate");
context.Writer.Write(requestObject.FromDate);
}
if(requestObject.IsSetToDate())
{
context.Writer.WritePropertyName("ToDate");
context.Writer.Write(requestObject.ToDate);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static DateRangeMarshaller Instance = new DateRangeMarshaller();
}
}
| 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DateRange Object
/// </summary>
public class DateRangeUnmarshaller : IUnmarshaller<DateRange, XmlUnmarshallerContext>, IUnmarshaller<DateRange, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
DateRange IUnmarshaller<DateRange, 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 DateRange Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
DateRange unmarshalledObject = new DateRange();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("FromDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.FromDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("ToDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ToDate = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static DateRangeUnmarshaller _instance = new DateRangeUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static DateRangeUnmarshaller 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 backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteBackupPlan Request Marshaller
/// </summary>
public class DeleteBackupPlanRequestMarshaller : IMarshaller<IRequest, DeleteBackupPlanRequest> , 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((DeleteBackupPlanRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteBackupPlanRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Backup");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-15";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetBackupPlanId())
throw new AmazonBackupException("Request object does not have required field BackupPlanId set");
request.AddPathResource("{backupPlanId}", StringUtils.FromString(publicRequest.BackupPlanId));
request.ResourcePath = "/backup/plans/{backupPlanId}";
return request;
}
private static DeleteBackupPlanRequestMarshaller _instance = new DeleteBackupPlanRequestMarshaller();
internal static DeleteBackupPlanRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteBackupPlanRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 87 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteBackupPlan operation
/// </summary>
public class DeleteBackupPlanResponseUnmarshaller : 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)
{
DeleteBackupPlanResponse response = new DeleteBackupPlanResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("BackupPlanArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.BackupPlanArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("BackupPlanId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.BackupPlanId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DeletionDate", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
response.DeletionDate = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("VersionId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.VersionId = 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("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidRequestException"))
{
return InvalidRequestExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameterValueException"))
{
return MissingParameterValueExceptionUnmarshaller.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("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteBackupPlanResponseUnmarshaller _instance = new DeleteBackupPlanResponseUnmarshaller();
internal static DeleteBackupPlanResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteBackupPlanResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 144 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteBackupSelection Request Marshaller
/// </summary>
public class DeleteBackupSelectionRequestMarshaller : IMarshaller<IRequest, DeleteBackupSelectionRequest> , 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((DeleteBackupSelectionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteBackupSelectionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.Backup");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2018-11-15";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetBackupPlanId())
throw new AmazonBackupException("Request object does not have required field BackupPlanId set");
request.AddPathResource("{backupPlanId}", StringUtils.FromString(publicRequest.BackupPlanId));
if (!publicRequest.IsSetSelectionId())
throw new AmazonBackupException("Request object does not have required field SelectionId set");
request.AddPathResource("{selectionId}", StringUtils.FromString(publicRequest.SelectionId));
request.ResourcePath = "/backup/plans/{backupPlanId}/selections/{selectionId}";
return request;
}
private static DeleteBackupSelectionRequestMarshaller _instance = new DeleteBackupSelectionRequestMarshaller();
internal static DeleteBackupSelectionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteBackupSelectionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 90 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the backup-2018-11-15.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.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.Backup.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteBackupSelection operation
/// </summary>
public class DeleteBackupSelectionResponseUnmarshaller : 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)
{
DeleteBackupSelectionResponse response = new DeleteBackupSelectionResponse();
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("InvalidParameterValueException"))
{
return InvalidParameterValueExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("MissingParameterValueException"))
{
return MissingParameterValueExceptionUnmarshaller.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("ServiceUnavailableException"))
{
return ServiceUnavailableExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonBackupException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteBackupSelectionResponseUnmarshaller _instance = new DeleteBackupSelectionResponseUnmarshaller();
internal static DeleteBackupSelectionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteBackupSelectionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 111 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.