/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the sagemaker-2017-07-24.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SageMaker.Model { /// /// Specifies the configuration for notifications of inference results for asynchronous /// inference. /// public partial class AsyncInferenceNotificationConfig { private string _errorTopic; private List _includeInferenceResponseIn = new List(); private string _successTopic; /// /// Gets and sets the property ErrorTopic. /// /// Amazon SNS topic to post a notification to when inference fails. If no topic is provided, /// no notification is sent on failure. /// /// [AWSProperty(Max=2048)] public string ErrorTopic { get { return this._errorTopic; } set { this._errorTopic = value; } } // Check to see if ErrorTopic property is set internal bool IsSetErrorTopic() { return this._errorTopic != null; } /// /// Gets and sets the property IncludeInferenceResponseIn. /// /// The Amazon SNS topics where you want the inference response to be included. /// /// /// /// The inference response is included only if the response size is less than or equal /// to 128 KB. /// /// /// [AWSProperty(Min=0, Max=2)] public List IncludeInferenceResponseIn { get { return this._includeInferenceResponseIn; } set { this._includeInferenceResponseIn = value; } } // Check to see if IncludeInferenceResponseIn property is set internal bool IsSetIncludeInferenceResponseIn() { return this._includeInferenceResponseIn != null && this._includeInferenceResponseIn.Count > 0; } /// /// Gets and sets the property SuccessTopic. /// /// Amazon SNS topic to post a notification to when inference completes successfully. /// If no topic is provided, no notification is sent on success. /// /// [AWSProperty(Max=2048)] public string SuccessTopic { get { return this._successTopic; } set { this._successTopic = value; } } // Check to see if SuccessTopic property is set internal bool IsSetSuccessTopic() { return this._successTopic != null; } } }