/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License").
 * You may not use this file except in compliance with the License.
 * A copy of the License is located at
 * 
 *  http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed
 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
 * express or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */
/*
 * Do not modify this file. This file is generated from the eventbridge-2015-10-07.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.EventBridge.Model
{
    /// 
    /// A global endpoint used to improve your application's availability by making it regional-fault
    /// tolerant. For more information about global endpoints, see Making
    /// applications Regional-fault tolerant with global endpoints and event replication
    /// in the Amazon EventBridge User Guide.
    /// 
    public partial class Endpoint
    {
        private string _arn;
        private DateTime? _creationTime;
        private string _description;
        private string _endpointId;
        private string _endpointUrl;
        private List _eventBuses = new List();
        private DateTime? _lastModifiedTime;
        private string _name;
        private ReplicationConfig _replicationConfig;
        private string _roleArn;
        private RoutingConfig _routingConfig;
        private EndpointState _state;
        private string _stateReason;
        /// 
        /// Gets and sets the property Arn. 
        /// 
        /// The ARN of the endpoint.
        /// 
        /// 
        [AWSProperty(Min=1, Max=1600)]
        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;
        }
        /// 
        /// Gets and sets the property CreationTime. 
        /// 
        /// The time the endpoint was created.
        /// 
        /// 
        public DateTime CreationTime
        {
            get { return this._creationTime.GetValueOrDefault(); }
            set { this._creationTime = value; }
        }
        // Check to see if CreationTime property is set
        internal bool IsSetCreationTime()
        {
            return this._creationTime.HasValue; 
        }
        /// 
        /// Gets and sets the property Description. 
        /// 
        /// A description for the endpoint.
        /// 
        /// 
        [AWSProperty(Max=512)]
        public string Description
        {
            get { return this._description; }
            set { this._description = value; }
        }
        // Check to see if Description property is set
        internal bool IsSetDescription()
        {
            return this._description != null;
        }
        /// 
        /// Gets and sets the property EndpointId. 
        /// 
        /// The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://abcde.veo.endpoints.event.amazonaws.com,
        /// then the EndpointId is abcde.veo.
        /// 
        /// 
        [AWSProperty(Min=1, Max=50)]
        public string EndpointId
        {
            get { return this._endpointId; }
            set { this._endpointId = value; }
        }
        // Check to see if EndpointId property is set
        internal bool IsSetEndpointId()
        {
            return this._endpointId != null;
        }
        /// 
        /// Gets and sets the property EndpointUrl. 
        /// 
        /// The URL of the endpoint.
        /// 
        /// 
        [AWSProperty(Min=1, Max=256)]
        public string EndpointUrl
        {
            get { return this._endpointUrl; }
            set { this._endpointUrl = value; }
        }
        // Check to see if EndpointUrl property is set
        internal bool IsSetEndpointUrl()
        {
            return this._endpointUrl != null;
        }
        /// 
        /// Gets and sets the property EventBuses. 
        /// 
        /// The event buses being used by the endpoint.
        /// 
        /// 
        [AWSProperty(Min=2, Max=2)]
        public List EventBuses
        {
            get { return this._eventBuses; }
            set { this._eventBuses = value; }
        }
        // Check to see if EventBuses property is set
        internal bool IsSetEventBuses()
        {
            return this._eventBuses != null && this._eventBuses.Count > 0; 
        }
        /// 
        /// Gets and sets the property LastModifiedTime. 
        /// 
        /// The last time the endpoint was modified.
        /// 
        /// 
        public DateTime LastModifiedTime
        {
            get { return this._lastModifiedTime.GetValueOrDefault(); }
            set { this._lastModifiedTime = value; }
        }
        // Check to see if LastModifiedTime property is set
        internal bool IsSetLastModifiedTime()
        {
            return this._lastModifiedTime.HasValue; 
        }
        /// 
        /// Gets and sets the property Name. 
        /// 
        /// The name of the endpoint.
        /// 
        /// 
        [AWSProperty(Min=1, Max=64)]
        public string Name
        {
            get { return this._name; }
            set { this._name = value; }
        }
        // Check to see if Name property is set
        internal bool IsSetName()
        {
            return this._name != null;
        }
        /// 
        /// Gets and sets the property ReplicationConfig. 
        /// 
        /// Whether event replication was enabled or disabled for this endpoint. The default state
        /// is ENABLED which means you must supply a RoleArn. If you
        /// don't have a RoleArn or you don't want event replication enabled, set
        /// the state to DISABLED.
        /// 
        /// 
        public ReplicationConfig ReplicationConfig
        {
            get { return this._replicationConfig; }
            set { this._replicationConfig = value; }
        }
        // Check to see if ReplicationConfig property is set
        internal bool IsSetReplicationConfig()
        {
            return this._replicationConfig != null;
        }
        /// 
        /// Gets and sets the property RoleArn. 
        /// 
        /// The ARN of the role used by event replication for the endpoint.
        /// 
        /// 
        [AWSProperty(Min=1, Max=256)]
        public string RoleArn
        {
            get { return this._roleArn; }
            set { this._roleArn = value; }
        }
        // Check to see if RoleArn property is set
        internal bool IsSetRoleArn()
        {
            return this._roleArn != null;
        }
        /// 
        /// Gets and sets the property RoutingConfig. 
        /// 
        /// The routing configuration of the endpoint.
        /// 
        /// 
        public RoutingConfig RoutingConfig
        {
            get { return this._routingConfig; }
            set { this._routingConfig = value; }
        }
        // Check to see if RoutingConfig property is set
        internal bool IsSetRoutingConfig()
        {
            return this._routingConfig != null;
        }
        /// 
        /// Gets and sets the property State. 
        /// 
        /// The current state of the endpoint.
        /// 
        /// 
        public EndpointState State
        {
            get { return this._state; }
            set { this._state = value; }
        }
        // Check to see if State property is set
        internal bool IsSetState()
        {
            return this._state != null;
        }
        /// 
        /// Gets and sets the property StateReason. 
        /// 
        /// The reason the endpoint is in its current state.
        /// 
        /// 
        [AWSProperty(Min=1, Max=512)]
        public string StateReason
        {
            get { return this._stateReason; }
            set { this._stateReason = value; }
        }
        // Check to see if StateReason property is set
        internal bool IsSetStateReason()
        {
            return this._stateReason != null;
        }
    }
}