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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the CreateIngestion operation.
/// </summary>
public partial class CreateIngestionResponse : AmazonWebServiceResponse
{
private Ingestion _ingestion;
/// <summary>
/// Gets and sets the property Ingestion.
/// <para>
/// Contains information about an ingestion.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Ingestion Ingestion
{
get { return this._ingestion; }
set { this._ingestion = value; }
}
// Check to see if Ingestion property is set
internal bool IsSetIngestion()
{
return this._ingestion != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains credential information for an application.
/// </summary>
public partial class Credential
{
private ApiKeyCredential _apiKeyCredential;
private Oauth2Credential _oauth2Credential;
/// <summary>
/// Gets and sets the property ApiKeyCredential.
/// <para>
/// Contains API key credential information.
/// </para>
/// </summary>
public ApiKeyCredential ApiKeyCredential
{
get { return this._apiKeyCredential; }
set { this._apiKeyCredential = value; }
}
// Check to see if ApiKeyCredential property is set
internal bool IsSetApiKeyCredential()
{
return this._apiKeyCredential != null;
}
/// <summary>
/// Gets and sets the property Oauth2Credential.
/// <para>
/// Contains OAuth2 client credential information.
/// </para>
/// </summary>
public Oauth2Credential Oauth2Credential
{
get { return this._oauth2Credential; }
set { this._oauth2Credential = value; }
}
// Check to see if Oauth2Credential property is set
internal bool IsSetOauth2Credential()
{
return this._oauth2Credential != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the DeleteAppAuthorization operation.
/// Deletes an app authorization. You must delete the associated ingestion before you
/// can delete an app authorization.
/// </summary>
public partial class DeleteAppAuthorizationRequest : AmazonAppFabricRequest
{
private string _appAuthorizationIdentifier;
private string _appBundleIdentifier;
/// <summary>
/// Gets and sets the property AppAuthorizationIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppAuthorizationIdentifier
{
get { return this._appAuthorizationIdentifier; }
set { this._appAuthorizationIdentifier = value; }
}
// Check to see if AppAuthorizationIdentifier property is set
internal bool IsSetAppAuthorizationIdentifier()
{
return this._appAuthorizationIdentifier != null;
}
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
}
} | 82 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the DeleteAppAuthorization operation.
/// </summary>
public partial class DeleteAppAuthorizationResponse : 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the DeleteAppBundle operation.
/// Deletes an app bundle. You must delete all associated app authorizations before you
/// can delete an app bundle.
/// </summary>
public partial class DeleteAppBundleRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The ID or Amazon Resource Name (ARN) of the app bundle that needs to be deleted.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the DeleteAppBundle operation.
/// </summary>
public partial class DeleteAppBundleResponse : 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the DeleteIngestionDestination operation.
/// Deletes an ingestion destination.
///
///
/// <para>
/// This deletes the association between an ingestion and it's destination. It doesn't
/// delete previously ingested data or the storage destination, such as the Amazon S3
/// bucket where the data is delivered. If the ingestion destination is deleted while
/// the associated ingestion is enabled, the ingestion will fail and is eventually disabled.
/// </para>
/// </summary>
public partial class DeleteIngestionDestinationRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private string _ingestionDestinationIdentifier;
private string _ingestionIdentifier;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property IngestionDestinationIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// destination to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionDestinationIdentifier
{
get { return this._ingestionDestinationIdentifier; }
set { this._ingestionDestinationIdentifier = value; }
}
// Check to see if IngestionDestinationIdentifier property is set
internal bool IsSetIngestionDestinationIdentifier()
{
return this._ingestionDestinationIdentifier != null;
}
/// <summary>
/// Gets and sets the property IngestionIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionIdentifier
{
get { return this._ingestionIdentifier; }
set { this._ingestionIdentifier = value; }
}
// Check to see if IngestionIdentifier property is set
internal bool IsSetIngestionIdentifier()
{
return this._ingestionIdentifier != null;
}
}
} | 110 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the DeleteIngestionDestination operation.
/// </summary>
public partial class DeleteIngestionDestinationResponse : 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the DeleteIngestion operation.
/// Deletes an ingestion. You must stop (disable) the ingestion and you must delete all
/// associated ingestion destinations before you can delete an app ingestion.
/// </summary>
public partial class DeleteIngestionRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private string _ingestionIdentifier;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property IngestionIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionIdentifier
{
get { return this._ingestionIdentifier; }
set { this._ingestionIdentifier = value; }
}
// Check to see if IngestionIdentifier property is set
internal bool IsSetIngestionIdentifier()
{
return this._ingestionIdentifier != null;
}
}
} | 82 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the DeleteIngestion operation.
/// </summary>
public partial class DeleteIngestionResponse : 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about an audit log destination.
/// </summary>
public partial class Destination
{
private FirehoseStream _firehoseStream;
private S3Bucket _s3Bucket;
/// <summary>
/// Gets and sets the property FirehoseStream.
/// <para>
/// Contains information about an Amazon Kinesis Data Firehose delivery stream.
/// </para>
/// </summary>
public FirehoseStream FirehoseStream
{
get { return this._firehoseStream; }
set { this._firehoseStream = value; }
}
// Check to see if FirehoseStream property is set
internal bool IsSetFirehoseStream()
{
return this._firehoseStream != null;
}
/// <summary>
/// Gets and sets the property S3Bucket.
/// <para>
/// Contains information about an Amazon S3 bucket.
/// </para>
/// </summary>
public S3Bucket S3Bucket
{
get { return this._s3Bucket; }
set { this._s3Bucket = value; }
}
// Check to see if S3Bucket property is set
internal bool IsSetS3Bucket()
{
return this._s3Bucket != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about the destination of ingested data.
/// </summary>
public partial class DestinationConfiguration
{
private AuditLogDestinationConfiguration _auditLog;
/// <summary>
/// Gets and sets the property AuditLog.
/// <para>
/// Contains information about an audit log destination configuration.
/// </para>
/// </summary>
public AuditLogDestinationConfiguration AuditLog
{
get { return this._auditLog; }
set { this._auditLog = value; }
}
// Check to see if AuditLog property is set
internal bool IsSetAuditLog()
{
return this._auditLog != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about an Amazon Kinesis Data Firehose delivery stream.
/// </summary>
public partial class FirehoseStream
{
private string _streamName;
/// <summary>
/// Gets and sets the property StreamName.
/// <para>
/// The name of the Amazon Kinesis Data Firehose delivery stream.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=3, Max=64)]
public string StreamName
{
get { return this._streamName; }
set { this._streamName = value; }
}
// Check to see if StreamName property is set
internal bool IsSetStreamName()
{
return this._streamName != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the GetAppAuthorization operation.
/// Returns information about an app authorization.
/// </summary>
public partial class GetAppAuthorizationRequest : AmazonAppFabricRequest
{
private string _appAuthorizationIdentifier;
private string _appBundleIdentifier;
/// <summary>
/// Gets and sets the property AppAuthorizationIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppAuthorizationIdentifier
{
get { return this._appAuthorizationIdentifier; }
set { this._appAuthorizationIdentifier = value; }
}
// Check to see if AppAuthorizationIdentifier property is set
internal bool IsSetAppAuthorizationIdentifier()
{
return this._appAuthorizationIdentifier != null;
}
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the GetAppAuthorization operation.
/// </summary>
public partial class GetAppAuthorizationResponse : AmazonWebServiceResponse
{
private AppAuthorization _appAuthorization;
/// <summary>
/// Gets and sets the property AppAuthorization.
/// <para>
/// Contains information about an app authorization.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public AppAuthorization AppAuthorization
{
get { return this._appAuthorization; }
set { this._appAuthorization = value; }
}
// Check to see if AppAuthorization property is set
internal bool IsSetAppAuthorization()
{
return this._appAuthorization != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the GetAppBundle operation.
/// Returns information about an app bundle.
/// </summary>
public partial class GetAppBundleRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
}
} | 60 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the GetAppBundle operation.
/// </summary>
public partial class GetAppBundleResponse : AmazonWebServiceResponse
{
private AppBundle _appBundle;
/// <summary>
/// Gets and sets the property AppBundle.
/// <para>
/// Contains information about an app bundle.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public AppBundle AppBundle
{
get { return this._appBundle; }
set { this._appBundle = value; }
}
// Check to see if AppBundle property is set
internal bool IsSetAppBundle()
{
return this._appBundle != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the GetIngestionDestination operation.
/// Returns information about an ingestion destination.
/// </summary>
public partial class GetIngestionDestinationRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private string _ingestionDestinationIdentifier;
private string _ingestionIdentifier;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property IngestionDestinationIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// destination to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionDestinationIdentifier
{
get { return this._ingestionDestinationIdentifier; }
set { this._ingestionDestinationIdentifier = value; }
}
// Check to see if IngestionDestinationIdentifier property is set
internal bool IsSetIngestionDestinationIdentifier()
{
return this._ingestionDestinationIdentifier != null;
}
/// <summary>
/// Gets and sets the property IngestionIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionIdentifier
{
get { return this._ingestionIdentifier; }
set { this._ingestionIdentifier = value; }
}
// Check to see if IngestionIdentifier property is set
internal bool IsSetIngestionIdentifier()
{
return this._ingestionIdentifier != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the GetIngestionDestination operation.
/// </summary>
public partial class GetIngestionDestinationResponse : AmazonWebServiceResponse
{
private IngestionDestination _ingestionDestination;
/// <summary>
/// Gets and sets the property IngestionDestination.
/// <para>
/// Contains information about an ingestion destination.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public IngestionDestination IngestionDestination
{
get { return this._ingestionDestination; }
set { this._ingestionDestination = value; }
}
// Check to see if IngestionDestination property is set
internal bool IsSetIngestionDestination()
{
return this._ingestionDestination != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the GetIngestion operation.
/// Returns information about an ingestion.
/// </summary>
public partial class GetIngestionRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private string _ingestionIdentifier;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property IngestionIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionIdentifier
{
get { return this._ingestionIdentifier; }
set { this._ingestionIdentifier = value; }
}
// Check to see if IngestionIdentifier property is set
internal bool IsSetIngestionIdentifier()
{
return this._ingestionIdentifier != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the GetIngestion operation.
/// </summary>
public partial class GetIngestionResponse : AmazonWebServiceResponse
{
private Ingestion _ingestion;
/// <summary>
/// Gets and sets the property Ingestion.
/// <para>
/// Contains information about an ingestion.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public Ingestion Ingestion
{
get { return this._ingestion; }
set { this._ingestion = value; }
}
// Check to see if Ingestion property is set
internal bool IsSetIngestion()
{
return this._ingestion != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about an ingestion.
/// </summary>
public partial class Ingestion
{
private string _app;
private string _appBundleArn;
private string _arn;
private DateTime? _createdAt;
private IngestionType _ingestionType;
private IngestionState _state;
private string _tenantId;
private DateTime? _updatedAt;
/// <summary>
/// Gets and sets the property App.
/// <para>
/// The name of the application.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string App
{
get { return this._app; }
set { this._app = value; }
}
// Check to see if App property is set
internal bool IsSetApp()
{
return this._app != null;
}
/// <summary>
/// Gets and sets the property AppBundleArn.
/// <para>
/// The Amazon Resource Name (ARN) of the app bundle for the ingestion.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleArn
{
get { return this._appBundleArn; }
set { this._appBundleArn = value; }
}
// Check to see if AppBundleArn property is set
internal bool IsSetAppBundleArn()
{
return this._appBundleArn != null;
}
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the ingestion.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreatedAt.
/// <para>
/// The timestamp of when the ingestion was created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
/// <summary>
/// Gets and sets the property IngestionType.
/// <para>
/// The type of the ingestion.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public IngestionType IngestionType
{
get { return this._ingestionType; }
set { this._ingestionType = value; }
}
// Check to see if IngestionType property is set
internal bool IsSetIngestionType()
{
return this._ingestionType != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The status of the ingestion.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public IngestionState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property TenantId.
/// <para>
/// The ID of the application tenant.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string TenantId
{
get { return this._tenantId; }
set { this._tenantId = value; }
}
// Check to see if TenantId property is set
internal bool IsSetTenantId()
{
return this._tenantId != null;
}
/// <summary>
/// Gets and sets the property UpdatedAt.
/// <para>
/// The timestamp of when the ingestion was last updated.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DateTime UpdatedAt
{
get { return this._updatedAt.GetValueOrDefault(); }
set { this._updatedAt = value; }
}
// Check to see if UpdatedAt property is set
internal bool IsSetUpdatedAt()
{
return this._updatedAt.HasValue;
}
}
} | 198 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about an ingestion destination.
/// </summary>
public partial class IngestionDestination
{
private string _arn;
private DateTime? _createdAt;
private DestinationConfiguration _destinationConfiguration;
private string _ingestionArn;
private ProcessingConfiguration _processingConfiguration;
private IngestionDestinationStatus _status;
private string _statusReason;
private DateTime? _updatedAt;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the ingestion destination.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property CreatedAt.
/// <para>
/// The timestamp of when the ingestion destination was created.
/// </para>
/// </summary>
public DateTime CreatedAt
{
get { return this._createdAt.GetValueOrDefault(); }
set { this._createdAt = value; }
}
// Check to see if CreatedAt property is set
internal bool IsSetCreatedAt()
{
return this._createdAt.HasValue;
}
/// <summary>
/// Gets and sets the property DestinationConfiguration.
/// <para>
/// Contains information about the destination of ingested data.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DestinationConfiguration DestinationConfiguration
{
get { return this._destinationConfiguration; }
set { this._destinationConfiguration = value; }
}
// Check to see if DestinationConfiguration property is set
internal bool IsSetDestinationConfiguration()
{
return this._destinationConfiguration != null;
}
/// <summary>
/// Gets and sets the property IngestionArn.
/// <para>
/// The Amazon Resource Name (ARN) of the ingestion.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionArn
{
get { return this._ingestionArn; }
set { this._ingestionArn = value; }
}
// Check to see if IngestionArn property is set
internal bool IsSetIngestionArn()
{
return this._ingestionArn != null;
}
/// <summary>
/// Gets and sets the property ProcessingConfiguration.
/// <para>
/// Contains information about how ingested data is processed.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ProcessingConfiguration ProcessingConfiguration
{
get { return this._processingConfiguration; }
set { this._processingConfiguration = value; }
}
// Check to see if ProcessingConfiguration property is set
internal bool IsSetProcessingConfiguration()
{
return this._processingConfiguration != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// The state of the ingestion destination.
/// </para>
///
/// <para>
/// The following states are possible:
/// </para>
/// <ul> <li>
/// <para>
/// <code>Active</code>: The ingestion destination is active and is ready to be used.
/// </para>
/// </li> <li>
/// <para>
/// <code>Failed</code>: The ingestion destination has failed. If the ingestion destination
/// is in this state, you should verify the ingestion destination configuration and try
/// again.
/// </para>
/// </li> </ul>
/// </summary>
public IngestionDestinationStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property StatusReason.
/// <para>
/// The reason for the current status of the ingestion destination.
/// </para>
///
/// <para>
/// Only present when the <code>status</code> of ingestion destination is <code>Failed</code>.
/// </para>
/// </summary>
public string StatusReason
{
get { return this._statusReason; }
set { this._statusReason = value; }
}
// Check to see if StatusReason property is set
internal bool IsSetStatusReason()
{
return this._statusReason != null;
}
/// <summary>
/// Gets and sets the property UpdatedAt.
/// <para>
/// The timestamp of when the ingestion destination was last updated.
/// </para>
/// </summary>
public DateTime UpdatedAt
{
get { return this._updatedAt.GetValueOrDefault(); }
set { this._updatedAt = value; }
}
// Check to see if UpdatedAt property is set
internal bool IsSetUpdatedAt()
{
return this._updatedAt.HasValue;
}
}
} | 213 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains a summary of an ingestion destination.
/// </summary>
public partial class IngestionDestinationSummary
{
private string _arn;
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the ingestion destination.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
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;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains a summary of an ingestion.
/// </summary>
public partial class IngestionSummary
{
private string _app;
private string _arn;
private IngestionState _state;
private string _tenantId;
/// <summary>
/// Gets and sets the property App.
/// <para>
/// The name of the application.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string App
{
get { return this._app; }
set { this._app = value; }
}
// Check to see if App property is set
internal bool IsSetApp()
{
return this._app != null;
}
/// <summary>
/// Gets and sets the property Arn.
/// <para>
/// The Amazon Resource Name (ARN) of the ingestion.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The status of the ingestion.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public IngestionState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property TenantId.
/// <para>
/// The ID of the application tenant.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string TenantId
{
get { return this._tenantId; }
set { this._tenantId = value; }
}
// Check to see if TenantId property is set
internal bool IsSetTenantId()
{
return this._tenantId != null;
}
}
} | 118 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// The request processing has failed because of an unknown error, exception, or failure
/// with an internal server.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class InternalServerException : AmazonAppFabricException
{
private int? _retryAfterSeconds;
private RetryableDetails _retryableDetails = new RetryableDetails(false);
/// <summary>
/// Constructs a new InternalServerException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public InternalServerException(string message)
: base(message) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public InternalServerException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="innerException"></param>
public InternalServerException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServerException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of InternalServerException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public InternalServerException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the InternalServerException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected InternalServerException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.RetryAfterSeconds = (int)info.GetValue("RetryAfterSeconds", typeof(int));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("RetryAfterSeconds", this.RetryAfterSeconds);
}
#endif
/// <summary>
/// Gets and sets the property RetryAfterSeconds.
/// <para>
/// The period of time after which you should retry your request.
/// </para>
/// </summary>
public int RetryAfterSeconds
{
get { return this._retryAfterSeconds.GetValueOrDefault(); }
set { this._retryAfterSeconds = value; }
}
// Check to see if RetryAfterSeconds property is set
internal bool IsSetRetryAfterSeconds()
{
return this._retryAfterSeconds.HasValue;
}
/// <summary>
/// Flag indicating if the exception is retryable and the associated retry
/// details. A null value indicates that the exception is not retryable.
/// </summary>
public override RetryableDetails Retryable
{
get
{
return _retryableDetails;
}
}
}
} | 159 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the ListAppAuthorizations operation.
/// Returns a list of all app authorizations configured for an app bundle.
/// </summary>
public partial class ListAppAuthorizationsRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results that are returned per call. You can use <code>nextToken</code>
/// to obtain further pages of results.
/// </para>
///
/// <para>
/// This is only an upper limit. The actual number of results returned per call might
/// be fewer than the specified maximum.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If <code>nextToken</code> is returned, there are more results available. The value
/// of <code>nextToken</code> is a unique pagination token for each page. Make the call
/// again using the returned token to retrieve the next page. Keep all other arguments
/// unchanged. Each pagination token expires after 24 hours. Using an expired pagination
/// token will return an <i>HTTP 400 InvalidToken error</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 110 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the ListAppAuthorizations operation.
/// </summary>
public partial class ListAppAuthorizationsResponse : AmazonWebServiceResponse
{
private List<AppAuthorizationSummary> _appAuthorizationSummaryList = new List<AppAuthorizationSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property AppAuthorizationSummaryList.
/// <para>
/// Contains a list of app authorization summaries.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<AppAuthorizationSummary> AppAuthorizationSummaryList
{
get { return this._appAuthorizationSummaryList; }
set { this._appAuthorizationSummaryList = value; }
}
// Check to see if AppAuthorizationSummaryList property is set
internal bool IsSetAppAuthorizationSummaryList()
{
return this._appAuthorizationSummaryList != null && this._appAuthorizationSummaryList.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If <code>nextToken</code> is returned, there are more results available. The value
/// of <code>nextToken</code> is a unique pagination token for each page. Make the call
/// again using the returned token to retrieve the next page. Keep all other arguments
/// unchanged. Each pagination token expires after 24 hours. Using an expired pagination
/// token will return an <i>HTTP 400 InvalidToken error</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 82 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the ListAppBundles operation.
/// Returns a list of app bundles.
/// </summary>
public partial class ListAppBundlesRequest : AmazonAppFabricRequest
{
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results that are returned per call. You can use <code>nextToken</code>
/// to obtain further pages of results.
/// </para>
///
/// <para>
/// This is only an upper limit. The actual number of results returned per call might
/// be fewer than the specified maximum.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If <code>nextToken</code> is returned, there are more results available. The value
/// of <code>nextToken</code> is a unique pagination token for each page. Make the call
/// again using the returned token to retrieve the next page. Keep all other arguments
/// unchanged. Each pagination token expires after 24 hours. Using an expired pagination
/// token will return an <i>HTTP 400 InvalidToken error</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 89 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the ListAppBundles operation.
/// </summary>
public partial class ListAppBundlesResponse : AmazonWebServiceResponse
{
private List<AppBundleSummary> _appBundleSummaryList = new List<AppBundleSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property AppBundleSummaryList.
/// <para>
/// Contains a list of app bundle summaries.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<AppBundleSummary> AppBundleSummaryList
{
get { return this._appBundleSummaryList; }
set { this._appBundleSummaryList = value; }
}
// Check to see if AppBundleSummaryList property is set
internal bool IsSetAppBundleSummaryList()
{
return this._appBundleSummaryList != null && this._appBundleSummaryList.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If <code>nextToken</code> is returned, there are more results available. The value
/// of <code>nextToken</code> is a unique pagination token for each page. Make the call
/// again using the returned token to retrieve the next page. Keep all other arguments
/// unchanged. Each pagination token expires after 24 hours. Using an expired pagination
/// token will return an <i>HTTP 400 InvalidToken error</i>.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
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;
}
}
} | 82 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the ListIngestionDestinations operation.
/// Returns a list of all ingestion destinations configured for an ingestion.
/// </summary>
public partial class ListIngestionDestinationsRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private string _ingestionIdentifier;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property IngestionIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionIdentifier
{
get { return this._ingestionIdentifier; }
set { this._ingestionIdentifier = value; }
}
// Check to see if IngestionIdentifier property is set
internal bool IsSetIngestionIdentifier()
{
return this._ingestionIdentifier != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results that are returned per call. You can use <code>nextToken</code>
/// to obtain further pages of results.
/// </para>
///
/// <para>
/// This is only an upper limit. The actual number of results returned per call might
/// be fewer than the specified maximum.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If <code>nextToken</code> is returned, there are more results available. The value
/// of <code>nextToken</code> is a unique pagination token for each page. Make the call
/// again using the returned token to retrieve the next page. Keep all other arguments
/// unchanged. Each pagination token expires after 24 hours. Using an expired pagination
/// token will return an <i>HTTP 400 InvalidToken error</i>.
/// </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;
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the ListIngestionDestinations operation.
/// </summary>
public partial class ListIngestionDestinationsResponse : AmazonWebServiceResponse
{
private List<IngestionDestinationSummary> _ingestionDestinations = new List<IngestionDestinationSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property IngestionDestinations.
/// <para>
/// Contains a list of ingestion destination summaries.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<IngestionDestinationSummary> IngestionDestinations
{
get { return this._ingestionDestinations; }
set { this._ingestionDestinations = value; }
}
// Check to see if IngestionDestinations property is set
internal bool IsSetIngestionDestinations()
{
return this._ingestionDestinations != null && this._ingestionDestinations.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If <code>nextToken</code> is returned, there are more results available. The value
/// of <code>nextToken</code> is a unique pagination token for each page. Make the call
/// again using the returned token to retrieve the next page. Keep all other arguments
/// unchanged. Each pagination token expires after 24 hours. Using an expired pagination
/// token will return an <i>HTTP 400 InvalidToken error</i>.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 81 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the ListIngestions operation.
/// Returns a list of all ingestions configured for an app bundle.
/// </summary>
public partial class ListIngestionsRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private int? _maxResults;
private string _nextToken;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property MaxResults.
/// <para>
/// The maximum number of results that are returned per call. You can use <code>nextToken</code>
/// to obtain further pages of results.
/// </para>
///
/// <para>
/// This is only an upper limit. The actual number of results returned per call might
/// be fewer than the specified maximum.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public int MaxResults
{
get { return this._maxResults.GetValueOrDefault(); }
set { this._maxResults = value; }
}
// Check to see if MaxResults property is set
internal bool IsSetMaxResults()
{
return this._maxResults.HasValue;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If <code>nextToken</code> is returned, there are more results available. The value
/// of <code>nextToken</code> is a unique pagination token for each page. Make the call
/// again using the returned token to retrieve the next page. Keep all other arguments
/// unchanged. Each pagination token expires after 24 hours. Using an expired pagination
/// token will return an <i>HTTP 400 InvalidToken error</i>.
/// </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;
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the ListIngestions operation.
/// </summary>
public partial class ListIngestionsResponse : AmazonWebServiceResponse
{
private List<IngestionSummary> _ingestions = new List<IngestionSummary>();
private string _nextToken;
/// <summary>
/// Gets and sets the property Ingestions.
/// <para>
/// Contains a list of ingestion summaries.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<IngestionSummary> Ingestions
{
get { return this._ingestions; }
set { this._ingestions = value; }
}
// Check to see if Ingestions property is set
internal bool IsSetIngestions()
{
return this._ingestions != null && this._ingestions.Count > 0;
}
/// <summary>
/// Gets and sets the property NextToken.
/// <para>
/// If <code>nextToken</code> is returned, there are more results available. The value
/// of <code>nextToken</code> is a unique pagination token for each page. Make the call
/// again using the returned token to retrieve the next page. Keep all other arguments
/// unchanged. Each pagination token expires after 24 hours. Using an expired pagination
/// token will return an <i>HTTP 400 InvalidToken error</i>.
/// </para>
/// </summary>
public string NextToken
{
get { return this._nextToken; }
set { this._nextToken = value; }
}
// Check to see if NextToken property is set
internal bool IsSetNextToken()
{
return this._nextToken != null;
}
}
} | 81 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the ListTagsForResource operation.
/// Returns a list of tags for a resource.
/// </summary>
public partial class ListTagsForResourceRequest : AmazonAppFabricRequest
{
private string _resourceArn;
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Resource Name (ARN) of the resource for which you want to retrieve tags.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
}
} | 59 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the ListTagsForResource operation.
/// </summary>
public partial class ListTagsForResourceResponse : AmazonWebServiceResponse
{
private List<Tag> _tags = new List<Tag>();
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// A map of the key-value pairs for the tag or tags assigned to the specified resource.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=50)]
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;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains OAuth2 client credential information.
/// </summary>
public partial class Oauth2Credential
{
private string _clientId;
private string _clientSecret;
/// <summary>
/// Gets and sets the property ClientId.
/// <para>
/// The client ID of the client application.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=2048)]
public string ClientId
{
get { return this._clientId; }
set { this._clientId = value; }
}
// Check to see if ClientId property is set
internal bool IsSetClientId()
{
return this._clientId != null;
}
/// <summary>
/// Gets and sets the property ClientSecret.
/// <para>
/// The client secret of the client application.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=1, Max=2048)]
public string ClientSecret
{
get { return this._clientSecret; }
set { this._clientSecret = value; }
}
// Check to see if ClientSecret property is set
internal bool IsSetClientSecret()
{
return this._clientSecret != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about how ingested data is processed.
/// </summary>
public partial class ProcessingConfiguration
{
private AuditLogProcessingConfiguration _auditLog;
/// <summary>
/// Gets and sets the property AuditLog.
/// <para>
/// Contains information about an audit log processing configuration.
/// </para>
/// </summary>
public AuditLogProcessingConfiguration AuditLog
{
get { return this._auditLog; }
set { this._auditLog = value; }
}
// Check to see if AuditLog property is set
internal bool IsSetAuditLog()
{
return this._auditLog != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// The specified resource does not exist.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ResourceNotFoundException : AmazonAppFabricException
{
private string _resourceId;
private string _resourceType;
/// <summary>
/// Constructs a new ResourceNotFoundException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ResourceNotFoundException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ResourceNotFoundException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="innerException"></param>
public ResourceNotFoundException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ResourceNotFoundException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ResourceNotFoundException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.ResourceId = (string)info.GetValue("ResourceId", typeof(string));
this.ResourceType = (string)info.GetValue("ResourceType", typeof(string));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("ResourceId", this.ResourceId);
info.AddValue("ResourceType", this.ResourceType);
}
#endif
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The resource ID.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The resource type.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
}
} | 168 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about an Amazon S3 bucket.
/// </summary>
public partial class S3Bucket
{
private string _bucketName;
private string _prefix;
/// <summary>
/// Gets and sets the property BucketName.
/// <para>
/// The name of the Amazon S3 bucket.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=3, Max=63)]
public string BucketName
{
get { return this._bucketName; }
set { this._bucketName = value; }
}
// Check to see if BucketName property is set
internal bool IsSetBucketName()
{
return this._bucketName != null;
}
/// <summary>
/// Gets and sets the property Prefix.
/// <para>
/// The object key to use.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=120)]
public string Prefix
{
get { return this._prefix; }
set { this._prefix = value; }
}
// Check to see if Prefix property is set
internal bool IsSetPrefix()
{
return this._prefix != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// The request exceeds a service quota.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ServiceQuotaExceededException : AmazonAppFabricException
{
private string _quotaCode;
private string _resourceId;
private string _resourceType;
private string _serviceCode;
/// <summary>
/// Constructs a new ServiceQuotaExceededException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ServiceQuotaExceededException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ServiceQuotaExceededException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="innerException"></param>
public ServiceQuotaExceededException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceQuotaExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ServiceQuotaExceededException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ServiceQuotaExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ServiceQuotaExceededException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ServiceQuotaExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.QuotaCode = (string)info.GetValue("QuotaCode", typeof(string));
this.ResourceId = (string)info.GetValue("ResourceId", typeof(string));
this.ResourceType = (string)info.GetValue("ResourceType", typeof(string));
this.ServiceCode = (string)info.GetValue("ServiceCode", typeof(string));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("QuotaCode", this.QuotaCode);
info.AddValue("ResourceId", this.ResourceId);
info.AddValue("ResourceType", this.ResourceType);
info.AddValue("ServiceCode", this.ServiceCode);
}
#endif
/// <summary>
/// Gets and sets the property QuotaCode.
/// <para>
/// The code for the quota exceeded.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string QuotaCode
{
get { return this._quotaCode; }
set { this._quotaCode = value; }
}
// Check to see if QuotaCode property is set
internal bool IsSetQuotaCode()
{
return this._quotaCode != null;
}
/// <summary>
/// Gets and sets the property ResourceId.
/// <para>
/// The resource ID.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ResourceId
{
get { return this._resourceId; }
set { this._resourceId = value; }
}
// Check to see if ResourceId property is set
internal bool IsSetResourceId()
{
return this._resourceId != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The resource type.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
/// <summary>
/// Gets and sets the property ServiceCode.
/// <para>
/// The code of the service.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ServiceCode
{
get { return this._serviceCode; }
set { this._serviceCode = value; }
}
// Check to see if ServiceCode property is set
internal bool IsSetServiceCode()
{
return this._serviceCode != null;
}
}
} | 212 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the StartIngestion operation.
/// Starts (enables) an ingestion, which collects data from an application.
/// </summary>
public partial class StartIngestionRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private string _ingestionIdentifier;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property IngestionIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionIdentifier
{
get { return this._ingestionIdentifier; }
set { this._ingestionIdentifier = value; }
}
// Check to see if IngestionIdentifier property is set
internal bool IsSetIngestionIdentifier()
{
return this._ingestionIdentifier != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the StartIngestion operation.
/// </summary>
public partial class StartIngestionResponse : 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the StartUserAccessTasks operation.
/// Starts the tasks to search user access status for a specific email address.
///
///
/// <para>
/// The tasks are stopped when the user access status data is found. The tasks are terminated
/// when the API calls to the application time out.
/// </para>
/// </summary>
public partial class StartUserAccessTasksRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private string _email;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property Email.
/// <para>
/// The email address of the target user.
/// </para>
/// </summary>
[AWSProperty(Required=true, Sensitive=true, Min=0, Max=320)]
public string Email
{
get { return this._email; }
set { this._email = value; }
}
// Check to see if Email property is set
internal bool IsSetEmail()
{
return this._email != null;
}
}
} | 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the StartUserAccessTasks operation.
/// </summary>
public partial class StartUserAccessTasksResponse : AmazonWebServiceResponse
{
private List<UserAccessTaskItem> _userAccessTasksList = new List<UserAccessTaskItem>();
/// <summary>
/// Gets and sets the property UserAccessTasksList.
/// <para>
/// Contains a list of user access task information.
/// </para>
/// </summary>
public List<UserAccessTaskItem> UserAccessTasksList
{
get { return this._userAccessTasksList; }
set { this._userAccessTasksList = value; }
}
// Check to see if UserAccessTasksList property is set
internal bool IsSetUserAccessTasksList()
{
return this._userAccessTasksList != null && this._userAccessTasksList.Count > 0;
}
}
} | 57 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the StopIngestion operation.
/// Stops (disables) an ingestion.
/// </summary>
public partial class StopIngestionRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private string _ingestionIdentifier;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property IngestionIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionIdentifier
{
get { return this._ingestionIdentifier; }
set { this._ingestionIdentifier = value; }
}
// Check to see if IngestionIdentifier property is set
internal bool IsSetIngestionIdentifier()
{
return this._ingestionIdentifier != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the StopIngestion operation.
/// </summary>
public partial class StopIngestionResponse : 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// The key or keys of the key-value pairs for the tag or tags assigned to a resource.
/// </summary>
public partial class Tag
{
private string _key;
private string _value;
/// <summary>
/// Gets and sets the property Key.
/// <para>
/// Tag key.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=128)]
public string Key
{
get { return this._key; }
set { this._key = value; }
}
// Check to see if Key property is set
internal bool IsSetKey()
{
return this._key != null;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// Tag value.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=256)]
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the TagResource operation.
/// Assigns one or more tags (key-value pairs) to the specified resource.
/// </summary>
public partial class TagResourceRequest : AmazonAppFabricRequest
{
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 that you want to tag.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// A map of the key-value pairs of the tag or tags to assign to the resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=50)]
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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about an error returned from a user access task.
/// </summary>
public partial class TaskError
{
private string _errorCode;
private string _errorMessage;
/// <summary>
/// Gets and sets the property ErrorCode.
/// <para>
/// The code of the error.
/// </para>
/// </summary>
public string ErrorCode
{
get { return this._errorCode; }
set { this._errorCode = value; }
}
// Check to see if ErrorCode property is set
internal bool IsSetErrorCode()
{
return this._errorCode != null;
}
/// <summary>
/// Gets and sets the property ErrorMessage.
/// <para>
/// The message of the error.
/// </para>
/// </summary>
public string ErrorMessage
{
get { return this._errorMessage; }
set { this._errorMessage = value; }
}
// Check to see if ErrorMessage property is set
internal bool IsSetErrorMessage()
{
return this._errorMessage != null;
}
}
} | 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about an application tenant.
/// </summary>
public partial class Tenant
{
private string _tenantDisplayName;
private string _tenantIdentifier;
/// <summary>
/// Gets and sets the property TenantDisplayName.
/// <para>
/// The display name of the tenant.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=2048)]
public string TenantDisplayName
{
get { return this._tenantDisplayName; }
set { this._tenantDisplayName = value; }
}
// Check to see if TenantDisplayName property is set
internal bool IsSetTenantDisplayName()
{
return this._tenantDisplayName != null;
}
/// <summary>
/// Gets and sets the property TenantIdentifier.
/// <para>
/// The ID of the application tenant.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string TenantIdentifier
{
get { return this._tenantIdentifier; }
set { this._tenantIdentifier = value; }
}
// Check to see if TenantIdentifier property is set
internal bool IsSetTenantIdentifier()
{
return this._tenantIdentifier != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// The request rate exceeds the limit.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ThrottlingException : AmazonAppFabricException
{
private string _quotaCode;
private int? _retryAfterSeconds;
private string _serviceCode;
private RetryableDetails _retryableDetails = new RetryableDetails(true);
/// <summary>
/// Constructs a new ThrottlingException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ThrottlingException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ThrottlingException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="innerException"></param>
public ThrottlingException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ThrottlingException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ThrottlingException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ThrottlingException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ThrottlingException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.QuotaCode = (string)info.GetValue("QuotaCode", typeof(string));
this.RetryAfterSeconds = (int)info.GetValue("RetryAfterSeconds", typeof(int));
this.ServiceCode = (string)info.GetValue("ServiceCode", typeof(string));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("QuotaCode", this.QuotaCode);
info.AddValue("RetryAfterSeconds", this.RetryAfterSeconds);
info.AddValue("ServiceCode", this.ServiceCode);
}
#endif
/// <summary>
/// Gets and sets the property QuotaCode.
/// <para>
/// The code for the quota exceeded.
/// </para>
/// </summary>
public string QuotaCode
{
get { return this._quotaCode; }
set { this._quotaCode = value; }
}
// Check to see if QuotaCode property is set
internal bool IsSetQuotaCode()
{
return this._quotaCode != null;
}
/// <summary>
/// Gets and sets the property RetryAfterSeconds.
/// <para>
/// The period of time after which you should retry your request.
/// </para>
/// </summary>
public int RetryAfterSeconds
{
get { return this._retryAfterSeconds.GetValueOrDefault(); }
set { this._retryAfterSeconds = value; }
}
// Check to see if RetryAfterSeconds property is set
internal bool IsSetRetryAfterSeconds()
{
return this._retryAfterSeconds.HasValue;
}
/// <summary>
/// Gets and sets the property ServiceCode.
/// <para>
/// The code of the service.
/// </para>
/// </summary>
public string ServiceCode
{
get { return this._serviceCode; }
set { this._serviceCode = value; }
}
// Check to see if ServiceCode property is set
internal bool IsSetServiceCode()
{
return this._serviceCode != null;
}
/// <summary>
/// Flag indicating if the exception is retryable and the associated retry
/// details. A null value indicates that the exception is not retryable.
/// </summary>
public override RetryableDetails Retryable
{
get
{
return _retryableDetails;
}
}
}
} | 200 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the UntagResource operation.
/// Removes a tag or tags from a resource.
/// </summary>
public partial class UntagResourceRequest : AmazonAppFabricRequest
{
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 that you want to untag.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
/// <summary>
/// Gets and sets the property TagKeys.
/// <para>
/// The keys of the key-value pairs for the tag or tags you want to remove from the specified
/// resource.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=0, Max=200)]
public List<string> TagKeys
{
get { return this._tagKeys; }
set { this._tagKeys = value; }
}
// Check to see if TagKeys property is set
internal bool IsSetTagKeys()
{
return this._tagKeys != null && this._tagKeys.Count > 0;
}
}
} | 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the UpdateAppAuthorization operation.
/// Updates an app authorization within an app bundle, which allows AppFabric to connect
/// to an application.
///
///
/// <para>
/// If the app authorization was in a <code>connected</code> state, updating the app authorization
/// will set it back to a <code>PendingConnect</code> state.
/// </para>
/// </summary>
public partial class UpdateAppAuthorizationRequest : AmazonAppFabricRequest
{
private string _appAuthorizationIdentifier;
private string _appBundleIdentifier;
private Credential _credential;
private Tenant _tenant;
/// <summary>
/// Gets and sets the property AppAuthorizationIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app authorization
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppAuthorizationIdentifier
{
get { return this._appAuthorizationIdentifier; }
set { this._appAuthorizationIdentifier = value; }
}
// Check to see if AppAuthorizationIdentifier property is set
internal bool IsSetAppAuthorizationIdentifier()
{
return this._appAuthorizationIdentifier != null;
}
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property Credential.
/// <para>
/// Contains credentials for the application, such as an API key or OAuth2 client ID and
/// secret.
/// </para>
///
/// <para>
/// Specify credentials that match the authorization type of the app authorization to
/// update. For example, if the authorization type of the app authorization is OAuth2
/// (<code>oauth2</code>), then you should provide only the OAuth2 credentials.
/// </para>
/// </summary>
public Credential Credential
{
get { return this._credential; }
set { this._credential = value; }
}
// Check to see if Credential property is set
internal bool IsSetCredential()
{
return this._credential != null;
}
/// <summary>
/// Gets and sets the property Tenant.
/// <para>
/// Contains information about an application tenant, such as the application display
/// name and identifier.
/// </para>
/// </summary>
public Tenant Tenant
{
get { return this._tenant; }
set { this._tenant = value; }
}
// Check to see if Tenant property is set
internal bool IsSetTenant()
{
return this._tenant != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the UpdateAppAuthorization operation.
/// </summary>
public partial class UpdateAppAuthorizationResponse : AmazonWebServiceResponse
{
private AppAuthorization _appAuthorization;
/// <summary>
/// Gets and sets the property AppAuthorization.
/// <para>
/// Contains information about an app authorization.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public AppAuthorization AppAuthorization
{
get { return this._appAuthorization; }
set { this._appAuthorization = value; }
}
// Check to see if AppAuthorization property is set
internal bool IsSetAppAuthorization()
{
return this._appAuthorization != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Container for the parameters to the UpdateIngestionDestination operation.
/// Updates an ingestion destination, which specifies how an application's ingested data
/// is processed by Amazon Web Services AppFabric and where it's delivered.
/// </summary>
public partial class UpdateIngestionDestinationRequest : AmazonAppFabricRequest
{
private string _appBundleIdentifier;
private DestinationConfiguration _destinationConfiguration;
private string _ingestionDestinationIdentifier;
private string _ingestionIdentifier;
/// <summary>
/// Gets and sets the property AppBundleIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the app bundle
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string AppBundleIdentifier
{
get { return this._appBundleIdentifier; }
set { this._appBundleIdentifier = value; }
}
// Check to see if AppBundleIdentifier property is set
internal bool IsSetAppBundleIdentifier()
{
return this._appBundleIdentifier != null;
}
/// <summary>
/// Gets and sets the property DestinationConfiguration.
/// <para>
/// Contains information about the destination of ingested data.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DestinationConfiguration DestinationConfiguration
{
get { return this._destinationConfiguration; }
set { this._destinationConfiguration = value; }
}
// Check to see if DestinationConfiguration property is set
internal bool IsSetDestinationConfiguration()
{
return this._destinationConfiguration != null;
}
/// <summary>
/// Gets and sets the property IngestionDestinationIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// destination to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionDestinationIdentifier
{
get { return this._ingestionDestinationIdentifier; }
set { this._ingestionDestinationIdentifier = value; }
}
// Check to see if IngestionDestinationIdentifier property is set
internal bool IsSetIngestionDestinationIdentifier()
{
return this._ingestionDestinationIdentifier != null;
}
/// <summary>
/// Gets and sets the property IngestionIdentifier.
/// <para>
/// The Amazon Resource Name (ARN) or Universal Unique Identifier (UUID) of the ingestion
/// to use for the request.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1011)]
public string IngestionIdentifier
{
get { return this._ingestionIdentifier; }
set { this._ingestionIdentifier = value; }
}
// Check to see if IngestionIdentifier property is set
internal bool IsSetIngestionIdentifier()
{
return this._ingestionIdentifier != 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 appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// This is the response object from the UpdateIngestionDestination operation.
/// </summary>
public partial class UpdateIngestionDestinationResponse : AmazonWebServiceResponse
{
private IngestionDestination _ingestionDestination;
/// <summary>
/// Gets and sets the property IngestionDestination.
/// <para>
/// Contains information about an ingestion destination.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public IngestionDestination IngestionDestination
{
get { return this._ingestionDestination; }
set { this._ingestionDestination = value; }
}
// Check to see if IngestionDestination property is set
internal bool IsSetIngestionDestination()
{
return this._ingestionDestination != null;
}
}
} | 58 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about a user's access to an application.
/// </summary>
public partial class UserAccessResultItem
{
private string _app;
private string _email;
private ResultStatus _resultStatus;
private TaskError _taskError;
private string _taskId;
private string _tenantDisplayName;
private string _tenantId;
private string _userFirstName;
private string _userFullName;
private string _userId;
private string _userLastName;
private string _userStatus;
/// <summary>
/// Gets and sets the property App.
/// <para>
/// The name of the application.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=255)]
public string App
{
get { return this._app; }
set { this._app = value; }
}
// Check to see if App property is set
internal bool IsSetApp()
{
return this._app != null;
}
/// <summary>
/// Gets and sets the property Email.
/// <para>
/// The email address of the target user.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=0, Max=320)]
public string Email
{
get { return this._email; }
set { this._email = value; }
}
// Check to see if Email property is set
internal bool IsSetEmail()
{
return this._email != null;
}
/// <summary>
/// Gets and sets the property ResultStatus.
/// <para>
/// The status of the user access result item.
/// </para>
///
/// <para>
/// The following states are possible:
/// </para>
/// <ul> <li>
/// <para>
/// <code>IN_PROGRESS</code>: The user access task is in progress.
/// </para>
/// </li> <li>
/// <para>
/// <code>COMPLETED</code>: The user access task completed successfully.
/// </para>
/// </li> <li>
/// <para>
/// <code>FAILED</code>: The user access task failed.
/// </para>
/// </li> <li>
/// <para>
/// <code>EXPIRED</code>: The user access task expired.
/// </para>
/// </li> </ul>
/// </summary>
public ResultStatus ResultStatus
{
get { return this._resultStatus; }
set { this._resultStatus = value; }
}
// Check to see if ResultStatus property is set
internal bool IsSetResultStatus()
{
return this._resultStatus != null;
}
/// <summary>
/// Gets and sets the property TaskError.
/// <para>
/// Contains information about an error returned from a user access task.
/// </para>
/// </summary>
public TaskError TaskError
{
get { return this._taskError; }
set { this._taskError = value; }
}
// Check to see if TaskError property is set
internal bool IsSetTaskError()
{
return this._taskError != null;
}
/// <summary>
/// Gets and sets the property TaskId.
/// <para>
/// The unique ID of the task.
/// </para>
/// </summary>
public string TaskId
{
get { return this._taskId; }
set { this._taskId = value; }
}
// Check to see if TaskId property is set
internal bool IsSetTaskId()
{
return this._taskId != null;
}
/// <summary>
/// Gets and sets the property TenantDisplayName.
/// <para>
/// The display name of the tenant.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=2048)]
public string TenantDisplayName
{
get { return this._tenantDisplayName; }
set { this._tenantDisplayName = value; }
}
// Check to see if TenantDisplayName property is set
internal bool IsSetTenantDisplayName()
{
return this._tenantDisplayName != null;
}
/// <summary>
/// Gets and sets the property TenantId.
/// <para>
/// The ID of the application tenant.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=1024)]
public string TenantId
{
get { return this._tenantId; }
set { this._tenantId = value; }
}
// Check to see if TenantId property is set
internal bool IsSetTenantId()
{
return this._tenantId != null;
}
/// <summary>
/// Gets and sets the property UserFirstName.
/// <para>
/// The first name of the user.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=2048)]
public string UserFirstName
{
get { return this._userFirstName; }
set { this._userFirstName = value; }
}
// Check to see if UserFirstName property is set
internal bool IsSetUserFirstName()
{
return this._userFirstName != null;
}
/// <summary>
/// Gets and sets the property UserFullName.
/// <para>
/// The full name of the user.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=2048)]
public string UserFullName
{
get { return this._userFullName; }
set { this._userFullName = value; }
}
// Check to see if UserFullName property is set
internal bool IsSetUserFullName()
{
return this._userFullName != null;
}
/// <summary>
/// Gets and sets the property UserId.
/// <para>
/// The unique ID of user.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=2048)]
public string UserId
{
get { return this._userId; }
set { this._userId = value; }
}
// Check to see if UserId property is set
internal bool IsSetUserId()
{
return this._userId != null;
}
/// <summary>
/// Gets and sets the property UserLastName.
/// <para>
/// The last name of the user.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true, Min=1, Max=2048)]
public string UserLastName
{
get { return this._userLastName; }
set { this._userLastName = value; }
}
// Check to see if UserLastName property is set
internal bool IsSetUserLastName()
{
return this._userLastName != null;
}
/// <summary>
/// Gets and sets the property UserStatus.
/// <para>
/// The status of the user returned by the application.
/// </para>
/// </summary>
public string UserStatus
{
get { return this._userStatus; }
set { this._userStatus = value; }
}
// Check to see if UserStatus property is set
internal bool IsSetUserStatus()
{
return this._userStatus != null;
}
}
} | 295 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// Contains information about a user access task.
/// </summary>
public partial class UserAccessTaskItem
{
private string _app;
private TaskError _error;
private string _taskId;
private string _tenantId;
/// <summary>
/// Gets and sets the property App.
/// <para>
/// The name of the application.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=255)]
public string App
{
get { return this._app; }
set { this._app = value; }
}
// Check to see if App property is set
internal bool IsSetApp()
{
return this._app != null;
}
/// <summary>
/// Gets and sets the property Error.
/// <para>
/// Error from the task, if any.
/// </para>
/// </summary>
public TaskError Error
{
get { return this._error; }
set { this._error = value; }
}
// Check to see if Error property is set
internal bool IsSetError()
{
return this._error != null;
}
/// <summary>
/// Gets and sets the property TaskId.
/// <para>
/// The unique ID of the task.
/// </para>
/// </summary>
public string TaskId
{
get { return this._taskId; }
set { this._taskId = value; }
}
// Check to see if TaskId property is set
internal bool IsSetTaskId()
{
return this._taskId != null;
}
/// <summary>
/// Gets and sets the property TenantId.
/// <para>
/// The ID of the application tenant.
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=1024)]
public string TenantId
{
get { return this._tenantId; }
set { this._tenantId = value; }
}
// Check to see if TenantId property is set
internal bool IsSetTenantId()
{
return this._tenantId != null;
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// The request has invalid or missing parameters.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ValidationException : AmazonAppFabricException
{
private List<ValidationExceptionField> _fieldList = new List<ValidationExceptionField>();
private ValidationExceptionReason _reason;
/// <summary>
/// Constructs a new ValidationException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ValidationException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ValidationException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="innerException"></param>
public ValidationException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ValidationException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ValidationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ValidationException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ValidationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.FieldList = (List<ValidationExceptionField>)info.GetValue("FieldList", typeof(List<ValidationExceptionField>));
this.Reason = (ValidationExceptionReason)info.GetValue("Reason", typeof(ValidationExceptionReason));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("FieldList", this.FieldList);
info.AddValue("Reason", this.Reason);
}
#endif
/// <summary>
/// Gets and sets the property FieldList.
/// <para>
/// The field list.
/// </para>
/// </summary>
public List<ValidationExceptionField> FieldList
{
get { return this._fieldList; }
set { this._fieldList = value; }
}
// Check to see if FieldList property is set
internal bool IsSetFieldList()
{
return this._fieldList != null && this._fieldList.Count > 0;
}
/// <summary>
/// Gets and sets the property Reason.
/// <para>
/// The reason for the exception.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ValidationExceptionReason Reason
{
get { return this._reason; }
set { this._reason = value; }
}
// Check to see if Reason property is set
internal bool IsSetReason()
{
return this._reason != null;
}
}
} | 167 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.AppFabric.Model
{
/// <summary>
/// The input failed to meet the constraints specified by the Amazon Web Services service
/// in a specified field.
/// </summary>
public partial class ValidationExceptionField
{
private string _message;
private string _name;
/// <summary>
/// Gets and sets the property Message.
/// <para>
/// A message about the validation exception.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The field name where the invalid entry was detected.
/// </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;
}
}
} | 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// ApiKeyCredential Marshaller
/// </summary>
public class ApiKeyCredentialMarshaller : IRequestMarshaller<ApiKeyCredential, 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(ApiKeyCredential requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetApiKey())
{
context.Writer.WritePropertyName("apiKey");
context.Writer.Write(requestObject.ApiKey);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ApiKeyCredentialMarshaller Instance = new ApiKeyCredentialMarshaller();
}
} | 62 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AppAuthorizationSummary Object
/// </summary>
public class AppAuthorizationSummaryUnmarshaller : IUnmarshaller<AppAuthorizationSummary, XmlUnmarshallerContext>, IUnmarshaller<AppAuthorizationSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AppAuthorizationSummary IUnmarshaller<AppAuthorizationSummary, 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 AppAuthorizationSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AppAuthorizationSummary unmarshalledObject = new AppAuthorizationSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("app", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.App = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("appAuthorizationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AppAuthorizationArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("appBundleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AppBundleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tenant", targetDepth))
{
var unmarshaller = TenantUnmarshaller.Instance;
unmarshalledObject.Tenant = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("updatedAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.UpdatedAt = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AppAuthorizationSummaryUnmarshaller _instance = new AppAuthorizationSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AppAuthorizationSummaryUnmarshaller 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AppAuthorization Object
/// </summary>
public class AppAuthorizationUnmarshaller : IUnmarshaller<AppAuthorization, XmlUnmarshallerContext>, IUnmarshaller<AppAuthorization, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AppAuthorization IUnmarshaller<AppAuthorization, 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 AppAuthorization Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AppAuthorization unmarshalledObject = new AppAuthorization();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("app", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.App = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("appAuthorizationArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AppAuthorizationArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("appBundleArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AppBundleArn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("authType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AuthType = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("authUrl", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AuthUrl = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("createdAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("persona", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Persona = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tenant", targetDepth))
{
var unmarshaller = TenantUnmarshaller.Instance;
unmarshalledObject.Tenant = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("updatedAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.UpdatedAt = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AppAuthorizationUnmarshaller _instance = new AppAuthorizationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AppAuthorizationUnmarshaller 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AppBundleSummary Object
/// </summary>
public class AppBundleSummaryUnmarshaller : IUnmarshaller<AppBundleSummary, XmlUnmarshallerContext>, IUnmarshaller<AppBundleSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AppBundleSummary IUnmarshaller<AppBundleSummary, 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 AppBundleSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AppBundleSummary unmarshalledObject = new AppBundleSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("arn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Arn = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AppBundleSummaryUnmarshaller _instance = new AppBundleSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AppBundleSummaryUnmarshaller 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AppBundle Object
/// </summary>
public class AppBundleUnmarshaller : IUnmarshaller<AppBundle, XmlUnmarshallerContext>, IUnmarshaller<AppBundle, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AppBundle IUnmarshaller<AppBundle, 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 AppBundle Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AppBundle unmarshalledObject = new AppBundle();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("arn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Arn = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("customerManagedKeyArn", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CustomerManagedKeyArn = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AppBundleUnmarshaller _instance = new AppBundleUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AppBundleUnmarshaller 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// AuditLogDestinationConfiguration Marshaller
/// </summary>
public class AuditLogDestinationConfigurationMarshaller : IRequestMarshaller<AuditLogDestinationConfiguration, 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(AuditLogDestinationConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDestination())
{
context.Writer.WritePropertyName("destination");
context.Writer.WriteObjectStart();
var marshaller = DestinationMarshaller.Instance;
marshaller.Marshall(requestObject.Destination, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static AuditLogDestinationConfigurationMarshaller Instance = new AuditLogDestinationConfigurationMarshaller();
}
} | 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AuditLogDestinationConfiguration Object
/// </summary>
public class AuditLogDestinationConfigurationUnmarshaller : IUnmarshaller<AuditLogDestinationConfiguration, XmlUnmarshallerContext>, IUnmarshaller<AuditLogDestinationConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AuditLogDestinationConfiguration IUnmarshaller<AuditLogDestinationConfiguration, 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 AuditLogDestinationConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AuditLogDestinationConfiguration unmarshalledObject = new AuditLogDestinationConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("destination", targetDepth))
{
var unmarshaller = DestinationUnmarshaller.Instance;
unmarshalledObject.Destination = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AuditLogDestinationConfigurationUnmarshaller _instance = new AuditLogDestinationConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AuditLogDestinationConfigurationUnmarshaller 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// AuditLogProcessingConfiguration Marshaller
/// </summary>
public class AuditLogProcessingConfigurationMarshaller : IRequestMarshaller<AuditLogProcessingConfiguration, 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(AuditLogProcessingConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetFormat())
{
context.Writer.WritePropertyName("format");
context.Writer.Write(requestObject.Format);
}
if(requestObject.IsSetSchema())
{
context.Writer.WritePropertyName("schema");
context.Writer.Write(requestObject.Schema);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static AuditLogProcessingConfigurationMarshaller Instance = new AuditLogProcessingConfigurationMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for AuditLogProcessingConfiguration Object
/// </summary>
public class AuditLogProcessingConfigurationUnmarshaller : IUnmarshaller<AuditLogProcessingConfiguration, XmlUnmarshallerContext>, IUnmarshaller<AuditLogProcessingConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
AuditLogProcessingConfiguration IUnmarshaller<AuditLogProcessingConfiguration, 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 AuditLogProcessingConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
AuditLogProcessingConfiguration unmarshalledObject = new AuditLogProcessingConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("format", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Format = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("schema", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Schema = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static AuditLogProcessingConfigurationUnmarshaller _instance = new AuditLogProcessingConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static AuditLogProcessingConfigurationUnmarshaller 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// AuthRequest Marshaller
/// </summary>
public class AuthRequestMarshaller : IRequestMarshaller<AuthRequest, 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(AuthRequest requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetCode())
{
context.Writer.WritePropertyName("code");
context.Writer.Write(requestObject.Code);
}
if(requestObject.IsSetRedirectUri())
{
context.Writer.WritePropertyName("redirectUri");
context.Writer.Write(requestObject.RedirectUri);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static AuthRequestMarshaller Instance = new AuthRequestMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// BatchGetUserAccessTasks Request Marshaller
/// </summary>
public class BatchGetUserAccessTasksRequestMarshaller : IMarshaller<IRequest, BatchGetUserAccessTasksRequest> , 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((BatchGetUserAccessTasksRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(BatchGetUserAccessTasksRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppFabric");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-05-19";
request.HttpMethod = "POST";
request.ResourcePath = "/useraccess/batchget";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAppBundleIdentifier())
{
context.Writer.WritePropertyName("appBundleIdentifier");
context.Writer.Write(publicRequest.AppBundleIdentifier);
}
if(publicRequest.IsSetTaskIdList())
{
context.Writer.WritePropertyName("taskIdList");
context.Writer.WriteArrayStart();
foreach(var publicRequestTaskIdListListValue in publicRequest.TaskIdList)
{
context.Writer.Write(publicRequestTaskIdListListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static BatchGetUserAccessTasksRequestMarshaller _instance = new BatchGetUserAccessTasksRequestMarshaller();
internal static BatchGetUserAccessTasksRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchGetUserAccessTasksRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 112 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for BatchGetUserAccessTasks operation
/// </summary>
public class BatchGetUserAccessTasksResponseUnmarshaller : 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)
{
BatchGetUserAccessTasksResponse response = new BatchGetUserAccessTasksResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("userAccessResultsList", targetDepth))
{
var unmarshaller = new ListUnmarshaller<UserAccessResultItem, UserAccessResultItemUnmarshaller>(UserAccessResultItemUnmarshaller.Instance);
response.UserAccessResultsList = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppFabricException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static BatchGetUserAccessTasksResponseUnmarshaller _instance = new BatchGetUserAccessTasksResponseUnmarshaller();
internal static BatchGetUserAccessTasksResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static BatchGetUserAccessTasksResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ConflictException Object
/// </summary>
public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ConflictException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("resourceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("resourceType", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceType = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConflictExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// ConnectAppAuthorization Request Marshaller
/// </summary>
public class ConnectAppAuthorizationRequestMarshaller : IMarshaller<IRequest, ConnectAppAuthorizationRequest> , 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((ConnectAppAuthorizationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ConnectAppAuthorizationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppFabric");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-05-19";
request.HttpMethod = "POST";
if (!publicRequest.IsSetAppAuthorizationIdentifier())
throw new AmazonAppFabricException("Request object does not have required field AppAuthorizationIdentifier set");
request.AddPathResource("{appAuthorizationIdentifier}", StringUtils.FromString(publicRequest.AppAuthorizationIdentifier));
if (!publicRequest.IsSetAppBundleIdentifier())
throw new AmazonAppFabricException("Request object does not have required field AppBundleIdentifier set");
request.AddPathResource("{appBundleIdentifier}", StringUtils.FromString(publicRequest.AppBundleIdentifier));
request.ResourcePath = "/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}/connect";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAuthRequest())
{
context.Writer.WritePropertyName("authRequest");
context.Writer.WriteObjectStart();
var marshaller = AuthRequestMarshaller.Instance;
marshaller.Marshall(publicRequest.AuthRequest, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ConnectAppAuthorizationRequestMarshaller _instance = new ConnectAppAuthorizationRequestMarshaller();
internal static ConnectAppAuthorizationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConnectAppAuthorizationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 112 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ConnectAppAuthorization operation
/// </summary>
public class ConnectAppAuthorizationResponseUnmarshaller : 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)
{
ConnectAppAuthorizationResponse response = new ConnectAppAuthorizationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("appAuthorizationSummary", targetDepth))
{
var unmarshaller = AppAuthorizationSummaryUnmarshaller.Instance;
response.AppAuthorizationSummary = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppFabricException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ConnectAppAuthorizationResponseUnmarshaller _instance = new ConnectAppAuthorizationResponseUnmarshaller();
internal static ConnectAppAuthorizationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ConnectAppAuthorizationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 126 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateAppAuthorization Request Marshaller
/// </summary>
public class CreateAppAuthorizationRequestMarshaller : IMarshaller<IRequest, CreateAppAuthorizationRequest> , 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((CreateAppAuthorizationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateAppAuthorizationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppFabric");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-05-19";
request.HttpMethod = "POST";
if (!publicRequest.IsSetAppBundleIdentifier())
throw new AmazonAppFabricException("Request object does not have required field AppBundleIdentifier set");
request.AddPathResource("{appBundleIdentifier}", StringUtils.FromString(publicRequest.AppBundleIdentifier));
request.ResourcePath = "/appbundles/{appBundleIdentifier}/appauthorizations";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetApp())
{
context.Writer.WritePropertyName("app");
context.Writer.Write(publicRequest.App);
}
if(publicRequest.IsSetAuthType())
{
context.Writer.WritePropertyName("authType");
context.Writer.Write(publicRequest.AuthType);
}
if(publicRequest.IsSetClientToken())
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(publicRequest.ClientToken);
}
else if(!(publicRequest.IsSetClientToken()))
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(Guid.NewGuid().ToString());
}
if(publicRequest.IsSetCredential())
{
context.Writer.WritePropertyName("credential");
context.Writer.WriteObjectStart();
var marshaller = CredentialMarshaller.Instance;
marshaller.Marshall(publicRequest.Credential, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagsListValue in publicRequest.Tags)
{
context.Writer.WriteObjectStart();
var marshaller = TagMarshaller.Instance;
marshaller.Marshall(publicRequestTagsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetTenant())
{
context.Writer.WritePropertyName("tenant");
context.Writer.WriteObjectStart();
var marshaller = TenantMarshaller.Instance;
marshaller.Marshall(publicRequest.Tenant, context);
context.Writer.WriteObjectEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateAppAuthorizationRequestMarshaller _instance = new CreateAppAuthorizationRequestMarshaller();
internal static CreateAppAuthorizationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateAppAuthorizationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 159 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateAppAuthorization operation
/// </summary>
public class CreateAppAuthorizationResponseUnmarshaller : 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)
{
CreateAppAuthorizationResponse response = new CreateAppAuthorizationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("appAuthorization", targetDepth))
{
var unmarshaller = AppAuthorizationUnmarshaller.Instance;
response.AppAuthorization = 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("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException"))
{
return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppFabricException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateAppAuthorizationResponseUnmarshaller _instance = new CreateAppAuthorizationResponseUnmarshaller();
internal static CreateAppAuthorizationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateAppAuthorizationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 134 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateAppBundle Request Marshaller
/// </summary>
public class CreateAppBundleRequestMarshaller : IMarshaller<IRequest, CreateAppBundleRequest> , 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((CreateAppBundleRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateAppBundleRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppFabric");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-05-19";
request.HttpMethod = "POST";
request.ResourcePath = "/appbundles";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetClientToken())
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(publicRequest.ClientToken);
}
else if(!(publicRequest.IsSetClientToken()))
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(Guid.NewGuid().ToString());
}
if(publicRequest.IsSetCustomerManagedKeyIdentifier())
{
context.Writer.WritePropertyName("customerManagedKeyIdentifier");
context.Writer.Write(publicRequest.CustomerManagedKeyIdentifier);
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagsListValue in publicRequest.Tags)
{
context.Writer.WriteObjectStart();
var marshaller = TagMarshaller.Instance;
marshaller.Marshall(publicRequestTagsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateAppBundleRequestMarshaller _instance = new CreateAppBundleRequestMarshaller();
internal static CreateAppBundleRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateAppBundleRequestMarshaller 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateAppBundle operation
/// </summary>
public class CreateAppBundleResponseUnmarshaller : 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)
{
CreateAppBundleResponse response = new CreateAppBundleResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("appBundle", targetDepth))
{
var unmarshaller = AppBundleUnmarshaller.Instance;
response.AppBundle = 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("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException"))
{
return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppFabricException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateAppBundleResponseUnmarshaller _instance = new CreateAppBundleResponseUnmarshaller();
internal static CreateAppBundleResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateAppBundleResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateIngestionDestination Request Marshaller
/// </summary>
public class CreateIngestionDestinationRequestMarshaller : IMarshaller<IRequest, CreateIngestionDestinationRequest> , 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((CreateIngestionDestinationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateIngestionDestinationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppFabric");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-05-19";
request.HttpMethod = "POST";
if (!publicRequest.IsSetAppBundleIdentifier())
throw new AmazonAppFabricException("Request object does not have required field AppBundleIdentifier set");
request.AddPathResource("{appBundleIdentifier}", StringUtils.FromString(publicRequest.AppBundleIdentifier));
if (!publicRequest.IsSetIngestionIdentifier())
throw new AmazonAppFabricException("Request object does not have required field IngestionIdentifier set");
request.AddPathResource("{ingestionIdentifier}", StringUtils.FromString(publicRequest.IngestionIdentifier));
request.ResourcePath = "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetClientToken())
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(publicRequest.ClientToken);
}
else if(!(publicRequest.IsSetClientToken()))
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(Guid.NewGuid().ToString());
}
if(publicRequest.IsSetDestinationConfiguration())
{
context.Writer.WritePropertyName("destinationConfiguration");
context.Writer.WriteObjectStart();
var marshaller = DestinationConfigurationMarshaller.Instance;
marshaller.Marshall(publicRequest.DestinationConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetProcessingConfiguration())
{
context.Writer.WritePropertyName("processingConfiguration");
context.Writer.WriteObjectStart();
var marshaller = ProcessingConfigurationMarshaller.Instance;
marshaller.Marshall(publicRequest.ProcessingConfiguration, context);
context.Writer.WriteObjectEnd();
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagsListValue in publicRequest.Tags)
{
context.Writer.WriteObjectStart();
var marshaller = TagMarshaller.Instance;
marshaller.Marshall(publicRequestTagsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateIngestionDestinationRequestMarshaller _instance = new CreateIngestionDestinationRequestMarshaller();
internal static CreateIngestionDestinationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateIngestionDestinationRequestMarshaller 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateIngestionDestination operation
/// </summary>
public class CreateIngestionDestinationResponseUnmarshaller : 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)
{
CreateIngestionDestinationResponse response = new CreateIngestionDestinationResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ingestionDestination", targetDepth))
{
var unmarshaller = IngestionDestinationUnmarshaller.Instance;
response.IngestionDestination = 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("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException"))
{
return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppFabricException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateIngestionDestinationResponseUnmarshaller _instance = new CreateIngestionDestinationResponseUnmarshaller();
internal static CreateIngestionDestinationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateIngestionDestinationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateIngestion Request Marshaller
/// </summary>
public class CreateIngestionRequestMarshaller : IMarshaller<IRequest, CreateIngestionRequest> , 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((CreateIngestionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateIngestionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppFabric");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-05-19";
request.HttpMethod = "POST";
if (!publicRequest.IsSetAppBundleIdentifier())
throw new AmazonAppFabricException("Request object does not have required field AppBundleIdentifier set");
request.AddPathResource("{appBundleIdentifier}", StringUtils.FromString(publicRequest.AppBundleIdentifier));
request.ResourcePath = "/appbundles/{appBundleIdentifier}/ingestions";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetApp())
{
context.Writer.WritePropertyName("app");
context.Writer.Write(publicRequest.App);
}
if(publicRequest.IsSetClientToken())
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(publicRequest.ClientToken);
}
else if(!(publicRequest.IsSetClientToken()))
{
context.Writer.WritePropertyName("clientToken");
context.Writer.Write(Guid.NewGuid().ToString());
}
if(publicRequest.IsSetIngestionType())
{
context.Writer.WritePropertyName("ingestionType");
context.Writer.Write(publicRequest.IngestionType);
}
if(publicRequest.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteArrayStart();
foreach(var publicRequestTagsListValue in publicRequest.Tags)
{
context.Writer.WriteObjectStart();
var marshaller = TagMarshaller.Instance;
marshaller.Marshall(publicRequestTagsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetTenantId())
{
context.Writer.WritePropertyName("tenantId");
context.Writer.Write(publicRequest.TenantId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateIngestionRequestMarshaller _instance = new CreateIngestionRequestMarshaller();
internal static CreateIngestionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateIngestionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 143 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateIngestion operation
/// </summary>
public class CreateIngestionResponseUnmarshaller : 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)
{
CreateIngestionResponse response = new CreateIngestionResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("ingestion", targetDepth))
{
var unmarshaller = IngestionUnmarshaller.Instance;
response.Ingestion = 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("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ServiceQuotaExceededException"))
{
return ServiceQuotaExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppFabricException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateIngestionResponseUnmarshaller _instance = new CreateIngestionResponseUnmarshaller();
internal static CreateIngestionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateIngestionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 130 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Credential Marshaller
/// </summary>
public class CredentialMarshaller : IRequestMarshaller<Credential, 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(Credential requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetApiKeyCredential())
{
context.Writer.WritePropertyName("apiKeyCredential");
context.Writer.WriteObjectStart();
var marshaller = ApiKeyCredentialMarshaller.Instance;
marshaller.Marshall(requestObject.ApiKeyCredential, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetOauth2Credential())
{
context.Writer.WritePropertyName("oauth2Credential");
context.Writer.WriteObjectStart();
var marshaller = Oauth2CredentialMarshaller.Instance;
marshaller.Marshall(requestObject.Oauth2Credential, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static CredentialMarshaller Instance = new CredentialMarshaller();
}
} | 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteAppAuthorization Request Marshaller
/// </summary>
public class DeleteAppAuthorizationRequestMarshaller : IMarshaller<IRequest, DeleteAppAuthorizationRequest> , 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((DeleteAppAuthorizationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteAppAuthorizationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppFabric");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-05-19";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetAppAuthorizationIdentifier())
throw new AmazonAppFabricException("Request object does not have required field AppAuthorizationIdentifier set");
request.AddPathResource("{appAuthorizationIdentifier}", StringUtils.FromString(publicRequest.AppAuthorizationIdentifier));
if (!publicRequest.IsSetAppBundleIdentifier())
throw new AmazonAppFabricException("Request object does not have required field AppBundleIdentifier set");
request.AddPathResource("{appBundleIdentifier}", StringUtils.FromString(publicRequest.AppBundleIdentifier));
request.ResourcePath = "/appbundles/{appBundleIdentifier}/appauthorizations/{appAuthorizationIdentifier}";
return request;
}
private static DeleteAppAuthorizationRequestMarshaller _instance = new DeleteAppAuthorizationRequestMarshaller();
internal static DeleteAppAuthorizationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteAppAuthorizationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 90 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteAppAuthorization operation
/// </summary>
public class DeleteAppAuthorizationResponseUnmarshaller : 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)
{
DeleteAppAuthorizationResponse response = new DeleteAppAuthorizationResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppFabricException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteAppAuthorizationResponseUnmarshaller _instance = new DeleteAppAuthorizationResponseUnmarshaller();
internal static DeleteAppAuthorizationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteAppAuthorizationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteAppBundle Request Marshaller
/// </summary>
public class DeleteAppBundleRequestMarshaller : IMarshaller<IRequest, DeleteAppBundleRequest> , 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((DeleteAppBundleRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteAppBundleRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppFabric");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-05-19";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetAppBundleIdentifier())
throw new AmazonAppFabricException("Request object does not have required field AppBundleIdentifier set");
request.AddPathResource("{appBundleIdentifier}", StringUtils.FromString(publicRequest.AppBundleIdentifier));
request.ResourcePath = "/appbundles/{appBundleIdentifier}";
return request;
}
private static DeleteAppBundleRequestMarshaller _instance = new DeleteAppBundleRequestMarshaller();
internal static DeleteAppBundleRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteAppBundleRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 87 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteAppBundle operation
/// </summary>
public class DeleteAppBundleResponseUnmarshaller : 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)
{
DeleteAppBundleResponse response = new DeleteAppBundleResponse();
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("ConflictException"))
{
return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppFabricException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteAppBundleResponseUnmarshaller _instance = new DeleteAppBundleResponseUnmarshaller();
internal static DeleteAppBundleResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteAppBundleResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteIngestionDestination Request Marshaller
/// </summary>
public class DeleteIngestionDestinationRequestMarshaller : IMarshaller<IRequest, DeleteIngestionDestinationRequest> , 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((DeleteIngestionDestinationRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteIngestionDestinationRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppFabric");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-05-19";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetAppBundleIdentifier())
throw new AmazonAppFabricException("Request object does not have required field AppBundleIdentifier set");
request.AddPathResource("{appBundleIdentifier}", StringUtils.FromString(publicRequest.AppBundleIdentifier));
if (!publicRequest.IsSetIngestionDestinationIdentifier())
throw new AmazonAppFabricException("Request object does not have required field IngestionDestinationIdentifier set");
request.AddPathResource("{ingestionDestinationIdentifier}", StringUtils.FromString(publicRequest.IngestionDestinationIdentifier));
if (!publicRequest.IsSetIngestionIdentifier())
throw new AmazonAppFabricException("Request object does not have required field IngestionIdentifier set");
request.AddPathResource("{ingestionIdentifier}", StringUtils.FromString(publicRequest.IngestionIdentifier));
request.ResourcePath = "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}/ingestiondestinations/{ingestionDestinationIdentifier}";
return request;
}
private static DeleteIngestionDestinationRequestMarshaller _instance = new DeleteIngestionDestinationRequestMarshaller();
internal static DeleteIngestionDestinationRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteIngestionDestinationRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 93 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteIngestionDestination operation
/// </summary>
public class DeleteIngestionDestinationResponseUnmarshaller : 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)
{
DeleteIngestionDestinationResponse response = new DeleteIngestionDestinationResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppFabricException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteIngestionDestinationResponseUnmarshaller _instance = new DeleteIngestionDestinationResponseUnmarshaller();
internal static DeleteIngestionDestinationResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteIngestionDestinationResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// DeleteIngestion Request Marshaller
/// </summary>
public class DeleteIngestionRequestMarshaller : IMarshaller<IRequest, DeleteIngestionRequest> , 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((DeleteIngestionRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DeleteIngestionRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AppFabric");
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2023-05-19";
request.HttpMethod = "DELETE";
if (!publicRequest.IsSetAppBundleIdentifier())
throw new AmazonAppFabricException("Request object does not have required field AppBundleIdentifier set");
request.AddPathResource("{appBundleIdentifier}", StringUtils.FromString(publicRequest.AppBundleIdentifier));
if (!publicRequest.IsSetIngestionIdentifier())
throw new AmazonAppFabricException("Request object does not have required field IngestionIdentifier set");
request.AddPathResource("{ingestionIdentifier}", StringUtils.FromString(publicRequest.IngestionIdentifier));
request.ResourcePath = "/appbundles/{appBundleIdentifier}/ingestions/{ingestionIdentifier}";
return request;
}
private static DeleteIngestionRequestMarshaller _instance = new DeleteIngestionRequestMarshaller();
internal static DeleteIngestionRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteIngestionRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 90 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DeleteIngestion operation
/// </summary>
public class DeleteIngestionResponseUnmarshaller : 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)
{
DeleteIngestionResponse response = new DeleteIngestionResponse();
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException"))
{
return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException"))
{
return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException"))
{
return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAppFabricException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DeleteIngestionResponseUnmarshaller _instance = new DeleteIngestionResponseUnmarshaller();
internal static DeleteIngestionResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DeleteIngestionResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// DestinationConfiguration Marshaller
/// </summary>
public class DestinationConfigurationMarshaller : IRequestMarshaller<DestinationConfiguration, 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(DestinationConfiguration requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAuditLog())
{
context.Writer.WritePropertyName("auditLog");
context.Writer.WriteObjectStart();
var marshaller = AuditLogDestinationConfigurationMarshaller.Instance;
marshaller.Marshall(requestObject.AuditLog, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static DestinationConfigurationMarshaller Instance = new DestinationConfigurationMarshaller();
}
} | 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DestinationConfiguration Object
/// </summary>
public class DestinationConfigurationUnmarshaller : IUnmarshaller<DestinationConfiguration, XmlUnmarshallerContext>, IUnmarshaller<DestinationConfiguration, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
DestinationConfiguration IUnmarshaller<DestinationConfiguration, 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 DestinationConfiguration Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
DestinationConfiguration unmarshalledObject = new DestinationConfiguration();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("auditLog", targetDepth))
{
var unmarshaller = AuditLogDestinationConfigurationUnmarshaller.Instance;
unmarshalledObject.AuditLog = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static DestinationConfigurationUnmarshaller _instance = new DestinationConfigurationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static DestinationConfigurationUnmarshaller 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Destination Marshaller
/// </summary>
public class DestinationMarshaller : IRequestMarshaller<Destination, 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(Destination requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetFirehoseStream())
{
context.Writer.WritePropertyName("firehoseStream");
context.Writer.WriteObjectStart();
var marshaller = FirehoseStreamMarshaller.Instance;
marshaller.Marshall(requestObject.FirehoseStream, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetS3Bucket())
{
context.Writer.WritePropertyName("s3Bucket");
context.Writer.WriteObjectStart();
var marshaller = S3BucketMarshaller.Instance;
marshaller.Marshall(requestObject.S3Bucket, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static DestinationMarshaller Instance = new DestinationMarshaller();
}
} | 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 appfabric-2023-05-19.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.AppFabric.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AppFabric.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Destination Object
/// </summary>
public class DestinationUnmarshaller : IUnmarshaller<Destination, XmlUnmarshallerContext>, IUnmarshaller<Destination, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Destination IUnmarshaller<Destination, 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 Destination Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Destination unmarshalledObject = new Destination();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("firehoseStream", targetDepth))
{
var unmarshaller = FirehoseStreamUnmarshaller.Instance;
unmarshalledObject.FirehoseStream = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("s3Bucket", targetDepth))
{
var unmarshaller = S3BucketUnmarshaller.Instance;
unmarshalledObject.S3Bucket = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static DestinationUnmarshaller _instance = new DestinationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static DestinationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 98 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.