repo_name
stringlengths 1
52
| repo_creator
stringclasses 6
values | programming_language
stringclasses 4
values | code
stringlengths 0
9.68M
| num_lines
int64 1
234k
|
---|---|---|---|---|
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the ListTagsForResource operation.
/// </summary>
public partial class ListTagsForResourceResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to use to retrieve the next page of results. This value is null when there
/// are no more results to return.
/// </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>
/// A list of tag key value pairs that are associated with the response.
/// </para>
/// </summary>
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}
| 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the ListTypedLinkFacetAttributes operation.
/// Returns a paginated list of all attribute definitions for a particular <a>TypedLinkFacet</a>.
/// For more information, see <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink">Typed
/// Links</a>.
/// </summary>
public partial class ListTypedLinkFacetAttributesRequest : AmazonCloudDirectoryRequest
{
private int? _maxResults;
private string _name;
private string _nextToken;
private string _schemaArn;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to retrieve.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
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 Name.
/// <para>
/// The unique name of the typed link facet.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The pagination 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 SchemaArn.
/// <para>
/// The Amazon Resource Name (ARN) that is associated with the schema. For more information,
/// see <a>arns</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SchemaArn
{
get { return this._schemaArn; }
set { this._schemaArn = value; }
}
// Check to see if SchemaArn property is set
internal bool IsSetSchemaArn()
{
return this._schemaArn != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the ListTypedLinkFacetAttributes operation.
/// </summary>
public partial class ListTypedLinkFacetAttributesResponse : AmazonWebServiceResponse
{
private List<TypedLinkAttributeDefinition> _attributes = new List<TypedLinkAttributeDefinition>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Attributes.
/// <para>
/// An ordered set of attributes associate with the typed link.
/// </para>
/// </summary>
public List<TypedLinkAttributeDefinition> Attributes
{
get { return this._attributes; }
set { this._attributes = value; }
}
// Check to see if Attributes property is set
internal bool IsSetAttributes()
{
return this._attributes != null && this._attributes.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The pagination 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;
}
}
}
| 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the ListTypedLinkFacetNames operation.
/// Returns a paginated list of <code>TypedLink</code> facet names for a particular schema.
/// For more information, see <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink">Typed
/// Links</a>.
/// </summary>
public partial class ListTypedLinkFacetNamesRequest : AmazonCloudDirectoryRequest
{
private int? _maxResults;
private string _nextToken;
private string _schemaArn;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results to retrieve.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The pagination token.
/// </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 SchemaArn.
/// <para>
/// The Amazon Resource Name (ARN) that is associated with the schema. For more information,
/// see <a>arns</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SchemaArn
{
get { return this._schemaArn; }
set { this._schemaArn = value; }
}
// Check to see if SchemaArn property is set
internal bool IsSetSchemaArn()
{
return this._schemaArn != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the ListTypedLinkFacetNames operation.
/// </summary>
public partial class ListTypedLinkFacetNamesResponse : AmazonWebServiceResponse
{
private List<string> _facetNames = new List<string>();
private string _nextToken;
/// <summary>
/// Gets and sets the property FacetNames.
/// <para>
/// The names of typed link facets that exist within the schema.
/// </para>
/// </summary>
public List<string> FacetNames
{
get { return this._facetNames; }
set { this._facetNames = value; }
}
// Check to see if FacetNames property is set
internal bool IsSetFacetNames()
{
return this._facetNames != null && this._facetNames.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The pagination 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;
}
}
}
| 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the LookupPolicy operation.
/// Lists all policies from the root of the <a>Directory</a> to the object specified.
/// If there are no policies present, an empty list is returned. If policies are present,
/// and if some objects don't have the policies attached, it returns the <code>ObjectIdentifier</code>
/// for such objects. If policies are present, it returns <code>ObjectIdentifier</code>,
/// <code>policyId</code>, and <code>policyType</code>. Paths that don't lead to the root
/// from the target object are ignored. For more information, see <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies">Policies</a>.
/// </summary>
public partial class LookupPolicyRequest : AmazonCloudDirectoryRequest
{
private string _directoryArn;
private int? _maxResults;
private string _nextToken;
private ObjectReference _objectReference;
/// <summary>
/// Gets and sets the property DirectoryArn.
/// <para>
/// The Amazon Resource Name (ARN) that is associated with the <a>Directory</a>. For more
/// information, see <a>arns</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DirectoryArn
{
get { return this._directoryArn; }
set { this._directoryArn = value; }
}
// Check to see if DirectoryArn property is set
internal bool IsSetDirectoryArn()
{
return this._directoryArn != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of items to be retrieved in a single call. This is an approximate
/// number.
/// </para>
/// </summary>
[AWSProperty(Min=1)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The token to request the next page of results.
/// </para>
/// </summary>
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 ObjectReference.
/// <para>
/// Reference that identifies the object whose policies will be looked up.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ObjectReference ObjectReference
{
get { return this._objectReference; }
set { this._objectReference = value; }
}
// Check to see if ObjectReference property is set
internal bool IsSetObjectReference()
{
return this._objectReference != null;
}
}
}
| 125 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the LookupPolicy operation.
/// </summary>
public partial class LookupPolicyResponse : AmazonWebServiceResponse
{
private string _nextToken;
private List<PolicyToPath> _policyToPathList = new List<PolicyToPath>();
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// The pagination 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 PolicyToPathList.
/// <para>
/// Provides list of path to policies. Policies contain <code>PolicyId</code>, <code>ObjectIdentifier</code>,
/// and <code>PolicyType</code>. For more information, see <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies">Policies</a>.
/// </para>
/// </summary>
public List<PolicyToPath> PolicyToPathList
{
get { return this._policyToPathList; }
set { this._policyToPathList = value; }
}
// Check to see if PolicyToPathList property is set
internal bool IsSetPolicyToPathList()
{
return this._policyToPathList != null && this._policyToPathList.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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Indicates that the requested operation can only operate on index objects.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class NotIndexException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new NotIndexException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public NotIndexException(string message)
: base(message) {}
/// <summary>
/// Construct instance of NotIndexException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public NotIndexException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of NotIndexException
/// </summary>
/// <param name="innerException"></param>
public NotIndexException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of NotIndexException
/// </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 NotIndexException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of NotIndexException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public NotIndexException(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 NotIndexException 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 NotIndexException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Occurs when any invalid operations are performed on an object that is not a node,
/// such as calling <code>ListObjectChildren</code> for a leaf node object.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class NotNodeException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new NotNodeException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public NotNodeException(string message)
: base(message) {}
/// <summary>
/// Construct instance of NotNodeException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public NotNodeException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of NotNodeException
/// </summary>
/// <param name="innerException"></param>
public NotNodeException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of NotNodeException
/// </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 NotNodeException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of NotNodeException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public NotNodeException(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 NotNodeException 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 NotNodeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 125 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudDirectory.Model
{
/// <summary>
/// Indicates that the requested operation can only operate on policy objects.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class NotPolicyException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new NotPolicyException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public NotPolicyException(string message)
: base(message) {}
/// <summary>
/// Construct instance of NotPolicyException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public NotPolicyException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of NotPolicyException
/// </summary>
/// <param name="innerException"></param>
public NotPolicyException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of NotPolicyException
/// </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 NotPolicyException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of NotPolicyException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public NotPolicyException(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 NotPolicyException 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 NotPolicyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Indicates that the object is not attached to the index.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ObjectAlreadyDetachedException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new ObjectAlreadyDetachedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ObjectAlreadyDetachedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ObjectAlreadyDetachedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ObjectAlreadyDetachedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ObjectAlreadyDetachedException
/// </summary>
/// <param name="innerException"></param>
public ObjectAlreadyDetachedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ObjectAlreadyDetachedException
/// </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 ObjectAlreadyDetachedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ObjectAlreadyDetachedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ObjectAlreadyDetachedException(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 ObjectAlreadyDetachedException 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 ObjectAlreadyDetachedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// The action to take on the object attribute.
/// </summary>
public partial class ObjectAttributeAction
{
private UpdateActionType _objectAttributeActionType;
private TypedAttributeValue _objectAttributeUpdateValue;
/// <summary>
/// Gets and sets the property ObjectAttributeActionType.
/// <para>
/// A type that can be either <code>Update</code> or <code>Delete</code>.
/// </para>
/// </summary>
public UpdateActionType ObjectAttributeActionType
{
get { return this._objectAttributeActionType; }
set { this._objectAttributeActionType = value; }
}
// Check to see if ObjectAttributeActionType property is set
internal bool IsSetObjectAttributeActionType()
{
return this._objectAttributeActionType != null;
}
/// <summary>
/// Gets and sets the property ObjectAttributeUpdateValue.
/// <para>
/// The value that you want to update to.
/// </para>
/// </summary>
public TypedAttributeValue ObjectAttributeUpdateValue
{
get { return this._objectAttributeUpdateValue; }
set { this._objectAttributeUpdateValue = value; }
}
// Check to see if ObjectAttributeUpdateValue property is set
internal bool IsSetObjectAttributeUpdateValue()
{
return this._objectAttributeUpdateValue != null;
}
}
}
| 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// A range of attributes.
/// </summary>
public partial class ObjectAttributeRange
{
private AttributeKey _attributeKey;
private TypedAttributeValueRange _range;
/// <summary>
/// Gets and sets the property AttributeKey.
/// <para>
/// The key of the attribute that the attribute range covers.
/// </para>
/// </summary>
public AttributeKey AttributeKey
{
get { return this._attributeKey; }
set { this._attributeKey = value; }
}
// Check to see if AttributeKey property is set
internal bool IsSetAttributeKey()
{
return this._attributeKey != null;
}
/// <summary>
/// Gets and sets the property Range.
/// <para>
/// The range of attribute values being selected.
/// </para>
/// </summary>
public TypedAttributeValueRange Range
{
get { return this._range; }
set { this._range = value; }
}
// Check to see if Range property is set
internal bool IsSetRange()
{
return this._range != null;
}
}
}
| 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Structure that contains attribute update information.
/// </summary>
public partial class ObjectAttributeUpdate
{
private ObjectAttributeAction _objectAttributeAction;
private AttributeKey _objectAttributeKey;
/// <summary>
/// Gets and sets the property ObjectAttributeAction.
/// <para>
/// The action to perform as part of the attribute update.
/// </para>
/// </summary>
public ObjectAttributeAction ObjectAttributeAction
{
get { return this._objectAttributeAction; }
set { this._objectAttributeAction = value; }
}
// Check to see if ObjectAttributeAction property is set
internal bool IsSetObjectAttributeAction()
{
return this._objectAttributeAction != null;
}
/// <summary>
/// Gets and sets the property ObjectAttributeKey.
/// <para>
/// The key of the attribute being updated.
/// </para>
/// </summary>
public AttributeKey ObjectAttributeKey
{
get { return this._objectAttributeKey; }
set { this._objectAttributeKey = value; }
}
// Check to see if ObjectAttributeKey property is set
internal bool IsSetObjectAttributeKey()
{
return this._objectAttributeKey != null;
}
}
}
| 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// A pair of ObjectIdentifier and LinkName.
/// </summary>
public partial class ObjectIdentifierAndLinkNameTuple
{
private string _linkName;
private string _objectIdentifier;
/// <summary>
/// Gets and sets the property LinkName.
/// <para>
/// The name of the link between the parent and the child object.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string LinkName
{
get { return this._linkName; }
set { this._linkName = value; }
}
// Check to see if LinkName property is set
internal bool IsSetLinkName()
{
return this._linkName != null;
}
/// <summary>
/// Gets and sets the property ObjectIdentifier.
/// <para>
/// The ID that is associated with the object.
/// </para>
/// </summary>
public string ObjectIdentifier
{
get { return this._objectIdentifier; }
set { this._objectIdentifier = value; }
}
// Check to see if ObjectIdentifier property is set
internal bool IsSetObjectIdentifier()
{
return this._objectIdentifier != null;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Indicates that the requested operation cannot be completed because the object has
/// not been detached from the tree.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ObjectNotDetachedException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new ObjectNotDetachedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ObjectNotDetachedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ObjectNotDetachedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ObjectNotDetachedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ObjectNotDetachedException
/// </summary>
/// <param name="innerException"></param>
public ObjectNotDetachedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ObjectNotDetachedException
/// </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 ObjectNotDetachedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ObjectNotDetachedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ObjectNotDetachedException(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 ObjectNotDetachedException 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 ObjectNotDetachedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 125 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudDirectory.Model
{
/// <summary>
/// The reference that identifies an object.
/// </summary>
public partial class ObjectReference
{
private string _selector;
/// <summary>
/// Gets and sets the property Selector.
/// <para>
/// A path selector supports easy selection of an object by the parent/child links leading
/// to it from the directory root. Use the link names from each parent/child link to construct
/// the path. Path selectors start with a slash (/) and link names are separated by slashes.
/// For more information about paths, see <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_access_objects.html">Access
/// Objects</a>. You can identify an object in one of the following ways:
/// </para>
/// <ul> <li>
/// <para>
/// <i>$ObjectIdentifier</i> - An object identifier is an opaque string provided by Amazon
/// Cloud Directory. When creating objects, the system will provide you with the identifier
/// of the created object. An object’s identifier is immutable and no two objects will
/// ever share the same object identifier. To identify an object with ObjectIdentifier,
/// the ObjectIdentifier must be wrapped in double quotes.
/// </para>
/// </li> <li>
/// <para>
/// <i>/some/path</i> - Identifies the object based on path
/// </para>
/// </li> <li>
/// <para>
/// <i>#SomeBatchReference</i> - Identifies the object in a batch call
/// </para>
/// </li> </ul>
/// </summary>
public string Selector
{
get { return this._selector; }
set { this._selector = value; }
}
// Check to see if Selector property is set
internal bool IsSetSelector()
{
return this._selector != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Returns the path to the <code>ObjectIdentifiers</code> that is associated with the
/// directory.
/// </summary>
public partial class PathToObjectIdentifiers
{
private List<string> _objectIdentifiers = new List<string>();
private string _path;
/// <summary>
/// Gets and sets the property ObjectIdentifiers.
/// <para>
/// Lists <code>ObjectIdentifiers</code> starting from directory root to the object in
/// the request.
/// </para>
/// </summary>
public List<string> ObjectIdentifiers
{
get { return this._objectIdentifiers; }
set { this._objectIdentifiers = value; }
}
// Check to see if ObjectIdentifiers property is set
internal bool IsSetObjectIdentifiers()
{
return this._objectIdentifiers != null && this._objectIdentifiers.Count > 0;
}
/// <summary>
/// Gets and sets the property Path.
/// <para>
/// The path that is used to identify the object starting from directory root.
/// </para>
/// </summary>
public string Path
{
get { return this._path; }
set { this._path = value; }
}
// Check to see if Path property is set
internal bool IsSetPath()
{
return this._path != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Contains the <code>PolicyType</code>, <code>PolicyId</code>, and the <code>ObjectIdentifier</code>
/// to which it is attached. For more information, see <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/key_concepts_directory.html#key_concepts_policies">Policies</a>.
/// </summary>
public partial class PolicyAttachment
{
private string _objectIdentifier;
private string _policyId;
private string _policyType;
/// <summary>
/// Gets and sets the property ObjectIdentifier.
/// <para>
/// The <code>ObjectIdentifier</code> that is associated with <code>PolicyAttachment</code>.
/// </para>
/// </summary>
public string ObjectIdentifier
{
get { return this._objectIdentifier; }
set { this._objectIdentifier = value; }
}
// Check to see if ObjectIdentifier property is set
internal bool IsSetObjectIdentifier()
{
return this._objectIdentifier != null;
}
/// <summary>
/// Gets and sets the property PolicyId.
/// <para>
/// The ID of <code>PolicyAttachment</code>.
/// </para>
/// </summary>
public string PolicyId
{
get { return this._policyId; }
set { this._policyId = value; }
}
// Check to see if PolicyId property is set
internal bool IsSetPolicyId()
{
return this._policyId != null;
}
/// <summary>
/// Gets and sets the property PolicyType.
/// <para>
/// The type of policy that can be associated with <code>PolicyAttachment</code>.
/// </para>
/// </summary>
public string PolicyType
{
get { return this._policyType; }
set { this._policyType = value; }
}
// Check to see if PolicyType property is set
internal bool IsSetPolicyType()
{
return this._policyType != null;
}
}
}
| 96 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudDirectory.Model
{
/// <summary>
/// Used when a regular object exists in a <a>Directory</a> and you want to find all of
/// the policies that are associated with that object and the parent to that object.
/// </summary>
public partial class PolicyToPath
{
private string _path;
private List<PolicyAttachment> _policies = new List<PolicyAttachment>();
/// <summary>
/// Gets and sets the property Path.
/// <para>
/// The path that is referenced from the root.
/// </para>
/// </summary>
public string Path
{
get { return this._path; }
set { this._path = value; }
}
// Check to see if Path property is set
internal bool IsSetPath()
{
return this._path != null;
}
/// <summary>
/// Gets and sets the property Policies.
/// <para>
/// List of policy objects.
/// </para>
/// </summary>
public List<PolicyAttachment> Policies
{
get { return this._policies; }
set { this._policies = value; }
}
// Check to see if Policies property is set
internal bool IsSetPolicies()
{
return this._policies != null && this._policies.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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the PublishSchema operation.
/// Publishes a development schema with a major version and a recommended minor version.
/// </summary>
public partial class PublishSchemaRequest : AmazonCloudDirectoryRequest
{
private string _developmentSchemaArn;
private string _minorVersion;
private string _name;
private string _version;
/// <summary>
/// Gets and sets the property DevelopmentSchemaArn.
/// <para>
/// The Amazon Resource Name (ARN) that is associated with the development schema. For
/// more information, see <a>arns</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DevelopmentSchemaArn
{
get { return this._developmentSchemaArn; }
set { this._developmentSchemaArn = value; }
}
// Check to see if DevelopmentSchemaArn property is set
internal bool IsSetDevelopmentSchemaArn()
{
return this._developmentSchemaArn != null;
}
/// <summary>
/// Gets and sets the property MinorVersion.
/// <para>
/// The minor version under which the schema will be published. This parameter is recommended.
/// Schemas have both a major and minor version associated with them.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=10)]
public string MinorVersion
{
get { return this._minorVersion; }
set { this._minorVersion = value; }
}
// Check to see if MinorVersion property is set
internal bool IsSetMinorVersion()
{
return this._minorVersion != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The new name under which the schema will be published. If this is not provided, the
/// development schema is considered.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=32)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Version.
/// <para>
/// The major version under which the schema will be published. Schemas have both a major
/// and minor version associated with them.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=10)]
public string Version
{
get { return this._version; }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the PublishSchema operation.
/// </summary>
public partial class PublishSchemaResponse : AmazonWebServiceResponse
{
private string _publishedSchemaArn;
/// <summary>
/// Gets and sets the property PublishedSchemaArn.
/// <para>
/// The ARN that is associated with the published schema. For more information, see <a>arns</a>.
/// </para>
/// </summary>
public string PublishedSchemaArn
{
get { return this._publishedSchemaArn; }
set { this._publishedSchemaArn = value; }
}
// Check to see if PublishedSchemaArn property is set
internal bool IsSetPublishedSchemaArn()
{
return this._publishedSchemaArn != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the PutSchemaFromJson operation.
/// Allows a schema to be updated using JSON upload. Only available for development schemas.
/// See <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_jsonformat.html#schemas_json">JSON
/// Schema Format</a> for more information.
/// </summary>
public partial class PutSchemaFromJsonRequest : AmazonCloudDirectoryRequest
{
private string _document;
private string _schemaArn;
/// <summary>
/// Gets and sets the property Document.
/// <para>
/// The replacement JSON schema.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Document
{
get { return this._document; }
set { this._document = value; }
}
// Check to see if Document property is set
internal bool IsSetDocument()
{
return this._document != null;
}
/// <summary>
/// Gets and sets the property SchemaArn.
/// <para>
/// The ARN of the schema to update.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SchemaArn
{
get { return this._schemaArn; }
set { this._schemaArn = value; }
}
// Check to see if SchemaArn property is set
internal bool IsSetSchemaArn()
{
return this._schemaArn != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the PutSchemaFromJson operation.
/// </summary>
public partial class PutSchemaFromJsonResponse : AmazonWebServiceResponse
{
private string _arn;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The ARN of the schema to update.
/// </para>
/// </summary>
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
}
}
| 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the RemoveFacetFromObject operation.
/// Removes the specified facet from the specified object.
/// </summary>
public partial class RemoveFacetFromObjectRequest : AmazonCloudDirectoryRequest
{
private string _directoryArn;
private ObjectReference _objectReference;
private SchemaFacet _schemaFacet;
/// <summary>
/// Gets and sets the property DirectoryArn.
/// <para>
/// The ARN of the directory in which the object resides.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DirectoryArn
{
get { return this._directoryArn; }
set { this._directoryArn = value; }
}
// Check to see if DirectoryArn property is set
internal bool IsSetDirectoryArn()
{
return this._directoryArn != null;
}
/// <summary>
/// Gets and sets the property ObjectReference.
/// <para>
/// A reference to the object to remove the facet from.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ObjectReference ObjectReference
{
get { return this._objectReference; }
set { this._objectReference = value; }
}
// Check to see if ObjectReference property is set
internal bool IsSetObjectReference()
{
return this._objectReference != null;
}
/// <summary>
/// Gets and sets the property SchemaFacet.
/// <para>
/// The facet to remove. See <a>SchemaFacet</a> for details.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public SchemaFacet SchemaFacet
{
get { return this._schemaFacet; }
set { this._schemaFacet = value; }
}
// Check to see if SchemaFacet property is set
internal bool IsSetSchemaFacet()
{
return this._schemaFacet != null;
}
}
}
| 99 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the RemoveFacetFromObject operation.
/// </summary>
public partial class RemoveFacetFromObjectResponse : 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// The specified resource could not be found.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new ResourceNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ResourceNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ResourceNotFoundException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Contains an Amazon Resource Name (ARN) and parameters that are associated with the
/// rule.
/// </summary>
public partial class Rule
{
private Dictionary<string, string> _parameters = new Dictionary<string, string>();
private RuleType _type;
/// <summary>
/// Gets and sets the property Parameters.
/// <para>
/// The minimum and maximum parameters that are associated with the rule.
/// </para>
/// </summary>
public Dictionary<string, string> Parameters
{
get { return this._parameters; }
set { this._parameters = value; }
}
// Check to see if Parameters property is set
internal bool IsSetParameters()
{
return this._parameters != null && this._parameters.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of attribute validation rule.
/// </para>
/// </summary>
public RuleType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 77 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Indicates that a schema could not be created due to a naming conflict. Please select
/// a different name and then try again.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class SchemaAlreadyExistsException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new SchemaAlreadyExistsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public SchemaAlreadyExistsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of SchemaAlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public SchemaAlreadyExistsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of SchemaAlreadyExistsException
/// </summary>
/// <param name="innerException"></param>
public SchemaAlreadyExistsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of SchemaAlreadyExistsException
/// </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 SchemaAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of SchemaAlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public SchemaAlreadyExistsException(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 SchemaAlreadyExistsException 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 SchemaAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 125 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudDirectory.Model
{
/// <summary>
/// Indicates that a schema is already published.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class SchemaAlreadyPublishedException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new SchemaAlreadyPublishedException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public SchemaAlreadyPublishedException(string message)
: base(message) {}
/// <summary>
/// Construct instance of SchemaAlreadyPublishedException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public SchemaAlreadyPublishedException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of SchemaAlreadyPublishedException
/// </summary>
/// <param name="innerException"></param>
public SchemaAlreadyPublishedException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of SchemaAlreadyPublishedException
/// </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 SchemaAlreadyPublishedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of SchemaAlreadyPublishedException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public SchemaAlreadyPublishedException(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 SchemaAlreadyPublishedException 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 SchemaAlreadyPublishedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// A facet.
/// </summary>
public partial class SchemaFacet
{
private string _facetName;
private string _schemaArn;
/// <summary>
/// Gets and sets the property FacetName.
/// <para>
/// The name of the facet. If this value is set, SchemaArn must also be set.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=64)]
public string FacetName
{
get { return this._facetName; }
set { this._facetName = value; }
}
// Check to see if FacetName property is set
internal bool IsSetFacetName()
{
return this._facetName != null;
}
/// <summary>
/// Gets and sets the property SchemaArn.
/// <para>
/// The ARN of the schema that contains the facet with no minor component. See <a>arns</a>
/// and <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/schemas_inplaceschemaupgrade.html">In-Place
/// Schema Upgrade</a> for a description of when to provide minor versions. If this value
/// is set, FacetName must also be set.
/// </para>
/// </summary>
public string SchemaArn
{
get { return this._schemaArn; }
set { this._schemaArn = value; }
}
// Check to see if SchemaArn property is set
internal bool IsSetSchemaArn()
{
return this._schemaArn != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// The object could not be deleted because links still exist. Remove the links and then
/// try the operation again.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class StillContainsLinksException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new StillContainsLinksException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public StillContainsLinksException(string message)
: base(message) {}
/// <summary>
/// Construct instance of StillContainsLinksException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public StillContainsLinksException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of StillContainsLinksException
/// </summary>
/// <param name="innerException"></param>
public StillContainsLinksException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of StillContainsLinksException
/// </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 StillContainsLinksException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of StillContainsLinksException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public StillContainsLinksException(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 StillContainsLinksException 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 StillContainsLinksException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 125 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudDirectory.Model
{
/// <summary>
/// The tag structure that contains a tag key and value.
/// </summary>
public partial class Tag
{
private string _key;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// The key that is associated with the tag.
/// </para>
/// </summary>
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value that is associated with the tag.
/// </para>
/// </summary>
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
}
| 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the TagResource operation.
/// An API operation for adding tags to a resource.
/// </summary>
public partial class TagResourceRequest : AmazonCloudDirectoryRequest
{
private string _resourceArn;
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.
/// </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>
/// A list of tag key-value pairs.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<Tag> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Represents the data for a typed attribute. You can set one, and only one, of the elements.
/// Each attribute in an item is a name-value pair. Attributes have a single value.
/// </summary>
public partial class TypedAttributeValue
{
private MemoryStream _binaryValue;
private bool? _booleanValue;
private DateTime? _datetimeValue;
private string _numberValue;
private string _stringValue;
/// <summary>
/// Gets and sets the property BinaryValue.
/// <para>
/// A binary data value.
/// </para>
/// </summary>
public MemoryStream BinaryValue
{
get { return this._binaryValue; }
set { this._binaryValue = value; }
}
// Check to see if BinaryValue property is set
internal bool IsSetBinaryValue()
{
return this._binaryValue != null;
}
/// <summary>
/// Gets and sets the property BooleanValue.
/// <para>
/// A Boolean data value.
/// </para>
/// </summary>
public bool BooleanValue
{
get { return this._booleanValue.GetValueOrDefault(); }
set { this._booleanValue = value; }
}
// Check to see if BooleanValue property is set
internal bool IsSetBooleanValue()
{
return this._booleanValue.HasValue;
}
/// <summary>
/// Gets and sets the property DatetimeValue.
/// <para>
/// A date and time value.
/// </para>
/// </summary>
public DateTime DatetimeValue
{
get { return this._datetimeValue.GetValueOrDefault(); }
set { this._datetimeValue = value; }
}
// Check to see if DatetimeValue property is set
internal bool IsSetDatetimeValue()
{
return this._datetimeValue.HasValue;
}
/// <summary>
/// Gets and sets the property NumberValue.
/// <para>
/// A number data value.
/// </para>
/// </summary>
public string NumberValue
{
get { return this._numberValue; }
set { this._numberValue = value; }
}
// Check to see if NumberValue property is set
internal bool IsSetNumberValue()
{
return this._numberValue != null;
}
/// <summary>
/// Gets and sets the property StringValue.
/// <para>
/// A string data value.
/// </para>
/// </summary>
public string StringValue
{
get { return this._stringValue; }
set { this._stringValue = value; }
}
// Check to see if StringValue property is set
internal bool IsSetStringValue()
{
return this._stringValue != null;
}
}
}
| 134 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// A range of attribute values. For more information, see <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_range_filters.html">Range
/// Filters</a>.
/// </summary>
public partial class TypedAttributeValueRange
{
private RangeMode _endMode;
private TypedAttributeValue _endValue;
private RangeMode _startMode;
private TypedAttributeValue _startValue;
/// <summary>
/// Gets and sets the property EndMode.
/// <para>
/// The inclusive or exclusive range end.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public RangeMode EndMode
{
get { return this._endMode; }
set { this._endMode = value; }
}
// Check to see if EndMode property is set
internal bool IsSetEndMode()
{
return this._endMode != null;
}
/// <summary>
/// Gets and sets the property EndValue.
/// <para>
/// The attribute value to terminate the range at.
/// </para>
/// </summary>
public TypedAttributeValue EndValue
{
get { return this._endValue; }
set { this._endValue = value; }
}
// Check to see if EndValue property is set
internal bool IsSetEndValue()
{
return this._endValue != null;
}
/// <summary>
/// Gets and sets the property StartMode.
/// <para>
/// The inclusive or exclusive range start.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public RangeMode StartMode
{
get { return this._startMode; }
set { this._startMode = value; }
}
// Check to see if StartMode property is set
internal bool IsSetStartMode()
{
return this._startMode != null;
}
/// <summary>
/// Gets and sets the property StartValue.
/// <para>
/// The value to start the range at.
/// </para>
/// </summary>
public TypedAttributeValue StartValue
{
get { return this._startValue; }
set { this._startValue = value; }
}
// Check to see if StartValue property is set
internal bool IsSetStartValue()
{
return this._startValue != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// A typed link attribute definition.
/// </summary>
public partial class TypedLinkAttributeDefinition
{
private TypedAttributeValue _defaultValue;
private bool? _isImmutable;
private string _name;
private RequiredAttributeBehavior _requiredBehavior;
private Dictionary<string, Rule> _rules = new Dictionary<string, Rule>();
private FacetAttributeType _type;
/// <summary>
/// Gets and sets the property DefaultValue.
/// <para>
/// The default value of the attribute (if configured).
/// </para>
/// </summary>
public TypedAttributeValue DefaultValue
{
get { return this._defaultValue; }
set { this._defaultValue = value; }
}
// Check to see if DefaultValue property is set
internal bool IsSetDefaultValue()
{
return this._defaultValue != null;
}
/// <summary>
/// Gets and sets the property IsImmutable.
/// <para>
/// Whether the attribute is mutable or not.
/// </para>
/// </summary>
public bool IsImmutable
{
get { return this._isImmutable.GetValueOrDefault(); }
set { this._isImmutable = value; }
}
// Check to see if IsImmutable property is set
internal bool IsSetIsImmutable()
{
return this._isImmutable.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The unique name of the typed link attribute.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=230)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property RequiredBehavior.
/// <para>
/// The required behavior of the <code>TypedLinkAttributeDefinition</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public RequiredAttributeBehavior RequiredBehavior
{
get { return this._requiredBehavior; }
set { this._requiredBehavior = value; }
}
// Check to see if RequiredBehavior property is set
internal bool IsSetRequiredBehavior()
{
return this._requiredBehavior != null;
}
/// <summary>
/// Gets and sets the property Rules.
/// <para>
/// Validation rules that are attached to the attribute definition.
/// </para>
/// </summary>
public Dictionary<string, Rule> Rules
{
get { return this._rules; }
set { this._rules = value; }
}
// Check to see if Rules property is set
internal bool IsSetRules()
{
return this._rules != null && this._rules.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The type of the attribute.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public FacetAttributeType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 155 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Identifies the range of attributes that are used by a specified filter.
/// </summary>
public partial class TypedLinkAttributeRange
{
private string _attributeName;
private TypedAttributeValueRange _range;
/// <summary>
/// Gets and sets the property AttributeName.
/// <para>
/// The unique name of the typed link attribute.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=230)]
public string AttributeName
{
get { return this._attributeName; }
set { this._attributeName = value; }
}
// Check to see if AttributeName property is set
internal bool IsSetAttributeName()
{
return this._attributeName != null;
}
/// <summary>
/// Gets and sets the property Range.
/// <para>
/// The range of attribute values that are being selected.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public TypedAttributeValueRange Range
{
get { return this._range; }
set { this._range = value; }
}
// Check to see if Range property is set
internal bool IsSetRange()
{
return this._range != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Defines the typed links structure and its attributes. To create a typed link facet,
/// use the <a>CreateTypedLinkFacet</a> API.
/// </summary>
public partial class TypedLinkFacet
{
private List<TypedLinkAttributeDefinition> _attributes = new List<TypedLinkAttributeDefinition>();
private List<string> _identityAttributeOrder = new List<string>();
private string _name;
/// <summary>
/// Gets and sets the property Attributes.
/// <para>
/// A set of key-value pairs associated with the typed link. Typed link attributes are
/// used when you have data values that are related to the link itself, and not to one
/// of the two objects being linked. Identity attributes also serve to distinguish the
/// link from others of the same type between the same objects.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<TypedLinkAttributeDefinition> Attributes
{
get { return this._attributes; }
set { this._attributes = value; }
}
// Check to see if Attributes property is set
internal bool IsSetAttributes()
{
return this._attributes != null && this._attributes.Count > 0;
}
/// <summary>
/// Gets and sets the property IdentityAttributeOrder.
/// <para>
/// The set of attributes that distinguish links made from this facet from each other,
/// in the order of significance. Listing typed links can filter on the values of these
/// attributes. See <a>ListOutgoingTypedLinks</a> and <a>ListIncomingTypedLinks</a> for
/// details.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> IdentityAttributeOrder
{
get { return this._identityAttributeOrder; }
set { this._identityAttributeOrder = value; }
}
// Check to see if IdentityAttributeOrder property is set
internal bool IsSetIdentityAttributeOrder()
{
return this._identityAttributeOrder != null && this._identityAttributeOrder.Count > 0;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The unique name of the typed link facet.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
}
}
| 105 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudDirectory.Model
{
/// <summary>
/// A typed link facet attribute update.
/// </summary>
public partial class TypedLinkFacetAttributeUpdate
{
private UpdateActionType _action;
private TypedLinkAttributeDefinition _attribute;
/// <summary>
/// Gets and sets the property Action.
/// <para>
/// The action to perform when updating the attribute.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public UpdateActionType Action
{
get { return this._action; }
set { this._action = value; }
}
// Check to see if Action property is set
internal bool IsSetAction()
{
return this._action != null;
}
/// <summary>
/// Gets and sets the property Attribute.
/// <para>
/// The attribute to update.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public TypedLinkAttributeDefinition Attribute
{
get { return this._attribute; }
set { this._attribute = value; }
}
// Check to see if Attribute property is set
internal bool IsSetAttribute()
{
return this._attribute != null;
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Identifies the schema Amazon Resource Name (ARN) and facet name for the typed link.
/// </summary>
public partial class TypedLinkSchemaAndFacetName
{
private string _schemaArn;
private string _typedLinkName;
/// <summary>
/// Gets and sets the property SchemaArn.
/// <para>
/// The Amazon Resource Name (ARN) that is associated with the schema. For more information,
/// see <a>arns</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SchemaArn
{
get { return this._schemaArn; }
set { this._schemaArn = value; }
}
// Check to see if SchemaArn property is set
internal bool IsSetSchemaArn()
{
return this._schemaArn != null;
}
/// <summary>
/// Gets and sets the property TypedLinkName.
/// <para>
/// The unique name of the typed link facet.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string TypedLinkName
{
get { return this._typedLinkName; }
set { this._typedLinkName = value; }
}
// Check to see if TypedLinkName property is set
internal bool IsSetTypedLinkName()
{
return this._typedLinkName != null;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Contains all the information that is used to uniquely identify a typed link. The parameters
/// discussed in this topic are used to uniquely specify the typed link being operated
/// on. The <a>AttachTypedLink</a> API returns a typed link specifier while the <a>DetachTypedLink</a>
/// API accepts one as input. Similarly, the <a>ListIncomingTypedLinks</a> and <a>ListOutgoingTypedLinks</a>
/// API operations provide typed link specifiers as output. You can also construct a typed
/// link specifier from scratch.
/// </summary>
public partial class TypedLinkSpecifier
{
private List<AttributeNameAndValue> _identityAttributeValues = new List<AttributeNameAndValue>();
private ObjectReference _sourceObjectReference;
private ObjectReference _targetObjectReference;
private TypedLinkSchemaAndFacetName _typedLinkFacet;
/// <summary>
/// Gets and sets the property IdentityAttributeValues.
/// <para>
/// Identifies the attribute value to update.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<AttributeNameAndValue> IdentityAttributeValues
{
get { return this._identityAttributeValues; }
set { this._identityAttributeValues = value; }
}
// Check to see if IdentityAttributeValues property is set
internal bool IsSetIdentityAttributeValues()
{
return this._identityAttributeValues != null && this._identityAttributeValues.Count > 0;
}
/// <summary>
/// Gets and sets the property SourceObjectReference.
/// <para>
/// Identifies the source object that the typed link will attach to.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ObjectReference SourceObjectReference
{
get { return this._sourceObjectReference; }
set { this._sourceObjectReference = value; }
}
// Check to see if SourceObjectReference property is set
internal bool IsSetSourceObjectReference()
{
return this._sourceObjectReference != null;
}
/// <summary>
/// Gets and sets the property TargetObjectReference.
/// <para>
/// Identifies the target object that the typed link will attach to.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ObjectReference TargetObjectReference
{
get { return this._targetObjectReference; }
set { this._targetObjectReference = value; }
}
// Check to see if TargetObjectReference property is set
internal bool IsSetTargetObjectReference()
{
return this._targetObjectReference != null;
}
/// <summary>
/// Gets and sets the property TypedLinkFacet.
/// <para>
/// Identifies the typed link facet that is associated with the typed link.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public TypedLinkSchemaAndFacetName TypedLinkFacet
{
get { return this._typedLinkFacet; }
set { this._typedLinkFacet = value; }
}
// Check to see if TypedLinkFacet property is set
internal bool IsSetTypedLinkFacet()
{
return this._typedLinkFacet != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Indicates that the requested index type is not supported.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class UnsupportedIndexTypeException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new UnsupportedIndexTypeException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public UnsupportedIndexTypeException(string message)
: base(message) {}
/// <summary>
/// Construct instance of UnsupportedIndexTypeException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public UnsupportedIndexTypeException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of UnsupportedIndexTypeException
/// </summary>
/// <param name="innerException"></param>
public UnsupportedIndexTypeException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of UnsupportedIndexTypeException
/// </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 UnsupportedIndexTypeException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of UnsupportedIndexTypeException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public UnsupportedIndexTypeException(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 UnsupportedIndexTypeException 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 UnsupportedIndexTypeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the UntagResource operation.
/// An API operation for removing tags from a resource.
/// </summary>
public partial class UntagResourceRequest : AmazonCloudDirectoryRequest
{
private string _resourceArn;
private List<string> _tagKeys = new List<string>();
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the resource. Tagging is only supported for directories.
/// </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 TagKeys.
/// <para>
/// Keys of the tag that need to be removed from the resource.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> TagKeys
{
get { return this._tagKeys; }
set { this._tagKeys = value; }
}
// Check to see if TagKeys property is set
internal bool IsSetTagKeys()
{
return this._tagKeys != null && this._tagKeys.Count > 0;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the UpdateFacet operation.
/// Does the following:
///
/// <ol> <li>
/// <para>
/// Adds new <code>Attributes</code>, <code>Rules</code>, or <code>ObjectTypes</code>.
/// </para>
/// </li> <li>
/// <para>
/// Updates existing <code>Attributes</code>, <code>Rules</code>, or <code>ObjectTypes</code>.
/// </para>
/// </li> <li>
/// <para>
/// Deletes existing <code>Attributes</code>, <code>Rules</code>, or <code>ObjectTypes</code>.
/// </para>
/// </li> </ol>
/// </summary>
public partial class UpdateFacetRequest : AmazonCloudDirectoryRequest
{
private List<FacetAttributeUpdate> _attributeUpdates = new List<FacetAttributeUpdate>();
private string _name;
private ObjectType _objectType;
private string _schemaArn;
/// <summary>
/// Gets and sets the property AttributeUpdates.
/// <para>
/// List of attributes that need to be updated in a given schema <a>Facet</a>. Each attribute
/// is followed by <code>AttributeAction</code>, which specifies the type of update operation
/// to perform.
/// </para>
/// </summary>
public List<FacetAttributeUpdate> AttributeUpdates
{
get { return this._attributeUpdates; }
set { this._attributeUpdates = value; }
}
// Check to see if AttributeUpdates property is set
internal bool IsSetAttributeUpdates()
{
return this._attributeUpdates != null && this._attributeUpdates.Count > 0;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the facet.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=64)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property ObjectType.
/// <para>
/// The object type that is associated with the facet. See <a>CreateFacetRequest$ObjectType</a>
/// for more details.
/// </para>
/// </summary>
public ObjectType ObjectType
{
get { return this._objectType; }
set { this._objectType = value; }
}
// Check to see if ObjectType property is set
internal bool IsSetObjectType()
{
return this._objectType != null;
}
/// <summary>
/// Gets and sets the property SchemaArn.
/// <para>
/// The Amazon Resource Name (ARN) that is associated with the <a>Facet</a>. For more
/// information, see <a>arns</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SchemaArn
{
get { return this._schemaArn; }
set { this._schemaArn = value; }
}
// Check to see if SchemaArn property is set
internal bool IsSetSchemaArn()
{
return this._schemaArn != null;
}
}
}
| 135 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the UpdateFacet operation.
/// </summary>
public partial class UpdateFacetResponse : 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the UpdateLinkAttributes operation.
/// Updates a given typed link’s attributes. Attributes to be updated must not contribute
/// to the typed link’s identity, as defined by its <code>IdentityAttributeOrder</code>.
/// </summary>
public partial class UpdateLinkAttributesRequest : AmazonCloudDirectoryRequest
{
private List<LinkAttributeUpdate> _attributeUpdates = new List<LinkAttributeUpdate>();
private string _directoryArn;
private TypedLinkSpecifier _typedLinkSpecifier;
/// <summary>
/// Gets and sets the property AttributeUpdates.
/// <para>
/// The attributes update structure.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<LinkAttributeUpdate> AttributeUpdates
{
get { return this._attributeUpdates; }
set { this._attributeUpdates = value; }
}
// Check to see if AttributeUpdates property is set
internal bool IsSetAttributeUpdates()
{
return this._attributeUpdates != null && this._attributeUpdates.Count > 0;
}
/// <summary>
/// Gets and sets the property DirectoryArn.
/// <para>
/// The Amazon Resource Name (ARN) that is associated with the Directory where the updated
/// typed link resides. For more information, see <a>arns</a> or <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink">Typed
/// Links</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DirectoryArn
{
get { return this._directoryArn; }
set { this._directoryArn = value; }
}
// Check to see if DirectoryArn property is set
internal bool IsSetDirectoryArn()
{
return this._directoryArn != null;
}
/// <summary>
/// Gets and sets the property TypedLinkSpecifier.
/// <para>
/// Allows a typed link specifier to be accepted as input.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public TypedLinkSpecifier TypedLinkSpecifier
{
get { return this._typedLinkSpecifier; }
set { this._typedLinkSpecifier = value; }
}
// Check to see if TypedLinkSpecifier property is set
internal bool IsSetTypedLinkSpecifier()
{
return this._typedLinkSpecifier != null;
}
}
}
| 102 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the UpdateLinkAttributes operation.
/// </summary>
public partial class UpdateLinkAttributesResponse : 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the UpdateObjectAttributes operation.
/// Updates a given object's attributes.
/// </summary>
public partial class UpdateObjectAttributesRequest : AmazonCloudDirectoryRequest
{
private List<ObjectAttributeUpdate> _attributeUpdates = new List<ObjectAttributeUpdate>();
private string _directoryArn;
private ObjectReference _objectReference;
/// <summary>
/// Gets and sets the property AttributeUpdates.
/// <para>
/// The attributes update structure.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<ObjectAttributeUpdate> AttributeUpdates
{
get { return this._attributeUpdates; }
set { this._attributeUpdates = value; }
}
// Check to see if AttributeUpdates property is set
internal bool IsSetAttributeUpdates()
{
return this._attributeUpdates != null && this._attributeUpdates.Count > 0;
}
/// <summary>
/// Gets and sets the property DirectoryArn.
/// <para>
/// The Amazon Resource Name (ARN) that is associated with the <a>Directory</a> where
/// the object resides. For more information, see <a>arns</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DirectoryArn
{
get { return this._directoryArn; }
set { this._directoryArn = value; }
}
// Check to see if DirectoryArn property is set
internal bool IsSetDirectoryArn()
{
return this._directoryArn != null;
}
/// <summary>
/// Gets and sets the property ObjectReference.
/// <para>
/// The reference that identifies the object.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ObjectReference ObjectReference
{
get { return this._objectReference; }
set { this._objectReference = value; }
}
// Check to see if ObjectReference property is set
internal bool IsSetObjectReference()
{
return this._objectReference != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the UpdateObjectAttributes operation.
/// </summary>
public partial class UpdateObjectAttributesResponse : AmazonWebServiceResponse
{
private string _objectIdentifier;
/// <summary>
/// Gets and sets the property ObjectIdentifier.
/// <para>
/// The <code>ObjectIdentifier</code> of the updated object.
/// </para>
/// </summary>
public string ObjectIdentifier
{
get { return this._objectIdentifier; }
set { this._objectIdentifier = value; }
}
// Check to see if ObjectIdentifier property is set
internal bool IsSetObjectIdentifier()
{
return this._objectIdentifier != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the UpdateSchema operation.
/// Updates the schema name with a new name. Only development schema names can be updated.
/// </summary>
public partial class UpdateSchemaRequest : AmazonCloudDirectoryRequest
{
private string _name;
private string _schemaArn;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the schema.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=32)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property SchemaArn.
/// <para>
/// The Amazon Resource Name (ARN) of the development schema. For more information, see
/// <a>arns</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SchemaArn
{
get { return this._schemaArn; }
set { this._schemaArn = value; }
}
// Check to see if SchemaArn property is set
internal bool IsSetSchemaArn()
{
return this._schemaArn != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the UpdateSchema operation.
/// </summary>
public partial class UpdateSchemaResponse : AmazonWebServiceResponse
{
private string _schemaArn;
/// <summary>
/// Gets and sets the property SchemaArn.
/// <para>
/// The ARN that is associated with the updated schema. For more information, see <a>arns</a>.
/// </para>
/// </summary>
public string SchemaArn
{
get { return this._schemaArn; }
set { this._schemaArn = value; }
}
// Check to see if SchemaArn property is set
internal bool IsSetSchemaArn()
{
return this._schemaArn != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the UpdateTypedLinkFacet operation.
/// Updates a <a>TypedLinkFacet</a>. For more information, see <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink">Typed
/// Links</a>.
/// </summary>
public partial class UpdateTypedLinkFacetRequest : AmazonCloudDirectoryRequest
{
private List<TypedLinkFacetAttributeUpdate> _attributeUpdates = new List<TypedLinkFacetAttributeUpdate>();
private List<string> _identityAttributeOrder = new List<string>();
private string _name;
private string _schemaArn;
/// <summary>
/// Gets and sets the property AttributeUpdates.
/// <para>
/// Attributes update structure.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<TypedLinkFacetAttributeUpdate> AttributeUpdates
{
get { return this._attributeUpdates; }
set { this._attributeUpdates = value; }
}
// Check to see if AttributeUpdates property is set
internal bool IsSetAttributeUpdates()
{
return this._attributeUpdates != null && this._attributeUpdates.Count > 0;
}
/// <summary>
/// Gets and sets the property IdentityAttributeOrder.
/// <para>
/// The order of identity attributes for the facet, from most significant to least significant.
/// The ability to filter typed links considers the order that the attributes are defined
/// on the typed link facet. When providing ranges to a typed link selection, any inexact
/// ranges must be specified at the end. Any attributes that do not have a range specified
/// are presumed to match the entire range. Filters are interpreted in the order of the
/// attributes on the typed link facet, not the order in which they are supplied to any
/// API calls. For more information about identity attributes, see <a href="https://docs.aws.amazon.com/clouddirectory/latest/developerguide/directory_objects_links.html#directory_objects_links_typedlink">Typed
/// Links</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<string> IdentityAttributeOrder
{
get { return this._identityAttributeOrder; }
set { this._identityAttributeOrder = value; }
}
// Check to see if IdentityAttributeOrder property is set
internal bool IsSetIdentityAttributeOrder()
{
return this._identityAttributeOrder != null && this._identityAttributeOrder.Count > 0;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The unique name of the typed link facet.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property SchemaArn.
/// <para>
/// The Amazon Resource Name (ARN) that is associated with the schema. For more information,
/// see <a>arns</a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SchemaArn
{
get { return this._schemaArn; }
set { this._schemaArn = value; }
}
// Check to see if SchemaArn property is set
internal bool IsSetSchemaArn()
{
return this._schemaArn != null;
}
}
}
| 128 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the UpdateTypedLinkFacet operation.
/// </summary>
public partial class UpdateTypedLinkFacetResponse : 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the UpgradeAppliedSchema operation.
/// Upgrades a single directory in-place using the <code>PublishedSchemaArn</code> with
/// schema updates found in <code>MinorVersion</code>. Backwards-compatible minor version
/// upgrades are instantaneously available for readers on all objects in the directory.
/// Note: This is a synchronous API call and upgrades only one schema on a given directory
/// per call. To upgrade multiple directories from one schema, you would need to call
/// this API on each directory.
/// </summary>
public partial class UpgradeAppliedSchemaRequest : AmazonCloudDirectoryRequest
{
private string _directoryArn;
private bool? _dryRun;
private string _publishedSchemaArn;
/// <summary>
/// Gets and sets the property DirectoryArn.
/// <para>
/// The ARN for the directory to which the upgraded schema will be applied.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DirectoryArn
{
get { return this._directoryArn; }
set { this._directoryArn = value; }
}
// Check to see if DirectoryArn property is set
internal bool IsSetDirectoryArn()
{
return this._directoryArn != null;
}
/// <summary>
/// Gets and sets the property DryRun.
/// <para>
/// Used for testing whether the major version schemas are backward compatible or not.
/// If schema compatibility fails, an exception would be thrown else the call would succeed
/// but no changes will be saved. This parameter is optional.
/// </para>
/// </summary>
public bool DryRun
{
get { return this._dryRun.GetValueOrDefault(); }
set { this._dryRun = value; }
}
// Check to see if DryRun property is set
internal bool IsSetDryRun()
{
return this._dryRun.HasValue;
}
/// <summary>
/// Gets and sets the property PublishedSchemaArn.
/// <para>
/// The revision of the published schema to upgrade the directory to.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string PublishedSchemaArn
{
get { return this._publishedSchemaArn; }
set { this._publishedSchemaArn = value; }
}
// Check to see if PublishedSchemaArn property is set
internal bool IsSetPublishedSchemaArn()
{
return this._publishedSchemaArn != null;
}
}
}
| 105 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the UpgradeAppliedSchema operation.
/// </summary>
public partial class UpgradeAppliedSchemaResponse : AmazonWebServiceResponse
{
private string _directoryArn;
private string _upgradedSchemaArn;
/// <summary>
/// Gets and sets the property DirectoryArn.
/// <para>
/// The ARN of the directory that is returned as part of the response.
/// </para>
/// </summary>
public string DirectoryArn
{
get { return this._directoryArn; }
set { this._directoryArn = value; }
}
// Check to see if DirectoryArn property is set
internal bool IsSetDirectoryArn()
{
return this._directoryArn != null;
}
/// <summary>
/// Gets and sets the property UpgradedSchemaArn.
/// <para>
/// The ARN of the upgraded schema that is returned as part of the response.
/// </para>
/// </summary>
public string UpgradedSchemaArn
{
get { return this._upgradedSchemaArn; }
set { this._upgradedSchemaArn = value; }
}
// Check to see if UpgradedSchemaArn property is set
internal bool IsSetUpgradedSchemaArn()
{
return this._upgradedSchemaArn != null;
}
}
}
| 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Container for the parameters to the UpgradePublishedSchema operation.
/// Upgrades a published schema under a new minor version revision using the current contents
/// of <code>DevelopmentSchemaArn</code>.
/// </summary>
public partial class UpgradePublishedSchemaRequest : AmazonCloudDirectoryRequest
{
private string _developmentSchemaArn;
private bool? _dryRun;
private string _minorVersion;
private string _publishedSchemaArn;
/// <summary>
/// Gets and sets the property DevelopmentSchemaArn.
/// <para>
/// The ARN of the development schema with the changes used for the upgrade.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DevelopmentSchemaArn
{
get { return this._developmentSchemaArn; }
set { this._developmentSchemaArn = value; }
}
// Check to see if DevelopmentSchemaArn property is set
internal bool IsSetDevelopmentSchemaArn()
{
return this._developmentSchemaArn != null;
}
/// <summary>
/// Gets and sets the property DryRun.
/// <para>
/// Used for testing whether the Development schema provided is backwards compatible,
/// or not, with the publish schema provided by the user to be upgraded. If schema compatibility
/// fails, an exception would be thrown else the call would succeed. This parameter is
/// optional and defaults to false.
/// </para>
/// </summary>
public bool DryRun
{
get { return this._dryRun.GetValueOrDefault(); }
set { this._dryRun = value; }
}
// Check to see if DryRun property is set
internal bool IsSetDryRun()
{
return this._dryRun.HasValue;
}
/// <summary>
/// Gets and sets the property MinorVersion.
/// <para>
/// Identifies the minor version of the published schema that will be created. This parameter
/// is NOT optional.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=10)]
public string MinorVersion
{
get { return this._minorVersion; }
set { this._minorVersion = value; }
}
// Check to see if MinorVersion property is set
internal bool IsSetMinorVersion()
{
return this._minorVersion != null;
}
/// <summary>
/// Gets and sets the property PublishedSchemaArn.
/// <para>
/// The ARN of the published schema to be upgraded.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string PublishedSchemaArn
{
get { return this._publishedSchemaArn; }
set { this._publishedSchemaArn = value; }
}
// Check to see if PublishedSchemaArn property is set
internal bool IsSetPublishedSchemaArn()
{
return this._publishedSchemaArn != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// This is the response object from the UpgradePublishedSchema operation.
/// </summary>
public partial class UpgradePublishedSchemaResponse : AmazonWebServiceResponse
{
private string _upgradedSchemaArn;
/// <summary>
/// Gets and sets the property UpgradedSchemaArn.
/// <para>
/// The ARN of the upgraded schema that is returned as part of the response.
/// </para>
/// </summary>
public string UpgradedSchemaArn
{
get { return this._upgradedSchemaArn; }
set { this._upgradedSchemaArn = value; }
}
// Check to see if UpgradedSchemaArn property is set
internal bool IsSetUpgradedSchemaArn()
{
return this._upgradedSchemaArn != 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 clouddirectory-2017-01-11.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.CloudDirectory.Model
{
/// <summary>
/// Indicates that your request is malformed in some manner. See the exception message.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ValidationException : AmazonCloudDirectoryException
{
/// <summary>
/// Constructs a new ValidationException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ValidationException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ValidationException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="innerException"></param>
public ValidationException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ValidationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ValidationException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
}
| 124 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AccessDeniedException Object
/// </summary>
public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public AccessDeniedException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AccessDeniedExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// AddFacetToObject Request Marshaller
/// </summary>
public class AddFacetToObjectRequestMarshaller : IMarshaller<IRequest, AddFacetToObjectRequest> , 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((AddFacetToObjectRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AddFacetToObjectRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11";
request.HttpMethod = "PUT";
request.ResourcePath = "/amazonclouddirectory/2017-01-11/object/facets";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetObjectAttributeList())
{
context.Writer.WritePropertyName("ObjectAttributeList");
context.Writer.WriteArrayStart();
foreach(var publicRequestObjectAttributeListListValue in publicRequest.ObjectAttributeList)
{
context.Writer.WriteObjectStart();
var marshaller = AttributeKeyAndValueMarshaller.Instance;
marshaller.Marshall(publicRequestObjectAttributeListListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetObjectReference())
{
context.Writer.WritePropertyName("ObjectReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(publicRequest.ObjectReference, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetSchemaFacet())
{
context.Writer.WritePropertyName("SchemaFacet");
context.Writer.WriteObjectStart();
var marshaller = SchemaFacetMarshaller.Instance;
marshaller.Marshall(publicRequest.SchemaFacet, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
if (publicRequest.IsSetDirectoryArn())
{
request.Headers["x-amz-data-partition"] = publicRequest.DirectoryArn;
}
return request;
}
private static AddFacetToObjectRequestMarshaller _instance = new AddFacetToObjectRequestMarshaller();
internal static AddFacetToObjectRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AddFacetToObjectRequestMarshaller 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 clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AddFacetToObject operation
/// </summary>
public class AddFacetToObjectResponseUnmarshaller : 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)
{
AddFacetToObjectResponse response = new AddFacetToObjectResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("DirectoryNotEnabledException"))
{
return DirectoryNotEnabledExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("FacetValidationException"))
{
return FacetValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException"))
{
return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableConflictException"))
{
return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static AddFacetToObjectResponseUnmarshaller _instance = new AddFacetToObjectResponseUnmarshaller();
internal static AddFacetToObjectResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AddFacetToObjectResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 131 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// ApplySchema Request Marshaller
/// </summary>
public class ApplySchemaRequestMarshaller : IMarshaller<IRequest, ApplySchemaRequest> , 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((ApplySchemaRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ApplySchemaRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11";
request.HttpMethod = "PUT";
request.ResourcePath = "/amazonclouddirectory/2017-01-11/schema/apply";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetPublishedSchemaArn())
{
context.Writer.WritePropertyName("PublishedSchemaArn");
context.Writer.Write(publicRequest.PublishedSchemaArn);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
if (publicRequest.IsSetDirectoryArn())
{
request.Headers["x-amz-data-partition"] = publicRequest.DirectoryArn;
}
return request;
}
private static ApplySchemaRequestMarshaller _instance = new ApplySchemaRequestMarshaller();
internal static ApplySchemaRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ApplySchemaRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 106 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ApplySchema operation
/// </summary>
public class ApplySchemaResponseUnmarshaller : 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)
{
ApplySchemaResponse response = new ApplySchemaResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AppliedSchemaArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.AppliedSchemaArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("DirectoryArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.DirectoryArn = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException"))
{
return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidAttachmentException"))
{
return InvalidAttachmentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableConflictException"))
{
return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("SchemaAlreadyExistsException"))
{
return SchemaAlreadyExistsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ApplySchemaResponseUnmarshaller _instance = new ApplySchemaResponseUnmarshaller();
internal static ApplySchemaResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ApplySchemaResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 148 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttachObject Request Marshaller
/// </summary>
public class AttachObjectRequestMarshaller : IMarshaller<IRequest, AttachObjectRequest> , 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((AttachObjectRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AttachObjectRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11";
request.HttpMethod = "PUT";
request.ResourcePath = "/amazonclouddirectory/2017-01-11/object/attach";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetChildReference())
{
context.Writer.WritePropertyName("ChildReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(publicRequest.ChildReference, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetLinkName())
{
context.Writer.WritePropertyName("LinkName");
context.Writer.Write(publicRequest.LinkName);
}
if(publicRequest.IsSetParentReference())
{
context.Writer.WritePropertyName("ParentReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(publicRequest.ParentReference, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
if (publicRequest.IsSetDirectoryArn())
{
request.Headers["x-amz-data-partition"] = publicRequest.DirectoryArn;
}
return request;
}
private static AttachObjectRequestMarshaller _instance = new AttachObjectRequestMarshaller();
internal static AttachObjectRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachObjectRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 128 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttachObject operation
/// </summary>
public class AttachObjectResponseUnmarshaller : 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)
{
AttachObjectResponse response = new AttachObjectResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AttachedObjectIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.AttachedObjectIdentifier = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("DirectoryNotEnabledException"))
{
return DirectoryNotEnabledExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("FacetValidationException"))
{
return FacetValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException"))
{
return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidAttachmentException"))
{
return InvalidAttachmentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LinkNameAlreadyInUseException"))
{
return LinkNameAlreadyInUseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableConflictException"))
{
return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static AttachObjectResponseUnmarshaller _instance = new AttachObjectResponseUnmarshaller();
internal static AttachObjectResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachObjectResponseUnmarshaller 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 clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttachPolicy Request Marshaller
/// </summary>
public class AttachPolicyRequestMarshaller : IMarshaller<IRequest, AttachPolicyRequest> , 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((AttachPolicyRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AttachPolicyRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11";
request.HttpMethod = "PUT";
request.ResourcePath = "/amazonclouddirectory/2017-01-11/policy/attach";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetObjectReference())
{
context.Writer.WritePropertyName("ObjectReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(publicRequest.ObjectReference, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetPolicyReference())
{
context.Writer.WritePropertyName("PolicyReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(publicRequest.PolicyReference, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
if (publicRequest.IsSetDirectoryArn())
{
request.Headers["x-amz-data-partition"] = publicRequest.DirectoryArn;
}
return request;
}
private static AttachPolicyRequestMarshaller _instance = new AttachPolicyRequestMarshaller();
internal static AttachPolicyRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachPolicyRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 122 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttachPolicy operation
/// </summary>
public class AttachPolicyResponseUnmarshaller : 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)
{
AttachPolicyResponse response = new AttachPolicyResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("DirectoryNotEnabledException"))
{
return DirectoryNotEnabledExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException"))
{
return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("NotPolicyException"))
{
return NotPolicyExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableConflictException"))
{
return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static AttachPolicyResponseUnmarshaller _instance = new AttachPolicyResponseUnmarshaller();
internal static AttachPolicyResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachPolicyResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 131 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttachToIndex Request Marshaller
/// </summary>
public class AttachToIndexRequestMarshaller : IMarshaller<IRequest, AttachToIndexRequest> , 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((AttachToIndexRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AttachToIndexRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11";
request.HttpMethod = "PUT";
request.ResourcePath = "/amazonclouddirectory/2017-01-11/index/attach";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetIndexReference())
{
context.Writer.WritePropertyName("IndexReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(publicRequest.IndexReference, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetTargetReference())
{
context.Writer.WritePropertyName("TargetReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(publicRequest.TargetReference, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
if (publicRequest.IsSetDirectoryArn())
{
request.Headers["x-amz-data-partition"] = publicRequest.DirectoryArn;
}
return request;
}
private static AttachToIndexRequestMarshaller _instance = new AttachToIndexRequestMarshaller();
internal static AttachToIndexRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachToIndexRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 122 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttachToIndex operation
/// </summary>
public class AttachToIndexResponseUnmarshaller : 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)
{
AttachToIndexResponse response = new AttachToIndexResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AttachedObjectIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.AttachedObjectIdentifier = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("DirectoryNotEnabledException"))
{
return DirectoryNotEnabledExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("IndexedAttributeMissingException"))
{
return IndexedAttributeMissingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException"))
{
return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidAttachmentException"))
{
return InvalidAttachmentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LinkNameAlreadyInUseException"))
{
return LinkNameAlreadyInUseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("NotIndexException"))
{
return NotIndexExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableConflictException"))
{
return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static AttachToIndexResponseUnmarshaller _instance = new AttachToIndexResponseUnmarshaller();
internal static AttachToIndexResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachToIndexResponseUnmarshaller 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 clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttachTypedLink Request Marshaller
/// </summary>
public class AttachTypedLinkRequestMarshaller : IMarshaller<IRequest, AttachTypedLinkRequest> , 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((AttachTypedLinkRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(AttachTypedLinkRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.CloudDirectory");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2017-01-11";
request.HttpMethod = "PUT";
request.ResourcePath = "/amazonclouddirectory/2017-01-11/typedlink/attach";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAttributes())
{
context.Writer.WritePropertyName("Attributes");
context.Writer.WriteArrayStart();
foreach(var publicRequestAttributesListValue in publicRequest.Attributes)
{
context.Writer.WriteObjectStart();
var marshaller = AttributeNameAndValueMarshaller.Instance;
marshaller.Marshall(publicRequestAttributesListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetSourceObjectReference())
{
context.Writer.WritePropertyName("SourceObjectReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(publicRequest.SourceObjectReference, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetTargetObjectReference())
{
context.Writer.WritePropertyName("TargetObjectReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(publicRequest.TargetObjectReference, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetTypedLinkFacet())
{
context.Writer.WritePropertyName("TypedLinkFacet");
context.Writer.WriteObjectStart();
var marshaller = TypedLinkSchemaAndFacetNameMarshaller.Instance;
marshaller.Marshall(publicRequest.TypedLinkFacet, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
if (publicRequest.IsSetDirectoryArn())
{
request.Headers["x-amz-data-partition"] = publicRequest.DirectoryArn;
}
return request;
}
private static AttachTypedLinkRequestMarshaller _instance = new AttachTypedLinkRequestMarshaller();
internal static AttachTypedLinkRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachTypedLinkRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 149 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttachTypedLink operation
/// </summary>
public class AttachTypedLinkResponseUnmarshaller : 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)
{
AttachTypedLinkResponse response = new AttachTypedLinkResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("TypedLinkSpecifier", targetDepth))
{
var unmarshaller = TypedLinkSpecifierUnmarshaller.Instance;
response.TypedLinkSpecifier = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("DirectoryNotEnabledException"))
{
return DirectoryNotEnabledExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("FacetValidationException"))
{
return FacetValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServiceException"))
{
return InternalServiceExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException"))
{
return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidAttachmentException"))
{
return InvalidAttachmentExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException"))
{
return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("RetryableConflictException"))
{
return RetryableConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonCloudDirectoryException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static AttachTypedLinkResponseUnmarshaller _instance = new AttachTypedLinkResponseUnmarshaller();
internal static AttachTypedLinkResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttachTypedLinkResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 146 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttributeKeyAndValue Marshaller
/// </summary>
public class AttributeKeyAndValueMarshaller : IRequestMarshaller<AttributeKeyAndValue, 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(AttributeKeyAndValue requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetKey())
{
context.Writer.WritePropertyName("Key");
context.Writer.WriteObjectStart();
var marshaller = AttributeKeyMarshaller.Instance;
marshaller.Marshall(requestObject.Key, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetValue())
{
context.Writer.WritePropertyName("Value");
context.Writer.WriteObjectStart();
var marshaller = TypedAttributeValueMarshaller.Instance;
marshaller.Marshall(requestObject.Value, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static AttributeKeyAndValueMarshaller Instance = new AttributeKeyAndValueMarshaller();
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttributeKeyAndValue Object
/// </summary>
public class AttributeKeyAndValueUnmarshaller : IUnmarshaller<AttributeKeyAndValue, XmlUnmarshallerContext>, IUnmarshaller<AttributeKeyAndValue, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AttributeKeyAndValue IUnmarshaller<AttributeKeyAndValue, 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 AttributeKeyAndValue Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AttributeKeyAndValue unmarshalledObject = new AttributeKeyAndValue();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("Key", targetDepth))
{
var unmarshaller = AttributeKeyUnmarshaller.Instance;
unmarshalledObject.Key = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Value", targetDepth))
{
var unmarshaller = TypedAttributeValueUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AttributeKeyAndValueUnmarshaller _instance = new AttributeKeyAndValueUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttributeKeyAndValueUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttributeKey Marshaller
/// </summary>
public class AttributeKeyMarshaller : IRequestMarshaller<AttributeKey, 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(AttributeKey requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetFacetName())
{
context.Writer.WritePropertyName("FacetName");
context.Writer.Write(requestObject.FacetName);
}
if(requestObject.IsSetName())
{
context.Writer.WritePropertyName("Name");
context.Writer.Write(requestObject.Name);
}
if(requestObject.IsSetSchemaArn())
{
context.Writer.WritePropertyName("SchemaArn");
context.Writer.Write(requestObject.SchemaArn);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static AttributeKeyMarshaller Instance = new AttributeKeyMarshaller();
}
}
| 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 clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttributeKey Object
/// </summary>
public class AttributeKeyUnmarshaller : IUnmarshaller<AttributeKey, XmlUnmarshallerContext>, IUnmarshaller<AttributeKey, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AttributeKey IUnmarshaller<AttributeKey, 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 AttributeKey Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AttributeKey unmarshalledObject = new AttributeKey();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("FacetName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.FacetName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("SchemaArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SchemaArn = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AttributeKeyUnmarshaller _instance = new AttributeKeyUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttributeKeyUnmarshaller 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 clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// AttributeNameAndValue Marshaller
/// </summary>
public class AttributeNameAndValueMarshaller : IRequestMarshaller<AttributeNameAndValue, 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(AttributeNameAndValue requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAttributeName())
{
context.Writer.WritePropertyName("AttributeName");
context.Writer.Write(requestObject.AttributeName);
}
if(requestObject.IsSetValue())
{
context.Writer.WritePropertyName("Value");
context.Writer.WriteObjectStart();
var marshaller = TypedAttributeValueMarshaller.Instance;
marshaller.Marshall(requestObject.Value, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static AttributeNameAndValueMarshaller Instance = new AttributeNameAndValueMarshaller();
}
}
| 73 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AttributeNameAndValue Object
/// </summary>
public class AttributeNameAndValueUnmarshaller : IUnmarshaller<AttributeNameAndValue, XmlUnmarshallerContext>, IUnmarshaller<AttributeNameAndValue, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AttributeNameAndValue IUnmarshaller<AttributeNameAndValue, 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 AttributeNameAndValue Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AttributeNameAndValue unmarshalledObject = new AttributeNameAndValue();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AttributeName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AttributeName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("Value", targetDepth))
{
var unmarshaller = TypedAttributeValueUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AttributeNameAndValueUnmarshaller _instance = new AttributeNameAndValueUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AttributeNameAndValueUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchAddFacetToObject Marshaller
/// </summary>
public class BatchAddFacetToObjectMarshaller : IRequestMarshaller<BatchAddFacetToObject, 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(BatchAddFacetToObject requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetObjectAttributeList())
{
context.Writer.WritePropertyName("ObjectAttributeList");
context.Writer.WriteArrayStart();
foreach(var requestObjectObjectAttributeListListValue in requestObject.ObjectAttributeList)
{
context.Writer.WriteObjectStart();
var marshaller = AttributeKeyAndValueMarshaller.Instance;
marshaller.Marshall(requestObjectObjectAttributeListListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetObjectReference())
{
context.Writer.WritePropertyName("ObjectReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.ObjectReference, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetSchemaFacet())
{
context.Writer.WritePropertyName("SchemaFacet");
context.Writer.WriteObjectStart();
var marshaller = SchemaFacetMarshaller.Instance;
marshaller.Marshall(requestObject.SchemaFacet, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BatchAddFacetToObjectMarshaller Instance = new BatchAddFacetToObjectMarshaller();
}
}
| 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 clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchAddFacetToObjectResponse Object
/// </summary>
public class BatchAddFacetToObjectResponseUnmarshaller : IUnmarshaller<BatchAddFacetToObjectResponse, XmlUnmarshallerContext>, IUnmarshaller<BatchAddFacetToObjectResponse, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchAddFacetToObjectResponse IUnmarshaller<BatchAddFacetToObjectResponse, 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 BatchAddFacetToObjectResponse Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchAddFacetToObjectResponse unmarshalledObject = new BatchAddFacetToObjectResponse();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static BatchAddFacetToObjectResponseUnmarshaller _instance = new BatchAddFacetToObjectResponseUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchAddFacetToObjectResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 86 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchAttachObject Marshaller
/// </summary>
public class BatchAttachObjectMarshaller : IRequestMarshaller<BatchAttachObject, 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(BatchAttachObject requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetChildReference())
{
context.Writer.WritePropertyName("ChildReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.ChildReference, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetLinkName())
{
context.Writer.WritePropertyName("LinkName");
context.Writer.Write(requestObject.LinkName);
}
if(requestObject.IsSetParentReference())
{
context.Writer.WritePropertyName("ParentReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.ParentReference, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BatchAttachObjectMarshaller Instance = new BatchAttachObjectMarshaller();
}
}
| 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 clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchAttachObjectResponse Object
/// </summary>
public class BatchAttachObjectResponseUnmarshaller : IUnmarshaller<BatchAttachObjectResponse, XmlUnmarshallerContext>, IUnmarshaller<BatchAttachObjectResponse, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchAttachObjectResponse IUnmarshaller<BatchAttachObjectResponse, 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 BatchAttachObjectResponse Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchAttachObjectResponse unmarshalledObject = new BatchAttachObjectResponse();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("attachedObjectIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AttachedObjectIdentifier = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BatchAttachObjectResponseUnmarshaller _instance = new BatchAttachObjectResponseUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchAttachObjectResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchAttachPolicy Marshaller
/// </summary>
public class BatchAttachPolicyMarshaller : IRequestMarshaller<BatchAttachPolicy, 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(BatchAttachPolicy requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetObjectReference())
{
context.Writer.WritePropertyName("ObjectReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.ObjectReference, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetPolicyReference())
{
context.Writer.WritePropertyName("PolicyReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.PolicyReference, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BatchAttachPolicyMarshaller Instance = new BatchAttachPolicyMarshaller();
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchAttachPolicyResponse Object
/// </summary>
public class BatchAttachPolicyResponseUnmarshaller : IUnmarshaller<BatchAttachPolicyResponse, XmlUnmarshallerContext>, IUnmarshaller<BatchAttachPolicyResponse, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchAttachPolicyResponse IUnmarshaller<BatchAttachPolicyResponse, 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 BatchAttachPolicyResponse Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchAttachPolicyResponse unmarshalledObject = new BatchAttachPolicyResponse();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static BatchAttachPolicyResponseUnmarshaller _instance = new BatchAttachPolicyResponseUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchAttachPolicyResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 86 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchAttachToIndex Marshaller
/// </summary>
public class BatchAttachToIndexMarshaller : IRequestMarshaller<BatchAttachToIndex, 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(BatchAttachToIndex requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetIndexReference())
{
context.Writer.WritePropertyName("IndexReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.IndexReference, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetTargetReference())
{
context.Writer.WritePropertyName("TargetReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.TargetReference, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BatchAttachToIndexMarshaller Instance = new BatchAttachToIndexMarshaller();
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchAttachToIndexResponse Object
/// </summary>
public class BatchAttachToIndexResponseUnmarshaller : IUnmarshaller<BatchAttachToIndexResponse, XmlUnmarshallerContext>, IUnmarshaller<BatchAttachToIndexResponse, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchAttachToIndexResponse IUnmarshaller<BatchAttachToIndexResponse, 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 BatchAttachToIndexResponse Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchAttachToIndexResponse unmarshalledObject = new BatchAttachToIndexResponse();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("AttachedObjectIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AttachedObjectIdentifier = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BatchAttachToIndexResponseUnmarshaller _instance = new BatchAttachToIndexResponseUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchAttachToIndexResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchAttachTypedLink Marshaller
/// </summary>
public class BatchAttachTypedLinkMarshaller : IRequestMarshaller<BatchAttachTypedLink, 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(BatchAttachTypedLink requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAttributes())
{
context.Writer.WritePropertyName("Attributes");
context.Writer.WriteArrayStart();
foreach(var requestObjectAttributesListValue in requestObject.Attributes)
{
context.Writer.WriteObjectStart();
var marshaller = AttributeNameAndValueMarshaller.Instance;
marshaller.Marshall(requestObjectAttributesListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetSourceObjectReference())
{
context.Writer.WritePropertyName("SourceObjectReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.SourceObjectReference, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetTargetObjectReference())
{
context.Writer.WritePropertyName("TargetObjectReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.TargetObjectReference, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetTypedLinkFacet())
{
context.Writer.WritePropertyName("TypedLinkFacet");
context.Writer.WriteObjectStart();
var marshaller = TypedLinkSchemaAndFacetNameMarshaller.Instance;
marshaller.Marshall(requestObject.TypedLinkFacet, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BatchAttachTypedLinkMarshaller Instance = new BatchAttachTypedLinkMarshaller();
}
}
| 105 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchAttachTypedLinkResponse Object
/// </summary>
public class BatchAttachTypedLinkResponseUnmarshaller : IUnmarshaller<BatchAttachTypedLinkResponse, XmlUnmarshallerContext>, IUnmarshaller<BatchAttachTypedLinkResponse, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchAttachTypedLinkResponse IUnmarshaller<BatchAttachTypedLinkResponse, 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 BatchAttachTypedLinkResponse Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchAttachTypedLinkResponse unmarshalledObject = new BatchAttachTypedLinkResponse();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("TypedLinkSpecifier", targetDepth))
{
var unmarshaller = TypedLinkSpecifierUnmarshaller.Instance;
unmarshalledObject.TypedLinkSpecifier = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BatchAttachTypedLinkResponseUnmarshaller _instance = new BatchAttachTypedLinkResponseUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchAttachTypedLinkResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchCreateIndex Marshaller
/// </summary>
public class BatchCreateIndexMarshaller : IRequestMarshaller<BatchCreateIndex, 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(BatchCreateIndex requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBatchReferenceName())
{
context.Writer.WritePropertyName("BatchReferenceName");
context.Writer.Write(requestObject.BatchReferenceName);
}
if(requestObject.IsSetIsUnique())
{
context.Writer.WritePropertyName("IsUnique");
context.Writer.Write(requestObject.IsUnique);
}
if(requestObject.IsSetLinkName())
{
context.Writer.WritePropertyName("LinkName");
context.Writer.Write(requestObject.LinkName);
}
if(requestObject.IsSetOrderedIndexedAttributeList())
{
context.Writer.WritePropertyName("OrderedIndexedAttributeList");
context.Writer.WriteArrayStart();
foreach(var requestObjectOrderedIndexedAttributeListListValue in requestObject.OrderedIndexedAttributeList)
{
context.Writer.WriteObjectStart();
var marshaller = AttributeKeyMarshaller.Instance;
marshaller.Marshall(requestObjectOrderedIndexedAttributeListListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetParentReference())
{
context.Writer.WritePropertyName("ParentReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.ParentReference, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BatchCreateIndexMarshaller Instance = new BatchCreateIndexMarshaller();
}
}
| 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 clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchCreateIndexResponse Object
/// </summary>
public class BatchCreateIndexResponseUnmarshaller : IUnmarshaller<BatchCreateIndexResponse, XmlUnmarshallerContext>, IUnmarshaller<BatchCreateIndexResponse, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchCreateIndexResponse IUnmarshaller<BatchCreateIndexResponse, 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 BatchCreateIndexResponse Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchCreateIndexResponse unmarshalledObject = new BatchCreateIndexResponse();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ObjectIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ObjectIdentifier = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BatchCreateIndexResponseUnmarshaller _instance = new BatchCreateIndexResponseUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchCreateIndexResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchCreateObject Marshaller
/// </summary>
public class BatchCreateObjectMarshaller : IRequestMarshaller<BatchCreateObject, 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(BatchCreateObject requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBatchReferenceName())
{
context.Writer.WritePropertyName("BatchReferenceName");
context.Writer.Write(requestObject.BatchReferenceName);
}
if(requestObject.IsSetLinkName())
{
context.Writer.WritePropertyName("LinkName");
context.Writer.Write(requestObject.LinkName);
}
if(requestObject.IsSetObjectAttributeList())
{
context.Writer.WritePropertyName("ObjectAttributeList");
context.Writer.WriteArrayStart();
foreach(var requestObjectObjectAttributeListListValue in requestObject.ObjectAttributeList)
{
context.Writer.WriteObjectStart();
var marshaller = AttributeKeyAndValueMarshaller.Instance;
marshaller.Marshall(requestObjectObjectAttributeListListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetParentReference())
{
context.Writer.WritePropertyName("ParentReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.ParentReference, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetSchemaFacet())
{
context.Writer.WritePropertyName("SchemaFacet");
context.Writer.WriteArrayStart();
foreach(var requestObjectSchemaFacetListValue in requestObject.SchemaFacet)
{
context.Writer.WriteObjectStart();
var marshaller = SchemaFacetMarshaller.Instance;
marshaller.Marshall(requestObjectSchemaFacetListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BatchCreateObjectMarshaller Instance = new BatchCreateObjectMarshaller();
}
}
| 111 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchCreateObjectResponse Object
/// </summary>
public class BatchCreateObjectResponseUnmarshaller : IUnmarshaller<BatchCreateObjectResponse, XmlUnmarshallerContext>, IUnmarshaller<BatchCreateObjectResponse, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchCreateObjectResponse IUnmarshaller<BatchCreateObjectResponse, 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 BatchCreateObjectResponse Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchCreateObjectResponse unmarshalledObject = new BatchCreateObjectResponse();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ObjectIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ObjectIdentifier = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BatchCreateObjectResponseUnmarshaller _instance = new BatchCreateObjectResponseUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchCreateObjectResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchDeleteObject Marshaller
/// </summary>
public class BatchDeleteObjectMarshaller : IRequestMarshaller<BatchDeleteObject, 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(BatchDeleteObject requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetObjectReference())
{
context.Writer.WritePropertyName("ObjectReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.ObjectReference, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BatchDeleteObjectMarshaller Instance = new BatchDeleteObjectMarshaller();
}
}
| 67 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchDeleteObjectResponse Object
/// </summary>
public class BatchDeleteObjectResponseUnmarshaller : IUnmarshaller<BatchDeleteObjectResponse, XmlUnmarshallerContext>, IUnmarshaller<BatchDeleteObjectResponse, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchDeleteObjectResponse IUnmarshaller<BatchDeleteObjectResponse, 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 BatchDeleteObjectResponse Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchDeleteObjectResponse unmarshalledObject = new BatchDeleteObjectResponse();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static BatchDeleteObjectResponseUnmarshaller _instance = new BatchDeleteObjectResponseUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchDeleteObjectResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 86 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchDetachFromIndex Marshaller
/// </summary>
public class BatchDetachFromIndexMarshaller : IRequestMarshaller<BatchDetachFromIndex, 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(BatchDetachFromIndex requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetIndexReference())
{
context.Writer.WritePropertyName("IndexReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.IndexReference, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetTargetReference())
{
context.Writer.WritePropertyName("TargetReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.TargetReference, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BatchDetachFromIndexMarshaller Instance = new BatchDetachFromIndexMarshaller();
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchDetachFromIndexResponse Object
/// </summary>
public class BatchDetachFromIndexResponseUnmarshaller : IUnmarshaller<BatchDetachFromIndexResponse, XmlUnmarshallerContext>, IUnmarshaller<BatchDetachFromIndexResponse, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchDetachFromIndexResponse IUnmarshaller<BatchDetachFromIndexResponse, 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 BatchDetachFromIndexResponse Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchDetachFromIndexResponse unmarshalledObject = new BatchDetachFromIndexResponse();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("DetachedObjectIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DetachedObjectIdentifier = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BatchDetachFromIndexResponseUnmarshaller _instance = new BatchDetachFromIndexResponseUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchDetachFromIndexResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchDetachObject Marshaller
/// </summary>
public class BatchDetachObjectMarshaller : IRequestMarshaller<BatchDetachObject, 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(BatchDetachObject requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBatchReferenceName())
{
context.Writer.WritePropertyName("BatchReferenceName");
context.Writer.Write(requestObject.BatchReferenceName);
}
if(requestObject.IsSetLinkName())
{
context.Writer.WritePropertyName("LinkName");
context.Writer.Write(requestObject.LinkName);
}
if(requestObject.IsSetParentReference())
{
context.Writer.WritePropertyName("ParentReference");
context.Writer.WriteObjectStart();
var marshaller = ObjectReferenceMarshaller.Instance;
marshaller.Marshall(requestObject.ParentReference, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static BatchDetachObjectMarshaller Instance = new BatchDetachObjectMarshaller();
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the clouddirectory-2017-01-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.CloudDirectory.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.CloudDirectory.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchDetachObjectResponse Object
/// </summary>
public class BatchDetachObjectResponseUnmarshaller : IUnmarshaller<BatchDetachObjectResponse, XmlUnmarshallerContext>, IUnmarshaller<BatchDetachObjectResponse, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
BatchDetachObjectResponse IUnmarshaller<BatchDetachObjectResponse, 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 BatchDetachObjectResponse Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
BatchDetachObjectResponse unmarshalledObject = new BatchDetachObjectResponse();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("detachedObjectIdentifier", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.DetachedObjectIdentifier = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static BatchDetachObjectResponseUnmarshaller _instance = new BatchDetachObjectResponseUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchDetachObjectResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.